arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.33435cs.IR
收藏

PinGER:基于语义ID的令牌高效生成式检索

PinGER: Token-Efficient Generative Retrieval with Semantic IDs

Pinterest
Xinyi Li, Sujan Reddy Ale, Yi-Ping Hsu, Zelun Wang, Yilin Chen, Hanyu Li, Hanlin Lu, Arkin Dharawat, Lulu Yao, Yaxin Li, Bella Huang, Xiangyi Chen, Jaewon Yang,… 展开作者

Xinyi Li, Sujan Reddy Ale, Yi-Ping Hsu, Zelun Wang, Yilin Chen, Hanyu Li, Hanlin Lu, Arkin Dharawat, Lulu Yao, Yaxin Li, Bella Huang, Xiangyi Chen, Jaewon Yang, Jiajing Xu, Charles Rosenberg

AI总结:

PinGER是Pinterest部署的生成式检索器,通过非对称注意力掩码等三个思路压缩输入历史,在相关Pins场景中提升保存量并降低延迟,替代了最近邻搜索。

摘要:

生成式检索通过对物品的语义ID(SID)进行逐令牌解码,替代了最近邻搜索。但现有的基于SID的方法主要使用L层令牌按顺序表示输入历史中的每个物品,因此固定上下文窗口能容纳的物品数量仅为每个物品用一个嵌入时的1/L。我们提出PinGER,这是部署在Pinterest的生成式检索器,保留SID输出同时使输入历史更紧凑,基于三个思路构建:(1)对交错的SID和密集令牌应用非对称注意力掩码,让后续物品仅能关注密集令牌,使模型在训练时每个SID位置都受监督,同时每个物品仅计算一个令牌即可完成相同功能;(2)通过目标条件输出、强化学习和前缀多样性惩罚控制生成,共同引导检索朝向特定表面目标和多样化候选;(3)为高效宽束生成构建的服务栈,搭配受限于有效标识符的解码以及来自主机本地索引的候选解析。在相关Pins场景中部署后,PinGER使新Pins的保存量提升3.60%,总保存量提升0.62%,同时降低表面端到端延迟0.7%,并消除了其所替代的最近邻搜索的成本。

英文摘要:

Generative retrieval replaces nearest-neighbor search with token-by-token decoding of an item's semantic ID (SID). But existing SID-based methods primarily use L levels of tokens sequentially to represent each item in the input history. As a result, a fixed context window holds L times fewer items than it would with one embedding per item. We present PinGER, a generative retriever deployed at Pinterest that retains SID outputs while making input histories compact, built on three ideas. (1) An asymmetric attention mask over interleaved SID and dense tokens lets later items attend only to the dense ones, so the model is supervised at every SID position in training yet serves one token per item while computing the same function. (2) Generation is controllable through goal-conditioned outputs, reinforcement learning, and a prefix-diversity penalty, which together steer retrieval toward surface-specific goals and diverse candidates. (3) A serving stack built for efficient wide-beam generation is paired with decoding constrained to valid identifiers and candidate resolution from a host-local index. Deployed in Related Pins, PinGER lifts saves of fresh Pins by 3.60% and overall saves by 0.62%, while reducing the surface's end-to-end latency by 0.7% and eliminating the cost of the nearest-neighbor search it replaces.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑