Back to Search Start Over

Interstellar: Using Halide's Scheduling Language to Analyze DNN Accelerators

Authors :
Yang, Xuan
Gao, Mingyu
Liu, Qiaoyi
Setter, Jeff Ou
Pu, Jing
Nayak, Ankita
Bell, Steven Emberton
Cao, Kaidi
Ha, Heonjae
Raina, Priyanka
Kozyrakis, Christos
Horowitz, Mark
Source :
Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, March, 2020, Pages 369-383
Publication Year :
2018

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.<br />Comment: Published as a conference paper at ASPLOS 2020

Details

Database :
arXiv
Journal :
Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, March, 2020, Pages 369-383
Publication Type :
Report
Accession number :
edsarx.1809.04070
Document Type :
Working Paper
Full Text :
https://doi.org/10.1145/3373376.3378514