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 consists of four primary components designed to transform and inject behavioral data into a frozen LLM:
- Pre-trained ID Sequential Model: A base model (e.g., SASRec or ComiRec) is used to generate dense user embeddings from raw interaction histories.
- Dimensionality Alignment: A dynamic projection layer maps these ID embeddings into the high-dimensional hidden space of the target LLM.
- 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.
- 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.
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