CASQRec: Collaborative-Adaptive Semantic Quantization for Multimodal Recommendation

Qingfeng Li, Wenhui Tu, Wei Liu, Huaijie Zhu, Jielong Tang, Jian YinNeurIPS 2026

TL;DR

Multimodal recommender systems usually blend item content (images, text, audio) and user clicks into continuous vectors, or chop items into fixed discrete "semantic codes" that ignore how humans actually shop or watch. CASQRec turns discrete codes into shared graph hubs and trains a content-based router—guided by a training-only "behavior teacher"—to wire items to those hubs. The result is a system that learns human preference patterns during training, yet can seamlessly plug brand-new, zero-click items into the recommendation network at inference time using content alone.

What Problem Does This Paper Address?

Recommender systems thrive on user-item interactions (clicks, purchases), which are notoriously sparse. To fill in the blanks, multimodal recommendation brings in rich item content like product photos, descriptions, and audio tracks.

Most existing systems fuse content and behavior into continuous embeddings. While effective, continuous vectors make sharing information implicit—you can't easily point to the specific reusable trait connecting two items. Recently, researchers started using discrete semantic codes (quantizing an item into a handful of discrete tokens, like a semantic barcode) to create explicit shared factors. However, these codes are usually generated by frozen encoders or static clustering before looking at user behavior. They act as rigid content labels rather than behavior-smart bridges.

The authors tackle a tricky catch-22: How do you make discrete item-code assignments adapt to collaborative user behavior during training, while still being able to assign codes to a brand-new item at inference time using only its content?

Methods

CASQRec (Collaborative-Adaptive Semantic Quantization) shifts the focus from tweaking representations to learning how items route to discrete codes.

Figure 1: Overview of CASQRec with posterior teaching and prior-induced graph construction.
  1. Fixed Coordinate System: First, multimodal features are normalized, compressed via PCA, and clustered using standard Residual Quantization (RQ)—a multi-stage K-means clustering on residuals. Crucially, these RQ code anchors are frozen after initialization to serve as a stable semantic coordinate system.
  2. Content Prior Router (Student): A learnable MLP takes an item's content descriptor and predicts probability distributions (routing weights) over the frozen codes.
  3. Collaborative Posterior Teacher (Training-Only): During training, the model extracts an item's collaborative context from the user-item interaction graph. A "teacher" module uses this behavioral context to apply a bounded, entropy-aware nudge to the prior router's predictions, calibrated via a contrastive loss. Through KL-divergence distillation (Collaborative Semantic Agreement), the student router learns to mimic these behavior-refined assignments using content alone.
  4. Prior-Induced Graph Propagation: Codes are treated as literal nodes in a unified User–Item–Code graph. Using top-$K$ edges predicted strictly by the content prior (plus a batch-balance regularizer to prevent routing collapse), standard LightGCN message passing propagates collaborative signals along item -> code -> item paths. At inference, the teacher vanishes, avoiding any train-test mismatch.

Datasets

The authors evaluate CASQRec on three standard public benchmarks (using an 8:1:1 train/validation/test split; no new datasets are introduced):

  • Baby and Sports (e-commerce product datasets featuring visual and textual modalities).
  • TikTok (short-video dataset featuring visual, acoustic, and textual modalities).

Key Insights and Ideas

  • Freeze the anchors, learn the wiring: Counterintuitively, letting the codebook embeddings update freely during training (Trainable Codebook) performs worse than keeping them frozen. Moving the anchors destabilizes the coordinate system that the content router relies on; keeping anchors fixed forces adaptation to happen cleanly at the routing level.
  • Train-test graph consistency is vital: If you build the training graph using the behavior-aware teacher's edges and switch to the content student's edges at test time (PostGraph ablation), performance drops noticeably due to distribution mismatch. Always building the graph from the student router solves this.
  • True zero-shot inductiveness: Because code nodes accumulate collaborative signals from popular "warm" items during graph propagation, a cold-start item with zero interaction history can immediately tap into rich behavioral neighborhoods simply by routing to shared codes via its content.
Figure 2: Behavioral alignment and usage of semantic codes.

Key Results

CASQRec outperforms all ten baselines across every metric and dataset. Compared to the strongest baseline variant (MoToRec-SGU), CASQRec boosts Recall@20 and NDCG@20 from:

  • Baby: 0.1169 $\rightarrow$ 0.1359 (+16.3% relative gain) in R@20, and 0.0509 $\rightarrow$ 0.0594 in N@20.
  • Sports: 0.1239 $\rightarrow$ 0.1398 (+12.8% relative gain) in R@20, and 0.0564 $\rightarrow$ 0.0625 in N@20.
  • TikTok: 0.1205 $\rightarrow$ 0.1317 (+9.3% relative gain) in R@20, and 0.0522 $\rightarrow$ 0.0566 in N@20.

In item cold-start evaluations (where 10% of test items have zero training interactions), CASQRec widens the lead—jumping from 0.0322 (SG-URInit) to 0.0442 NDCG@20 on the sparse Sports dataset, and 0.0358 to 0.0476 on TikTok. Qualitative checks also confirm its learned code neighborhoods correlate much more strongly with human behavioral similarity (Spearman correlation ~0.28–0.31 vs. ~0.10–0.13 for static RQ) while utilizing over 70% of available codes.

Limitations and Future Work

Because the RQ codebook is fitted once on initial training items and kept frozen, it may struggle to represent radically new categories or concepts as an item catalog evolves over time. For future work, the authors suggest exploring dynamic codebook expansion—adding new semantic anchors for emerging item types while preserving ranking stability for existing ones.

Summary updated

Abstract

Multimodal recommendation leverages item content, such as text, images, and audio signals, to complement sparse user-item interactions. Existing methods mainly combine content and collaborative signals at the representation level through graph propagation, feature fusion, or auxiliary alignment. However, continuous item embeddings make semantic sharing implicit and provide limited support for transferring behavioral evidence through reusable semantic factors. Discrete semantic codes offer explicit shared variables, but existing code-based recommenders usually treat item-code assignments as fixed outputs of pretrained quantizers, clustering algorithms, or frozen encoders, making the assignment mechanism insensitive to user behavior. We propose \textbf{CASQRec}, a \textbf{C}ollaborative-\textbf{A}daptive \textbf{S}emantic \textbf{Q}uantization framework for multimodal recommendation. CASQRec learns item-code assignments as content-inferable routing decisions supervised by collaborative behavior during training. It constructs a semantic-code graph, where fixed content-derived RQ codes are graph nodes and item-code edges are predicted from item content by a learnable prior router. To make routing behavior-aware while keeping item-code routing independent of item-side interaction history at inference time, CASQRec introduces a collaborative posterior teacher only during training and distills its assignment distributions into the content prior. The resulting prior-induced user-item-code graph allows collaborative evidence to be shared through discrete semantic codes while keeping item routing content-based. Experiments on three public datasets show that CASQRec consistently outperforms representative multimodal recommendation baselines. The code resources are available in the supplementary materials.
BibTeX
@inproceedings{li2026casqrec,
  author = {Qingfeng Li and Wenhui Tu and Wei Liu and Huaijie Zhu and Jielong Tang and Jian Yin},
  title = {{CASQRec: Collaborative-Adaptive Semantic Quantization for Multimodal Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4doufzy1hI},
}
Figure