Overview
Standard parameter-efficient fine-tuning (PEFT) methods like Low-Rank Adaptation (LoRA) often struggle with the high variability of user behavior in recommendation tasks. This variability leads to "negative transfer," where learning from one user's history degrades the model's performance for another user with different tastes. Instance-wise LoRA (iLoRA) solves this by integrating a Mixture of Experts (MoE) framework directly into the LoRA layers, using a behavioral gating mechanism to generate a unique, customized adapter for every individual user sequence.
The Challenge: Negative Transfer in Standard LoRA
Large Language Models (LLMs) are increasingly used for sequential recommendation by converting user histories into text prompts. To make this efficient, researchers typically use LoRA, which adds a small number of trainable parameters to a frozen LLM.
However, the "one-size-fits-all" nature of standard LoRA presents a fundamental flaw. In recommendation systems, user behaviors are incredibly diverse. A user who exclusively watches horror movies requires a different parameter update than a user who only watches documentaries. When a single LoRA module is forced to learn from both, the gradients conflict—a phenomenon known as negative transfer.
Visualizing gradient similarities proves this: disparate user clusters have significantly misaligned optimization trajectories. Users close in "collaborative space" (similar tastes) share high gradient similarity, while distant users have near-zero or negative similarity. This provides a strong theoretical justification for why a single adapter fails to capture diverse user preferences.
Introducing iLoRA: Instance-wise Adaptation
To address this, the authors propose iLoRA, which treats sequential recommendation as a multi-task learning problem where each user sequence is a distinct "task."
The iLoRA framework operates on several key principles:
- LoRA as a Mixture of Experts (MoE): Instead of a single pair of low-rank matrices, iLoRA splits these matrices into an array of $K$ "experts." Each expert is designed to capture a specific latent aspect of user behavior.
- Behavior-Guided Gating: To decide which experts to use, the model employs a gating network. Crucially, this gate is fed a "holistic sequence representation" generated by a traditional, non-LLM recommender (like SASRec). This allows the model to use established collaborative filtering signals to guide the LLM's adaptation.
- Dynamic Aggregation: For every input instance, the gating network produces attention scores (weights). These weights are used to linearly combine the experts into a customized weight matrix ($\Delta W$) for that specific user.
- Parameter Efficiency: By splitting the total rank among the $K$ experts, iLoRA maintains nearly the same number of trainable parameters as a standard LoRA module (less than a 1% increase), avoiding the memory bloat usually associated with MoE architectures.
Key Insights and Performance
The model was evaluated on three diverse, real-world benchmark datasets: LastFM (music), MovieLens (movies), and Steam (games).
- Accuracy Boost: iLoRA achieved an average relative improvement of 11.4% in Hit Ratio (HR@1) over basic LoRA across all datasets.
- Superiority over SOTA: It outperformed existing LLM-based recommenders like TALLRec and LLaRA, as well as traditional models like SASRec and GRU4Rec.
- Expert Specialization: Visualization of the gating weights reveals that the model actively uses different experts for different sequences. Some sequences rely heavily on a single "specialist" expert, while others use a "collaborative" blend of several.
- Optimal Complexity: The authors found that 4 experts provided the best balance of performance and generalization; increasing to 8 experts led to diminishing returns and potential overfitting.
- Instruction Following: The model maintained a high ValidRatio (near 1.0), meaning it consistently followed the output format instructions while improving recommendation accuracy.
Limitations and Future Work
While highly effective, the current implementation uses "soft" routing (a weighted sum of all experts). The authors suggest that "hard" routing (selecting only the top-k experts) might be more computationally efficient for models scaled to a very large number of experts. Furthermore, while this study focused strictly on sequential recommendation, future work could explore if instance-wise adaptation helps LLMs in other highly personalized domains, such as creative writing or personalized tutoring.
Summary updated