feat: unified Transformers4Rec with CLM/MLM/PLM/RTD training objective#707
Open
hieuddo wants to merge 3 commits into
Open
feat: unified Transformers4Rec with CLM/MLM/PLM/RTD training objective#707hieuddo wants to merge 3 commits into
hieuddo wants to merge 3 commits into
Conversation
Member
Author
|
Quick tuning with two datasets, sorted by Dataset: diginetica
Dataset: ml100kFor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Previously, we ported several sequential models from https://github.com/PreferredAI/CoVE. In the context of
CoVE, we experimented and found out that a specific setting leads to better performance: CLM training objective + sequence breakdown ([a,b,c,d] was broken down to [a]->b, [a,b]->c, [a,b,c]->d) and we only calculated loss at the last position (e.g., for [a,b,c]->d, we only calculated loss at the predicted output with input [a,b,c].For general use, I think we should have the options for other training objectives (CLM, MLM, PLM, and RTD), all four derived from https://github.com/NVIDIA-Merlin/Transformers4Rec.
So here, we try to aggregate all Transformers-based models into one unified class, with all four training objectives. We still keep the one setting we believe is the best, mentioned above (CLM + session breakdown + loss at last position).
Checklist:
README.md(if you are adding a new model).examples/README.md(if you are adding a new example).