Synetgy: Algorithm-hardware Co-design for ConvNet Accelerators on Embedded FPGAs

Yifan Yang, Qijing Huang, Bichen Wu, Tianjun Zhang, Liang Ma, Giulio Gambardella, Michaela Blott, Luciano Lavagno, Kees A. Vissers, John Wawrzynek, Kurt Keutzer

TL;DR

Synetgy is an algorithm-hardware co-design framework that bridges the gap between deep learning model design and embedded FPGA constraints. By pairing a novel, convolution-light network architecture called DiracDeltaNet with a highly customized 4-bit hardware accelerator, the authors achieve a state-of-the-art 88.1% top-5 ImageNet accuracy at a blazing 66.3 FPS on a low-power Ultra96 SoC.

What Problem Does This Paper Address?

There is a persistent disconnect between the computer vision community and hardware accelerator designers. Vision researchers typically optimize models for accuracy or GPU efficiency, leading to deep networks with complex operators (like depth-wise or dilated convolutions) and additive skip connections. Conversely, FPGA designers often focus on maximizing raw throughput (GOPs) using outdated, redundant models like AlexNet or VGG16, or they evaluate their hardware on toy datasets like CIFAR-10.

When you try to deploy modern, efficient networks on embedded FPGAs, you hit major bottlenecks:

  1. Complex Operators: Implementing many different layer types requires generalized, complex control logic that wastes hardware resources.
  2. Memory Bandwidth: Standard additive skip connections require buffering previous layers on-chip or fetching them from off-chip DRAM, creating severe memory bottlenecks.
  3. Quantization Inefficiencies: Most quantization methods use floating-point scaling factors per layer, forcing expensive runtime conversions back and forth between integers and floats.

Methods

The authors tackle these challenges from both sides of the aisle using an algorithm-hardware co-design approach:

1. DiracDeltaNet (The Algorithm)

Based on ShuffleNetV2, this novel network eliminates all standard spatial convolutions ($3\times3$, $5\times5$).

  • Shift Operations: Spatial convolutions are replaced by zero-FLOP, zero-parameter shift operations that move channels in cardinal directions (up, down, left, right) to aggregate spatial context.
  • $1\times1$ Convolutions: Because spatial context is handled by shifts, the actual compute units only need to perform $1\times1$ convolutions (matrix multiplications).
  • Hardware-Efficient Shuffle: Instead of the standard transpose-based channel shuffle, which breaks contiguous data layouts in memory, they introduce a circular shift along the channel dimension to minimize DRAM passes.

2. Synetgy Accelerator (The Hardware)

The hardware is a specialized dataflow architecture implemented via High-Level Synthesis (HLS) on an Ultra96 SoC.

  • Output-Stationary Dataflow: To minimize memory traffic, partial sums are held in local registers until the final output feature is computed.
  • Uniform 4-bit Quantization (w4a4): Weights and activations are quantized to 4-bit integers. Crucially, they modify the PACT quantization function to use a global scaling factor shared across the entire network. This allows tensors from different layers to be concatenated directly without floating-point rescaling.

Datasets

  • ImageNet (ILSVRC): The primary benchmark used for both training and evaluation. This is a full-scale, real-world image classification dataset (1000 classes), making the results highly practical compared to smaller datasets like CIFAR-10.

Key Insights and Ideas

  • Shifts over Convolutions: Replacing spatial convolutions with shift operations drastically simplifies data movement and control flow. It allows the hardware to focus entirely on optimizing a single, highly parallelized $1\times1$ convolution engine.
  • Concatenation over Addition: By favoring concatenative skip connections (from ShuffleNet) over additive ones (from ResNet), the hardware can simply write residual data adjacent to skip data in DRAM, bypassing expensive on-chip buffering.
  • The Power of Global Scaling: Forcing the entire network to share a quantization scale factor eliminates the hardware area and latency penalties usually associated with mixed-precision or layer-wise scaled networks.

Key Results

  • Accuracy: Achieved 88.12% top-5 and 68.30% top-1 accuracy on ImageNet, the highest reported for any embedded FPGA accelerator at the time.
  • Speed: Reached an inference speed of 66.3 FPS, outperforming prior embedded FPGA implementations of similar accuracy by at least 11.6×.
  • Efficiency: The DiracDeltaNet model uses 42× fewer parameters and 48× fewer OPs than VGG16. The entire system runs within a tight power envelope of 5.5W max on the Ultra96 board.
  • Productivity: Thanks to the simplified operator set and HLS tools, the hardware implementation took just two people one month to develop.

Limitations and Future Work

Despite the impressive FPS, the accelerator's average throughput (47.09 GOPs) is significantly lower than its peak theoretical throughput (418 GOPs). The authors identify two main culprits:

  1. CPU Bottlenecks: The channel shuffle operation is offloaded to the ARM CPU as a software memory copy, which significantly degrades performance. Moving this entirely to bare-metal C code or dedicated hardware logic is a priority.
  2. First-Layer Mismatch: The very first layer of the network processes an RGB image (3 channels), which does not align well with the hardware's parallel tiling factor ($IC=32$), leading to low hardware utilization at the start of the pipeline.

Future iterations will focus on expanding the dataflow architecture to include more layers concurrently and restructuring subgraphs to be more symmetric.

Summary updated

BibTeX
@inproceedings{yang2019synetgy,
  author = {Yifan Yang and Qijing Huang and Bichen Wu and Tianjun Zhang and Liang Ma and Giulio Gambardella and Michaela Blott and Luciano Lavagno and Kees A. Vissers and John Wawrzynek and Kurt Keutzer},
  title = {{Synetgy: Algorithm-hardware Co-design for ConvNet Accelerators on Embedded FPGAs}},
  booktitle = {FPGA},
  year = {2019},
  doi = {10.1145/3289602.3293902},
}
Figure