Introduction: The "Laziness" Problem in LLM Recommendation
Large Language Models (LLMs) have shown immense potential in personalized recommendation due to their vast world knowledge and reasoning capabilities. However, a significant challenge persists: LLMs often exhibit "laziness," prioritizing their internal pre-trained knowledge over the specific user behavior sequences provided in the prompt. For instance, an LLM might recommend a blockbuster movie simply because it is popular (world knowledge), rather than because it aligns with the user's unique history.
As illustrated in the causal graph above, the prediction $Y_t$ is influenced by both the user's historical behavior ($H$) and the model's internal pre-training knowledge ($E$). When the $E \to Y_t$ path dominates, the model fails to provide truly personalized recommendations, leading to generic and biased outputs. This "insufficient utilization of behavior sequences" is the primary bottleneck for current LLM-based recommenders.
Proposed Method: Counterfactual Fine-Tuning (CFT)
To address this, researchers introduced Counterfactual Fine-Tuning (CFT). The goal of CFT is to force the model to explicitly utilize the behavior sequence by isolating its causal effect on the final prediction.
1. Causal Loss via Counterfactual Reasoning
The core of CFT lies in calculating the difference between a "normal" prediction and a "counterfactual" one. During training, the model processes two inputs:
- Normal Input: Includes the full instruction and the user's historical behavior sequence.
- Counterfactual Input: Includes the instruction but replaces the history with a null value (e.g., "None").
By fitting the ground-truth labels to the difference between these two outputs, the model is trained to attribute its success specifically to the presence of the user history. This "Causal Loss" acts as a powerful regularizer against the model's internal biases, moving beyond simple pattern matching to explicit influence modeling.
2. Token-level Weighting Mechanism
In generative recommendation, items are predicted token-by-token. The authors observed that the influence of user history is most critical at the start of a title (e.g., the first few tokens of "The Matrix"). As the string grows, the LLM's language modeling capabilities make subsequent tokens more deterministic based on the prefix alone. CFT employs a linear decay mechanism to assign higher weights to earlier tokens, ensuring the model focuses its personalization efforts where they are most impactful.
Experimental Evaluation
The CFT method was evaluated on four real-world datasets: Amazon (CDs, Games, Books) and Steam, spanning interactions from 1996 to 2018.
Key Results
- Significant Performance Gains: CFT-enhanced models consistently outperformed state-of-the-art baselines. On Amazon datasets, CFT achieved an average relative improvement of approximately 9.5% to 9.8% in metrics such as NDCG@5 and HR@5 compared to standard fine-tuning.
- Debiasing and Personalization: Qualitative analysis revealed that CFT effectively reduces popularity bias. By penalizing predictions that can be made solely from world knowledge (the counterfactual path), the model is pushed toward "long-tail" items that specifically match the user's unique history, resulting in a more balanced recommendation distribution.
- Model Agnostic: The improvements were consistent across different LLM backbones, including Qwen2-0.5B and Llama3.2-1B, demonstrating the generalizability of the approach.
Conclusion
Counterfactual Fine-Tuning represents a significant step forward in making LLM-based recommenders more personalized and less reliant on generic world knowledge. By explicitly modeling the causal effect of user history and accounting for the token-level dynamics of generative text, CFT achieves superior performance and more balanced recommendation distributions. While the dual-prediction approach increases computational overhead, the gains in personalization and debiasing provide a compelling path forward for next-generation recommendation systems.
Summary updated