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

Learning Vector-Quantized Item Representation for Transferable Sequential Recommenders

Yupeng Hou, Zhankui He, Julian J. McAuley, Wayne Xin Zhao

Introduction

Sequential recommendation systems—designed to predict a user's next interaction based on their historical behavior—are fundamental to modern digital platforms. However, most existing models are "transductive," relying on specific item IDs that are unique to a single domain. This creates a significant barrier to transferability; a model trained on movie data cannot easily be applied to a grocery domain because the underlying item IDs do not overlap.

Recent efforts to build "transferable" recommenders have turned to Pre-trained Language Models (PLMs) like BERT to encode item metadata (titles and descriptions) into continuous vectors. While this approach enables cross-domain application, it introduces a "tight binding" problem. The resulting models become overly sensitive to exact linguistic similarities and struggle with the "domain gap"—where the same word might carry different behavioral implications in different contexts. VQ-Rec addresses these challenges by decoupling item text from its final representation through a discrete vector-quantization layer.

Methodology: The VQ-Rec Framework

The core innovation of VQ-Rec is its three-stage representation scheme: text $\Rightarrow$ code $\Rightarrow$ representation. Instead of mapping text directly to a continuous vector, the system first discretizes the information.

1. Vector-Quantized Code Learning

Item text is first encoded by a fixed PLM and then mapped to a vector of discrete indices, or an "item code." VQ-Rec utilizes Optimized Product Quantization (OPQ) to perform this discretization. This step is crucial because it ensures that the codes are distributed uniformly across the available space, making items more distinguishable even when their textual descriptions are semantically similar.

2. Code Embedding and Contrastive Pre-training

These discrete indices are used to look up embeddings in a shared codebook. To train the model effectively across multiple domains, the authors employ a contrastive loss function enhanced by two types of "hard negatives":

  • Semi-synthetic negatives: Created by slightly perturbing the discrete codes of real items.
  • Mixed-domain negatives: Items from different domains within the same training batch are used to force the model to learn domain-invariant behavioral patterns.

3. Differentiable Fine-tuning

When adapting to a new target domain, VQ-Rec uses a differentiable alignment network based on the Gumbel-Sinkhorn algorithm. This allows the model to align the pre-trained codebook with the specific characteristics of the new domain without requiring a full retraining of the Transformer backbone.

The VQ-Rec architecture, detailing the vector-quantized representation, contrastive pre-training with hard negatives, and cross-domain fine-tuning stages.

Experimental Evaluation

The researchers evaluated VQ-Rec using a robust setup involving five Amazon review datasets for pre-training and five different Amazon domains for cross-domain transfer. They also tested cross-platform transferability using a completely separate Online Retail dataset from a UK-based platform.

VQ-Rec consistently outperformed state-of-the-art baselines like UniSRec and ZESRec. For instance, on the "Office" dataset, VQ-Rec achieved a Recall@10 of 0.1236, a significant improvement over UniSRec's 0.1013.

Cold-Start and Long-Tail Performance

One of the most notable strengths of VQ-Rec is its performance on "long-tail" items—those with very few user interactions. Because the model relies on quantized text representations rather than interaction-heavy IDs, it can provide a strong recommendation signal even when data is sparse. As shown in Figure 6, the performance gains are most pronounced in the lowest interaction bins.

Analysis of performance improvement across different item popularity bins on the Office dataset, highlighting VQ-Rec's effectiveness for long-tail items.

Key Insights and Discussion

  • Decoupling as a Solution: By inserting a discrete "code" layer, VQ-Rec prevents the recommendation model from being "locked in" to the specific linguistic space of the PLM, allowing it to focus on behavioral sequences.
  • The Importance of Uniformity: In recommendation tasks, item distinctness is paramount. Standard PLM embeddings often cluster too tightly; OPQ forces discrete codes to be more spread out, reducing "collisions" where different items appear identical to the model.
  • Parameter Efficiency: The Transformer backbone remains fixed during fine-tuning, with only the item representation layers being updated. This makes VQ-Rec highly efficient for deployment in real-world, multi-domain scenarios.

Conclusion

VQ-Rec demonstrates that discrete vector quantization is a powerful mechanism for bridging the gap between linguistic features and user behavior in recommendation systems. While the model remains dependent on the quality of item metadata, its ability to handle cold-start scenarios and transfer across domains sets a new benchmark for sequential recommenders. Future research may explore incorporating other modalities, such as item images, into the quantization process to further enhance representation quality in visually-driven domains.

Summary updated

BibTeX
@inproceedings{hou2022learning,
  author = {Yupeng Hou and Zhankui He and Julian J. McAuley and Wayne Xin Zhao},
  title = {{Learning Vector-Quantized Item Representation for Transferable Sequential Recommenders}},
  booktitle = {The Web Conference},
  year = {2022},
}
Figure