Reasoning-guided Collaborative Filtering with Language Models for Explainable Recommendation

Fahad Anwaar, Adil Khan, Muhammad Khalid, Usman Zia, Kezhi Wang · DOI

Abstract

Large Language Models (LLMs) exhibit potential for explainable recommendation systems but overlook collaborative signals, while prevailing methods treat recommendation and explanation as separate tasks, resulting in a memory footprint. We present RGCF-XRec, a hybrid framework that introduces reasoning-guided collaborative filtering (CF) knowledge into a language model to deliver explainable sequential recommendations in a single step. Theoretical grounding and empirical findings reveal that RGCF-XRec offers three key merits over leading CF-aware LLM-based methods: (1) reasoning-guided augmentation of CF knowledge through contextual prompting to discover latent preferences and interpretable reasoning paths; (2) an efficient scoring mechanism based on four dimensions: coherence, completeness, relevance, and consistency to mitigate noisy CF reasoning traces and retain high-quality explanations; (3) a unified representation learning network that encodes collaborative and semantic signals, enabling a structured prompt to condition the LLM for explainable sequential recommendation. RGCF-XRec demonstrates consistent improvements across Amazon datasets, Sports, Toys, and Beauty, comprising 642,503 user-item interactions. It improves HR@10 by 7.38% in Sports and 4.59% in Toys, along with ROUGE-L by 8.02% and 3.49%, respectively. It reduces the cold warm performance gap, achieving overall gains of 14.5% in cold-start and 11.9% in warm start scenarios, and enhances zero-shot HR@5 by 18.54% in Beauty and 23.16% in Toys, highlighting effective generalization and robustness. Moreover, RGCF-XRec achieves training efficiency with a lightweight LLaMA 3.2-3B backbone, ensuring scalability for real-world applications.

Introduction

Recommendation Systems (RS) have traditionally relied on Collaborative Filtering (CF) to capture user-item interaction patterns. While effective at identifying popular items through the "wisdom of the crowd," CF models are essentially "black boxes" that lack transparency. Conversely, Large Language Models (LLMs) excel at semantic understanding and natural language generation but often ignore the dense behavioral signals captured by CF.

Existing explainable recommendation methods often suffer from three main issues: the "Black Box" problem of CF, the "Cold-Start Gap" where CF fails on new items, and "Efficiency Bloat" caused by treating ranking and explanation as separate computational tasks. RGCF-XRec addresses these by unifying collaborative and semantic signals into a single, efficient framework for explainable sequential recommendation.

Methodology

RGCF-XRec employs a three-layer architecture to bridge the gap between behavioral signals and semantic reasoning.

The three-layer architecture of RGCF-XRec: Representation, Fusion & Projection, and Generation.

Representation Layer

The model extracts behavioral knowledge using a frozen SASRec (sequential CF) model and semantic knowledge via SBERT. This ensures that both the "what" (interaction history) and the "vibe" (item metadata) are captured.

Fusion and Projection Layer

A Unified Projection Network aligns CF and semantic embeddings into a shared latent space. By using alignment, reconstruction, and recommendation losses, the network ensures that collaborative signals and text descriptions for the same item are mapped to proximal representations. This alignment allows the model to effectively "hallucinate" collaborative knowledge for cold-start items based on their semantic similarity to known items.

Reasoning-Guided Generation

To provide high-quality explanations, RGCF-XRec utilizes "reasoning-guided" traces. An offline LLaMA-R² model generates Chain-of-Thought (CoT) reasoning paths, which are then filtered using a scoring mechanism based on coherence, completeness, relevance, and consistency. Filtering for high-quality traces (Score ≥ 0.6) significantly boosts both recommendation accuracy and explanation fluency.

Detailed view of (a) In-Context CoT Reasoning and (b) the Recommendation Generation process.

Finally, a structured prompt—combining the projected user representation, item embeddings, and high-quality CoT traces—is fed into a frozen LLaMA 3.2-3B. This allows the model to predict the next item and generate a personalized explanation in a single decoding pass.

Experimental Results

The framework was evaluated on three Amazon datasets (Sports, Toys, and Beauty) totaling over 642,000 interactions using a "leave-one-out" partitioning strategy.

Performance Gains

RGCF-XRec consistently outperformed state-of-the-art baselines like A-LLMRec and CoLLM:

  • Accuracy: Hit Rate (HR@10) improved by 7.38% in Sports and 4.59% in Toys.
  • Explanation Quality: Achieved the highest ROUGE-L scores across all datasets, with an 8.02% gain in Sports.
  • Cold-Start Robustness: The model reduced the performance gap between warm and cold items by approximately 15%, demonstrating that semantic alignment helps infer behavior for new items.
  • Zero-Shot Generalization: Testing on unseen domains showed HR@5 improvements of 18.54% (Beauty) and 23.16% (Toys).

Efficiency and Scaling

By utilizing a lightweight LLaMA 3.2-3B backbone, RGCF-XRec achieves superior performance with a smaller memory footprint than 7B+ parameter models. This highlights that effective architectural integration of CF signals is more critical than sheer model size for recommendation tasks.

Conclusion

RGCF-XRec successfully integrates dense collaborative filtering signals with the reasoning capabilities of LLMs. By aligning these signals in a unified space and employing reasoning-guided augmentation, it provides accurate and explainable recommendations. Future work will explore multi-turn conversational recommendations and human-centered evaluations to further assess the helpfulness and persuasiveness of generated explanations.

Summary updated

Abstract

Large Language Models (LLMs) exhibit potential for explainable recommendation systems but overlook collaborative signals, while prevailing methods treat recommendation and explanation as separate tasks, resulting in a memory footprint. We present RGCF-XRec, a hybrid framework that introduces reasoning-guided collaborative filtering (CF) knowledge into a language model to deliver explainable sequential recommendations in a single step. Theoretical grounding and empirical findings reveal that RGCF-XRec offers three key merits over leading CF-aware LLM-based methods: (1) reasoning-guided augmentation of CF knowledge through contextual prompting to discover latent preferences and interpretable reasoning paths; (2) an efficient scoring mechanism based on four dimensions: coherence, completeness, relevance, and consistency to mitigate noisy CF reasoning traces and retain high-quality explanations; (3) a unified representation learning network that encodes collaborative and semantic signals, enabling a structured prompt to condition the LLM for explainable sequential recommendation. RGCF-XRec demonstrates consistent improvements across Amazon datasets, Sports, Toys, and Beauty, comprising 642,503 user-item interactions. It improves HR@10 by 7.38\% in Sports and 4.59\% in Toys, along with ROUGE-L by 8.02\% and 3.49\%, respectively. It reduces the cold warm performance gap, achieving overall gains of 14.5\% in cold-start and 11.9\% in warm start scenarios, and enhances zero-shot HR@5 by 18.54\% in Beauty and 23.16\% in Toys, highlighting effective generalization and robustness. Moreover, RGCF-XRec achieves training efficiency with a lightweight LLaMA 3.2-3B backbone, ensuring scalability for real-world applications.
BibTeX
@misc{anwaar2026reasoning,
  author = {Fahad Anwaar and Adil Khan and Muhammad Khalid and Usman Zia and Kezhi Wang},
  title = {{Reasoning-guided Collaborative Filtering with Language Models for Explainable Recommendation}},
  year = {2026},
  eprint = {2602.05544},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.05544},
}
Figure