TL;DR
Alibaba's massive e-commerce operations rely heavily on deep learning (DL), but existing benchmarks don't accurately reflect their diverse and evolving workloads. This paper introduces "AI Matrix," a comprehensive benchmark suite designed to represent over 90% of DL GPU usage in Alibaba's data centers, covering computer vision, recommendation, and language processing. AI Matrix aims to guide hardware selection and optimize DL infrastructure for real-world e-commerce applications.
What Problem Does This Paper Address?
As deep learning becomes integral to powering large-scale e-commerce platforms like Alibaba's, understanding the computational demands of these applications is crucial for designing efficient data centers and optimizing hardware. However, existing DL benchmarks often fall short. They can be too general, failing to capture the specific nuances of e-commerce workloads, or they may use outdated model collections that don't keep pace with the rapid advancements in DL. Some benchmarks also focus on isolated components (like specific operators or layers) rather than holistic application performance. This gap leaves a need for a benchmark that truly mirrors the diverse and dynamic DL landscape within a major e-commerce environment.
Methods
The core of this paper is the introduction of "AI Matrix," a benchmark suite meticulously curated to represent Alibaba's real-world DL applications. The authors collected DL models that are either directly in use or closely resemble those deployed in Alibaba's e-commerce ecosystem. Where direct DL models weren't available, they incorporated actual e-commerce applications. The benchmark suite is categorized into three main areas:
- Computer Vision: For image content understanding, including tasks like image classification, object detection, and text recognition.
- Recommendation: For personalized content delivery, ranking, and advertising.
- Language Processing: For tasks such as translation, question answering, and sentiment analysis.
The paper details the specific models chosen within each category, highlighting their relevance to Alibaba's operations. They also provide performance metrics like FLOPS, memory read, and arithmetic intensity for each benchmarked model.
Datasets
The paper mentions several datasets used for training and evaluation within the AI Matrix benchmarks:
- ImageNet & Synthetic: Used for image classification models like GoogLeNet, ResNet50, and DenseNet121.
- PASCAL VOC: Used for object detection models like SSD and DSSD.
- MS COCO: Used for object detection models like Mask RCNN and CPN.
- SynthText & ICDAR15: Used for text recognition models like SegLink.
- Synth 90k: Used for text recognition models like CRNN.
- Amazon Dataset: Used for recommendation models like DIN and DIEN.
- Census Income: Used for the Wide&Deep recommendation model.
- Citation Network: Used for the GCN recommendation model.
- Movielens: Used for the NCF recommendation model.
- WMT German-English: Used for the NMT language processing model.
- Wikipedia, BooksCorpus, SQUAD: Used for the BERT language processing model.
AI Matrix itself is presented as a new benchmark suite, differing from existing ones by its direct focus on Alibaba's specific, high-impact DL workloads.
Key Insights and Ideas
- Real-world relevance is paramount: The paper strongly emphasizes that generic benchmarks are insufficient for optimizing large-scale, specialized DL deployments like those in e-commerce. AI Matrix's strength lies in its direct mapping to actual production workloads.
- GPU underutilization is a significant issue: Despite many AI Matrix benchmarks exhibiting high arithmetic intensity, their performance on NVIDIA V100 GPUs falls short of the theoretical peak. This suggests that current DL applications, even those considered compute-intensive, are not efficiently utilizing the available GPU resources.
- Diverse DL needs: The breakdown into computer vision, recommendation, and language processing highlights the multifaceted nature of DL in e-commerce, requiring a benchmark that spans these critical domains.
- Open-sourcing for broader impact: Making a majority of the AI Matrix benchmarks public demonstrates a commitment to advancing the field beyond Alibaba, benefiting hardware vendors, researchers, and other organizations.
Key Results
The paper provides a detailed table (Table I) outlining the performance characteristics of various DL models within the AI Matrix benchmark. For instance:
- Computer Vision: Models like SSD and Faster R-CNN show high FLOPS/s (e.g., 4.53 x 10^12 and 5.48 x 10^12 respectively), indicating significant computational demands. Text recognition models like CRNN also exhibit high arithmetic intensity.
- Recommendation: Models like DIN and DIEN are shown to have lower arithmetic intensity compared to some vision models, likely due to their reliance on large embedding layers and fully-connected components.
- Language Processing: BERT demonstrates a very high FLOPS/s (9.66 x 10^12), reflecting its complexity.
- Roofline Analysis: Figure 1 illustrates that even models with high arithmetic intensity (e.g., BERT, ResNet50, SegLink) are operating far below the theoretical roofline of an NVIDIA V100 GPU, indicating substantial room for optimization.
Limitations and Future Work
Limitations: * The paper notes that the performance of benchmarks is "still far away from the roofline," indicating that compute resources are not fully utilized. The exact reasons for this underutilization require further investigation.
Future Work: * The AI Matrix collection will be updated to support new DL advancements. * Future development will focus on supporting low-precision inference (FP16, INT8) and mixed-precision training (FP32/FP16) on NVIDIA GPUs. * Support for training on single machines with multiple GPUs and on distributed machines is also planned.
Summary updated