TL;DR
PICASSO is a deep learning training framework designed to solve the massive GPU underutilization seen in large-scale recommender systems. By implementing novel packing, interleaving, and caching strategies, it achieves up to a 6x throughput improvement, cutting daily training times at Alibaba by an average of 7 hours.
What Problem Does This Paper Address?
While GPUs have revolutionized Computer Vision (CV) and Natural Language Processing (NLP), they often struggle with Wide-and-Deep Learning (WDL) models used in recommendation. Despite having massive compute power, GPUs in RecSys training often sit idle or underutilized, sometimes reaching less than 20-30% utilization compared to the 95%+ seen in CV tasks.
The authors identify two main culprits:
- Fragmentary Operations: WDL models ingest thousands of individual feature fields. This creates a "death by a thousand cuts" scenario where the overhead of launching thousands of tiny compute kernels (fragmentary operations) outweighs the actual computation time.
- Pulse-like Resource Usage: Training alternates between memory-intensive embedding lookups (waiting on DRAM/PCIe) and computation-intensive neural network layers (waiting on GPU SMs). This leads to sporadic, "pulse-like" usage where one resource is a bottleneck while others are wasted.
Methods
PICASSO introduces a three-pronged software-system approach to "unleash" the GPU:
- Packing: To fix fragmentation, PICASSO uses Data-Packing to combine categorical feature IDs from different fields into single, larger tensors. It follows this with Kernel-Packing, fusing multiple small operations into larger, GPU-friendly kernels that fit the SIMD (Single-Instruction-Multiple-Data) paradigm.
- Interleaving: To smooth out resource usage, PICASSO uses Data-Interleaving (micro-batching) and Kernel-Interleaving. This allows the system to overlap memory-heavy embedding lookups for one set of data with the compute-heavy MLP layers of another, effectively pipelining the training process.
- HybridHash Caching: Recognizing that data access is highly skewed (a small fraction of items/users are extremely popular), PICASSO implements a dual-storage system. Frequently accessed "hot" embeddings are cached in high-bandwidth GPU memory, while "cold" embeddings remain in larger but slower DRAM.
Datasets
The framework was evaluated on both public benchmarks and massive internal production datasets:
- Public: Criteo (1TB click logs) and Alibaba (DIN/DIEN datasets).
- Industrial: Three representative production datasets from Alibaba (Product-1, 2, and 3) featuring up to 1 trillion parameters and petabytes of data. These were used to test models like Wide&Deep, CAN, and MMoE.
Key Insights and Ideas
- The "Fragmentary" Bottleneck: The sheer number of feature fields is a bigger bottleneck than the total amount of data. Launching a CUDA kernel has a non-trivial cost; doing it thousands of times per batch is catastrophic for performance.
- Resource Sporadicity: As shown in Figure 4, different phases of training (Gather, Shuffle, MatMul) hit different hardware limits (PCIe, Network, GPU). Without interleaving, the system is always waiting for the slowest component of the current phase.
- Data Skew is a Feature: In recommendation, 20% of IDs often cover 70-99% of the training data. This makes even a small GPU cache (e.g., 1GB-2GB) incredibly effective at reducing DRAM traffic.
Key Results
- Throughput: PICASSO delivered up to 6x throughput speedup for industrial models compared to optimized baselines.
- Efficiency: It increased hardware utilization by an order of magnitude. In production, it reduced the wall-time of daily training tasks from 8.6 hours to just 1.4 hours.
- Scalability: The system demonstrated near-linear scalability when scaling from 1 to 128 GPU workers for complex models like CAN and MMoE.
- Real-world Impact: A 1-trillion parameter model that would have taken three months to train on a baseline framework was completed in just nine days using PICASSO.
Limitations and Future Work
- Batch Size Sensitivity: While larger batch sizes improve throughput (via interleaving), some models are sensitive to large batches and may suffer accuracy loss. The authors suggest using auxiliary optimizers like LAMB to mitigate this.
- Hardware Specifics: While PICASSO excels on commodity hardware, the authors note that custom-designed hardware (like specialized interconnects) could provide even further gains.
- Integration: Future work includes deeper integration with emerging compiler technologies (like MLIR) and more advanced topology-aware communication strategies to further reduce IO bottlenecks.
PICASSO has been deployed in Alibaba's production clusters and released as an open-source project named HybridBackend.
Summary updated