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

Implement CoSENT loss #2438

Closed
tomaarsen opened this issue Jan 23, 2024 · 0 comments · Fixed by #2454
Closed

Implement CoSENT loss #2438

tomaarsen opened this issue Jan 23, 2024 · 0 comments · Fixed by #2454

Comments

@tomaarsen
Copy link
Collaborator

tomaarsen commented Jan 23, 2024

Hello!

Context

This issue describes a feature that I am planning to be included in a release before v3, or alternatively, in v3 of Sentence Transformers.

Details

Some recent work by Li & Li, 2023 brought my attention to CoSENT (blogpost, GitHub repo). It proposes a new loss function with the purpose of more effectively and directly causing the cosine similarity of a positive pair to be larger than that of a negative pair.

Implementation snippets:

@johneckberg has expressed an interest in contributing this loss.

cc @bwanglzu @ir2718 @johneckberg @aamir-s18 as I know you're interested in my TODO list. John will lead this development, and I will review his PR.

  • Tom Aarsen
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

Successfully merging a pull request may close this issue.

1 participant