[Paper Review] Reuse Kernels or Activations? A Flexible Dataflow for Low-latency Spectral CNN Acceleration
This paper proposes a flexible dataflow and scheduling framework for low-latency spectral CNN acceleration on FPGAs, optimizing data reuse between kernels and activations to reduce off-chip bandwidth. By using an approximate exact-cover scheduling algorithm and dynamic dataflow selection, the design achieves 9 ms inference latency for VGG16 on Xilinx Alveo U200, reducing data transfers by 42% and reaching 90% DSP utilization with only 10 input replicas.
Spectral-domain CNNs have been shown to be more efficient than traditional spatial CNNs in terms of reducing computation complexity. However they come with a `kernel explosion' problem that, even after compression (pruning), imposes a high memory burden and off-chip bandwidth requirement for kernel access. This creates a performance gap between the potential acceleration offered by compression and actual FPGA implementation performance, especially for low-latency CNN inference. In this paper, we develop a principled approach to overcoming this performance gap and designing a low-latency, low-bandwidth, spectral sparse CNN accelerator on FPGAs. First, we analyze the bandwidth-storage tradeoff of sparse convolutional layers and locate communication bottlenecks. We then develop a dataflow for flexibly optimizing data reuse in different layers to minimize off-chip communication. Finally, we propose a novel scheduling algorithm to optimally schedule the on-chip memory access of multiple sparse kernels and minimize read conflicts. On a state-of-the-art FPGA platform, our design reduces data transfers by 42\% with DSP utilization up to 90\% and achieves inference latency of 9 ms for VGG16, compared to the baseline state-of-the-art latency of 68 ms.
Motivation & Objective
- To address the performance gap between model compression and actual FPGA implementation in spectral CNNs, especially for low-latency inference.
- To identify and mitigate communication bottlenecks caused by sparse kernel access in compressed spectral CNNs.
- To design a unified, on-the-fly adaptable dataflow that optimizes data reuse across different convolutional layers.
- To minimize on-chip memory read conflicts and maximize PE utilization through a novel scheduling algorithm for irregular sparse kernel access.
- To achieve high hardware efficiency with low off-chip bandwidth and low inference latency on modern FPGA platforms.
Proposed method
- A complexity analysis of spectral convolutional layers is performed to quantify the bandwidth-storage tradeoff and identify layer-specific bottlenecks.
- A flexible dataflow is designed to dynamically select optimal data reuse strategies (kernel vs. activation reuse) per layer to minimize off-chip data transfers.
- A unified hardware architecture is implemented to support runtime reconfiguration of the dataflow based on layer characteristics.
- An approximate exact-cover based scheduling algorithm is proposed to optimally schedule on-chip memory access across multiple sparse kernels, minimizing read conflicts with minimal input replicas.
- The scheduling algorithm assumes no structural constraints on kernel sparsity patterns, enabling generalization to arbitrary sparse kernels.
- The design is implemented on a Xilinx Alveo U200 FPGA using 16-bit fixed-point arithmetic, with 64 parallel kernels and 10 input replicas for optimal performance.
Experimental results
Research questions
- RQ1How can the bandwidth-storage tradeoff in sparse spectral convolutional layers be analytically modeled and used to identify communication bottlenecks?
- RQ2What data reuse strategy—kernel reuse or activation reuse—yields the lowest off-chip communication cost in different spectral CNN layers?
- RQ3How can irregular on-chip memory access patterns of sparse kernels be scheduled to minimize read conflicts and maximize PE utilization?
- RQ4Can a general-purpose scheduling algorithm be designed that works across diverse sparse kernel sparsity patterns without pattern constraints?
- RQ5To what extent can hardware efficiency be improved in spectral CNNs by combining flexible dataflow with optimal scheduling on FPGAs?
Key findings
- The proposed flexible dataflow reduces off-chip data transfers by 42% compared to the baseline for VGG16 on the Alveo U200 FPGA.
- Inference latency is reduced to 9 ms for VGG16, a 7.5× improvement over the state-of-the-art baseline of 68 ms.
- DSP utilization reaches up to 90% with only 10 input replicas, demonstrating high hardware efficiency.
- The approximate exact-cover scheduling algorithm achieves near-optimal PE utilization even with random sparsity patterns, matching ADMM-based pruned kernels at α=4.
- The design achieves 12 GB/s off-chip bandwidth, significantly lower than the 70 GB/s required by a scaled-up version of the baseline system to meet the 9 ms latency target.
- The FPGA footprint occupies 70% of the device area, indicating that the design is area- and bandwidth-constrained, with further resource scaling limited by routing and area overhead.
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.