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.
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:
- Level 0 (Operators): The fundamental building blocks, such as convolutions or matrix multiplications.
- Level 1 (Network Processing): The directed acyclic graph (DAG) structure of operators.
- Level 2 (Training): Optimization loops and update rules, including standard optimizers like SGD and Adam.
- Level 3 (Distributed Training): The mechanisms for sharing gradients and parameters across multiple nodes.
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