A Modular Benchmarking Infrastructure for High-Performance and Reproducible Deep Learning

Tal Ben-Nun, Maciej Besta, Simon Huber, Alexandros Nikolaos Ziogas, Daniel Peter, Torsten Hoefler

Introduction

The deep learning (DL) ecosystem has evolved into a fragmented landscape of competing frameworks (TensorFlow, PyTorch, Caffe2), diverse hardware (CPUs, GPUs, FPGAs), and specialized libraries. This fragmentation has created a "Wild West" for researchers, where fair and reproducible benchmarking is nearly impossible. Existing benchmarks often function as "black boxes," providing aggregate metrics like FLOPS without explaining the underlying causes of performance differences. Furthermore, subtle implementation variations—such as how a framework handles operator fusion or memory management—can lead to divergent results even when using the same algorithm.

Comparison of Deep500 against existing deep learning benchmarks across various metrics and criteria.

Deep500 addresses these challenges by providing a modular "meta-framework" designed for "white-box" infrastructure. It ensures reproducibility and verifiability across the entire DL pipeline by factorizing the process into distinct, interoperable levels.

The Deep500 Architecture

Deep500 is built upon five pillars: Customizability, Metrics, Performance, Validation, and Reproducibility. To enable granular analysis, the framework factorizes deep learning into four hierarchical levels:

  1. Level 0 (Operators): The fundamental building blocks, such as convolutions or matrix multiplications.
  2. Level 1 (Network Processing): The directed acyclic graph (DAG) structure of operators.
  3. Level 2 (Training): Optimization loops and update rules, including standard optimizers like SGD and Adam.
  4. Level 3 (Distributed Training): The mechanisms for sharing gradients and parameters across multiple nodes.
The four levels of Deep500 factorization: Operators, Networks, Training, and Distributed Training.

Rather than acting as a new DL engine, Deep500 provides Python and C++ interfaces that wrap around existing frameworks. By utilizing ONNX (Open Neural Network Exchange) as a universal intermediate representation, it allows researchers to perform "interoperability testing"—for example, executing a TensorFlow model using a custom C++ distributed optimizer to isolate performance bottlenecks.

Experimental Evaluation

The researchers evaluated Deep500 using standard architectures (ResNet-18, ResNet-50, AlexNet) and datasets (MNIST, CIFAR-10/100, ImageNet). Tests were conducted on the CSCS Piz Daint supercomputer, scaling up to 256 nodes, each equipped with an NVIDIA Tesla P100 GPU.

Key Results and Insights

  • Negligible Overhead: The benchmarking layer adds less than 1% performance overhead compared to native framework execution.
  • Extreme Scalability: Deep500 matched or exceeded the performance of specialized tools like Horovod when scaling to 256 nodes.
  • Optimization Discovery: The framework's Level 1 transformations allowed for the implementation of "Microbatch" splitting, which enabled PyTorch to process large datasets that previously caused Out-of-Memory (OOM) errors. Conversely, it identified instances where similar optimizations slowed down TensorFlow due to memory copying overhead.
  • Fair Comparison: The evaluation revealed that while PyTorch often demonstrated superior raw operator performance, Caffe2’s implementation of operator fusion provided significant advantages during full training loops.

Conclusion and Future Work

Deep500 provides a necessary foundation for transparent and reproducible deep learning research. By breaking the DL pipeline into modular levels, it allows for the pinpointing of bottlenecks and the fair comparison of disparate software stacks. While currently focused on supervised learning and reliant on the ONNX standard, future work aims to expand Deep500’s scope to include Reinforcement Learning, Unsupervised Learning, and deeper integration with specialized hardware like FPGAs and ASICs.

Summary updated

BibTeX
@inproceedings{bennun2019modular,
  author = {Tal Ben-Nun and Maciej Besta and Simon Huber and Alexandros Nikolaos Ziogas and Daniel Peter and Torsten Hoefler},
  title = {{A Modular Benchmarking Infrastructure for High-Performance and Reproducible Deep Learning}},
  booktitle = {IPDPS},
  year = {2019},
  doi = {10.1109/ipdps.2019.00018},
}
Figure