LEGIT: Live Eligibility Gating over Identifier Tries for Constrained Decoding of Heterogeneous Pages
Not on the map. Why?
Abstract (arXiv)
A generative recommender names each candidate with a short token sequence, a Semantic ID, and recommends by generating those tokens. Some generative recommenders, including the Uber Eats search engine we are building, write a whole results page, stores with their menu items, in one decoding pass. Every Semantic ID on such a page must name a real store or item that is eligible for the search, such as a store that delivers to the user's location, and that is not already on the page. Each item must also belong to the store above it. A trie over the catalog keeps identifiers real, but eligibility and repetition change with every request and token, and the grammar-constrained decoder we tried could not enforce these changing rules exactly and quickly. We call this constraint LEGIT, for live eligibility gating over identifier tries. Numbering trie leaves depth first turns each rule into a range lookup over one store trie and one item trie, and every generated page passes an independent catalog check. On one NVIDIA B200 GPU with one or two requests per decode step, a direct implementation that walks the trie on the GPU makes each token about 5 times as slow as unconstrained decoding. Across 36 implementations, hardware counters and ablations are consistent with kernel launches and CPU-GPU waits as the source of this slowdown. Our fastest implementation walks the trie on the CPU while the GPU runs the model, needs no custom kernel, and cuts time per output token by 65.9 percent against the direct GPU implementation, to about 1.7 times the unconstrained cost. This implementation is also the fastest on a page layout that puts each item before its store.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 15 of its 19 references that are in the map. Submitted 7 Nov 2026.
Builds on
15 of 19 references.
References · 15
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2022Autoregressive Image Generation using Residual Quantizationcited by 771
- 2022Transformer Memory as a Differentiable Search Indexcited by 264
- 2023Efficient Guided Generation for Large Language Modelscited by 244
- 2023Recommender Systems with Generative Retrievalcited by 222
- 2022A Neural Corpus Indexer for Document Retrievalcited by 116
- 2025JSONSchemaBench: A Rigorous Benchmark of Structured Outputs for Language Modelscited by 86
- 2025PLUM: Adapting Pre-trained Language Models for Industrial-scale Generative Recommendationscited by 38
- 2026Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Acceleratorscited by 12
- 2026OneReason Technical Reportcited by 10
- 2025HiGR: Industrial-Scale Hierarchical Generative Slate Recommendation Framework in Tencentcited by 4
- 2026FlashTrie: A GPU-Accelerated Constrained Beam Search for Generative Retrievalcited by 2
3 more
Built on by
Not cited yet.