[Paper Review] The Architectural Implications of Facebook's DNN-based Personalized Recommendation
This paper presents a detailed performance analysis of production-scale deep neural network (DNN)-based personalized recommendation systems at Facebook, focusing on inference workloads across Intel server generations. It reveals that inference latency varies by 60% across Haswell, Broadwell, and Skylake CPUs, and that batching and co-location significantly improve throughput, with Skylake excelling in batched, compute-intensive workloads due to AVX-512 and higher compute density.
The widespread application of deep learning has changed the landscape of computation in the data center. In particular, personalized recommendation for content ranking is now largely accomplished leveraging deep neural networks. However, despite the importance of these models and the amount of compute cycles they consume, relatively little research attention has been devoted to systems for recommendation. To facilitate research and to advance the understanding of these workloads, this paper presents a set of real-world, production-scale DNNs for personalized recommendation coupled with relevant performance metrics for evaluation. In addition to releasing a set of open-source workloads, we conduct in-depth analysis that underpins future system design and optimization for at-scale recommendation: Inference latency varies by 60% across three Intel server generations, batching and co-location of inferences can drastically improve latency-bounded throughput, and the diverse composition of recommendation models leads to different optimization strategies.
Motivation & Objective
- To address the lack of representative, production-scale DNN workloads for recommendation systems in academic research.
- To characterize the unique performance bottlenecks in large-scale recommendation inference, including memory access patterns and compute intensity.
- To evaluate the impact of hardware platform heterogeneity (Intel Haswell, Broadwell, Skylake) on inference latency and throughput.
- To study the effects of batching and co-location of inference jobs on resource utilization and performance variability.
- To provide open-source workloads and trace data to enable future system and architecture optimization for at-scale recommendation.
Proposed method
- Characterized three major production recommendation model classes (RMC1, RMC2, RMC3) based on real-world Facebook data center traces.
- Designed synthetic DNN workloads that mirror the compute and memory characteristics of real recommendation models, including embedding tables and fully-connected layers.
- Evaluated inference performance across three Intel server generations (Haswell, Broadwell, Skylake) under varying batch sizes and workloads.
- Measured latency-bounded throughput as a key performance metric, reflecting real-world SLA constraints.
- Conducted co-location experiments to assess performance variability when multiple inference jobs share the same hardware.
- Released open-source embedding trace generators to enable memory system and caching optimization studies.
Experimental results
Research questions
- RQ1How do inference performance characteristics vary across different generations of Intel CPUs in production-scale recommendation workloads?
- RQ2What is the impact of batching and co-location on latency-bounded throughput in recommendation inference?
- RQ3How do the distinct architectural traits of RMC1, RMC2, and RMC3 models influence their performance bottlenecks and optimal hardware configurations?
- RQ4To what extent do existing public benchmarks like MLPerf-NCF represent the compute and memory demands of real-world production recommendation systems?
- RQ5What are the key micro-architectural features (e.g., SIMD width, cache size, DRAM bandwidth) that affect inference performance and scheduling in data centers?
Key findings
- Inference latency varies by up to 60% across Intel Haswell, Broadwell, and Skylake server generations, with Broadwell achieving the lowest latency at unit batch size.
- Batched inference throughput is maximized on Skylake due to higher compute density and better utilization of AVX-512 instructions, achieving up to 30% higher throughput than other generations.
- Co-location of multiple inference jobs increases performance variability, highlighting the need for intelligent scheduling to manage resource contention.
- The use of latency as the sole performance metric is insufficient for data center-scale workloads; latency-bounded throughput is a more representative metric under SLA constraints.
- Recommendation models exhibit diverse performance bottlenecks: RMC1 and RMC3 are compute-intensive and benefit from high core frequency and wide SIMD units, while embedding-heavy models are limited by memory bandwidth and cache capacity.
- The open-source release of embedding trace generators enables future research into intelligent caching, prefetching, and memory system optimizations for recommendation workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.