Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A quick question #7

Closed
zhenxianglance opened this issue May 26, 2021 · 4 comments
Closed

A quick question #7

zhenxianglance opened this issue May 26, 2021 · 4 comments

Comments

@zhenxianglance
Copy link

Dear authors of SPICE,

I am very impressed by your work. Just a quick question: how the semantic prediction matrix P is obtained from the features?

Thanks!

@niuchuangnn
Copy link
Owner

@zhenxianglance The matrix P is predicted by the CLS head, which takes the features as inputs.

@zhenxianglance
Copy link
Author

Thanks for your reply. Here is a follow-up question: how did you initialize the CLS head (e.g. a MLP) to ensure that the accuracy of the top-confident predictions? I guess the accuracy of the pseudo labels is critical to avoid error propagation...

@niuchuangnn
Copy link
Owner

@zhenxianglance The CLS head is randomly initialized. With optimizing the parameters of the CLS head, the predictions will become better and better, although the initial predictions are not accurate. Because the pseudo-labeling algorithm can correct the predictions to some extent by generating the pseudo labels based on the sample similarity in the embedding space and the predictions in the current iteration. Given the better pseudo labels, the CLS head can be trained for a better prediction, which will further help generate better pseudo labels in the next iteration. This process will be iteratively conducted during training.

The predictions of CLS head are mainly to determine the dissimilarity of different clusters and the embedding features of the representation learning model are to measure the similarity between instance samples.

@zhenxianglance
Copy link
Author

Thanks a lot for the details! Very impressive idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants