arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.16341cs.LGcs.DB
收藏

过滤式近似最近邻搜索作为相变:选择性估计误差导致计划遗憾

Filtered ANN as a Phase Transition: When Selectivity-Estimation Error Causes Plan Regret

VaidhyaMegha Private Limited, India(VaidhyaMegha 私人有限公司,印度)

Madhulatha Mandarapu, Sandeep Kunkunuru

AI总结:

本文研究过滤式近似最近邻搜索中,选择性估计误差如何导致计划遗憾,并揭示其仅在相变边界附近产生,遗憾呈对数宽度楔形,通过有限尺度标度验证。

摘要:

过滤式近似最近邻(ANN)查询返回满足属性谓词P(选择性为s)的向量中最近的k个向量。最佳执行策略——预过滤、后过滤或内过滤——随s变化,因此系统必须估计s并选择。我们将其建模为在具有相(各策略获胜区域)的景观上的argmax,相由边界分隔,并表明选择性估计误差仅在边界周围的临界区域产生计划遗憾(相对于最优策略的召回损失)。遗憾是一个对数宽度等于乘法估计误差ε、高度等于局部悬崖|V'(s*)|ε的楔形;翻转裕度1/|V'(s*)|是作为局部边界理论重新出现的兄弟基数估计研究的条件数。两个相边界来自独立的数学:顺序统计将后过滤悬崖置于s ~ k/K,而站点渗流将内过滤悬崖置于s_c ~ 0.83/M(图度数M,与语料库大小无关)。临界性仅在受限预算B < sqrt(k n)下存在。在预先注册的决策规则下,我们在合成扫描和真实SIFT1M上确认,遗憾在边界处集中约290倍,且遗憾曲线在语料库大小的两个数量级上服从有限尺寸标度坍缩为一个通用楔形。真实的近似索引不会错误定位边界,但有偏的成本模型会打开一个持续的校准偏差带,估计误差鲁棒性无法修复。贡献在于表征,而非新索引。代码和完整的预注册已公开。

英文摘要:

A filtered approximate-nearest-neighbor (ANN) query returns the k nearest vectors among those satisfying an attribute predicate P of selectivity s. The best execution strategy -- pre-filter, post-filter, or in-filter -- changes with s, so a system must estimate s and choose. We model this as an argmax over a landscape with phases (regions where each strategy wins) separated by boundaries, and show that selectivity-estimation error produces plan regret -- recall lost versus the oracle strategy -- only in the critical regions around those boundaries. The regret is a wedge of log-width equal to the multiplicative estimation error epsilon and height equal to the local cliff |V'(s*)| epsilon; the flip-margin 1/|V'(s*)| is the condition number of a sibling cardinality-estimation study reappearing as the local boundary theory. The two phase boundaries follow from independent mathematics: order statistics place the post-filter cliff at s ~ k/K, and site percolation places the in-filter cliff at s_c ~ 0.83/M for graph degree M (corpus-size independent). Criticality exists only under a constrained budget B < sqrt(k n). Under pre-registered decision rules we confirm, on synthetic sweeps and real SIFT1M, that regret concentrates ~290x at the boundary and that the regret curves obey a finite-size scaling collapse onto one universal wedge across two decades of corpus size. A real approximate index does not mis-locate the boundary, but a biased cost model opens a persistent miscalibration band that estimation-error robustness cannot fix. The contribution is a characterization, not a new index. Code and the full pre-registration are public.

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

↑