Disentangling Paradigm, Identifier, and Decoding in Generative Retrieval

ML DM LM RecSys / IR SIL Neural Search
2026年10月06日
生成式检索通过训练语言模型来生成相关文档的标识符。近期研究以扩散模型(diffusion)替代自回归解码器,但同时改变了标识符形式、训练策略与解码方式,因此无法将性能差异归因于建模范式本身。我们在NQ320K和MS300K两个数据集上,分别训练了自回归模型、掩码扩散模型(masked-diffusion)与分块扩散模型(block-diffusion),并分别采用残差量化(residual-quantised)、乘积量化(product-quantised)及随机生成(random)三类标识符。在固定标识符长度与训练预算的前提下,我们对每类模型尝试多种解码方式。仅改变解码方式一项,即可使扩散模型的Hit@1指标提升6.6至13.7个百分点。我们所采用的基准扩散解码方法为“生成—匹配”(generate-and-match):即先由模型生成一个标识符,再从语料库中检索与其最接近的若干标识符。该方法在NQ320K数据集上,对14%–21%的查询能直接生成正确标识符。我们进一步测试了一次性打分解码(one-pass scoring)——即模型仅需对完全掩码的标识符进行一次前向推理,随后依据各文档对应编码在模型输出概率分布中的联合概率为其打分。该方法在12种实验设置中的11种下,性能达到或超过了“生成—匹配”法。目前,自回归模型在Hit@1指标上仍保持领先;在NQ320K上,这一优势主要源于模型自身能力,而非束搜索(beam search)机制。若以单次采样所得标识符为起点,一次性打分解码可弥补掩码扩散模型相对于束搜索约46%–83%的性能差距;而若以“生成—匹配”结果为起点,则最多仅能弥补约四分之一的差距。在NQ320K上,所有建模范式均在很大程度上记忆了“特定查询对应特定标识符”的映射关系:即使采用随机标识符,其Hit@1仍可达到残差量化标识符对应性能的83%–90%。在此数据集上,乘积量化标识符在自回归模型中比残差量化标识符高出3.4个点;而在各类扩散模型中,其优势则介于–0.7至+3.6点之间;综合不同解码方式来看,自回归模型的性能优势始终比扩散模型高出1.5–2.3个点,该差距大致相当于我们设定的2点显著性阈值。因此,在对不同建模范式进行比较时,必须明确报告每种范式所对应的专属训练策略及其最优解码方式。
Generative retrieval trains a language model to generate the identifier of a relevant document. Recent work replaces the autoregressive decoder with diffusion, but changes identifiers, training recipe and decoding at once, so differences cannot be credited to the paradigm. On NQ320K and MS300K, we train autoregressive, masked-diffusion and block-diffusion models with residual-quantised, product-quantised and random identifiers. With identifier length and training budget fixed, we decode each model in several ways. Decoding alone moves a diffusion model's Hit@1 by 6.6 to 13.7 points. Our reference diffusion decoding, generate-and-match, generates an identifier, then retrieves the closest corpus identifiers. The generated identifier is right for 14-21% of NQ320K queries. We test one-pass scoring to decode diffusion retrievers: the model reads a fully masked identifier once, and each document is scored by its codes' probabilities. It matches or beats generate-and-match in 11 of 12 settings. Autoregressive models still lead in Hit@1; on NQ320K, the lead comes from the model, not beam search. Starting from one sampled identifier, one-pass scoring removes 46-83% of masked diffusion's deficit to beam search; from generate-and-match, at most a quarter. On NQ320K, every paradigm largely memorises which identifier answers which query: random identifiers keep 83-90% of the Hit@1 of residual-quantised ones. There, product-quantised identifiers lead residual-quantised ones by 3.4 points in the autoregressive model and by -0.7 to +3.6 in diffusion models; across decodings, AR's gap exceeds diffusion's by 1.5-2.3 points, around our 2-point threshold. Paradigm comparisons must report each paradigm at its own recipe and best decoding.
许愿