Abstract
Combining semantic information with behavioral data is a crucial research area in recommender systems. A promising approach involves leveraging external knowledge to enrich behavioral-based recommender systems with abundant semantic information. However, this approach faces two primary challenges: denoising raw external knowledge and adapting semantic representations. To address these challenges, we propose an External Knowledge-Enhanced Recommendation method with LLM Assistance (TRAWL). This method utilizes large language models (LLMs) to extract relevant recommendation knowledge from raw external data and employs a contrastive learning strategy for adapter training. Experiments on public datasets and real-world online recommender systems validate the effectiveness of our approach.
Introduction
Modern recommender systems primarily rely on collaborative filtering, which models user and item IDs based on interaction history. While effective, this approach faces two major hurdles: the cold start problem, where new items or users lack sufficient history, and a lack of semantic depth, as IDs fail to capture the underlying reasons for user preferences.
To overcome these, researchers often incorporate external knowledge (e.g., Wikipedia). However, raw external text is often noisy and contains trivia irrelevant to recommendation tasks. Furthermore, a significant representation gap exists between semantic text embeddings and behavioral interaction embeddings. The TRAWL (External Knowledge-Enhanced Recommendation with LLM Assistance) framework is designed to bridge these gaps by using Large Language Models (LLMs) as intelligent denoisers and aligners.
Methodology: The TRAWL Framework
TRAWL operates as a two-stage framework: Recommendation Knowledge Generation and Recommendation Knowledge Adaptation.
1. Recommendation Knowledge Generation
Instead of feeding raw text directly into a model, TRAWL utilizes an LLM (such as Qwen1.5-7B) to extract and denoise knowledge. This process uses Key-Factor Guided Prompting, where experts define specific attributes—such as genres, themes, or directors—that the LLM must focus on. This ensures the output is "recommendation-ready."
Crucially, the LLM performs common-sense inference. For instance, rather than just listing a user's age, the LLM can analyze a viewing history to infer latent preferences, such as a taste for "strong female leads" or "coming-of-age stories," providing a much stronger signal for the recommendation engine.
2. Recommendation Knowledge Adaptation
To resolve the representation gap, TRAWL introduces an Adapter Network utilizing a Mixture-of-Experts (MoE) architecture.
- Encoding: A frozen BERT model first converts the LLM-extracted text into semantic embeddings.
- Contrastive Learning: The adapter is trained using an InfoNCE loss to ensure that users or items with similar behavioral patterns are mapped to similar semantic representations.
- Positive Sampling via SWING: To identify truly similar users for training, the system employs SWING similarity. This metric is more robust than standard Jaccard similarity because it accounts for "super-items" (extremely popular items) that can otherwise skew similarity calculations.
Finally, these adapted semantic embeddings are concatenated with traditional ID embeddings and fed into a backbone recommender model, such as DIN, DIEN, or DeepFM.
Experimental Results
Academic Benchmarks
On the MovieLens-1M dataset, TRAWL was evaluated by linking movies to Wikipedia data. The framework consistently outperformed all baselines across different backbone architectures. Specifically, it achieved an AUC of 0.7812, a significant improvement over models using raw text or basic summarization techniques (like PEGASUS), which were found to actually hurt performance by losing critical recommendation cues.
Real-World Production Impact
The framework was also tested on a massive scale within the WeChat Article Recommendation system, involving 8 million users and 1 million articles. In large-scale A/B testing, TRAWL delivered a 0.31% increase in Average Click Count and a 0.36% increase in Read Seconds. At the scale of millions of daily users, these gains represent a substantial boost in platform engagement.
Conclusion and Future Work
TRAWL demonstrates that LLMs are powerful tools for denoising external knowledge and inferring latent user preferences. By combining this with behavioral-supervised contrastive learning, the framework successfully aligns semantic and behavioral data spaces.
Future research will focus on reducing the inference latency associated with LLM processing and exploring methods to handle dynamic, real-time updates to external knowledge bases, ensuring the system remains responsive to trending topics and new information.
Summary updated