Skip to main content
QUICK REVIEW

[Paper Review] Interstellar: Using Halide's Scheduling Language to Analyze DNN Accelerators

Xuan Yang, Mingyu Gao|arXiv (Cornell University)|Sep 10, 2018
Advanced Neural Network ApplicationsComputer Science50 references17 citations
TL;DR

This paper proposes Interstellar, a framework that uses Halide's scheduling language to formally model and analyze DNN accelerator micro-architectures by expressing dataflow and memory hierarchy choices as loop transformations. By extending Halide to generate hardware and enabling fair comparison across accelerators, the authors show that proper loop blocking enables many dataflow configurations to achieve near-optimal energy efficiency—up to 4.2× improvement for CNNs—while memory hierarchy optimization has the largest impact on energy efficiency.

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.

Motivation & Objective

  • To formalize the design space of dense DNN accelerators by expressing micro-architectural choices as loop transformations.
  • To enable fair, systematic comparison of existing DNN accelerators using a unified compiler-based framework.
  • To identify which architectural choices—especially memory hierarchy and loop blocking—most significantly impact energy efficiency and performance.
  • To develop an efficient optimizer that finds near-optimal accelerator designs for given DNNs using Halide’s scheduling primitives.

Proposed method

  • Extend Halide’s scheduling language to include hardware-specific primitives such as local communication and memory allocation for hardware generation.
  • Model all DNN accelerator dataflows and memory hierarchies as transformations of the seven-level loop nest in DNN computations.
  • Use Halide’s decoupled schedule and computation model to explore diverse hardware mappings by modifying only the schedule.
  • Implement a hardware synthesis toolchain that compiles Halide schedules into RTL for FPGA or ASIC evaluation.
  • Develop an auto-optimizer that prunes the design space using empirical observations: fix dataflow to C|K, and constrain memory size ratios to 4–16 between adjacent levels.
  • Evaluate designs using a power and area model, with throughput held constant, to isolate energy efficiency improvements.

Experimental results

Research questions

  • RQ1Can all existing dense DNN accelerators be formally classified using loop transformations in Halide’s scheduling language?
  • RQ2To what extent do different dataflow choices affect energy efficiency when loop blocking is properly applied?
  • RQ3How do memory hierarchy configurations, especially register file and buffer sizes, influence energy efficiency in DNN accelerators?
  • RQ4Can a systematic, compiler-driven framework fairly compare and optimize DNN accelerator designs across diverse architectures?
  • RQ5What is the relative impact of dataflow vs. memory hierarchy on energy efficiency in DNN accelerators?

Key findings

  • Proper loop blocking ensures high data locality and resource utilization, making many dataflow choices nearly equivalent in energy efficiency when blocking is optimal.
  • With optimal loop blocking, multiple dataflow configurations achieve similar performance and energy efficiency, as most data references stay on-chip.
  • Memory hierarchy design has the largest impact on energy efficiency, with deeper hierarchies and smaller register files yielding better results.
  • The optimized hardware configuration uses 16 B and 128 B for first- and second-level register files, and a 256 KB double-buffered global SRAM, achieving up to 4.2× energy improvement for CNNs.
  • The auto-optimizer achieves up to 3.5×, 2.7×, and 4.2× energy efficiency gains for VGG-16, GoogleNet, and MobileNet, respectively, and up to 1.8× for MLPs.
  • Even with smaller register files, larger chips with deeper memory hierarchies outperform smaller chips due to reduced DRAM access, achieving 1.85 TOPs/W for VGG-16.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.