Abstract
With the popularity of deep learning, the hardware implementation platform of deep learning has received increasing interest. Unlike general-purpose devices like CPUs or GPUs, neural network hardware accelerators directly execute algorithms to achieve higher energy efficiency and performance. However, as deep learning algorithms evolve frequently, the engineering effort and cost of designing these accelerators increase significantly. To improve design quality while saving costs, design automation for neural network accelerators has been proposed, utilizing design space exploration (DSE) algorithms to automatically search for optimized designs. Nevertheless, the increasing complexity of neural network accelerators brings higher dimensions to the design space, rendering previous DSE algorithms less effective. In this work, we propose GANDSE, a neural network accelerator design automation framework based on Generative Adversarial Networks (GANs) to support optimized exploration for high-dimension, large design spaces. Experiments show that GANDSE finds more optimized designs in negligible time compared to multilayer perceptron (MLP) and deep reinforcement learning (DRL) approaches.
The Challenge of Design Space Exploration
Designing custom hardware accelerators, such as those implemented on FPGAs, requires a delicate balance of numerous parameters including SRAM sizes, processing element (PE) counts, and data tiling strategies. This process, known as Design Space Exploration (DSE), aims to meet specific performance targets like latency and power consumption.
As neural networks grow in complexity, the design space expands exponentially. Traditional search methods, such as Simulated Annealing (SA) or Genetic Algorithms (GA), are often too slow due to their iterative nature. Modern machine learning approaches like MLPs frequently struggle in high-dimensional spaces because they attempt to map performance targets back to specific hardware configurations directly, often failing to generalize or getting stuck in local optima.
The GANDSE Framework
GANDSE redefines DSE by treating hardware configuration as a generative task rather than an iterative search. It utilizes a Conditional GAN (cGAN) architecture consisting of two primary components:
- The Generator (G): Acts as the "designer," taking user requirements (e.g., latency and power constraints) and target neural network parameters as input to generate candidate hardware configurations.
- The Discriminator (D): Acts as the "critic," evaluating whether the generated configurations satisfy the specified objectives.
Through adversarial training, the Generator learns the underlying distribution of valid, high-performance designs. This allows the model to overcome the "exact match" trap of standard regressors. Once trained, a final Design Selector picks the most optimized candidate from the GAN's output based on an analytical Design Model.
Experimental Evaluation
The framework was evaluated using two distinct design models:
- im2col Model: A high-dimensional space representing general hardware behaviors for image-to-column computations (23,420 training samples).
- DnnWeaver Model: A lower-dimensional space based on an open-source systolic array template (31,250 training samples).
In both scenarios, ground truth performance metrics were derived from analytical models verified by hardware simulation and logic synthesis.
Key Results and Insights
- Superior Optimization: In high-dimensional tests, GANDSE achieved a 94.4% success rate in meeting user objectives, significantly outperforming DRL (68.7%) and large MLPs (83.9%).
- Enhanced Design Quality: GANDSE consistently exceeded targets, producing designs that were, on average, 35% better than the requested constraints.
- Unprecedented Speed: While iterative methods like SA can take nearly 20 seconds per task, GANDSE completes the entire exploration process in less than one second. This negligible inference time makes it ideal for real-time design automation tools.
- Robustness at the Pareto Frontier: GANDSE proved particularly effective when handling aggressive performance targets near the physical limits of the architecture, where other algorithms typically fail to find valid solutions.
Conclusion
GANDSE demonstrates that generative models can effectively navigate the complexities of hardware design automation. By learning the distribution of optimal configurations rather than searching for them iteratively, GANDSE provides a fast, scalable, and highly accurate solution for the next generation of neural network accelerator design.
Summary updated