DSL: Understanding and Improving Softmax Recommender Systems with Competition-Aware Scaling

Bucher Sahyouni, Matthew J. Vowels, Liqun Chen, Simon Hadfield

Abstract: Softmax Loss (SL) is being increasingly adopted for recommender systems (RS) as it has demonstrated better performance, robustness and fairness. Yet in implicit-feedback, a single global temperature and equal treatment of uniformly sampled negatives can lead to brittle training, because sampled sets may contain varying degrees of relevant or informative competitors. The optimal loss sharpness for a user-item pair with a particular set of negatives, can be suboptimal or destabilising for another with different negatives. We introduce Dual-scale Softmax Loss (DSL), which infers effective sharpness from the sampled competition itself. DSL adds two complementary branches to the log-sum-exp backbone. Firstly it reweights negatives within each training instance using hardness and item--item similarity, secondly it adapts a per-example temperature from the competition intensity over a constructed competitor slate. Together, these components preserve the geometry of SL while reshaping the competition distribution across negatives and across examples. Over several representative benchmarks and backbones, DSL yields substantial gains over strong baselines, with improvements over SL exceeding 10% in several settings and averaging 6.22% across datasets, metrics, and backbones. Under out-of-distribution (OOD) popularity shift, the gains are larger, with an average of 9.31% improvement over SL. We further provide a theoretical, distributionally robust optimisation (DRO) analysis, which demonstrates how DSL reshapes the robust payoff and the KL deviation for ambiguous instances. This helps explain the empirically observed improvements in accuracy and robustness.

1. Introduction

In modern recommendation systems utilizing implicit feedback (e.g., clicks, views), Softmax Loss (SL) is a standard objective used to contrast positive interactions against a set of negative samples. However, standard SL implementations typically suffer from two primary limitations: uniform treatment of negatives and the use of a fixed global temperature ($\tau$). Treating all negatives as equally relevant ignores the distinction between "easy" (irrelevant) and "hard" (near-substitute) competitors. Furthermore, a fixed temperature fails to account for varying levels of ambiguity across different user-item pairs; a sharper gradient signal is often required to distinguish between highly similar items compared to distinct ones.

2. Methodology: Dual-scale Softmax Loss (DSL)

To address these limitations, we propose Dual-scale Softmax Loss (DSL). DSL enhances the standard log-sum-exp backbone with two adaptive scaling branches:

  • The $\kappa$ Branch (Within-Example Scaling): This branch dynamically reweights negatives within a single training instance. By incorporating item-item similarity and model-based hardness, it ensures that the most informative competitors receive a larger share of the gradient budget.
  • The CA Branch (Across-Example Competition Awareness): This branch adapts the temperature for each specific example based on "competition intensity." By evaluating a constructed "pseudoslate" of top competitors, DSL sharpens the loss (lowers effective $\tau$) for highly competitive or ambiguous instances.

Both branches utilize mean-normalization to prevent global temperature drift, ensuring stable and calibrated training.

DSL reshapes the competition distribution by concentrating cumulative probability mass on the most informative top-K negatives compared to standard Softmax Loss (SL).

3. Experimental Evaluation

We evaluated DSL across four major recommendation benchmarks: Amazon-Health, Amazon-Electronic, Amazon-Movie, and Gowalla. Experiments were conducted under both Independent and Identically Distributed (IID) and Out-of-Distribution (OOD) popularity shift conditions, using Matrix Factorization (MF) and LightGCN backbones.

3.1 Key Results

DSL consistently outperformed the standard SL baseline across all datasets and metrics (Recall@20 and NDCG@20).

  • Performance Gains: DSL achieved an average improvement of 6.22% over SL, with peak improvements exceeding 10% in several configurations.
  • Robustness to Popularity Shift: The benefits of DSL were even more pronounced in OOD scenarios, where it achieved an average improvement of 9.31%, indicating superior resilience to real-world distribution shifts.
  • Ablation Analysis: Testing individual components revealed that while both branches contribute to performance, the $\kappa$ branch (within-example reweighting) is typically the primary driver of gains.
Performance comparison (Recall@20 and NDCG@20) for SL and DSL variants across multiple datasets, demonstrating the consistent superiority of the full DSL model.

4. Theoretical Insights and Conclusion

Theoretical analysis through the lens of Distributionally Robust Optimization (DRO) shows that DSL's adaptive scaling is equivalent to concentrating robustness on the most ambiguous instances. This mechanism particularly benefits "tail" items—rare items with sparse interaction data—which are often overlooked by standard models.

While DSL significantly improves accuracy and robustness, it may exhibit increased sensitivity to "false negatives" due to its focus on hard competitors. Future work will explore uncertainty-aware weighting to mitigate this effect. In summary, DSL provides a principled and effective method for improving Softmax-based recommendation systems by making them aware of the underlying competition intensity.

Summary updated

BibTeX
@misc{sahyouni2026dsl,
  author = {Bucher Sahyouni and Matthew J. Vowels and Liqun Chen and Simon Hadfield},
  title = {{DSL: Understanding and Improving Softmax Recommender Systems with Competition-Aware Scaling}},
  year = {2026},
  eprint = {2602.07206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.07206},
}
Figure