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

冻结嵌入模型在测试时通过智能体程序搜索的计算

Test-Time Compute for Frozen Embedding Models through Agentic Program Search

Jina AI by Elastic(Jina AI 由 Elastic 提供)

Han Xiao

AI总结:

本文提出一种智能体程序搜索方法,通过大语言模型编写程序操作冻结编码器API,在推理时提升小嵌入模型的检索质量,无需训练参数且跨任务迁移。

摘要:

测试时计算被广泛认为只对大型推理模型有益,小模型无法从中获益。对于密集检索,我们持相反观点,因为现代小型嵌入模型是从大型语言模型骨干蒸馏或适配而来,继承了其潜在的测试时计算能力。我们探究一个冻结的嵌入模型在仅推理时,无需辅助模型且部署时不训练任何参数,能获得多少检索质量提升。一个智能体循环中,大语言模型在冻结编码器API上编写程序,探索144个候选程序,得到12个帕累托最优程序,这些程序在成本比率从$c=1.2$到$14.7$之间权衡推理计算与质量,每个程序在所有14个发现任务上均提升了nDCG@10。这些程序不使用可训练参数,并恢复了经典检索原语,包括倒数秩融合、Fisher线性判别、Rocchio伪相关反馈和句子级MaxSim。未经修改地应用于19个保留任务和三个未见过的编码器家族,单个固定程序改进了大多数任务,中位数$Δ$nDCG@10为正,在$c\ge4$时胜率为54%至57%,且在发现过程中从未见过的编码器家族上增益最大。一个在相同任务上训练的匹配预算学习投影头无法以这种方式迁移,它在域内检索上提升了$+0.20$至$+0.25$ nDCG@10,但在每个保留编码器上均低于基线。因此,小型嵌入模型继承了可用的测试时计算潜力,冻结编码器将推理计算转化为检索增益,并迁移到新的语料库和编码器,无需每个领域的标签。

英文摘要:

Test-time compute is widely believed to benefit only large reasoning models, leaving small models with nothing to gain. We argue the opposite for dense retrieval, since modern small embedding models are distilled or adapted from large language model backbones and can inherit their latent test-time-compute potential. We ask how much retrieval quality a frozen embedding model gains at inference alone, with no auxiliary model and no parameters trained at deployment. An agentic loop in which a large language model writes programs over a frozen encoder API explores 144 candidates and yields twelve Pareto-optimal programs that trade inference compute for quality across cost ratios from $c{=}1.2$ to $14.7$, every one improving nDCG@10 on all 14 discovery tasks. The programs use no trainable parameters and recover classical retrieval primitives, among them reciprocal rank fusion, the Fisher linear discriminant, Rocchio pseudo-relevance feedback, and sentence-level MaxSim. Applied unmodified to nineteen held-out tasks and three unseen encoder families, a single fixed program improves the majority of tasks, with a positive median $Δ$nDCG@10 and a 54 to 57% win-rate at $c{\ge}4$, and the gains are largest on encoder families never seen during discovery. A matched-budget learned projection head trained on the same tasks does not transfer this way, improving in-domain retrieval by $+0.20$ to $+0.25$ nDCG@10 yet falling below baseline on every held-out encoder. Small embedding models therefore inherit usable test-time-compute potential, and a frozen encoder converts inference compute into retrieval gains that transfer to new corpora and encoders with no per-domain labels.

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

↑