Accelerating Recommendation System Training by Leveraging Popular Choices

Muhammad Adnan, Yassaman Ebrahimzadeh Maboud, Divya Mahajan, Prashant J. Nair

Abstract

Modern recommendation systems are constrained by the massive size of embedding tables, which often exceed GPU memory capacity. This leads to significant performance bottlenecks due to frequent CPU-GPU data transfers. We introduce FAE (Frequently Accessed Embeddings), a framework that leverages the inherent skew in data access patterns. By caching the most frequently accessed "hot" embeddings directly on the GPU, FAE reduces communication overhead and achieves up to a 2.3× speedup in training time with zero loss in accuracy.

Introduction

Recommendation systems, such as those powering Netflix or Facebook, rely on a combination of compute-intensive neural networks and memory-intensive embedding tables. While GPUs are highly efficient for neural network operations, embedding tables can reach hundreds of gigabytes, necessitating hybrid training approaches where embeddings reside in CPU main memory. This creates a "PCIe tax," where the slow data transfer between CPU and GPU becomes the primary training bottleneck.

The Power of Popularity

The FAE framework is built on the observation that access patterns in recommendation datasets are highly skewed. A small subset of "blockbuster" items or active users accounts for the vast majority of embedding lookups.

Figure B: Embedding table size and input hotness across datasets.

As shown in Figure B, in datasets like Criteo Terabyte, a mere 0.7% of the embedding table can account for over 81% of all accesses. Standard training systems fail to exploit this, treating all entries equally and wasting GPU resources on rarely accessed data.

The FAE Framework

FAE partitions embedding data into "hot" and "cold" entries. It employs a statistical profiler to identify hot entries with minimal overhead and replicates them across the memory of every GPU in the system.

Figure D: FAE framework layout with hot embeddings cached on GPUs.

A core component of FAE is the Shuffle Scheduler, which organizes training data into purely "hot" and purely "cold" mini-batches. By interleaving these batches, the system can perform the majority of training steps entirely on the GPU, bypassing the PCIe bus for hot batches while ensuring the model still learns from the full dataset.

Results and Discussion

Evaluations using DLRM and TBSM models across four industry-standard datasets demonstrate that FAE provides an average speedup of 2.3× compared to CPU-only training and 1.52× over state-of-the-art hybrid frameworks. Furthermore, FAE reduces CPU-GPU communication by 1.54× and decreases per-GPU power consumption by nearly 10%. Crucially, these performance gains are achieved without any degradation in model accuracy.

Conclusion

FAE demonstrates that intelligent data partitioning based on access frequency can significantly accelerate recommendation system training. Future work will address dynamic hotness identification to handle shifting data distributions and scaling the framework to multi-node environments.

Summary updated

BibTeX
@article{adnan2021accelerating,
  author = {Muhammad Adnan and Yassaman Ebrahimzadeh Maboud and Divya Mahajan and Prashant J. Nair},
  title = {{Accelerating Recommendation System Training by Leveraging Popular Choices}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
}
Figure