arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.13145cs.IR
收藏

聚类反击:使用Helmsman构建经济高效且高性能的大规模ANNS

The Clustering Strikes Back: Building Cost-Effective and High-Performance ANNS at Scale with Helmsman

East China Normal University(华东师范大学);Xiaohongshu Inc(小红书);Shanghai Jiaotong University(上海交通大学)

Yuchen Huang, Baiteng Ma, Yiping Sun, Yang Shi, Xiao Chen, Xiaocheng Zhong, Zhiyong Wang, Yao Hu, Erci Xu, Chuliang Weng

AI总结:

针对内存ANNS成本高昂的问题,提出基于全闪存服务器的聚类ANNS系统Helmsman,通过用户态存储栈、分级学习剪枝和GPU加速构建,节省90%硬件成本,实现十亿级索引快速重建。

摘要:

RedNote(即小红书,一个全球规模的社交网络平台)广泛采用近似最近邻搜索(ANNS)来支持其搜索、推荐和广告服务。由于苛刻的服务水平协议(SLA),我们不得不依赖基于内存的图ANNS(即HNSW)来提供高吞吐量和低延迟。然而,不断增长的用户群和内容量导致内存占用爆炸性增长,进而带来巨大的资本支出和运营支出。在探索了各种替代方案后,我们发现基于全闪存服务器构建聚类ANNS是有前景的。然而,我们仍然面临来自内核I/O栈、固定剪枝策略和缓慢索引构建的严重开销。我们提出了HELMSMAN,一个高性能且经济高效的基于聚类的ANNS系统,它结合了面向ANNS的用户态存储栈、分级学习剪枝模块和GPU加速的构建流水线。HELMSMAN节省了超过90%的硬件成本,并能在数小时内完成十亿级索引的(重)构建。在当前的生产部署中,稳定运行数月,40台机器现在承载了之前需要约35,000个核心和0.35 PB DRAM的ANNS工作负载。

英文摘要:

RedNote (a.k.a., Xiaohongshu, a global-scale social network platform) widely adopts approximate nearest neighbor search (ANNS) to power its search, recommendation, and advertising services. Due to the demanding Service Level Agreements (SLAs), we have to rely on in-memory graph-based ANNS (i.e., HNSW) to provide high throughput and low latency. However, the ever-growing user base and content volume have led to an explosive increase in memory footprint and consequently huge CapEx and OpEx. After exploring various alternatives, we find that building a clustering-based ANNS on top of all-flash servers can be promising. Yet, we still experience severe overheads from the kernel I/O stack, a fixed pruning strategy, and slow index construction. We present HELMSMAN, a high-performance and cost-effective clustering-based ANNS system, which combines an ANNS-oriented userspace storage stack, a leveling-learned pruning module, and GPU-accelerated pipelines of construction. HELMSMAN saves over 90% of hardware costs and enables billion-scale index (re)builds within hours. In the current production deployment, operating stably for several months, 40 machines now host ANNS workloads that previously required about 35,000 cores and 0.35 PB DRAM.

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

↑