arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00400cs.IRcs.LG
收藏

实时推荐中的增强批量查询架构

An Enhanced Batch Query Architecture in Real-time Recommendation

Bilibili(哔哩哔哩)

Qiang Zhang, Zhipeng Teng, Disheng Wu, Jiayin Wang

AI总结:

本文提出一种面向实时推荐的高性能批量查询架构,通过优化哈希结构和混合存储,在哔哩哔哩系统中实现模型计算量10倍增长而资源消耗极小。

摘要:

在网站和应用的工业推荐系统中,从数十亿内容池中召回并预测与用户兴趣相关的Top-N结果需要在毫秒内完成。为应对持续的数据增长并提升实时推荐性能,我们设计并实现了一种面向实时推荐系统的高性能批量查询架构。我们的贡献包括:通过缓存行感知探测方法优化哈希结构以增强合并哈希,并在此基础上实现混合存储键值服务。实验表明,该方法在批量查询吞吐量上显著超越传统哈希表,结合并行优化后可达到随机内存访问查询吞吐量的90%。对NVMe的支持,集成热冷数据两层存储,显著降低了资源消耗。此外,系统支持动态更新、属性和特征嵌入表的自动分片,并引入创新的批量查询一致性协议,从而增强实时增量学习更新的有效性。该架构已在哔哩哔哩推荐系统中部署并使用超过一年,该视频内容社区拥有数亿用户,在资源增长极小的情况下支持模型计算量10倍增长,在保持系统实时性能的同时提升了推荐效果。

英文摘要:

In industrial recommendation systems on websites and apps, it is essential to recall and predict top-n results relevant to user interests from a content pool of billions within milliseconds. To cope with continuous data growth and improve real-time recommendation performance, we have designed and implemented a high-performance batch query architecture for real-time recommendation systems. Our contributions include optimizing hash structures with a cacheline-aware probing method to enhance coalesced hashing, as well as the implementation of a hybrid storage key-value service built upon it. Our experiments indicate this approach significantly surpasses conventional hash tables in batch query throughput, achieving up to 90% of the query throughput of random memory access when incorporating parallel optimization. The support for NVMe, integrating two-tier storage for hot and cold data, notably reduces resource consumption. Additionally, the system facilitates dynamic updates, automated sharding of attributes and feature embedding tables, and introduces innovative protocols for consistency in batch queries, thereby enhancing the effectiveness of real-time incremental learning updates. This architecture has been deployed and in use in the bilibili recommendation system for over a year, a video content community with hundreds of millions of users, supporting 10x increase in model computation with minimal resource growth, improving outcomes while preserving the system's real-time performance.

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

↑