Pre-trained LLMs Meet Sequential Recommenders: Efficient User-Centric Knowledge Distillation

Nikita Severin, Danil Kartushov, Vladislav Urzhumov, Vladislav Kulikov, Oksana Konovalova, Alexey Grishanov, Anton Klenitskiy, Artem Fatkulin, Alexey Vasilev, Andrey V. Savchenko, Ilya Makarov

TL;DR

This paper introduces a novel knowledge distillation framework that injects the rich semantic reasoning of pre-trained Large Language Models (LLMs) into traditional sequential recommender systems. By aligning a recommender's internal hidden states with LLM-generated user profiles during training, the system achieves significant accuracy gains with absolutely zero computational overhead at inference time.

What Problem Does This Paper Address?

Sequential Recommender Systems (SRSs)—like SASRec and BERT4Rec—are excellent at modeling the temporal patterns of user behavior (e.g., "users who buy item A often buy item B next"). However, they struggle with data sparsity and fail to capture deeper user semantics, such as why a user prefers certain types of products.

While LLMs possess the open-world knowledge and reasoning capabilities to understand these nuances, deploying them directly for real-time recommendations is impractical. Generating recommendations via LLM inference is far too slow and expensive to meet the millisecond-level latency requirements of large-scale production systems. The authors tackle this bottleneck: How can we exploit the semantic power of LLMs without paying the prohibitive inference cost?

Methods

The authors propose a lightweight, two-stage knowledge distillation approach that requires no architectural changes to the underlying recommender and no fine-tuning of the LLM itself.

Proposed knowledge transfer approach from LLM to a Transformer-based sequential recommendation model.
  1. User Profile Generation: Textual metadata from a user's interaction history (e.g., movie genres, product descriptions) is aggregated and fed into a pre-trained LLM (Gemma-2-9B) using a structured prompt. The LLM synthesizes a comprehensive textual user profile summarizing preferences and behavioral patterns.
  2. Profile Embedding & Projection: This textual profile is converted into a dense vector using a text encoder (multilingual E5-large). The dimensions are then reduced via UMAP to match the hidden state dimensionality of the sequential recommender. These embeddings serve as frozen targets.
  3. Two-Stage Training:
  4. Stage 1 (Distillation): The recommender is trained on a joint objective. It predicts the next item while simultaneously minimizing the Mean Squared Error (MSE) between its internal hidden states and the LLM-derived profile embedding. A dynamic scaling factor ($\beta$) balances these two losses so the distillation signal isn't drowned out.
  5. Stage 2 (Fine-tuning): The auxiliary distillation loss is removed, and the model is fine-tuned exclusively on the standard next-item prediction task.

Datasets

The method was evaluated on four diverse, publicly available datasets spanning different domains, scales, and densities:

  • Beauty: Amazon product reviews for beauty items.
  • ML-20M: The classic MovieLens 20M movie recommendation dataset.
  • Kion: A movie streaming dataset.
  • Amazon M2: A massive, multilingual multi-locale e-commerce shopping session dataset.

All datasets underwent standard $k$-core filtering ($k=5$) to ensure data quality.

Key Insights and Ideas

  • Implicit Reconstruction: The core intuition is that an effective sequential recommender must implicitly reconstruct a user's profile within its hidden layers to make good predictions. By explicitly aligning these hidden layers with LLM profiles, the model learns superior internal representations.
  • Knowledge Retention: Surprisingly, the model retains its semantic understanding even after the LLM distillation loss is completely turned off in Stage 2. The early alignment phase permanently guides the model parameters into a better geometric space.
  • Dynamic Loss Scaling: Because the distillation loss is often orders of magnitude smaller than the recommendation loss, a static weight fails. Introducing a stop-gradient-based dynamic scaling factor ($\beta$) automatically balances the losses per batch without manual tuning.

Key Results

The proposed distillation method consistently improved performance across both SASRec and BERT4Rec architectures.

LLM distillation performance across different datasets.
  • Accuracy Uplift: The most dramatic improvement was seen on the Beauty dataset with BERT4Rec, where the distilled model achieved a +19.61% uplift in NDCG@10 and a +23.53% uplift in Recall@10. SASRec also saw steady improvements across all datasets (ranging from ~1% to 5.6%).
  • Inference Efficiency: Because the LLM is only used offline to generate profiles during training, the inference latency at serving time is identical to the vanilla sequential models. It completely bypasses the 50–180× slowdown suffered by generative LLM-based recommenders like IDGenRec.
  • Training Efficiency: The training overhead is minimal, adding only 5–25% more time per epoch compared to vanilla SASRec, whereas full LLM fine-tuning baselines take 1.5–2.3× longer.

Limitations and Future Work

While highly efficient, the paper notes a few areas for improvement:

  • Static Profiles: The user profiles are generated once and frozen; they do not dynamically evolve within the LLM space as new real-time interactions stream in.
  • Negative Feedback: The current prompting strategy primarily focuses on what users interacted with (positive feedback) rather than explicitly modeling what they disliked or skipped (negative feedback).

The authors suggest that future work will explore broader architectures and more advanced profile generation techniques that incorporate these negative signals.

Summary updated

BibTeX
@inproceedings{severin2026pre,
  author = {Nikita Severin and Danil Kartushov and Vladislav Urzhumov and Vladislav Kulikov and Oksana Konovalova and Alexey Grishanov and Anton Klenitskiy and Artem Fatkulin and Alexey Vasilev and Andrey V. Savchenko and Ilya Makarov},
  title = {{Pre-trained LLMs Meet Sequential Recommenders: Efficient User-Centric Knowledge Distillation}},
  booktitle = {ECIR},
  year = {2026},
  doi = {10.1007/978-3-032-21300-6\_42},
}
Figure