[Paper Review] Snowflake: A Model Agnostic Accelerator for Deep Convolutional Neural Networks
Snowflake is a model-agnostic FPGA-based CNN accelerator that achieves over 91% computational efficiency across modern deep learning models by leveraging dynamic trace-based memory access and double buffering to hide DRAM latency. It attains 128 G-ops/s peak throughput and processes AlexNet at 100 FPS, GoogLeNet at 36.4 FPS, and ResNet-50 at 17 FPS on a Xilinx Zynq XC7Z045 device with 256 MAC units at 250 MHz.
Deep convolutional neural networks (CNNs) are the deep learning model of choice for performing object detection, classification, semantic segmentation and natural language processing tasks. CNNs require billions of operations to process a frame. This computational complexity, combined with the inherent parallelism of the convolution operation make CNNs an excellent target for custom accelerators. However, when optimizing for different CNN hierarchies and data access patterns, it is difficult for custom accelerators to achieve close to 100% computational efficiency. In this work, we present Snowflake, a scalable and efficient accelerator that is agnostic to CNN workloads, and was designed to always perform at near-peak hardware utilization. Snowflake is able to achieve a computational efficiency of over 91% on modern CNN models. Snowflake, implemented on a Xilinx Zynq XC7Z045 SoC is capable of achieving a peak throughput of 128G-ops/s and a measured throughput of 100 frames per second and 120 G-ops/s on the AlexNet CNN model, 36 frames per second and 116G- ops/s on the GoogLeNet CNN model and 17 frames per second and 122 G-ops/s on the ResNet-50 CNN model. To the best of our knowledge, Snowflake is the only implemented system capable of achieving over 91% efficiency on modern CNNs and the only implemented system with GoogLeNet and ResNet as part of the benchmark suite.
Motivation & Objective
- Address the challenge of low computational efficiency in custom CNN accelerators due to irregular data access patterns across diverse network architectures.
- Design a scalable, model-agnostic accelerator that maintains high utilization across different CNN workloads without reconfiguration.
- Achieve near-peak hardware utilization by effectively hiding DRAM latency through intelligent memory access scheduling.
- Enable real-time inference on complex, modern CNNs such as GoogLeNet and ResNet-50, which are rarely benchmarked in prior accelerator work.
- Demonstrate high efficiency and throughput on FPGA platforms, setting a new benchmark for FPGA-based CNN accelerators.
Proposed method
- Employ a trace-based memory access scheduling mechanism to predict and prefetch weights and feature maps, minimizing idle cycles.
- Implement double buffering to overlap computation with DRAM data transfers, enabling effective hiding of DRAM latency.
- Use a scalable architecture composed of multiple compute clusters, each containing 256 MAC units, to support varying workloads.
- Design the accelerator to be model-agnostic by abstracting from specific network structures, allowing seamless deployment on diverse CNNs.
- Utilize a Xilinx Zynq XC7Z045 SoC with programmable logic for custom hardware acceleration and processing units for control logic.
- Apply performance modeling and benchmarking using full network inference (not just individual layers) to ensure realistic efficiency measurements.
Experimental results
Research questions
- RQ1Can a model-agnostic CNN accelerator achieve consistently high computational efficiency across diverse modern CNN architectures like AlexNet, GoogLeNet, and ResNet-50?
- RQ2To what extent can DRAM latency be hidden in CNN accelerators using trace-based prefetching and double buffering without sacrificing area or power efficiency?
- RQ3How does the computational efficiency of a custom FPGA-based accelerator compare to prior ASIC and FPGA accelerators when evaluated on full networks rather than isolated layers?
- RQ4Can high throughput and low latency be simultaneously achieved on complex, high-parameter CNNs using a single, reconfigurable hardware design?
- RQ5Is it feasible to scale an FPGA-based accelerator to achieve near-peak performance on large-scale CNNs while maintaining high efficiency?
Key findings
- Snowflake achieves a computational efficiency of 95% on AlexNet, 91% on GoogLeNet, and 95% on ResNet-50, surpassing all prior implemented accelerators on these models.
- On the Xilinx Zynq XC7Z045, Snowflake delivers 120 G-ops/s and 100 FPS on AlexNet, 116.4 G-ops/s and 36.4 FPS on GoogLeNet, and 122 G-ops/s and 17 FPS on ResNet-50.
- The accelerator achieves a peak throughput of 128 G-ops/s on the same device, with measured performance consistently close to peak due to effective DRAM latency hiding.
- Snowflake is the first implemented accelerator to benchmark both GoogLeNet and ResNet-50, which are more complex than earlier benchmarks like AlexNet or VGG.
- The system maintains consistent performance and efficiency with and without DRAM latency, as it effectively hides latency through double buffering and trace-based scheduling.
- Scaling Snowflake to use 768 MAC units (three compute clusters) on the same FPGA would yield a peak performance of 384 G-ops/s, enabling high-throughput server workloads with constant efficiency.
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.