MSL: Not All Tokens Are What You Need for Tuning LLM as a Recommender
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs), known for their comprehension capabilities and extensive knowledge, have been increasingly applied to recommendation systems (RS). Given the fundamental gap between the mechanism of LLMs and the requirement of RS, researchers have focused on fine-tuning LLMs with recommendation-specific data to enhance their performance. Language Modeling Loss (LML), originally designed for language generation tasks, is commonly adopted. However, we identify two critical limitations of LML: 1) it exhibits significant divergence from the recommendation objective; 2) it erroneously treats all fictitious item descriptions as negative samples, introducing misleading training signals. To address these limitations, we propose a novel Masked Softmax Loss (MSL) tailored for fine-tuning LLMs on recommendation. MSL improves LML by identifying and masking invalid tokens that could lead to fictitious item descriptions during loss computation. This strategy can effectively avoid the interference from erroneous negative signals and ensure well alignment with the recommendation objective supported by theoretical guarantees. During implementation, we identify a potential challenge related to gradient vanishing of MSL. To overcome this, we further introduce the temperature coefficient and propose an Adaptive Temperature Strategy (ATS) that adaptively adjusts the temperature without requiring extensive hyperparameter tuning. Extensive experiments conducted on four public datasets further validate the effectiveness of MSL, achieving an average improvement of 42.24% in NDCG@10. The code is available at https://github.com/WANGBohaO-jpg/MSL.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Apr 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 7.
10 papers.
- 2025IGD: Token Decisiveness Modeling via Information Gain in LLMs for Personalized Recommendationcited by 5
- 2025Field Matters: A Lightweight LLM-enhanced Method for CTR Predictioncited by 4
- 2025Adaptive Location Hierarchy Learning for Long-Tailed Mobility Predictioncited by 3
- 2026Know You Before You Speak: User-State Modeling for LLM Personalization in Multi-Turn Conversationcited by 3
- 2026Talos: Optimizing Top-K Accuracy in Recommender Systemscited by 1
- 2026BEAR: Towards Beam-Search-Aware Optimization for Recommendation with Large Language Modelscited by 1
- 2026CODEBLOCK: Learning to Supervise Code at the Right Granularitycited by 1
- 2026Trie-Aware Transformers for Generative Recommendationcited by 0
- 2026The Pitfall of Scaling Up: Uncovering and Mitigating Popularity Bias Amplification in Scaling Transformer-based Recommenderscited by 0
- 2026LBR: Towards Mitigating Length Bias in Large Language Models for Recommendationcited by 0
- 2026LBR: Towards Mitigating Length Bias in Large Language Models for Recommendation5 Jul 2026
- 2026The Pitfall of Scaling Up: Uncovering and Mitigating Popularity Bias Amplification in Scaling Transformer-based Recommenders20 Jun 2026
- 2026CODEBLOCK: Learning to Supervise Code at the Right Granularity10 Jun 2026
- 2026Know You Before You Speak: User-State Modeling for LLM Personalization in Multi-Turn Conversation23 May 2026
- 2026Trie-Aware Transformers for Generative Recommendation25 Feb 2026
- 2026BEAR: Towards Beam-Search-Aware Optimization for Recommendation with Large Language Models30 Jan 2026
- 2026Talos: Optimizing Top-K Accuracy in Recommender Systems27 Jan 2026
- 2025IGD: Token Decisiveness Modeling via Information Gain in LLMs for Personalized Recommendation16 Jun 2025
- 2025Adaptive Location Hierarchy Learning for Long-Tailed Mobility Prediction26 May 2025
- 2025Field Matters: A Lightweight LLM-enhanced Method for CTR Prediction20 May 2025