[论文解读] Monolith: Real Time Recommendation System With Collisionless Embedding Table
Monolith 展示了一个大规模实时推荐系统,采用基于 Cuckoo 哈希设计的无冲突嵌入表,彻底消除哈希冲突,从而实现高模型质量与动态特征管理。通过实现超频参数同步和容错在线训练,该系统在计算开销极小的情况下达到最先进在线服务 AUC,证明了可将模型可靠性用于换取实时学习性能。
Building a scalable and real-time recommendation system is vital for many businesses driven by time-sensitive customer feedback, such as short-videos ranking or online ads. Despite the ubiquitous adoption of production-scale deep learning frameworks like TensorFlow or PyTorch, these general-purpose frameworks fall short of business demands in recommendation scenarios for various reasons: on one hand, tweaking systems based on static parameters and dense computations for recommendation with dynamic and sparse features is detrimental to model quality; on the other hand, such frameworks are designed with batch-training stage and serving stage completely separated, preventing the model from interacting with customer feedback in real-time. These issues led us to reexamine traditional approaches and explore radically different design choices. In this paper, we present Monolith, a system tailored for online training. Our design has been driven by observations of our application workloads and production environment that reflects a marked departure from other recommendations systems. Our contributions are manifold: first, we crafted a collisionless embedding table with optimizations such as expirable embeddings and frequency filtering to reduce its memory footprint; second, we provide an production-ready online training architecture with high fault-tolerance; finally, we proved that system reliability could be traded-off for real-time learning. Monolith has successfully landed in the BytePlus Recommend product.
研究动机与目标
- 为解决传统深度学习框架在工业推荐系统中的局限性,这些系统在处理稀疏、动态且非平稳的用户数据时表现不佳。
- 消除大规模系统中用户与物品 ID 持续增长时,因嵌入表哈希冲突而降低模型质量的问题。
- 通过紧密集成训练与推理,实现模型的实时更新,从而缩短对用户反馈的响应延迟。
- 通过优化参数同步频率与容错机制,在不牺牲模型质量的前提下降低计算开销。
- 构建一个可投入生产的、与 TensorFlow 集成的系统,支持弹性特征管理与大规模实时学习。
提出的方法
- 设计一种基于 Cuckoo 哈希实现的无冲突嵌入表,支持稀疏特征的动态增长与逐出。
- 引入可过期嵌入与基于频率的过滤机制,在保持模型表达能力的同时减少内存占用。
- 在训练与推理之间实现轻量级、高吞吐的参数同步机制,通过版本一致性权衡以减少网络带宽消耗。
- 采用容错架构,通过容忍偶尔的参数服务器(PS)故障,降低快照频率,利用模型对短期数据丢失的鲁棒性。
- 将嵌入表原生集成至 TensorFlow,作为一等操作,实现跨平台兼容性与性能优化。
- 采用动态特征逐出策略,优先保留高频特征,移除低频或过时特征,以维持内存效率。
实验结果
研究问题
- RQ1与传统哈希技巧方法相比,基于 Cuckoo 哈希的无冲突嵌入表是否能在大规模推荐系统中显著提升模型质量?
- RQ2训练与推理之间的实时参数同步如何影响在线推荐性能与系统效率?
- RQ3在不降低模型质量的前提下,系统可靠性可在多大程度上被牺牲以实现更快的模型更新?
- RQ4在在线学习系统中,参数同步频率与计算成本之间的最优权衡是什么?
- RQ5能否构建一个具备原生 TensorFlow 集成的生产级推荐系统,同时支持嵌入表的动态增长与实时训练?
主要发现
- 基于 Cuckoo 哈希的无冲突嵌入表在内存使用相近的情况下,完全消除了哈希冲突,显著提升了模型质量,优于易发生冲突的哈希技巧方法。
- Monolith 达到了最先进水平的在线服务 AUC,性能显著优于使用传统嵌入表的系统。
- 尽管将参数快照频率降低至每日一次,模型质量依然保持稳健,因为从 0.01% 的参数服务器丢失一天更新,仅影响不到 0.01% 的活跃用户。
- 通过牺牲部分参数服务器容错性以换取实时学习,系统维持了高可靠性和性能,证明了模型质量对短期数据丢失的鲁棒性远超预期。
- 轻量级同步机制在保持训练与推理组件间模型一致性的同时,显著降低了网络带宽消耗。
- 可过期嵌入与频率过滤机制在不损害模型表达能力的前提下减少了内存占用,从而高效支持动态稀疏特征的处理。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。