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

How to use hard negatives for training VLM2Vec? #12

Open
haon-chen opened this issue Nov 27, 2024 · 1 comment
Open

How to use hard negatives for training VLM2Vec? #12

haon-chen opened this issue Nov 27, 2024 · 1 comment

Comments

@haon-chen
Copy link

Hi, congrats to such fine work done!
I see some of subsets have neg_text and neg_image_path, but neither of them are used in Training_Dataset or MMEBModel. Could you add the usage of possible multiple hard negatives into your code?

@XMHZZ2018
Copy link
Contributor

Thank you for your interest in our work!

Initially, we employed various methods to collect hard negatives, tailored to different datasets. However, since this process was time-consuming and required multiple iterations, we decided not to include hard negatives in the first version of the VLM2Vec release. Instead, we adopted GradCache, which allowed us to use a relatively large batch size of 2K to mitigate the missing of hard negatives.

However, hard negatives are definitely important and will enhance our model's performance. In the future, we plan to incorporate hard negatives into our training data and release an updated version of the model.

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