FlagOpen / FlagEmbedding

Retrieval and Retrieval-augmented LLMs
MIT License
7.53k stars 543 forks source link

Threshold for unlabeled data #259

Open iambestfeeddddd opened 1 year ago

iambestfeeddddd commented 1 year ago

There is a paragraph like this on page 4 of your technical report:

The text pairs selected from the web and other public sources are not guaranteed to be closely related. related. Therefore, data quality can be a major concern. In our work, we use a simple strategy to filter the data before adding it to C-MTP (unlabeled). Particularly, we use a third-party model: Text2VecChinese2 to score the strength of relation for each text pair. We empirically choose a threshold of 0.43, and drop the samples scores whose are below the threshold. With such an operation, there are 100 million text pairs filtered from the unlabeled corpora. Despite the simplicity, we find that it effectively removes the irrelevant text pairs when manually review samples and leads to strong Empirical performances for the models trained C-MTP (unlabeled).

I have a bit question as to how you choose the number 0.43. Is there a qualitative method for this selection?

staoxiao commented 1 year ago

Only analyze some cases and select a threshold, that may be not the best value.

iambestfeeddddd commented 1 year ago

Only analyze some cases and select a threshold, that may be not the best value.

Hmm, I'm a bit confused about how many epochs we need to finetune for unlabeled data. Is 3 a good number or do we need more?

iambestfeeddddd commented 9 months ago

@staoxiao hmm, i have a new question. Do you perform dedup operations on wiki and bookcorpus data? And if there is dedup, I wonder if we should do it after splitting the data into traning sample or dedup with default sample in the raw dataset (before building the dataset).

staoxiao commented 9 months ago

@staoxiao hmm, i have a new question. Do you perform dedup operations on wiki and bookcorpus data? And if there is dedup, I wonder if we should do it after splitting the data into traning sample or dedup with default sample in the raw dataset (before building the dataset).

No, I didn't perform dedup operation.