Break the ID-Language Barrier: An Adaption Framework for Sequential Recommendation

Li Zhang, Xiaohan Yu, Li Zhang 0131, Xin Zhao, Yue WangarXiv 2024 · DOI

Abstract

Sequential recommendation systems face a fundamental trade-off between the precise behavioral modeling of ID-based systems and the rich semantic reasoning of Large Language Models (LLMs). We introduce the ID-LangaugE Adapter (IDLE-Adapter), a novel framework designed to bridge the "ID-Language Barrier." By integrating pre-trained ID embeddings into frozen LLMs through layer-wise adaptation and distribution alignment, IDLE-Adapter enables LLMs to leverage granular interaction data without losing semantic context. Experimental results demonstrate improvements of over 10% in HitRate and 20% in NDCG compared to state-of-the-art baselines across multiple benchmark datasets.

Introduction

Traditional sequential recommendation models excel at identifying patterns in user-item interactions (e.g., "User A bought Item 1 then Item 2") but often suffer from data sparsity and a lack of semantic understanding. In contrast, LLMs possess vast world knowledge but struggle to process long sequences of discrete IDs and lack domain-specific behavioral insights. The "ID-Language Barrier" refers to this disparity between sparse, discrete interaction IDs and dense, semantic token embeddings. Current solutions, such as converting IDs to text titles, often fail due to context window limitations or loss of precision. IDLE-Adapter addresses this by treating ID embeddings as a first-class citizen within the LLM's latent space.

Methodology

The IDLE-Adapter framework architecture, illustrating the flow from pre-trained user embeddings through dimensionality and distribution alignment into the LLM layers.

The IDLE-Adapter framework consists of four primary components designed to transform and inject behavioral data into a frozen LLM:

  1. Pre-trained ID Sequential Model: A base model (e.g., SASRec or ComiRec) is used to generate dense user embeddings from raw interaction histories.
  2. Dimensionality Alignment: A dynamic projection layer maps these ID embeddings into the high-dimensional hidden space of the target LLM.
  3. Layer-wise Embedding Refinement: Rather than simple prompt tuning at the input layer, IDLE-Adapter injects information into every layer of the LLM. A token-level combination gate blends the projected ID representation with layer-specific "virtual tokens," allowing the model to modulate the influence of behavioral data at different levels of abstraction.
  4. Layer-wise Distribution Alignment: To ensure compatibility, Maximum Mean Discrepancy (MMD) is employed to minimize the statistical divergence between the adapted ID distributions and the LLM’s native latent distributions.

This architecture is computationally efficient as both the LLM and the base ID model remain frozen; only the adapter parameters are trained using a joint objective of next-item prediction and MMD alignment loss.

Experimental Results

The framework was evaluated on three major benchmarks: MovieLens (ML-1M), Amazon Clothing, and Amazon Musical Instruments. The results consistently show that IDLE-Adapter outperforms both traditional ID-based models and existing LLM-based recommendation baselines.

Performance comparison across BGE and OPT models on Clothing and ML-1M datasets, showing HitRate@5 and NDCG@5 improvements as model size increases.

Key Findings

  • Performance Gains: On the Amazon Clothing dataset, the framework achieved a 14.02% improvement in HitRate@5 and a 48.49% improvement in NDCG@5 over the strongest baseline.
  • Scaling Laws: As shown in the experimental results, there is a clear positive correlation between the size of the LLM backbone (e.g., moving from 100M to 1B parameters in OPT models) and the final recommendation performance. Larger models demonstrate a superior ability to fuse semantic and collaborative information.
  • Model Agnosticism: The framework is effective regardless of whether the backbone is encoder-based (BGE) or decoder-based (OPT), and it generalizes well across different underlying ID-based embedding models.

Conclusion

IDLE-Adapter successfully bridges the gap between behavioral IDs and natural language semantics. By utilizing layer-wise distribution alignment, it allows frozen LLMs to "understand" specialized recommendation data efficiently. While inference latency remains tied to LLM scale, the framework provides a high-performance, plug-and-play solution for modern sequential recommendation tasks.

Summary updated

BibTeX
@misc{zhang2024break,
  author = {Li Zhang and Xiaohan Yu and Li Zhang and Xin Zhao and Yue Wang},
  title = {{Break the ID-Language Barrier: An Adaption Framework for Sequential Recommendation}},
  year = {2024},
  eprint = {2411.18262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.18262},
}
Figure