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

Some comparisons #8

Open
arita37 opened this issue Dec 31, 2021 · 1 comment
Open

Some comparisons #8

arita37 opened this issue Dec 31, 2021 · 1 comment

Comments

@arita37
Copy link

arita37 commented Dec 31, 2021

Hello,

On the paper, just have few questions.

Using Cross Entropy, does it use the last layer embedding for the the top-k retrieval evaluation ?

Do you see any benefits of using
multi-label cross entropy head loss vs
a series of single labels losses ?

thx and happy new year

@mboudiaf
Copy link
Collaborator

Hey @arita37 ,

Sorry for the 4-month latency.

Using Cross Entropy, does it use the last layer embedding for the the top-k retrieval evaluation ?

Yes indeed.

Do you see any benefits of using multi-label cross entropy head loss vs a series of single labels losses ?

I guess training a classifier with multi-label cross-entropy makes it easier to make predictions (because unambiguous) downstream. Now if the end-task is not classification but representation learning, it's a bit trickier. In both cases, the two essential terms we discuss in the paper (tightness and contrastive) are present. Computationally speaking, I believe both have similar time/memory complexity. From a purely geometrical intuition, I would say treating the problem as a series of binary problems is "harder" in the sense that it is less permissive regarding the configurations it allows in the feature space (c.f. my dirty drawing below). Therefore, treating the problem as 1 vs all may take longer to converge, but may lead to even better clustered regions. It would be interesting to try this :)
image

Hope this answers your question.

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