Adaptive negative sampling! #27
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
The model learns more when it is punished more. In Collie, we often use adaptive implicit loss functions that sample multiple negative items at a time to allow for a greater chance to punish the model.
Setting
num_negative_samples
too low means the model learns slower over time, but settingnum_negative_samples
might mean the model will be too punished to the point where it does not learn at all.Ideally, we could have an adaptive negative sampling strategy that starts with a small
num_negative_samples
and, as training progresses, will increase thenum_negative_samples
so the model is given greater chance of messing up as it learns more and more.We could just train for a few epochs, do something like:
and we would have the same outcome, but it would be nice if this were built into Collie somehow via a tunable hyperparameter!
This would be cool :)
The text was updated successfully, but these errors were encountered: