RoutingTrie:面向受限生成式检索的元数据路由 RoutingTrie: Metadata Routing for Constrained Generative Retrieval 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-07
⬇️ 6 次下载
👁️ 预览文献
💡 AI 中文简介
该研究针对生成式检索中元数据约束过滤效率低的问题,提出RoutingTrie方法,在束搜索前利用共享SID前缀树和元数据索引(稠密位图或稀疏列表)进行约束检查,生成掩码引导解码。在合成基准ShopTrie上验证了紧凑存储和高效探测,生产回放中Hit@100从67.5%提升至96.1%,延迟仅增加1.1毫秒。
领域信息检索/生成式检索
适合谁读需要一定专业背景
核心贡献1. 提出在束选择前融入元数据约束的RoutingTrie方法,避免无效计算;2. 设计基于稠密位图或稀疏列表的紧凑元数据索引,并给出存储成本公式指导选择。
关键数据生产回放中Hit@100从67.5%提升至96.1%(提升28.6个百分点),延迟仅增加1.1毫秒;在ShopTrie基准上验证了紧凑存储和高效CPU/GPU探测。
推荐理由如果你关注生成式检索的实际落地,这篇论文用简单有效的方法大幅提升了约束满足率,且延迟增加极小,值得一读。
关键词["生成式检索", "元数据约束", "前缀树", "束搜索", "语义ID"]

原文摘要

查看英文原文摘要

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.