[Paper Review] ShortcutFusion: From Tensorflow to FPGA-based accelerator with reuse-aware memory allocation for shortcut data
ShortcutFusion is an end-to-end FPGA compiler and accelerator design that enables reuse-aware static memory allocation for shortcut connections in residual networks, significantly reducing off-chip DRAM access. It achieves 2.8× speedup and 9.9× better power efficiency than NVIDIA RTX 2080 Ti on 256×256 inputs for EfficientNet-B1 by minimizing feature-map memory traffic through hardware-aware data reuse and shared MAC arrays.
Residual block is a very common component in recent state-of-the art CNNs such as EfficientNet or EfficientDet. Shortcut data accounts for nearly 40% of feature-maps access in ResNet152 [8]. Most of the previous DNN compilers, accelerators ignore the shortcut data optimization. This paper presents ShortcutFusion, an optimization tool for FPGA-based accelerator with a reuse-aware static memory allocation for shortcut data, to maximize on-chip data reuse given resource constraints. From TensorFlow DNN models, the proposed design generates instruction sets for a group of nodes which uses an optimized data reuse for each residual block. The accelerator design implemented on the Xilinx KCU1500 FPGA card 2.8x faster and 9.9x more power efficient than NVIDIA RTX 2080 Ti for 256x256 input size. . Compared to the result from baseline, in which the weights, inputs, and outputs are accessed from the off-chip memory exactly once per each layer, ShortcutFusion reduces the DRAM access by 47.8-84.8% for RetinaNet, Yolov3, ResNet152, and EfficientNet. Given a similar buffer size to ShortcutMining [8], which also mine the shortcut data in hardware, the proposed work reduces off-chip access for feature-maps 5.27x while accessing weight from off-chip memory exactly once.
Motivation & Objective
- To address the high off-chip memory access caused by shortcut connections in modern CNNs like EfficientNet and ResNet152, which account for up to 40% of feature-map traffic.
- To overcome the limitations of existing DNN compilers and accelerators that neglect cross-layer shortcut data reuse and suboptimal memory allocation.
- To design an end-to-end flow from TensorFlow frozen models to FPGA-accelerated inference with minimal off-chip memory access under on-chip buffer constraints.
- To achieve high MAC efficiency and low latency through a shared MAC array architecture and intelligent data reuse scheduling.
Proposed method
- The compiler performs reuse-aware static memory allocation by analyzing residual blocks and identifying optimal reuse patterns for shortcut data across layers.
- It fuses multiple nodes into a single kernel with optimized data reuse, minimizing redundant access to off-chip DRAM.
- The hardware accelerator employs a shared MAC array architecture to maximize utilization and reduce area overhead.
- The design ensures weights and feature maps are accessed from off-chip memory exactly once per layer, even with limited on-chip buffers.
- A custom dataflow scheduler enables flexible reuse schemes (input-, output-, and weight-reuse) tailored to each layer’s characteristics.
- The system is compiled end-to-end from TensorFlow frozen models to Xilinx KCU1500 FPGA, with support for 8-bit inference.
Experimental results
Research questions
- RQ1Can a compiler-based approach significantly reduce off-chip memory access for shortcut data in residual networks without increasing hardware complexity?
- RQ2How effective is reuse-aware static memory allocation in minimizing DRAM traffic while maintaining high MAC efficiency on FPGAs?
- RQ3To what extent can FPGA-based accelerators outperform GPUs in latency and energy efficiency for modern Squeeze-and-Excitation-based CNNs like EfficientNet-B1?
- RQ4How does the proposed shared MAC architecture compare to conventional designs in terms of resource utilization and throughput?
Key findings
- ShortcutFusion reduces DRAM access by 47.8% to 84.8% across RetinaNet, YOLOv3, ResNet152, and EfficientNet models compared to baseline.
- For EfficientNet-B1 with 256×256 input, the FPGA accelerator achieves 2.8× speedup and 9.9× better power efficiency than NVIDIA RTX 2080 Ti.
- With a buffer size similar to ShortcutMining, ShortcutFusion reduces off-chip feature-map access by 5.27× while accessing weights only once.
- The design achieves 317.1 GOPS at 200 MHz on KCU1500 with 2176 DSPs, demonstrating high efficiency despite low DSP utilization (19.37%) due to depthwise convolution patterns.
- The accelerator maintains 100% weight reuse and minimizes intermediate data movement, reducing total off-chip memory access to 60.7 MB for 256×256 input.
- The approach is applicable to ASIC designs, offering a unified optimization strategy for on-chip buffer and off-chip memory trade-offs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.