Pivotal Role of Language Modeling in Recommender Systems: Enriching Task-specific and Task-agnostic Representation Learning

Kyuyong Shin, Hanock Kwak, Wonjae Kim, Jisu Jeong, Seungjae Jung, Kyungmin Kim, Jung-Woo Ha, Sang-Woo Lee

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.

Overview of the LMRec and LMRec+agnostic training frameworks, illustrating the joint training of recommendation and language modeling objectives.

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.

Relative Recall@10 performance across target domains (OBS, OTA, ECOMM) showing the benefits of incorporating task-agnostic pretraining data.

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

BibTeX
@inproceedings{shin2023pivotal,
  author = {Kyuyong Shin and Hanock Kwak and Wonjae Kim and Jisu Jeong and Seungjae Jung and Kyungmin Kim and Jung-Woo Ha and Sang-Woo Lee},
  title = {{Pivotal Role of Language Modeling in Recommender Systems: Enriching Task-specific and Task-agnostic Representation Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.64},
}
Figure