ConvFusion: A Model for Layer Fusion in Convolutional Neural Networks
Open Access
- 10 December 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 9, 168245-168267
Abstract
The superior accuracy and appealing universality of convolutional neural networks (CNNs) as a generic algorithm for many classification tasks have made the design of energy efficient CNN accelerators an important topic in both academia and industry. Of particular interest in the design and use of CNN accelerators is the scheduling of the computational workload, which can have a major impact on the quality of the final design. The many inherently independent operations in CNNs result in a vast scheduling space however, rendering the selection of the optimal schedule(s) non-trivial. To aid in this complex task, this work introduces a generic mathematical cost model of the external memory accesses, internal memory footprint, and compute load for CNN execution schedules. The model enables fast exploration of the scheduling space, including loop tiling, loop reordering, explicit data transfer scheduling, recomputation, and, crucially, layer fusion, which recently has attracted interest as a method to reduce external memory accesses. An accompanying open source tool is released to perform schedule space exploration for CNNs using the introduced cost model. Leveraging the code generation capabilities of this tool the proposed model is validated on six real world networks, demonstrating that layer fusion can reduce the external memory accesses by more than two orders of magnitude compared to the best non-fused schedules. Confusing at first glance however, a high-level energy analysis shows that the practical benefits of layer fusion may be overestimated if other parts of the system are not tuned accordingly.Keywords
This publication has 14 references indexed in Scilit:
- State-of-the-art in artificial neural network applications: A surveyHeliyon, 2018
- AivoTTA2018
- SmartShuttle: Optimizing off-chip memory accesses for deep learning accelerators2018
- Block convolution: Towards memory-efficient inference of large-scale CNNs on FPGA2018
- Fused-layer CNN accelerators2016
- 14.5 Eyeriss: An energy-efficient reconfigurable accelerator for deep convolutional neural networks2016
- Inter-Tile Reuse Optimization Applied to Bandwidth Constrained Embedded Accelerators2015
- Towards energy-proportional datacenter memory with mobile DRAM2012
- An application-specific memory partitioning method for low power2007
- Hitting the memory wallACM SIGARCH Computer Architecture News, 1995