paper-with-me

홈 › Papers

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

2026-02-26 · Zhengyang Su, Isay Katsman, Yueqi Wang, Ruining He, Lukasz Heldt, Raghunandan Keshavan, Shao-Chuan Wang, Xinyang Yi, Mingyan Gao, Onkar Dalal, Lichan Hong, Ed Chi, Ningren Han 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.

📄 PDF Abstract BibTeX arXiv:2602.22647

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Constrained Auto-Regressive Decoding Constrains Generative Retrieval

2025-04-14 · Shiguang Wu, Zhaochun Ren, Xin Xin, Jiyuan Yang 외

Generative retrieval seeks to replace traditional search index data structures with a single large-scale neural network, offering the potential for improved efficiency and seamless integration with generative large langu…

Retrieval

Multilingual Generative Retrieval via Cross-lingual Semantic Compression

2025-10-09 · Yuxin Huang, Simeng Wu, Ran Song, Yan Xiang 외 arxiv

Generative Information Retrieval is an emerging retrieval paradigm that exhibits remarkable performance in monolingual scenarios.However, applying these methods to multilingual retrieval still encounters two primary chal…

Information Retrieval

Re3val: Reinforced and Reranked Generative Retrieval

2024-01-30 · EuiYul Song, Sangryul Kim, Haeju Lee, Joonkee Kim 외

Generative retrieval models encode pointers to information in a corpus as an index within the model's parameters. These models serve as part of a larger pipeline, where retrieved information conditions generation for kno…

Passage RetrievalRerankingRetrieval

RetroLLM: Empowering Large Language Models to Retrieve Fine-grained Evidence within Generation

2024-12-16 · Xiaoxi Li, Jiajie Jin, Yujia Zhou, Yongkang Wu 외

Large language models (LLMs) exhibit remarkable generative capabilities but often suffer from hallucinations. Retrieval-augmented generation (RAG) offers an effective solution by incorporating external knowledge, but exi…

RAGRetrievalRetrieval-augmented Generation

Nonparametric Decoding for Generative Retrieval

2022-10-05 · Hyunji Lee, Jaeyoung Kim, Hoyeon Chang, Hanseok Oh 외

The generative retrieval model depends solely on the information encoded in its model parameters without external memory, its information capacity is limited and fixed. To overcome the limitation, we propose Nonparametri…

DecoderLanguage ModellingRetrievalText Retrieval