RoutingTrie: Metadata Routing for Constrained Generative Retrieval
Not on the map. Why?
Abstract (arXiv)
Advances in large language models and semantic IDs (SIDs) have brought generative retrieval (GR) into industrial applications. These systems must return items that satisfy request metadata constraints as well as relevance requirements. A catalog trie ensures SID validity, but filtering metadata only after generation wastes computation on rejected candidates and may leave too few eligible results. We propose RoutingTrie to incorporate metadata constraints before beam selection. RoutingTrie maintains one shared SID trie and builds a compact index for each metadata field using Dense Bitset or Sparse List. We derive a storage cost formula to guide the choice between these index representations for different field distributions. During decoding, field probes determine whether requested values occur below candidate edges and produce a combined mask that guides beam selection. Experiments on ShopTrie, our configurable synthetic benchmark, demonstrate compact storage and efficient CPU and GPU probing across diverse metadata distributions. In a production replay, RoutingTrie raises Hit@100 from 67.5% to 96.1%, a gain of 28.6 percentage points, with only 1.1 ms latency increase. We will release the ShopTrie generator, benchmark scripts, and RoutingTrie CPU and Triton GPU implementations to support reproducibility.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 34 of its 42 references that are in the map. Submitted 7 Nov 2026.
Builds on
34 of 42 references.
References · 34
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,990
- 2018Self-Attentive Sequential Recommendationcited by 1,247
- 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 1,007
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 865
- 2015Session-based Recommendations with Recurrent Neural Networkscited by 737
- 2022Recommendation as Language Processing (RLP): A Unified Pretrain, Personalized Prompt & Predict Paradigm (P5)cited by 418
- 2020Autoregressive Entity Retrievalcited by 339
- 2023Recommender Systems with Generative Retrievalcited by 222
- 2024Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendationscited by 215
- 2023Adapting Large Language Models by Integrating Collaborative Semantics for Recommendationcited by 201
- 2025OneRec: Unifying Retrieve and Rank with Generative Recommender and Iterative Preference Alignmentcited by 193
- 2025OneRec-Think: In-Text Reasoning for Generative Recommendationcited by 57
22 more
- 2023Better Generalization with Semantic IDs: A Case Study in Ranking for Recommendationscited by 56
- 2024ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Datacited by 38
- 2025OneRec-V2 Technical Reportcited by 31
- 2025OneRec Technical Reportcited by 26
- 2024Unifying Generative and Dense Retrieval for Sequential Recommendationcited by 20
- 2024Approximate Nearest Neighbor Search with Window Filterscited by 12
- 2026Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Acceleratorscited by 12
- 2024UNIFY: Unified Index for Range Filtered Approximate Nearest Neighbors Searchcited by 11
- 2023CAPS: A Practical Partition Index for Filtered Similarity Searchcited by 10
- 2026OneReason Technical Reportcited by 10
- 2022HQANN: Efficient and Robust Similarity Search for Hybrid Queries with Structured and Unstructured Constraintscited by 9
- 2025SIEVE: Effective Filtered Vector Search with Collection of Indexescited by 9
- 2025Constrained Auto-Regressive Decoding Constrains Generative Retrievalcited by 8
- 2025Efficient and Asymptotically Unbiased Constrained Decoding for Large Language Modelscited by 6
- 2026Curator: Efficient Vector Search with Low-Selectivity Filterscited by 5
- 2026T-RoPE: Time-Aware Rotary Position Embedding for Sequential Recommendationcited by 3
- 2016Consistently faster and smaller compressed bitmaps with Roaringcited by 2
- 2025VecFlow: A High-Performance Vector Data Management System for Filtered-Search on GPUscited by 2
- 2025Filtered Approximate Nearest Neighbor Search: A Unified Benchmark and Systematic Experimental Study [Experiment, Analysis & Benchmark]cited by 2
- 2026FlashTrie: A GPU-Accelerated Constrained Beam Search for Generative Retrievalcited by 2
- 2026GR2 Technical Reportcited by 1
- 2026Revisiting Generative vs. Dense Retrieval: A Static Value Prior Reverses the Gapcited by 1
Built on by
Not cited yet.