NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LLM-assisted Explicit and Implicit Multi-interest Learning Framework for Sequential Recommendation

Shutong Qiao, Chen Gao, Yong Li, Hongzhi Yin · DOI

Abstract

Sequential Recommendation (SR) systems often struggle with noisy implicit feedback and the prohibitive computational costs of integrating Large Language Models (LLMs) into real-time production environments. We present the Explicit and Implicit Multi-interest Learning Framework (EIMF), a bi-level approach that leverages LLMs as semantic "teachers" during the training phase. By employing a clustering-based strategy to minimize API overhead and a joint learning objective for modality alignment, EIMF distills high-level semantic reasoning into traditional behavioral models. Experimental results across multiple datasets demonstrate significant accuracy gains, including a 15.15% improvement in Recall@50 on the Amazon Grocery dataset, while maintaining the sub-millisecond latency required for industrial serving.

Introduction

Modern sequential recommendation aims to predict a user's next interaction by analyzing their historical behavior. While multi-interest models have improved performance by recognizing that users often pursue multiple distinct goals simultaneously, they face two primary challenges. First, implicit feedback (clicks) is inherently noisy; users often interact with items accidentally or out of fleeting curiosity. Second, while LLMs excel at understanding the semantic intent behind these sequences, their inference latency makes them impractical for real-time recommendation at scale.

EIMF addresses these hurdles by using LLMs to "denoise" behavioral signals during training, transferring semantic knowledge into a lightweight behavioral model that can be deployed independently.

The EIMF Framework

The EIMF architecture is divided into two primary modules that operate in parallel during the training phase:

  1. Implicit Behavioral Interest Module (IBIM): This module functions as a traditional SR model (e.g., MIND or REMI), processing item IDs to capture latent behavioral patterns.
  2. Explicit Semantic Interest Module (ESIM): This module utilizes an LLM to reason about the text descriptions of items in a user's history.
The EIMF architecture showing the separation between training (with LLM) and serving (ID-based only).

Efficiency via Clustering

To overcome the high cost of LLM APIs, EIMF does not prompt the LLM for every user. Instead, it employs Affinity Propagation (AP) clustering to group users with similar interaction histories. The LLM is only queried for "typical samples" (cluster centers), and the resulting semantic insights are propagated to other users within the same cluster. This reduces LLM inference complexity from $O(|U|)$ to $O(G)$, where $G$ is the number of clusters.

Prompt Engineering and Reasoning

The ESIM module uses structured prompts to guide the LLM in inferring specific interest categories from a sequence of item names. The LLM is instructed to output these interests in a parseable JSON format, which is then used to generate explicit semantic interest representations ($H_{ex}$).

An example of the prompt used to extract semantic interests from a user's historical click sequence.

Joint Learning and Knowledge Transfer

The core innovation of EIMF lies in its training objective. The framework performs Joint Learning using two auxiliary tasks:

  • Modality Alignment: This task ensures that the ID-based embeddings from the IBIM and the text-based embeddings from the ESIM are mapped into a shared mathematical space.
  • Semantic Prediction: The model is trained to predict the semantic interests inferred by the LLM using only the behavioral data.

By the end of training, the behavioral model has been "taught" to recognize the semantic intent behind ID sequences. Consequently, during Serving, the LLM and the ESIM module are discarded. The system relies solely on the optimized behavioral model and an Item ID Index, ensuring high-speed performance.

Experimental Evaluation

EIMF was evaluated on four real-world datasets: Amazon Beauty, Grocery, Office, and MovieLens-1M.

Key Results

  • Performance Gains: EIMF consistently outperformed state-of-the-art baselines like SASRec, MIND, and REMI. On the Grocery dataset, it achieved a 15.15% improvement in Recall@50 and a 10.49% boost in HR@50.
  • Model-Agnosticism: The framework successfully enhanced various backbone architectures, proving its versatility as a "plug-in" for existing recommendation systems.
  • Denoising Capability: Ablation studies confirmed that the semantic alignment helps the model ignore "noisy" clicks that do not align with the user's broader semantic interest profile.

Conclusion and Future Work

EIMF demonstrates a viable path for integrating the reasoning power of LLMs into production-scale recommendation systems without sacrificing latency. By treating the LLM as a teacher rather than a real-time predictor, the framework achieves a superior balance of accuracy and efficiency. Future research will explore the use of Retrieval-Augmented Generation (RAG) to further refine interest extraction and the incorporation of more complex user signals like "add-to-cart" actions.

Summary updated

BibTeX
@misc{qiao2024llm,
  author = {Shutong Qiao and Chen Gao and Yong Li and Hongzhi Yin},
  title = {{LLM-assisted Explicit and Implicit Multi-interest Learning Framework for Sequential Recommendation}},
  year = {2024},
  eprint = {2411.09410},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.09410},
}
Figure