TL;DR
This paper introduces "Interstellar," a system that uses the Halide scheduling language to formally model and analyze the vast design space of DNN accelerators. By treating accelerator designs as loop transformations, they demonstrate that many different hardware dataflows can achieve similar energy efficiency with proper loop blocking, highlighting memory hierarchy optimization as the key to performance gains.
What Problem Does This Paper Address?
The rapid growth of deep neural networks (DNNs) has led to a proliferation of specialized hardware accelerators. However, these accelerators often differ significantly in their micro-architectures and dataflow strategies, making it challenging to compare them fairly or understand the fundamental trade-offs involved. This lack of a unified framework hinders systematic exploration and optimization of the DNN accelerator design space. The authors aim to address this by creating a formal taxonomy and a unified system for designing and evaluating these accelerators.
Methods
The core of Interstellar lies in its use of Halide's scheduling language. Halide, originally designed for image processing, separates the computation algorithm from its implementation schedule. The authors extend Halide to handle dense linear algebra, enabling it to describe DNN computations. They propose that the diverse micro-architectures and dataflows of DNN accelerators can be precisely represented as loop transformations (blocking, reordering, parallelization) within Halide schedules. This allows them to generate hardware designs directly from these schedules. They also introduce extensions to Halide's primitives to support systolic arrays and other hardware-specific features.
Datasets
The paper does not explicitly mention training datasets. For evaluation, they use various DNN models including:
- AlexNet (CONV3 layer)
- GoogleNet (4C3R layers)
- VGG-16
- MobileNet
- LSTM-M and LSTM-L
- Recurrent Highway Network (RHN)
- MLPs
These models are used to demonstrate the effectiveness of their optimization framework and auto-optimizer.
Key Insights and Ideas
- DNN Accelerators as Loop Transformations: The fundamental insight is that the differences between DNN accelerators can be precisely captured by the loop transformations applied to the core seven-nested loop computation of DNNs. This provides a unified way to understand and compare them.
- Halide as a Universal Language: Halide's scheduling language is surprisingly powerful and concise enough to express the complex loop transformations and hardware mappings required for various DNN accelerators.
- Dataflow vs. Loop Blocking: For DNNs with high data reuse, many different dataflow strategies can achieve similar energy efficiency, provided that proper loop blocking is employed. This suggests that loop blocking is often more critical than the specific dataflow choice.
- Memory Hierarchy is King: The size and organization of the memory hierarchy, particularly the register file (RF) and on-chip buffers, have a dominant impact on energy efficiency. Optimizing these memory resources is crucial for achieving significant gains.
- Small RFs are Better: Counter-intuitively, smaller register files can lead to better overall energy efficiency because they force more data to be kept in larger, but still on-chip, buffers, reducing the reliance on off-chip DRAM.
- Balanced Energy Distribution: An efficient system's energy consumption should not be dominated by any single memory level.
Key Results
- Formal Taxonomy: The paper establishes a formal taxonomy of DNN accelerators based on loop transformations.
- Hardware Generation: They extend the Halide compiler to generate hardware (ASIC and FPGA) from schedules, enabling fair comparison of designs.
- Energy Improvement: By optimizing hardware resource allocation (especially memory hierarchy) while keeping throughput constant, they achieved up to 4.2x energy improvement for CNNs, 1.6x for LSTMs, and 1.8x for MLPs compared to prior work (specifically Eyeriss).
- Analytical Model Validation: Their analytical model for predicting performance and energy was validated against post-synthesis results with less than 2% error.
- Auto-Optimizer: They developed an efficient auto-optimizer that prunes the design space and finds energy-efficient accelerator configurations, achieving significant energy improvements across various benchmarks.
Limitations and Future Work
- Limited Scope of Dataflows: While Halide is powerful, the paper focuses on dense DNN accelerators and the seven-nested loop structure. Future work could explore more complex DNN structures or sparsity.
- Interconnect Bandwidth: The paper acknowledges that the impact of interconnect bandwidth on overall performance was not explicitly evaluated, as prior work has studied this.
- Technology Dependence: While many observations are technology-independent, specific energy costs are tied to the 28nm technology used for ASIC synthesis.
- Future Work: The authors suggest extending their work to support other PE array micro-architectures and exploring more complex DNN models and sparsity. They also highlight the potential for their framework to be used for other domain-specific accelerators.
Summary updated