Abstract
We show that DNN accelerator micro-architectures and their program mappings represent specific choices of loop order and hardware parallelism for computing the seven nested loops of DNNs, which enables us to create a formal taxonomy of all existing dense DNN accelerators. Surprisingly, the loop transformations needed to create these hardware variants can be precisely and concisely represented by Halide's scheduling language. By modifying the Halide compiler to generate hardware, we create a system that can fairly compare these prior accelerators. As long as proper loop blocking schemes are used, and the hardware can support mapping replicated loops, many different hardware dataflows yield similar energy efficiency with good performance. This is because the loop blocking can ensure that most data references stay on-chip with good locality and the processing units have high resource utilization. How resources are allocated, especially in the memory system, has a large impact on energy and performance. By optimizing hardware resource allocation while keeping throughput constant, we achieve up to 4.2X energy improvement for Convolutional Neural Networks (CNNs), 1.6X and 1.8X improvement for Long Short-Term Memories (LSTMs) and multi-layer perceptrons (MLPs), respectively.
The Challenge of Accelerator Comparison
The hardware landscape is currently experiencing a "Cambrian Explosion" of Deep Neural Network (DNN) accelerators, ranging from Google’s TPU to academic designs like Eyeriss. Each architecture typically champions a specific dataflow—a strategy for orchestrating the movement of weights, inputs, and partial sums through an array of processing elements (PEs).
However, evaluating these designs is notoriously difficult. Is one accelerator superior because of its dataflow, or simply because it possesses more on-chip memory? Does another win because of its physical hardware, or because its researchers discovered a more efficient way to "block" (tile) the loops? The Interstellar project addresses this by creating a formal taxonomy that describes dense DNN accelerators as a set of mathematical loop transformations, enabling a true apples-to-apples comparison.
Methodology: The 3D Design Space
The researchers modeled the accelerator design space across three primary axes: Dataflow (spatial unrolling), Loop Blocking (temporal tiling), and Resource Allocation (memory hierarchy sizes). This framework allows existing architectures to be plotted and compared within a unified geometric space.
To implement this, the team leveraged Halide, a domain-specific language that separates algorithm from schedule. They extended Halide with new hardware-centric primitives like accelerate (to define hardware boundaries), systolic (to model direct data movement between PEs), and unroll (for spatial mapping). The mapping process follows a three-step transformation: first, splitting and reordering loops for blocking; second, defining memory hierarchy levels; and third, applying hardware-specific unrolling and systolic movement.
Key Insights: Blocking vs. Dataflow
The study yielded several surprising insights that challenge common research assumptions:
- Dataflow is Overrated: Many different dataflows (e.g., weight-stationary vs. output-stationary) can achieve nearly identical energy efficiency. The critical factor is whether the hardware supports "replication"—mapping multiple loops to the same physical dimension to maintain high PE utilization.
- Blocking is King: The strategy used to tile loops—ensuring data remains in energy-efficient register files as long as possible—has a significantly larger impact on energy than the choice of dataflow.
- The "4 to 16" Rule: For optimal efficiency, the ratio of storage sizes between adjacent memory levels (e.g., Register File to SRAM) should typically fall between 4x and 16x.
- Balanced Energy: In an optimized system, energy consumption should be distributed across the memory hierarchy. If one level, like the Register File, dominates power usage, it indicates an inefficient blocking strategy or oversized component.
Results and Performance
The Interstellar toolchain includes an analytical model that matches post-synthesis hardware results with less than 2% error. By using an auto-optimizer to find ideal memory sizes and loop schedules, the researchers achieved substantial energy improvements over baseline architectures like Eyeriss:
- 4.2x improvement for CNNs (e.g., MobileNet).
- 1.6x improvement for LSTMs.
- 1.8x improvement for MLPs.
Furthermore, they found that unrolling the Channel ($C$) and Filter ($K$) dimensions (the $C|K$ dataflow) often yields the highest hardware utilization, as these dimensions are typically large enough to be divided evenly across a processor grid.
Conclusion and Future Directions
While Interstellar provides a powerful framework for dense DNN accelerators, future work remains. The current model focuses on 16-bit fixed precision and does not yet account for sparsity—the skipping of zero-valued computations. Additionally, as the industry moves toward lower precision (INT8 or INT4), the trade-offs between computation and memory access may shift, requiring further refinement of the taxonomy.
Summary updated