TL;DR
Traditional recommender systems operate in an insulated "closed world," missing out on broader contextual and factual knowledge. This paper introduces KAR (Knowledge Augmented Recommendation), a framework that leverages Large Language Models (LLMs) to generate open-world reasoning about user preferences and item facts, transforming them into dense vectors compatible with any standard recommendation model. By preprocessing and prestoring this knowledge, KAR completely bypasses LLM inference latency, delivering significant performance boosts in both offline benchmarks and real-world industrial deployments.
What Problem Does This Paper Address?
Classical recommender systems (RS) are typically closed loops: they train and predict solely based on domain-specific interaction data (like clicks or ratings). Consequently, they lack a deeper understanding of why a user behaves a certain way or what external real-world attributes an item possesses.
While LLMs contain vast open-world knowledge, directly using them as recommenders introduces three major roadblocks:
- Poor Predictive Accuracy: LLMs lack domain-specific collaborative signals and struggle to match the raw ranking accuracy of traditional RS models.
- Extreme Latency: Industrial recommendation requires responses within milliseconds; querying a multi-billion parameter LLM on the fly is computationally impossible.
- The Compositional Gap: LLMs struggle to directly output accurate recommendations in a single step, even though they can successfully solve the underlying sub-problems (e.g., analyzing a user's favorite genres).
Methods
The KAR framework bridges the gap between LLMs and classical recommenders using a three-stage pipeline:
- Knowledge Reasoning and Generation: Instead of asking the LLM to recommend items directly, KAR uses factorization prompting. It breaks down the recommendation task into scenario-specific factors (e.g., genre, director, and theme for movies). The LLM acts as a preference reasoner (interpreting user history) and a knowledge provider (fleshing out item descriptions).
- Knowledge Adaptation: The textual outputs from the LLM are encoded into dense vectors using a language model (like ChatGLM or BERT). To map these from abstract semantic space into recommendation space, KAR introduces a hybrid-expert adaptor (inspired by Mixture-of-Experts). This network uses shared and dedicated MLP experts to compress the dimensions and filter out LLM hallucinations or noise.
- Knowledge Utilization: The resulting reasoning-augmented and fact-augmented vectors are fed directly into standard backbone RS models as additional feature fields.
To solve the latency problem, KAR pre-computes and stores these LLM representations in a database offline. During live inference, the system simply fetches the vectors, keeping the computational complexity identical to a traditional lightweight RS model.
Datasets
The authors evaluated KAR offline using two standard recommendation benchmarks:
- MovieLens-1M: 1 million movie ratings from 6,000 users across 4,000 movies.
- Amazon-Book: A subset of the Amazon Review Dataset containing roughly 1.4 million interactions across 11,906 users and 17,332 books.
Key Insights and Ideas
- Divide and Conquer the LLM: Directly prompting an LLM for a recommendation underperforms. However, "factorizing" the prompt into explicit real-world dimensions allows the LLM to successfully recall relevant knowledge.
- Reasoning Trumps Facts: Ablation studies revealed that reasoning knowledge about user preferences contributes more to performance gains than factual knowledge about items.
- Synergy ($1 + 1 > 2$): Combining user reasoning and item facts yields a synergistic effect. Aligning what the LLM infers about a user with what it knows about an item helps the backbone model make much more precise connections.
Key Results
Offline Performance
KAR was tested across 9 representative Click-Through Rate (CTR) models (including DIN, DeepFM, and DCNv2) and multiple reranking models.
- CTR Prediction: Upgrading backbone models with KAR consistently yielded a 1% to 1.5% absolute increase in AUC and a significant drop in LogLoss.
- Reranking: KAR boosted state-of-the-art reranking algorithms, showing up to a 7.95% improvement in NDCG@3 on the Amazon-Book dataset.
- Baseline Comparison: KAR outperformed other language-model-based recommendation baselines, such as P5, UniSRec, and TALLRec.
Online Deployment
KAR was successfully deployed to Huawei's commercial news and music recommendation platforms:
- News Platform: Achieved a 7% increase in Recall during online A/B testing.
- Music Platform: Led to a 1.7% increase in song play count and a 1.57% increase in total duration.
Inference Speed
While a direct LLM API call took over 4 seconds per sample, KAR's prestorage strategy reduced online inference latency to 6–11 milliseconds—matching the base models and easily clearing the 100ms industrial threshold.
Limitations and Future Work
- Dynamic Updates: While long-term user preferences are relatively stable, short-term interests shift rapidly. KAR currently relies on the backbone model to capture short-term dynamics; updating the LLM knowledge base efficiently in real-time remains an open challenge.
- Cold Start Constraints: For entirely new users or items, KAR defaults to a standard vector until offline LLM generation can be executed.
- Prompt Engineering Overhead: Defining the scenario-specific factors still requires initial interactive collaboration between human experts and the LLM.
Summary updated