Tracing Large Models in Recommendation Systems
New wine bottles for familiar ideas: how can LLM techniques systematically reshape recommendation systems?
Translated from Chinese with AI · Read the original
Since ChatGPT appeared, Facebook, Alibaba, Kuaishou, and ByteDance have explored combining recommendation systems with the technology behind LLMs, making rule-based architectures easier to scale.
Introduction
Background:
-
Deep Interest Network for Click-Through Rate Prediction
- Proposed by Alibaba in 2017: pool user history into an interest vector and cross it with the candidate item’s vector to activate the interests relevant to that candidate.
-
- Proposed by Alibaba in 2020: as user sequences grow longer, pooling can overcompress information, so introduce a two-stage GSU + ESU strategy.
- GSU: Coarse filtering through hard-search index rules or soft-search vector dot products.
- ESU: Fine-grained feature interactions following the DIN approach.
-
- SIM has a problem: GSU’s hard-search or soft-search filtering is not aligned with ESU’s method, so GSU may discard good items too early.
- Kuaishou’s TWIN, proposed in 2023, preprojects static item features such as ID and author for online cache lookup, while compressing user-interaction features into scalars. This aligns GSU and ESU filtering.
- Compressing interaction features into scalars mainly involves jointly training a weight matrix with the CTR model, then scanning the items to populate a separate cache.
-
- After TWIN, further sequence-length growth requires another compression step:
- Divide the sequence into clusters using rules, represent each by its center, and apply TWIN-style filtering. This is essentially a lossy approximation.
- After TWIN, further sequence-length growth requires another compression step:
1. Recommendation Systems Enter the Large-Model Era
- At the data level, handcrafted features are largely abandoned, leaving time sequences of (item, ts, action), with causal attention and cross-attention against target candidates.
- At the model level, HSTU introduces two main changes from the LLM Transformer (are they well justified?):
- HSTU adds a gate U after attention to further cross the aggregated result. (The original wording is
This design is motivated by the difficulty of approximating dot products with learned MLPs..) - The nonlinearity changes from Softmax to SiLU, preserving the strength of the user’s interest representation, similar to DIN pooling.
- HSTU adds a gate U after attention to further cross the aggregated result. (The original wording is

2. Lightweight Recommendation Upgrades with LLMs
- ByteDance’s early approach to adapting recommendation systems with LLMs can be understood from the item and user sides:
- Item: Describe each item’s attributes with an LLM, then feed the descriptions into an LLM and take its final-layer item embedding as their representation.
- User: Describe the user’s entire behavior history as text and feed it into the LLM as well.
- There are two ways to combine users and items:
- Early Fusion: Concatenate the item after the user representation at the input, then use cross-attention to calculate similarity between each item and historical user behavior.
- Late Fusion: Compress user history into an interest embedding, as on the item side, then use a prediction head to predict its similarity to the item.

3. Combining GR and DLRM
- Alibaba proposed this combination in 2025 as GR and DLRM developed separately. The motivations were:
- GR scales well, but its generation objective, the next item, does not necessarily align with the actual CTR prediction objective.
- The extensive sparse features accumulated in DLRM are difficult for GR to replace.
- Repeatedly processing the long histories required by GR is expensive for training and inference. To accommodate existing systems, it proposes three stages:
- Autoregressively train on user sequences and current search queries to obtain an interest embedding conditioned on the query.
- When a user request arrives, combine the interest representation with the current context, such as the search query, to obtain current interests.
- Feed this information into DLRM for joint prediction and feature interactions.

5. Attempts to Remove IDs from Recommendation
- Video representation:
- Tokenize into Semantic IDs, first obtaining embeddings from multimodal information and contrastive learning.
- Apply RQ-k-means to embeddings to generate three semantic IDs.
- Store the semantic-ID-to-video mapping.
- Pretraining:
- Inputs are semantic IDs and other interaction features.
- Outputs are the target video’s three semantic IDs.
- Reinforcement learning:
- ECPO: Use user feedback as labels to increase positive-sample probabilities and suppress negative-sample probabilities.
- ECPO vs. GRPO: Both compare rewards within groups, but GRPO clips only within-group deviations, leaving the KL-divergence contribution unclipped. Negative samples were found to produce large gradient fluctuations that hurt training.

- V2’s biggest change replaces OneRec’s encoder-decoder architecture with a decoder-only model. This unifies the architecture, enables shared K/V reuse, and improves scalability.
6. Applying LLM Ideas to Retrieval
Alibaba 2025.07: RecGPT Technical Report
-
Alibaba’s three-tower retrieval system, proposed in July 2025, mainly uses LLMs for their representations, then converts to embeddings and dot products for retrieval.
- User interests: Generate an interest description from user attributes and historical behavior with an LLM.
- Product tags: Predict user needs from those interests, corresponding to product tags.
- Three-tower retrieval: User interests x product tags x products.
-
How is the LLM trained? Fine-tune Qwen-14B using data synthesized by DeepSeek-R1 and real online user interactions.
-
Finally, jointly train the three towers through a DNN and token-embedding weights.

7. LLM-Style Latent Transformers for Temporal Events
- Meta again! Its 2026 paper discusses bringing the benefits of user-sequence models into low-latency ad ranking.
The overall approach uses two model stages:
- Async: Take the user’s long history and produce an interest representation, or user embedding.
- Sync: Take recent history, candidates, and context, and predict CTR.
The models are cascaded. The advantage is that long histories can be reused and processed less frequently. The drawback is that the two-stage structure is less fundamental, limiting interactions between recent and historical behavior.
