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

CoWalk:面向磁盘驻留图的智能体批量查询的协作游走算法

CoWalk: Cooperative Walks for Agentic Batch Queries on Disk-Resident Graphs

Sun Yat-sen University(中山大学);Pengcheng Laboratory(鹏城实验室)

Qiao Liang, Zhiguang Chen, Yue Yu, Nong Xiao

AI总结:

CoWalk将磁盘驻留图的批量向量查询作为协作游走处理,减少I/O与距离计算,单线程速度提升1.6-1.9倍,吞吐量达基准的3.0-6.9倍。

摘要:

查询重写、深度研究和组相对策略优化(GRPO)等工作负载会发出一批语义相关的向量查询。现有的磁盘驻留近似最近邻(ANN)系统独立处理这些查询。在三个工作负载上,一批查询中31%至67%的I/O操作会获取到该批次中另一个查询已获取的页面。由该批次共享的页面缓存可消除这些I/O操作,但仅使单线程搜索速度提升1.1至1.2倍,因为搜索时间主要用于距离计算,且缓存不会改变任何查询的游走路径。我们提出CoWalk,它在单个线程上以协作游走的方式运行批次中的查询。每个查询保留自身的候选列表,每个批次仅读取一次页面,且每个获取页面上的全精度向量会被批次中的所有查询排序。因此,查询可通过更短的候选列表达到目标召回率,从而减少距离计算并发出更少的I/O操作。在召回率@10为0.95时,CoWalk在单个线程上处理批次的速度比最快的单查询基准快1.6至1.9倍,且I/O操作减少2.8至6.9倍。在服务器上,它在类似批次延迟下的吞吐量是该基准的3.0至6.9倍。

英文摘要:

Workloads such as query rewriting, deep research and group-relative policy optimization (GRPO) issue batches of semantically related vector queries. Existing disk-resident approximate nearest neighbor (ANN) systems process these queries independently. On three workloads, 31 to 67 percent of the I/Os of a batch fetch a page that another query of the batch has already fetched. A page cache shared by the batch removes these I/Os, yet it makes a single-thread search only $1.1$ to $1.2{\times}$ faster, because the search time goes to distance computation and the cache does not change the walk of any query. We present CoWalk, which runs the queries of a batch as cooperating walks on one thread. Every query keeps its own candidate list, a page is read once per batch, and the full-precision vector on every fetched page is ranked by every query of the batch. A query therefore reaches the target recall with a shorter candidate list, which computes fewer distances and issues fewer I/Os. At recall@10 of 0.95, CoWalk answers a batch on one thread $1.6$ to $1.9{\times}$ faster than the fastest per-query baseline and issues $2.8$ to $6.9{\times}$ fewer I/Os. On a server it serves $3.0$ to $6.9{\times}$ the throughput of that baseline at a similar batch latency.

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

↑