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

Negative sampling #7

Open
NoviceCrom opened this issue Jun 7, 2022 · 1 comment
Open

Negative sampling #7

NoviceCrom opened this issue Jun 7, 2022 · 1 comment

Comments

@NoviceCrom
Copy link

Hi! The paper argues that in-batch samples can be used as negatives. In the implementation of training, it seems there's no explicit positives, just mm() for all hr_vectors and tail_vectors?

@intfloat
Copy link
Owner

intfloat commented Jun 8, 2022

The diagonal elements of the resulting matrix correspond to positives.

To be more specific, for the i-th row in hr_vectors, the positive is the i-th row in tail-vectors, and all other rows are in-batch negatives.

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