Meta的广告系统用缓存优化用户表征计算,节省资源且不耽误响应速度。
ERCache: An Efficient and Reliable Caching Framework for Large-Scale User Representations in Meta's Ads System
- 按访问模式分层缓存,区分主用与备用缓存策略。
- 支持30多个排序模型,缓存后仍满足服务响应要求。
- 适合大规模推荐系统中需要低延迟和高可靠性的场景。
深度学习模型在计算用户表征时日益复杂,给有限的计算资源和严格的SLA带来挑战。以往研究聚焦于优化模型推理,却忽视了一个关键问题:在大型社交网络中,是否每次广告请求都必须执行用户模型推理?我们分析了Meta的用户访问模式,发现大多数用户模型推理集中在短时间内完成。这一发现揭示了模型复杂度、嵌入新鲜度与服务SLA之间的三角关系。基于此,我们设计并实现了ERCache——一个高效可靠的缓存框架,用于社交网络广告推荐系统中的大规模用户表征。ERCache将缓存分为直接缓存和故障转移缓存,并为不同模型定制设置与淘汰策略,有效平衡了模型复杂度、嵌入新鲜度与服务SLA,即使考虑缓存带来的数据陈旧性。ERCache已在Meta部署超过六个月,支持超过30个排序模型,在节约计算资源的同时满足了服务SLA要求。
原文摘要 · Abstract (English)
The increasing complexity of deep learning models used for calculating user representations presents significant challenges, particularly with limited computational resources and strict service-level agreements (SLAs). Previous research efforts have focused on optimizing model inference but have overlooked a critical question: is it necessary to perform user model inference for every ad request in large-scale social networks? To address this question and these challenges, we first analyze user access patterns at Meta and find that most user model inferences occur within a short timeframe. T his observation reveals a triangular relationship among model complexity, embedding freshness, and service SLAs. Building on this insight, we designed, implemented, and evaluated ERCache, an efficient and robust caching framework for large-scale user representations in ads recommendation systems on social networks. ERCache categorizes cache into direct and failover types and applies customized settings and eviction policies for each model, effectively balancing model complexity, embedding freshness, and service SLAs, even considering the staleness introduced by caching. ERCache has been deployed at Meta for over six months, supporting more than 30 ranking models while efficiently conserving computational resources and complying with service SLA requirements.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。