NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec

[FEA] Include pairwise losses functions: BPR-max, TOP1-max

Open
#264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status/needs-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.