ITDR: An Instruction Tuning Dataset for Enhancing Large Language Models in Recommendations

Zekun Liu, Xiaowen Huang, Jitao Sang

Abstract

Large language models (LLMs) have demonstrated outstanding performance in natural language processing tasks. However, in the field of recommender systems, due to the inherent structural discrepancy between user behavior data and natural language, LLMs struggle to effectively model the associations between user preferences and items. Although prompt-based methods can generate recommendation results, their inadequate understanding of recommendation tasks leads to constrained performance. To address this gap, we construct a comprehensive instruction tuning dataset, ITDR, which encompasses seven subtasks across two root tasks: user-item interaction and user-item understanding. The dataset integrates data from 13 public recommendation datasets and is built using manually crafted standardized templates, comprising approximately 200,000 instances. Experimental results demonstrate that ITDR significantly enhances the performance of mainstream open-source LLMs such as GLM-4, Qwen2.5, Qwen2.5-Instruct and LLaMA-3.2 on recommendation tasks. Furthermore, we analyze the correlations between tasks and explore the impact of task descriptions and data scale on instruction tuning effectiveness. Finally, we perform comparative experiments against closed-source LLMs with massive parameters.

Introduction: The Structural Discrepancy

Traditional recommender systems (RecSys) rely heavily on "ID-based" data, utilizing massive matrices of User IDs, Item IDs, and numerical ratings. In contrast, Large Language Models (LLMs) are optimized for natural language. This creates a significant structural discrepancy: LLMs do not inherently grasp the latent behavioral patterns hidden in interaction logs. While zero-shot or few-shot prompting can bridge this gap partially, these models often struggle with complex sequential logic or deep user-item associations. The primary bottleneck is the lack of high-quality, diverse instruction tuning datasets that translate classic recommendation benchmarks into the "instruction-input-output" format required for specialized learning.

The ITDR Dataset

To resolve these challenges, we introduce ITDR (Instruction Tuning Dataset for Recommendation). ITDR organizes recommendation logic into a two-tiered taxonomy designed to cover both behavioral and semantic aspects of recommendation:

  1. User-Item Interaction (UII): Focuses on behavioral patterns, including Rating Prediction (RP), Top-K Recommendation (TKR), Cross-Domain Recommendation (CDR), and Next Item Recommendation (NIR).
  2. User-Item Understanding (UIU): Focuses on semantic features, including User Attribute Prediction (UAP), Interest Recognition (IR), and Target User Identification (TUI).
Taxonomy of the ITDR dataset, illustrating the flow from root tasks to subtasks and their corresponding source datasets.

ITDR integrates data from 13 diverse public datasets across domains such as movies (MovieLens, Anime Dataset 2023), e-commerce (Amazon Reviews, Yelp), news (MIND), and music (Last.FM). The final dataset comprises approximately 200,000 high-quality instances. For generative tasks where ground truth was missing, we utilized DeepSeek-V3 to synthesize labels, followed by rigorous human verification.

Experimental Evaluation

We employed LoRA (Low-Rank Adaptation) to fine-tune several open-source backbones: LLaMA-3.2-3B, Qwen2.5-7B, and GLM-4-9B. The results indicate that instruction tuning on ITDR leads to massive performance jumps across all tested models.

Performance comparison of various LLMs before and after instruction tuning with ITDR across UII and UIU tasks.

Key findings from our experiments include:

  • Significant Performance Gains: Fine-tuning led to substantial metric improvements. For instance, on the MicroLens dataset (Top-K task), the Hit Ratio at 1 (H@1) for GLM-4 rose from 0.5520 to 0.6960.
  • Outperforming Closed-Source Giants: The ITDR-tuned open-source models (7B and 9B) consistently outperformed much larger closed-source models like GPT-3.5-Turbo and Gemini 2.5 Flash in UII tasks.
  • The "Understanding" Boost: Training on UIU tasks (semantics) improves performance on UII tasks (behavior), suggesting that learning why a user likes something helps predict what they will interact with next.
  • The Overfitting Risk: Conversely, fine-tuning exclusively on interaction data (UII) can cause a decline in general semantic understanding, as the model becomes overly specialized in rigid recommendation logic.

Conclusion

ITDR demonstrates that specialized instruction tuning can bridge the gap between natural language and recommendation data. By fine-tuning smaller, efficient models (3B–9B) on diverse tasks, we can achieve performance that rivals or exceeds massive closed-source models. Future work will explore expanding the dataset to more domains and testing scaling laws on models exceeding 70B parameters. Our dataset, fine-tuned models, and LoRA modules are available at https://github.com/hellolzk/ITDR.

Summary updated

Abstract

Large language models (LLMs) have demonstrated outstanding performance in natural language processing tasks. However, in the field of recommender systems, due to the inherent structural discrepancy between user behavior data and natural language, LLMs struggle to effectively model the associations between user preferences and items. Although prompt-based methods can generate recommendation results, their inadequate understanding of recommendation tasks leads to constrained performance. To address this gap, we construct a comprehensive instruction tuning dataset, ITDR, which encompasses seven subtasks across two root tasks: user-item interaction and user-item understanding. The dataset integrates data from 13 public recommendation datasets and is built using manually crafted standardized templates, comprising approximately 200,000 instances. Experimental results demonstrate that ITDR significantly enhances the performance of mainstream open-source LLMs such as GLM-4, Qwen2.5, Qwen2.5-Instruct and LLaMA-3.2 on recommendation tasks. Furthermore, we analyze the correlations between tasks and explore the impact of task descriptions and data scale on instruction tuning effectiveness. Finally, we perform comparative experiments against closed-source LLMs with massive parameters. Our tuning dataset ITDR, the fine-tuned large recommendation models, all LoRA modules, and the complete experimental results are available at https://github.com/hellolzk/ITDR.
BibTeX
@inproceedings{liu2026itdr,
  author = {Zekun Liu and Xiaowen Huang and Jitao Sang},
  title = {{ITDR: An Instruction Tuning Dataset for Enhancing Large Language Models in Recommendations}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2026},
  doi = {10.1145/3770854.3785694},
}
Figure