Abstract
Researchers from NAVER propose LMRec, a framework that jointly trains a language model alongside a recommendation objective using user behavior histories formatted as plain text. By leveraging both task-specific and task-agnostic data, LMRec creates robust user representations that generalize across domains. Empirical results demonstrate significant performance boosts, with LMRec-TL achieving superior transferability and a 1.76x increase in Click-Through Rate (CTR) in real-world A/B tests.
Introduction
Building recommender systems that generalize across different domains—such as moving from movie suggestions to e-commerce—is a persistent challenge. Traditional models rely on specific User or Item IDs that do not translate across systems. While recent unified models treat user history as text sequences, they often struggle with overfitting to specific datasets and data sparsity in niche tasks.
This paper addresses these issues by asking: Can the next-token prediction objective used in Large Language Models (LLMs) improve recommendation? The authors demonstrate that leveraging "task-agnostic" data—user behaviors from unrelated services like search logs or news clicks—helps a model understand universal user intent, significantly improving performance in specific target tasks.
The LMRec Framework
LMRec (Language Model and Recommendation) treats user behavior as a text-generation problem. Every user action is converted into text (e.g., a search query or product title) and concatenated into a sequence ending with an [EOS] (End of Sentence) token.
The model utilizes a Transformer architecture and is trained with a joint loss function: $L = L_{LanguageModel} + \lambda L_{Recommendation}$. To represent a user, the model extracts the hidden vector from the final [EOS] token. This vector is then passed to a simple linear layer to predict item interactions. The LMRec+agnostic variant enriches these representations by incorporating massive amounts of data from unrelated services during training.
Experimental Setup
The study utilizes a combination of industrial and academic datasets:
- In-house (NAVER): Three target tasks (Online Booking, Travel Agency, E-commerce) and a pretraining corpus of 10 million users (12 billion tokens) from Search, SNS, and News.
- Public Benchmarks: Amazon review datasets (Scientific, Pantry) and the Online Retail dataset from Kaggle, using other Amazon categories as task-agnostic data.
Performance Evaluation
LMRec consistently outperformed strong baselines such as BST and LightGCN, improving Recall@10 by over 15% in several cases. A key strength of the framework is its transferability. In Transfer Learning (LMRec-TL) experiments, where the Transformer is frozen and only a tiny linear probe is trained for new tasks, the model significantly outperformed existing unified models like UniSRec.
Furthermore, LMRec-TL is 157x faster to adapt to new tasks than training a standard Transformer from scratch. Real-world impact was confirmed via an online A/B test on a major e-commerce platform, which showed a 1.76x increase in CTR for new users using LMRec’s representations.
Theoretical and Empirical Insights
- Regularization via Language Modeling: Analysis of Hessian eigenspectra revealed that the language modeling objective smooths the loss landscape, preventing the model from falling into sharp minima that hinder generalization.
- The "Cold-Start" Advantage: Task-agnostic features are particularly effective for users with no history in a specific service but who have active histories elsewhere in the ecosystem.
- Scaling Laws: Increasing model size from 1.7M to 210M parameters led to consistent gains in recommendation accuracy, mirroring the scaling properties of LLMs.
Conclusion
LMRec demonstrates that joint language modeling and recommendation objectives create highly transferable user representations. While the model currently relies on item titles and faces sequence length limits (2,048 tokens), it provides a powerful blueprint for universal recommendation. Future work will explore incorporating richer metadata and optimizing the mixing ratios of diverse data sources.
Summary updated