Repository navigation
RePlay 0.23.0 Release notes
Release date: 12.11.2026 · Version: 0.23.0 · Type: Minor
Highlights
This release adds PR-Entmax, a sparse prior-regularized loss designed to
mitigate popularity bias in recommender systems while preserving
recommendation relevance. PR-Entmax requires no architectural changes and
uses item-frequency information only during training.
New features
-
Added
PREntmaxandPREntmaxSampledloss functions. PR-Entmax incorporates
an item-frequency prior directly into the sparse Entmax mapping, allowing
contextual relevance and item frequency to jointly determine which items
receive non-zero probabilities and gradients. The strength of the prior
correction is controlled bygamma, whiletemperaturecontrols logit
scaling. Both loss functions accept a one-dimensionalitem_frequencytensor aligned
with encoded item IDs. Ifitem_frequencyis not provided, they operate as
standard Entmax-1.5 losses.Added a complete
SasRec example
demonstrating how to calculate the item-frequency prior, configure
PREntmax, trainSasRecwith CE and PR-Entmax losses, and compare relevance,
catalog coverage, and novelty metrics.The method is described in
Mitigating Popularity Bias in Sequential Recommendations with Sparse Prior-Regularized Objective.