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

HyperPage:面向磁盘驻留图向量索引的学习型页面布局

HyperPage: Learned Page Layouts for Disk-Resident Graph Vector Indexes

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

Xinyu Zhang, Jingze Li, Baihua Zheng, Weiwei Sun

AI总结:

HyperPage是一种基于搜索智能体遍历日志学习的磁盘驻留图向量索引页面布局方法,在7种缓存预算下较MARGO减少5.2%-21.2%的页面读取量,小缓存时优势显著,还可缩短搜索时间。

摘要:

磁盘驻留图索引(如DiskANN)将每个向量及其图边存储为SSD页面上的一条记录。搜索过程需要访问其扩展的每条记录所在的页面,因此页面读取次数取决于页面布局,即哪些记录共享同一页面。采用强化学习训练的搜索智能体会反复查询此类索引,每次图遍历都会记录其扩展的记录。因此,我们利用已完成运行的日志,在给定内存预算下对索引进行布局,使后续运行的页面读取次数减少。相比之下,现有布局(如Starling和MARGO)仅基于图和向量计算,不使用日志。从日志中学习布局具有挑战性,因为日志必须在每种布局下保持有效,节省量取决于预算缓存的内容,且最优布局的寻找是NP难问题。我们的关键发现是,DiskANN风格的搜索基于内存中的编码及其扩展的记录进行路由,从不依赖它们的页面伙伴。因此,记录的遍历可通过重放为每种布局定价,且缓存的记录不会增加页面读取次数。据此,我们提出HyperPage,它首先基于未缓存记录的已记录遍历,为给定预算构建布局;然后通过重放验证步骤,选择一种布局以及热记录和页面缓存之间的预算分配。此外,拉格朗日下界可显示布局与最优解的差距。我们从一次Search-R1智能体运行中学习,并在具有不同奖励的后续运行中测试,涉及100万和2100万段落。在7种缓存预算下,HyperPage比MARGO少读取5.2%至21.2%的页面,且所有对比布局中没有更少的。当缓存较小时,优势最大,例如在100万索引的1%预算下,MARGO需要近3倍的预算才能达到相同的页面读取量。在2100万索引上,HyperPage还将每步搜索时间最多缩短10.4%,该节省效果在第二个智能体模型和第二个语料库上也成立。

英文摘要:

Disk-resident graph indexes such as DiskANN store each vector with its graph edges as one record on SSD pages. A search needs the page of every record it expands, so its page reads depend on the page layout, that is, which records share a page. Search agents trained with reinforcement learning query one such index run after run, and every graph traversal can be logged with the records it expands. We therefore use the logs of a finished run to lay out the index for a declared memory budget, so later runs read fewer pages. In contrast, existing layouts such as Starling and MARGO are computed from the graph and vectors and use no logs. Learning a layout from logs is challenging, because the logs must stay valid under every layout, the saving depends on what the budget caches, and the best layout is NP-hard to find. Our key observation is that DiskANN-style search routes on in-memory codes and the records it expands, never on their page-mates. As a result, the logged traversals price every layout by replay, and cached records add no page reads. Accordingly, we propose HyperPage, which first builds layouts for the declared budget on the logged traversals of uncached records. It then selects one layout, together with the budget split between hot records and a page cache, by replaying validation steps. In addition, a Lagrangian lower bound shows how far a layout may be from the optimum. We learn from one Search-R1 agent run and test on a later run with a different reward, over 1M and 21M passages. Across seven cache budgets, HyperPage reads 5.2% to 21.2% fewer pages than MARGO, and no compared layout reads fewer. The advantage is largest when the cache is small. For example, at 1% of the 1M index, MARGO needs nearly 3 times the budget to read as few pages. On the 21M index, HyperPage also cuts search time per step by up to 10.4%. The saving holds for a second agent model and a second corpus.

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

↑