DNN-Chip Predictor: An Analytical Performance Predictor for DNN Accelerators with Various Dataflows and Hardware Architectures

Yang Zhao, Chaojian Li, Yue Wang, Pengfei Xu, Yongan Zhang, Yingyan Lin

Introduction

Designing specialized hardware accelerators for Deep Neural Networks (DNNs) is a complex, cross-disciplinary challenge. The design space is vast, involving various hardware architectures, memory hierarchies, and dataflows—the strategies used to schedule algorithms onto hardware. Traditionally, evaluating these designs requires time-consuming cycle-accurate simulations or physical synthesis (ASIC/FPGA), which can take months. This paper presents the DNN-Chip Predictor, a fast analytical tool that estimates energy, throughput, and latency with high accuracy during the early design phase.

Methodology: Analytical Modeling via Nested Loops

The core innovation of the DNN-Chip Predictor is its move away from slow cycle-by-cycle simulations toward a direct mathematical formulation. The framework abstracts hardware architectures and dataflows into a generic "nested for-loop" representation. This allows the tool to model memory hierarchies (DRAM, Global Buffers, Network-on-Chip, and Register Files) and temporal/spatial scheduling universally.

Overview of the DNN-Chip Predictor framework, showing inputs, analytical models, and performance outputs.

To calculate energy, the model identifies "refresh locations" within these nested loops for weights, inputs, and outputs. The loop hierarchy above the refresh location determines the number of refreshes, while the hierarchy below determines the data volume per refresh. Latency is modeled by identifying the bottleneck among computation, DRAM access, and buffer access, assuming a pipelined execution flow.

Experimental Validation

The authors validated the predictor against three primary baselines: the fabricated Eyeriss ASIC chip, an open-source FPGA implementation of SkyNet, and an in-house 65nm ASIC synthesis.

When compared against actual silicon measurements from the Eyeriss accelerator, the predictor demonstrated remarkable accuracy. Energy breakdown predictions differed by a maximum of only 5.15%, while throughput was within 11% of measured values. As shown in the processing latency analysis, the analytical model tracks chip-measured performance closely across different convolutional layers.

Comparison of predicted vs. chip-measured processing latency for the Eyeriss accelerator, showing a maximum error of 15.51%.

Validation against FPGA implementations of SkyNet also showed strong results, with latency estimates generally within 16.84% of actual hardware measurements. For ASIC synthesis of AlexNet layers, energy breakdown errors remained below 5.28%.

Key Insights and Limitations

  • Loop Abstraction: By treating dataflows as nested loops, the predictor can model almost any accelerator design without custom plugins.
  • Analytical Speed: The model provides near-instant feedback, enabling rapid design space exploration that would be impossible with traditional simulation tools.
  • Current Constraints: The model currently assumes a convolution stride of 1; layers with larger strides (like AlexNet's CONV1) can see error spikes in memory access predictions (up to 17.66%). Additionally, the model assumes perfect pipelining, which may slightly underestimate latency by ignoring minor hardware stalls or specific FPGA optimizations like buffer partitioning.

Conclusion

The DNN-Chip Predictor offers a robust, fast, and generic alternative to simulation-heavy hardware design workflows. By achieving prediction errors generally under 18% compared to fabricated silicon, it provides engineers with a reliable tool for evaluating the energy-efficiency and performance of next-generation DNN accelerators at the earliest stages of development.

Summary updated

Abstract

The recent breakthroughs in deep neural networks (DNNs) have spurred a tremendously increased demand for DNN accelerators. However, designing DNN accelerators is non-trivial as it often takes months/years and requires cross-disciplinary knowledge. To enable fast and effective DNN accelerator development, we propose DNN-Chip Predictor, an analytical performance predictor which can accurately predict DNN accelerators' energy, throughput, and latency prior to their actual implementation. Our Predictor features two highlights: (1) its analytical performance formulation of DNN ASIC/FPGA accelerators facilitates fast design space exploration and optimization; and (2) it supports DNN accelerators with different algorithm-to-hardware mapping methods (i.e., dataflows) and hardware architectures. Experiment results based on 2 DNN models and 3 different ASIC/FPGA implementations show that our DNN-Chip Predictor's predicted performance differs from those of chip measurements of FPGA/ASIC implementation by no more than 17.66% when using different DNN models, hardware architectures, and dataflows. We will release code upon acceptance.
BibTeX
@inproceedings{zhao2020dnn,
  author = {Yang Zhao and Chaojian Li and Yue Wang and Pengfei Xu and Yongan Zhang and Yingyan Lin},
  title = {{DNN-Chip Predictor: An Analytical Performance Predictor for DNN Accelerators with Various Dataflows and Hardware Architectures}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=wrly4Ek3XPg},
}
Figure