NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec
[FEA] Include pairwise losses functions: BPR-max, TOP1-max
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 165
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
🚀 Feature request
Include support to pairwise losses functions (BPR-max, TOP1-max)
Motivation
Pairwise ranking losses functions are more scalable than cross-entropy loss.
Notes
An implementation BPR-max and TOP1-max losses is available in a preliminary dev version of Transformers4Rec: https://github.com/NVIDIA-Merlin/Transformers4Rec/blob/recsys2021/hf4rec/loss_functions.py
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the referenced hf4rec/loss_functions.py implementation in the Transformers4Rec recsys2021 branch, then inspect this repository's existing loss integration points. Done means BPR-max and TOP1-max are available as supported pairwise loss functions alongside the current loss behavior, with coverage for their use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100