DLBricks: Composable Benchmark Generation to Reduce Deep Learning Benchmarking Effort on CPUs

Cheng Li, Abdul Dakkak, Jinjun Xiong, Wen-Mei W. HwuICPE 2019 · DOI

Abstract

Benchmarking deep learning (DL) models is increasingly difficult due to the rapid pace of model innovation. DLBricks introduces a composable benchmarking framework that decomposes complex models into unique, reusable "runnable networks" or "bricks." By benchmarking these individual components once, the system can reconstruct the performance of a wide variety of models with 95% accuracy. This approach achieves up to a 4.4x reduction in total benchmarking time while providing privacy benefits for proprietary model topologies.

Introduction: The Benchmarking Gap

The deep learning field faces a significant "benchmarking gap." While thousands of new models are published annually, standard benchmark suites like MLPerf evolve slowly, often taking a year to finalize a small set of representative models. This lag makes it difficult for hardware vendors to optimize for the latest research. Furthermore, manual benchmarking is labor-intensive, and privacy concerns often prevent companies from sharing proprietary model topologies with vendors for performance testing.

The growing gap between the number of DL research papers and the models included in standard benchmark suites.

The DLBricks Approach

DLBricks addresses these challenges by moving from "end-to-end" benchmarking to a modular, composable approach. The framework operates through two main workflows:

  1. Benchmark Generation: An algorithm decomposes input models into non-overlapping layer sequences. Users can adjust the "granularity" ($G$), where $G=1$ benchmarks individual layers and higher values benchmark small chains. The system then deduplicates these sequences across the entire model library, ensuring that identical layers (e.g., a specific convolution with the same parameters) are only benchmarked once. These unique sequences are converted into standalone "runnable networks."
  2. Performance Construction: To estimate a full model's latency, DLBricks sums the execution times of its constituent "bricks." This method leverages the observation that current CPU software stacks (such as MXNet, TensorFlow, and PyTorch) typically execute layers sequentially rather than in parallel.

Key Insights and Evaluation

The authors evaluated DLBricks using 50 MXNet models from the Wolfram Neural Net Repository, covering tasks like classification (VGG-16, ResNet), object detection (YOLO V2), and semantic segmentation. Testing was conducted on various Amazon EC2 CPU instances (c5 and c4 families).

A critical finding is the massive redundancy in modern DL models. Across the 50 models tested (totaling 10,815 layers), only 14% of the layers were unique. In some large models, like the Unguided Volumetric Regression Net, only 3.9% of layers were unique. This redundancy is the primary driver of the efficiency gains in DLBricks.

The percentage of unique layers in various models, indicating that many layers are repeated and can be benchmarked once.

The study also validated the "Summation Rule" for CPUs, finding that the sum of individual layer latencies provides a highly accurate proxy for total model latency. This accuracy improves as granularity increases, capturing more framework-level optimizations like layer fusion.

Results and Future Directions

DLBricks provides performance estimates within 95% of actual end-to-end latency and achieves up to a 4.4x speedup in benchmarking time on systems like the c5.xlarge. Beyond efficiency, the modular approach offers a layer of privacy; by benchmarking disconnected sequences, organizations can verify performance on hardware without revealing their full model "recipe."

Future work will explore extending this approach to GPUs, where inter-layer parallelism and aggressive kernel fusion may require more sophisticated critical-path analysis instead of simple sequential summation.

Summary updated

BibTeX
@inproceedings{li2019dlbricks,
  author = {Cheng Li and Abdul Dakkak and Jinjun Xiong and Wen-Mei W. Hwu},
  title = {{DLBricks: Composable Benchmark Generation to Reduce Deep Learning Benchmarking Effort on CPUs}},
  booktitle = {ICPE},
  year = {2019},
  doi = {10.1145/3358960.3379143},
}
Figure