Abstract
This paper investigates whether Large Language Models (LLMs) can effectively predict user ratings for items such as movies and books, bridging the gap between natural language understanding and personalized recommendation. While "off-the-shelf" zero-shot LLMs struggle to surpass traditional recommendation baselines, fine-tuning makes them highly competitive. Notably, fine-tuned LLMs exhibit remarkable data efficiency, often outperforming specialized models with significantly less training data and demonstrating superior ranking capabilities.
Introduction
Traditional recommendation systems primarily rely on Collaborative Filtering (CF), which identifies patterns in user-item interactions. While effective, CF treats items as opaque IDs and requires massive amounts of data. In contrast, LLMs possess vast "world knowledge" about cultural products. This study systematically tests LLMs ranging from 250M to 540B parameters to determine if they can leverage this knowledge to understand user preferences without requiring millions of interaction data points.
Methodology
The authors evaluated LLMs across three distinct regimes:
- Zero-shot: Prompting the model with a user's history to predict a rating (1-5) for a new item.
- Few-shot: Providing in-context examples of a user's past ratings within the prompt.
- Fine-tuning: Training the Flan-T5 model family specifically on recommendation datasets.
Performance was compared against traditional baselines, including Matrix Factorization (MF) and Multilayer Perceptrons (MLP). A "Transformer-MLP" baseline was also developed to ensure a fair comparison by providing the baseline with the same text features (titles, genres) available to the LLM.
Datasets
Two standard benchmarks were utilized:
- MovieLens-1M: 1 million movie ratings including titles and genres.
- Amazon-Books: Large-scale book reviews and ratings with associated metadata.
Key Results and Scaling Laws
The 100B Parameter Threshold
A critical finding of this research is that zero-shot performance only becomes competitive with simple global average baselines once models exceed the 100B parameter threshold. Smaller models frequently fail to follow rating instructions or lack sufficient world knowledge to make accurate predictions.
Data Efficiency and Fine-tuning
Fine-tuning emerged as the most effective strategy. Fine-tuned LLMs, such as Flan-T5-XXL (11B), achieved an RMSE of 0.8301 on the Amazon-Books dataset, significantly outperforming traditional baselines in ranking AUC. Perhaps most importantly, these models are remarkably data-efficient, reaching peak performance much faster than specialized sequential models.
Discussion and Insights
- Knowledge Types: LLMs excel at "world knowledge" (understanding item content) but initially lack "interaction knowledge" (understanding specific user behavior patterns). Fine-tuning bridges this gap.
- Regression vs. Classification: The study found that treating rating prediction as a regression task (predicting continuous values) yielded superior results compared to a 5-way classification approach.
- Ranking Strength: LLMs are particularly adept at ranking (measured by AUC), suggesting they understand relative user preferences better than they predict absolute numerical ratings.
Limitations and Future Work
Despite their performance, LLM-based recommenders face high inference costs due to their parameter size. They also exhibit prompt sensitivity, where minor wording changes affect output. Future research will explore parameter-efficient methods like prompt tuning and the development of conversational recommendation interfaces where LLMs' natural language strengths can be fully utilized.
Summary updated