mlsanityData to 7 Oct 2026

Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Accelerators

arXiv 2602.22647 ↗First posted 26 Feb 2026cs.IR cs.CL cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

Generative retrieval has emerged as a powerful paradigm for LLM-based recommendation. However, industrial recommender systems often benefit from restricting the output space to a constrained subset of items based on business logic (e.g. enforcing content freshness or product category), which standard autoregressive decoding cannot natively support. Moreover, existing constrained decoding methods that make use of prefix trees (Tries) incur severe latency penalties on hardware accelerators (TPUs/GPUs). In this work, we introduce STATIC (Sparse Transition Matrix-Accelerated Trie Index for Constrained Decoding), an efficient and scalable constrained decoding technique designed specifically for high-throughput LLM-based generative retrieval on TPUs/GPUs. By flattening the prefix tree into a static Compressed Sparse Row (CSR) matrix, we transform irregular tree traversals into fully vectorized sparse matrix operations, unlocking massive efficiency gains on hardware accelerators. We deploy STATIC on a large-scale industrial video recommendation platform serving billions of users. STATIC produces significant product metric impact with minimal latency overhead (0.033 ms per step and 0.25% of inference time), achieving a 948x speedup over a CPU trie implementation and a 47-1033x speedup over a hardware-accelerated binary-search baseline. Furthermore, the runtime overhead of STATIC remains extremely low across a wide range of practical configurations. To the best of our knowledge, STATIC enables the first production-scale deployment of strictly constrained generative retrieval. In addition, evaluation on academic benchmarks demonstrates that STATIC can considerably improve cold-start performance for generative retrieval. Our code is available at https://github.com/youtube/static-constraint-decoding.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 22 of its 46 references that are in the map. First posted on arXiv 26 Feb 2026.

Builds on

22 of 46 references.

References · 22

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  5. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
  6. 2016Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filteringcited by 517
  7. 2022Transformer Memory as a Differentiable Search Indexcited by 242
  8. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  9. 2025OneRec: Unifying Retrieve and Rank with Generative Recommender and Iterative Preference Alignmentcited by 167
  10. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  11. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 153
  12. 2022Towards Universal Sequence Representation Learning for Recommender Systemscited by 120
10 more
  1. 2025On the Theoretical Limitations of Embedding-Based Retrievalcited by 98
  2. 2024Automata-based constraints for language model decodingcited by 49
  3. 2025OneRec-Think: In-Text Reasoning for Generative Recommendationcited by 47
  4. 2025PLUM: Adapting Pre-trained Language Models for Industrial-scale Generative Recommendationscited by 27
  5. 2025OneRec Technical Reportcited by 24
  6. 2025Generative Recommendation with Semantic IDs: A Practitioner's Handbookcited by 18
  7. 2024Unifying Generative and Dense Retrieval for Sequential Recommendationcited by 16
  8. 2016Mathematical Foundations of the GraphBLAScited by 12
  9. 2025Efficient and Asymptotically Unbiased Constrained Decoding for Large Language Modelscited by 5
  10. 2025Eliminating Out-of-Domain Recommendations in LLM-based Recommender Systems: A Unified Viewcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.