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

VaLiDRec: Variable-Length LLM-Aligned Semantic IDs for Generative Recommendation

Shutong Qiao, Wei Yuan, Tong Chen, Hao Wang, Quoc Viet Hung Nguyen, Hongzhi YinarXiv 2026

TL;DR

Traditional generative recommendation models rely on fixed-length, artificial semantic IDs that over-compress item details and suffer from slow, expensive autoregressive decoding. VaLiDRec solves this by constructing variable-length identifiers directly from native LLM vocabulary tokens and reformulating recommendation as parallel token-set prediction. This approach delivers state-of-the-art recommendation accuracy alongside a massive 87.49× inference speedup.

What Problem Does This Paper Address?

Generative Recommendation (GR) treats recommendation as a sequence generation task: given a user's history, an LLM directly generates the identifier (Semantic ID, or SID) of the next item. Typically, these SIDs are fixed-length sequences of discrete codes generated via clustering or quantization techniques (like RQ-VAE).

However, current SID-based methods face three major bottlenecks:

  1. Semantic Misalignment: The artificial codes live in an isolated space, poorly aligned with the LLM’s pretrained vocabulary and ungrounded in actual item metadata.
  2. Rigid Capacity: They assign the same fixed ID length to every item, meaning a simple black hoodie gets the same representational budget as a complex mirrorless camera.
  3. Inference Latency: Generating IDs autoregressively requires beam search, which scales poorly and is far too slow for real-time production systems.

Methods

VaLiDRec introduces a two-stage framework to make generative recommendation both flexible and fast:

Stage 1: LLM-Native SID Construction

Instead of quantizing embeddings into abstract codes, VaLiDRec builds SIDs using actual tokens from the LLM's native vocabulary.

  • Token Importance Scoring: It scores metadata tokens by combining corpus-level distinctiveness (IDF) with context-level salience (the norm of the LLM's hidden states).
  • Greedy Pruning: A semantic-quality-aware pruning strategy iteratively drops redundant tokens, stopping only when further removal would degrade the item's core meaning. This naturally creates shorter SIDs for simple items and longer ones for complex items.
  • Collision Handling: If two similar items end up with identical token sets, VaLiDRec resolves the conflict using collision-aware expansion and appends a non-semantic suffix rank for deterministic disambiguation.
Figure 1: Comparison of traditional fixed-length SID se- quences and our variable-length SID sets. Our SIDs are stored as LLM vocabulary token IDs, denoted as Token_ID for illus- tration, while the decoded forms show their correspondence to item metadata.

Stage 2: Graph-Prompted LLM for Token-Set Prediction

To bypass slow autoregressive decoding, VaLiDRec predicts the entire target token set in parallel.

  • Graph-Aware Soft Prompts: It builds an item-transition graph from user histories and uses GraphSAGE to inject collaborative filtering signals directly into the LLM as continuous prompt embeddings.
  • Parallel Scoring: The model computes the probabilities of all vocabulary tokens in a single forward pass. Item relevance is calculated by averaging the scores of its constituent SID tokens, using length normalization to ensure fairness across variable ID lengths.
Figure 2: Overall framework of VaLiDRec.

Datasets

The authors evaluated VaLiDRec on four real-world product domains from the Amazon-2018 dataset:

  • Luxury Beauty
  • Industrial and Scientific
  • Musical Instruments
  • Arts, Crafts, and Sewing

They also constructed a dedicated zero-shot item cold-start benchmark using the raw Luxury Beauty data to test how well the model recommends completely unseen items based purely on text metadata.

Key Insights and Ideas

  • Lexical Grounding Matters: Using native LLM tokens means the item identifiers inherently retain the rich, pretrained semantic relationships of the language model. Unseen items can be instantly mapped into this space, which explains the model's strong cold-start performance.
  • Ditching Autoregression: By framing recommendation as a token-set prediction task rather than sequential token generation, the inference complexity drops from being dependent on beam size and ID length ($O(BL)$) to a constant number of LLM forward passes.
  • Graph-Text Synergy: Text SIDs capture content well, but lack behavioral context. Injecting graph-based transition patterns via soft prompts bridges the gap between semantic understanding and collaborative user behavior.

Key Results

  • Superior Accuracy: VaLiDRec consistently outperformed strong sequential (e.g., SASRec, BERT4Rec) and generative baselines (e.g., TIGER, RPG) across all datasets. For instance, it improved NDCG@20 on the sparse Arts dataset by over 22% compared to the next-best baseline.
  • Dramatic Speedup: In online inference tests against LC-Rec, VaLiDRec reduced the average processing time per instance from 6.824 seconds down to just 0.078 seconds—an 87.49× speedup, making LLM-based generative retrieval viable for production.
  • Cold-Start Excellence: On the zero-shot cold-start task, VaLiDRec outperformed quantization-based GR models, proving that native vocabulary alignment allows better generalization to new items.

Limitations and Future Work

While VaLiDRec successfully addresses text-based metadata, many modern recommendation systems rely heavily on visual or auditory features. The authors note that a natural next step is extending VaLiDRec to support multimodal item representations (e.g., processing product images alongside text descriptions). They also plan to investigate how effectively these native SIDs can transfer knowledge across entirely different recommendation domains.

Summary updated

BibTeX
@misc{qiao2026validrec,
  author = {Shutong Qiao and Wei Yuan and Tong Chen and Hao Wang and Quoc Viet Hung Nguyen and Hongzhi Yin},
  title = {{VaLiDRec: Variable-Length LLM-Aligned Semantic IDs for Generative Recommendation}},
  year = {2026},
  eprint = {2607.25209},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.25209},
}
Figure