PICASSO: Unleashing the Potential of GPU-centric Training for Wide-and-deep Recommender Systems

Yuanxing Zhang, Langshi Chen, Siran Yang, Man Yuan, Huimin Yi, Jie Zhang, Jiamang Wang, Jianbo Dong, Yunlong Xu, Yue Song, Yong Li, Di Zhang, Wei Lin, Lin Qu, Bo Zheng

TL;DR

This paper introduces PICASSO, a novel GPU-centric training framework designed to overcome the underutilization of hardware in training Wide-and-Deep (WDL) recommender systems. By employing packing, interleaving, and caching optimizations, PICASSO significantly boosts hardware utilization and achieves up to a 6x throughput improvement, drastically reducing daily training times and accelerating continuous delivery.

What Problem Does This Paper Address?

Modern e-commerce platforms rely heavily on recommender systems to match users with relevant products and drive revenue. Two key trends have emerged: the need for timely training to adapt to rapidly changing user interests and new products, and the adoption of Deep Neural Networks (DNNs) to improve accuracy. While GPU-centric training offers a solution to the computational demands, existing approaches for WDL models fail to achieve the same hardware utilization seen in Computer Vision (CV) or Natural Language Processing (NLP). This inefficiency stems from two main characteristics of WDL models: a massive number of input feature fields leading to fragmented operations, and numerous small compute kernels within feature interaction submodules. These issues create bottlenecks, preventing GPUs from reaching their full potential and slowing down the critical process of model retraining.

Methods

PICASSO tackles these challenges through a three-pronged approach:

  • Packing: This optimization aims to reduce the overhead of numerous small operations.
  • Data-Packing (D-Packing): Categorical feature IDs from different fields are combined into a single "packed ID tensor" to be processed by a single, fused kernel. This leverages SIMD capabilities of GPUs and reduces kernel launch overhead.
  • Kernel-Packing (K-Packing): Fuses multiple operations into a single kernel, specifically grouping kernels by their hardware resource utilization (computation, memory, or communication intensive) to avoid creating new bottlenecks.
  • Interleaving: This technique improves hardware utilization by overlapping operations that might otherwise stall.
  • Data-Interleaving (D-Interleaving): For large batch sizes that can cause out-of-memory issues, PICASSO uses a micro-batch approach. It allows users to slice workloads and interleave operations starting from a specified layer, effectively amortizing GPU memory usage.
  • Kernel-Interleaving (K-Interleaving): Establishes control dependencies among packed operations to ensure that an "interleaving group" is not bounded by a single hardware resource. This allows for better utilization across different hardware components.
  • Caching (HybridHash): This addresses the memory access patterns of embedding lookups.
  • HybridHash uses a two-tiered caching system: GPU device memory (Hot-storage) for frequently accessed embeddings and DRAM (Cold-storage) for the rest. It dynamically learns embedding access frequencies during warm-up iterations to efficiently manage Hot-storage, aiming for a high hit ratio without wasting expensive GPU memory.

PICASSO also supports a hybrid distributed training strategy, partitioning embedding parameters across executors (MP) while replicating dense parameters (DP), offering flexibility for different WDL model architectures.

Datasets

The paper utilizes a combination of datasets for evaluation:

  • Public Datasets: Criteo (a large CTR dataset) and Alibaba (an open-sourced industrial CTR dataset).
  • In-house Production Datasets: Used for system design evaluation, these datasets feature a large number of one- or multi-hot categorical features, reflecting real-world industrial scenarios.
  • Synthetic Dataset: Created by duplicating feature fields of the Product-2 dataset to evaluate the impact of increasing feature fields.

Key Insights and Ideas

  • WDL models are fundamentally different from CV/NLP: The sheer number of feature fields and the nature of feature interactions create unique computational patterns (fragmentary operations, small kernels) that standard optimizations for CV/NLP don't fully address.
  • Hardware underutilization is a software problem: The paper argues that the bottleneck isn't necessarily the hardware itself, but how the software framework interacts with it. PICASSO's success demonstrates that intelligent software design can unlock significant performance gains.
  • Packing is crucial for reducing overhead: The massive number of small operations in WDL models creates a significant launch overhead. Packing these operations drastically reduces this overhead.
  • Interleaving smooths out "pulse-like" GPU usage: WDL models often exhibit sporadic bursts of activity. Interleaving helps to smooth these out, leading to more consistent hardware utilization.
  • Smart caching is key for embedding lookups: Given the skewed distribution of feature ID access, a well-designed caching mechanism like HybridHash can significantly speed up embedding retrieval.

Key Results

  • Hardware Utilization: PICASSO increases hardware utilization by an order of magnitude compared to state-of-the-art baselines.
  • Throughput Improvement: Achieves up to a 6x throughput improvement for various industrial WDL models.
  • Reduced Training Time: Shortens daily training tasks by an average of 7 hours, significantly reducing the delay in continuous delivery.
  • Model Performance: For DLRM and DeepFM, PICASSO achieves comparable AUC to PyTorch and Horovod. For DIN and DIEN, it even shows slightly improved accuracy.
  • Scalability: Demonstrates near-linear scalability on CAN and MMOE models, and sublinear scalability on W&D, indicating good performance for large-scale training.
  • Production Deployment: A 1-trillion parameter WDL model trained on petabyte-scale data was efficiently trained in 27,256 GPU core hours, a 12x reduction in cost.

Limitations and Future Work

  • Hardware Customization: While PICASSO optimizes for commodity hardware, the paper acknowledges that customized hardware could offer further improvements.
  • Precision and Staleness Tolerance: WDL models are often sensitive to precision loss and gradient staleness, which limits the applicability of some generic DNN training optimizations.
  • Future Work: The authors mention that further improvements can be achieved by integrating other emerging technologies into the Tensorflow ecosystem and by exploring techniques like global batch normalization and specialized optimizers for very large batch sizes. They also suggest that PICASSO's optimizations are orthogonal to other acceleration techniques like GPU libraries and compiler optimizations, implying potential for further combined gains.

Summary updated

BibTeX
@inproceedings{zhang2022picasso,
  author = {Yuanxing Zhang and Langshi Chen and Siran Yang and Man Yuan and Huimin Yi and Jie Zhang and Jiamang Wang and Jianbo Dong and Yunlong Xu and Yue Song and Yong Li and Di Zhang and Wei Lin and Lin Qu and Bo Zheng},
  title = {{PICASSO: Unleashing the Potential of GPU-centric Training for Wide-and-deep Recommender Systems}},
  booktitle = {ICDE},
  year = {2022},
  url = {https://openreview.net/forum?id=PpAyqKhBsK},
}
Figure