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

Tokens are All You Need: Dual-purpose Semantic IDs for Achieving LLM-Level I/O Efficiency in recommendation systems

Baolei Li, Yiping Yuan, Yilin Zheng, Likang Yin, Ling Liu, Fabio Soldo, Romer Rosales, Xinyang Yi, Lichan HongarXiv 2026

TL;DR

Modern recommendation systems are hitting a "Memory Wall" due to the massive data footprint of dense, high-dimensional content embeddings. This paper introduces Dual-purpose Semantic IDs (SIDs), which compress continuous embeddings by 50–100× into discrete tokens that simultaneously track user-item interactions and reconstruct content features on-the-fly. Implemented at YouTube scale, this approach breaks the I/O bottleneck by shifting the workload from slow network transfers to fast accelerator compute, boosting both training speed and recommendation quality.

What Problem Does This Paper Address?

While Large Language Models (LLMs) scale elegantly because they are compute-bound and operate on a unified space of discrete tokens, large-scale recommendation systems remain severely restricted by memory and network bandwidth—a challenge known as the "Memory Wall."

Modern recommenders rely heavily on massive, dense floating-point embedding tables to represent users, items, and complex contextual signals. Ingesting and transferring these huge numerical vectors across networks during training and inference creates massive I/O bottlenecks. This problem becomes unsustainable when models scale up to handle ultra-long user activity sequences (sequence lengths of $10^4$ or higher).

Methods

The authors propose a dual-purpose framework that replaces raw dense embeddings with compact, discrete token sequences generated via hierarchical quantization (specifically, Residual Quantization or RQ-VAE).

Figure 1: Semantic ID as an expressway to deliver semantic embedding

As shown in Figure 1, these discrete Semantic IDs (SIDs) serve two concurrent roles directly inside the recommendation model graph:

  1. In-Graph Collaborative Identity: The discrete tokens are treated as structured categorical features. The model learns embeddings for these tokens using strategies like Unigram, Overlapping Bigram, Nested N-gram, or Sentence Piece Models (SPM) to capture user-item interaction patterns. This allows the model to generalize effectively to cold-start and long-tail items by sharing top-level semantic prefixes.
  2. Semantic Decoding (SiDec): To capture the raw content signal without the heavy I/O cost of joining dense features, the framework introduces an on-the-fly decoder. The model performs a simple lookup of the discrete tokens and passes them through a lightweight, trainable Semantic Decoder ($f_\theta$) to reconstruct a high-fidelity approximation of the original continuous content embedding directly within accelerator memory.

Datasets

The framework was evaluated using offline training logs and live production traffic at a major video-sharing platform (YouTube). No standard public datasets were used, as the primary goal was to validate the system's performance and I/O efficiency under true production-scale constraints.

Key Insights and Ideas

  • Tokens are truly all you need: High-dimensional continuous features (such as video content embeddings) do not need to be stored or transmitted in their native floating-point format to retain their predictive power.
  • Flipping the Bottleneck: By moving from disk-bound dense vector retrieval to compute-bound on-the-fly reconstruction, recommendation systems can finally align with the highly optimized hardware scaling laws enjoyed by LLMs.
  • Targeting User History: The primary bottleneck in ranking and retrieval is attaching dense content embeddings to long user watch histories. Replacing these histories with sequences of integer tokens drastically shrinks the data footprint of training logs.

Key Results

The authors validated their framework through both live online deployment and rigorous offline benchmarking:

  • Production Gains: Deployed at YouTube, the framework delivered statistically significant top-line improvements in Online Satisfied Engagement across multiple surfaces, including a +0.80% lift on the Watchpage and a +0.22% lift on the Homepage.
  • Breaking the I/O Bottleneck: In offline retrieval experiments, directly ingesting raw 64-dimensional embeddings triggered a severe I/O bottleneck, degrading training throughput by 28.2% (down to 12.07 steps/s). Using the Semantic ID decoder with architectural scaling recovered this throughput to 14.53 steps/s (a 20.4% acceleration over raw embeddings) while actually improving retrieval accuracy (Hit Rate @100 rose from 0.2844 to 0.2910).
  • Ablation Insights: Ablation studies revealed that the majority of the performance lift stems from compressing the watch history SIDs, which naturally contain the highest volume of items and benefit most from SiDec's I/O efficiency.

Limitations and Future Work

  • Architectural Dependencies: While highly efficient, the SiDec approach requires deep integration with advanced content learning architectures (such as contrastive loss and cross-attention mechanisms) to reach its full predictive potential.
  • Semantic and Collaborative Drift: The quantization codebooks are currently static. The authors note that future work must address drift over time by designing mechanisms that dynamically update codebook boundaries without requiring a full retraining of the downstream model.
  • Ultra-Compression: The team plans to explore alternative quantization strategies to push compression ratios beyond 100× with near-zero downstream information loss.

Summary updated

BibTeX
@misc{li2026tokens,
  author = {Baolei Li and Yiping Yuan and Yilin Zheng and Likang Yin and Ling Liu and Fabio Soldo and Romer Rosales and Xinyang Yi and Lichan Hong},
  title = {{Tokens are All You Need: Dual-purpose Semantic IDs for Achieving LLM-Level I/O Efficiency in recommendation systems}},
  year = {2026},
  eprint = {2607.24865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.24865},
}
Figure