Advancing Loss Functions in Recommender Systems: A Comparative Study with a Rényi Divergence-Based Solution
Preprint
Abstract
Loss functions play a pivotal role in optimizing recommendation models. Among various loss functions, Softmax Loss (SL) and Cosine Contrastive Loss (CCL) are particularly effective. Their theoretical connections and differences warrant in-depth exploration. This work conducts comprehensive analyses of these losses, yielding significant insights: 1) Common strengths -- both can be viewed as augmentations of traditional losses with Distributional Robust Optimization (DRO), enhancing robustness to distributional shifts; 2) Respective limitations -- stemming from their use of different distribution distance metrics in DRO optimization, SL exhibits high sensitivity to false negative instances, whereas CCL suffers from low data utilization. To address these limitations, this work proposes a new loss function, DrRL, which generalizes SL and CCL by leveraging Rényi-divergence in DRO optimization. DrRL incorporates the advantageous structures of both SL and CCL, and can be demonstrated to effectively mitigate their limitations. Extensive experiments have been conducted to validate the superiority of DrRL on both recommendation accuracy and robustness.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- LLM4DSR: Leveraging Large Language Model for Denoising Sequential RecommendationACM Transactions on Information Systems, 2025
- On the Effectiveness of Sampled Softmax Loss for Item RecommendationACM Transactions on Information Systems, 2024
- CIRS: Bursting Filter Bubbles by Counterfactual Interactive Recommender SystemACM Transactions on Information Systems, 2023
- XSimGCL: Towards Extremely Simple Graph Contrastive Learning for RecommendationIEEE Transactions on Knowledge and Data Engineering, 2023
- Bias and Debias in Recommender System: A Survey and Future DirectionsACM Transactions on Information Systems, 2023
- Graph Neural Networks in Recommender Systems: A SurveyACM Computing Surveys, 2022
- Incorporating Bias-Aware Margins into Contrastive Loss for Collaborative Filtering2022
- Does Every Data Instance Matter? Enhancing Sequential Recommendation by Eliminating Unreliable Data2021
- Learning models with uniform performance via distributionally robust optimizationThe Annals of Statistics, 2021
- Matrix Factorization Techniques for Recommender SystemsComputer, 2009