LLM4MSR: An LLM-Enhanced Paradigm for Multi-Scenario Recommendation

Yuhao Wang, Yichao Wang, Zichuan Fu, Xiangyang Li, Wanyu Wang, Yuyang Ye, Xiangyu Zhao, Huifeng Guo, Ruiming Tang

Introduction

In the modern digital landscape, applications often provide diverse services within a single platform—such as a video app offering both a curated "Search" tab and a personalized "Recommended for You" feed. Multi-Scenario Recommendation (MSR) aims to leverage data across these distinct scenarios to improve overall recommendation performance. However, traditional MSR approaches face two significant challenges. First, they often rely on surface-level identifiers (e.g., scenario IDs), failing to capture the rich semantic relationships between different contexts. Second, while Large Language Models (LLMs) offer superior semantic reasoning capabilities, their high computational cost and inference latency make them difficult to deploy in real-time industrial systems, which typically require sub-100ms response times.

To bridge this gap, we present LLM4MSR, a novel framework that utilizes frozen LLMs to extract deep semantic insights and injects them into traditional recommendation models via dynamic meta-layers. This approach achieves state-of-the-art accuracy while maintaining the low latency necessary for production environments.

The LLM4MSR Framework

LLM4MSR operates as a two-step paradigm that decouples expensive semantic reasoning from high-speed execution.

1. Multi-Scenario Knowledge Reasoning

Rather than fine-tuning an LLM, LLM4MSR employs a frozen LLM (specifically ChatGLM2-6B) as a specialized reasoner. The framework utilizes two distinct prompt types to extract knowledge:

  • Scenario-level Prompts: These include textual descriptions and statistical data (e.g., user/item counts) to help the LLM understand the unique characteristics and cross-domain relationships of different scenarios.
  • User-level Prompts: These summarize a user's historical interactions across multiple scenarios, allowing the LLM to infer latent cross-domain interests and behavioral patterns.

The LLM generates high-dimensional hidden states (vectors) that encapsulate these semantic insights. Crucially, these vectors are pre-computed and stored, allowing the system to bypass real-time LLM inference during the recommendation phase.

2. Multi-Level Knowledge Fusion

To integrate LLM-derived knowledge into a standard recommendation backbone (such as STAR, MMoE, or PLE), LLM4MSR introduces Hierarchical Meta Networks. These networks use the LLM's hidden states to dynamically generate weights for specific "meta-layers" within the recommendation model:

  • Bottom Structure: User-level meta-layers are integrated at the embedding level to modulate the foundation of the model based on personalized semantic profiles.
  • Parallel Structure: Scenario-level meta-layers operate in parallel with the main model towers, providing context-specific guidance for the final prediction.

Experimental Evaluation

Datasets

The framework was rigorously evaluated on three real-world datasets:

  • KuaiSAR & KuaiSAR-small: Derived from the Kuaishou short-video platform, featuring overlapping users across search and recommendation scenarios.
  • Amazon: E-commerce data covering three correlated categories: "All Beauty," "Clothing, Shoes and Jewelry," and "Luxury Beauty."

Key Results

  • Performance Gains: LLM4MSR consistently outperformed state-of-the-art baselines. Notably, on the Amazon dataset, it demonstrated significant improvements in Area Under the Curve (AUC), particularly in sparse scenarios where data is limited.
  • Model Agnostic: The framework successfully enhanced various backbone architectures, including STAR, MMoE, and PLE, confirming its utility as a flexible "plug-and-play" enhancement.
  • Industrial Feasibility: Inference latency was measured at approximately 0.05s, well within the standard 0.1s industrial threshold. This efficiency is achieved by performing the heavy LLM reasoning offline or via caching.

Discussion and Insights

Reasoning vs. Encoding

A key distinction of LLM4MSR is its focus on reasoning rather than simple encoding. While previous methods used models like BERT to convert text into fixed embeddings, LLM4MSR uses the LLM to infer new knowledge—such as predicting that a user interested in "Education" in a search context might be receptive to "Talent" videos in a recommendation feed.

Architectural Optimization

Empirical results suggest a "Bottom + Parallel" configuration is optimal. User-level knowledge is most effective at the embedding level (the bottom), while scenario-specific knowledge provides the best guidance when applied in parallel to the prediction towers.

Interpretability

Because the LLM can generate natural language explanations alongside hidden states, LLM4MSR offers improved interpretability. The system can articulate why it identifies specific cross-scenario interests, providing a window into the typically opaque recommendation process.

Limitations and Future Work

Despite its success, LLM4MSR has areas for further refinement. The user-level prompts are currently constrained by the LLM’s context window (e.g., 8K tokens for ChatGLM2), necessitating the truncation of long user histories. Additionally, the current user profiles are static snapshots; future iterations could explore dynamic updates to these LLM-derived profiles to reflect real-time shifts in user interests. Finally, the system remains sensitive to prompt design, a common challenge in LLM-based architectures.

Conclusion

LLM4MSR represents a significant step forward in multi-scenario recommendation by successfully bridging the gap between deep semantic reasoning and real-time industrial requirements. By transforming LLM insights into dynamic meta-networks, it provides a scalable, interpretable, and high-performance solution for modern recommendation challenges.

Summary updated

BibTeX
@inproceedings{wang2024llm,
  author = {Yuhao Wang and Yichao Wang and Zichuan Fu and Xiangyang Li and Wanyu Wang and Yuyang Ye and Xiangyu Zhao and Huifeng Guo and Ruiming Tang},
  title = {{LLM4MSR: An LLM-Enhanced Paradigm for Multi-Scenario Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679743},
}
Figure