arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.16148cs.DBcs.IRcs.LG
收藏

带最优性间隙约束的校准早停法用于约束向量搜索

Calibrated Early Termination with Bounded Optimality Gaps for Constrained Vector Search

Fudan University(复旦大学);Singapore Management University(新加坡管理大学)

Xinyu Zhang, Jingze Li, Baihua Zheng, Weiwei Sun

AI总结:

本研究针对约束向量搜索的早停问题,提出带最优性间隙约束的校准早停规则CaST,其失败概率可控,在百万级数据集上比其他校准规则更快,成本接近类别最优值。

摘要:

基于学习到的嵌入的向量搜索是推荐系统和检索增强生成的检索层,许多应用会限制每个类别可贡献的答案项数量。图索引通过最佳优先遍历回答查询,其停止位置决定了计算成本和答案是否精确。我们研究此类约束k近邻(k-NN)查询的早停问题,普通k-NN是其特例,旨在找到成本最低且答案精确概率至少为1-ε的停止规则。现有学习型早停方法针对平均召回率,无法保证答案精确。多重检验可将任何参数化停止规则校准至我们的目标,但无法说明具有相同风险和观测值的更优规则能节省多少成本。要回答此问题,需对无法枚举的规则族的最优值求下界,且该下界需对查询总体有效。我们的核心思路是明确规则可使用的观测值,并考虑所有对这些观测值单调的规则。风险约束下的停止问题转化为序多面体上的线性规划,其拉格朗日极小解形成嵌套的阶梯规则链,可通过动态规划精确计算。沿该链的固定序列二项式检验对我们的规则CaST进行校准,其失败概率最多为ε,置信度为1-δ。拉格朗日弱对偶性可在所有风险水平下同时对所声明类别的最优值求下界,无需对规则应用联合界。在两个各含100万项的数据集上,CaST在记录的搜索中重放时,在0.03至0.10的风险水平下,相对于类别最优值的成本最多为1.132倍,每个设置的联合置信度为95%;因此,更大的节省需使用类别外的规则。在保留查询的常见风险目标下,CaST比我们测试的其他所有校准规则更快,其他规则的平均时间多4.8%至45.5%。

英文摘要:

Vector search over learned embeddings is the retrieval layer of recommendation and retrieval-augmented generation, and many applications cap how many answer items one category may contribute. Graph indexes answer a query by best-first traversal, and where it stops determines its cost and whether its answer is exact. We study early termination for such constrained $k$-nearest-neighbor ($k$-NN) queries, with plain $k$-NN as a special case, and seek the cheapest stopping rule whose answer is exact with probability at least $1-\varepsilon$. Learned early-termination methods instead target average recall, which does not guarantee exact answers. Multiple testing can calibrate any parameterized stopping rule to our target, but it cannot tell how much a better rule with the same risk and observations would save. Answering this needs a lower bound on the optimum of a rule family too large to enumerate, valid for the query population. Our key idea is to declare the observations a rule may use and to consider every rule monotone in them. Risk-constrained stopping then becomes a linear program over an order polytope, whose Lagrangian minimizers form a nested chain of staircase rules computed exactly by dynamic programming. Fixed-sequence binomial tests along this chain calibrate our rule, CaST, whose failure probability is at most $\varepsilon$ with confidence $1-δ$. Lagrangian weak duality bounds the optimum of the declared class from below at all risk levels at once, without a union bound over the rules. On two datasets of one million items each, CaST replayed on logged searches costs at most 1.132 times the class optimum for risk levels from 0.03 to 0.10, at 95% joint confidence per setting. Larger savings thus need a rule outside the class. At a common risk target on held-out queries, CaST is faster than every other calibrated rule we time, which take 4.8% to 45.5% more mean time.

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

↑