A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architectures

Fabrizio Ferrandi, Serena Curzel, Leandro Fiorin, Daniele Ielmini, Cristina Silvano, Francesco Conti, Alessio Burrello, Francesco Barchi, Luca Benini, Luciano Lavagno, Teodoro Urso, Enrico Calore, Sebastiano Fabio Schifano, Cristian Zambelli, Maurizio Palesi, Giuseppe Ascia, Enrico Russo, Nicola Petra, Davide De Caro, Gennaro Di Meo, Valeria Cardellini, Salvatore Filippone, Francesco Lo Presti, Paolo Palazzari, Stefania Perri · DOI

Introduction

As Deep Neural Networks (DNNs) grow in complexity, traditional general-purpose processors like CPUs and GPUs are struggling to keep up with massive computational and energy demands. This has led to an explosion of specialized hardware accelerators, including TPUs, FPGAs, and custom ASICs. However, designing these accelerators is a multidisciplinary challenge, requiring expertise in machine learning, computer architecture, and low-level hardware logic simultaneously. This paper provides a comprehensive roadmap of the tools and methodologies used to bridge the gap between high-level Deep Learning (DL) models and specialized hardware.

The Hardware Landscape

The design space for hardware accelerators is virtually infinite, involving complex configurations of memory, processing elements, and data movement. Navigating this space requires understanding the trade-offs between speed and power efficiency across different platforms.

Performance vs. Power consumption across different hardware platforms and design stages.

Design Methodologies

The paper categorizes the design tools and frameworks currently used in industry and academia into several key areas:

Application Partitioning and Mapping

Techniques to split a model across multiple chips or nodes using data, model, or pipeline parallelism are essential for handling large-scale networks.

Modeling and Simulation

Frameworks allow designers to estimate Performance, Power, and Area (PPA) before physical hardware is built. These tools range from high-level modeling to cycle-accurate simulation.

Taxonomy of tools for modeling, simulation, profiling, and exploration of deep learning accelerators.

Deep Learning Compilers and HLS

Software stacks like TVM or MLIR take models from frameworks like PyTorch and compile them into hardware-specific instructions. Additionally, High-Level Synthesis (HLS) allows developers to write hardware descriptions in C or C++ instead of low-level Verilog, significantly speeding up prototyping.

Approximate Computing

Strategies to trade off minor mathematical accuracy for massive gains in speed and energy efficiency, such as using 8-bit integers instead of 32-bit floats, are increasingly common.

Key Insights and Results

  • The Memory Wall: Most tools now focus on minimizing data movement rather than just increasing calculation speed, as moving data from main memory often consumes orders of magnitude more energy than the calculation itself.
  • Hardware-Software Co-Design: The most efficient systems use Hardware-aware Neural Architecture Search (NAS) to design the model and the chip simultaneously.
  • Estimation Accuracy: Modern modeling tools like MAESTRO or Interstellar can predict hardware performance with an error rate of less than 5–10% compared to real physical chips.
  • Efficiency Gains: Approximate computing techniques can reduce power dissipation by up to 12x with less than a 2% drop in model accuracy.

Future Frontiers

While current methodologies are robust for static networks, several open challenges remain. Current tools struggle with the dynamic data patterns of Graph Neural Networks (GNNs) and the sheer scale of Large Language Models (LLMs). Furthermore, there is a growing need for "Carbon-aware" design tools to consider environmental impacts, and the potential for using AI itself to design the next generation of Electronic Design Automation (EDA) tools.

Summary updated

BibTeX
@misc{ferrandi2023survey,
  author = {Fabrizio Ferrandi and Serena Curzel and Leandro Fiorin and Daniele Ielmini and Cristina Silvano and Francesco Conti and Alessio Burrello and Francesco Barchi and Luca Benini and Luciano Lavagno and Teodoro Urso and Enrico Calore and Sebastiano Fabio Schifano and Cristian Zambelli and Maurizio Palesi and Giuseppe Ascia and Enrico Russo and Nicola Petra and Davide De Caro and Gennaro Di Meo and Valeria Cardellini and Salvatore Filippone and Francesco Lo Presti and Francesco Silvestri and Paolo Palazzari and Stefania Perri},
  title = {{A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architectures}},
  year = {2023},
  eprint = {2311.17815},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17815},
}
Figure