Abstract
Traditional recommender systems rely heavily on Collaborative Filtering (CF) and Graph Neural Networks (GNNs), which often suffer from semantic blindness and sensitivity to interaction noise. While Large Language Models (LLMs) offer deep semantic understanding, their direct application in recommendation is hindered by scalability issues, hallucinations, and token limits. This paper introduces RLMRec, a model-agnostic framework that bridges this gap. RLMRec utilizes LLMs to generate reasoning-driven user and item profiles, which are then aligned with collaborative embeddings through mutual information maximization. Experimental results across multiple datasets demonstrate that RLMRec achieves state-of-the-art performance and enhanced robustness without incurring additional inference latency.
Introduction
Modern recommender systems primarily utilize Collaborative Filtering (CF) to map user-item interactions. While effective, these models often ignore the rich textual context—such as reviews and descriptions—that explains user preferences. Furthermore, they are susceptible to noise from accidental interactions.
Directly employing LLMs for recommendation tasks faces "The Three Walls":
- Scalability: High latency makes real-time ranking impractical.
- Hallucination: LLMs may recommend non-existent items.
- Token Limits: Models cannot process a user's entire global interaction history within a single prompt.
RLMRec addresses these challenges by using LLMs as "semantic coaches" during the representation learning phase, rather than as direct inference engines.
Methodology
The RLMRec framework consists of three main stages: profile generation, cross-view alignment, and mutual information maximization.
User/Item Profiling via Reasoning
Instead of processing raw text, RLMRec uses LLMs to generate structured profiles. A reasoning-driven prompting strategy is employed, requiring the LLM to explain why a user might prefer an item. This process effectively denoises the input data by focusing on underlying preferences rather than surface-level interactions.
Cross-View Alignment
The framework treats recommendation as a dual-view problem:
- Collaborative View: Derived from the interaction graph (e.g., using LightGCN).
- Semantic View: Derived from the LLM-generated profiles.
Mutual Information Maximization (MIM)
To synchronize these views, RLMRec employs two distinct strategies:
- RLMRec-Con (Contrastive): This approach aligns embeddings by pulling representations of the same user/item from both views closer together while pushing different ones apart.
- RLMRec-Gen (Generative): This uses a masked autoencoder approach, where the model attempts to reconstruct the semantic profile using only collaborative ID-based data. This generative task acts as a strong regularizer during pre-training.
Key Insights
LLMs as Summarizers, Not Rankers
A critical finding of this research is that LLMs are more effective at summarizing preferences than at direct ranking. As shown in the performance comparison below, asking ChatGPT to re-rank items can actually lead to a decrease in performance compared to standard baselines like LightGCN.
Alignment as a Denoising Filter
By forcing collaborative embeddings to align with semantic profiles, the model learns to filter out "accidental" interactions. Interactions that do not align with a user's established semantic profile are treated as noise, leading to more robust representations.
Bridging Long-Range Dependencies
Traditional GNNs struggle with users who are distant in the interaction graph. RLMRec uses semantic alignment to identify "kindred spirit" users who share similar interests (e.g., a preference for "friendly service") even if they have no common neighbors in the graph.
Experimental Results
RLMRec was evaluated on three large-scale datasets: Amazon-book, Yelp, and Steam. It consistently improved the performance of six different state-of-the-art backbone models.
- Performance Gains: On the Amazon-book dataset, RLMRec-Con improved LightGCN’s Recall@20 by 5.1% and NDCG@20 by 5.5%.
- Robustness: In tests with 25% injected noise, RLMRec-enhanced models maintained significantly higher accuracy than vanilla versions.
- Efficiency: The framework adds zero overhead during inference. The LLM is only utilized during the training phase to learn better representations.
Conclusion
RLMRec demonstrates a powerful way to integrate the semantic intelligence of LLMs into traditional recommendation architectures. While generating initial profiles for millions of users remains a computational bottleneck, the gains in accuracy and robustness are substantial. Future work will explore dynamic profiling to capture evolving user tastes and methods to provide end-users with the reasoning behind recommendations.
Summary updated