Skip to main content
QUICK REVIEW

[Paper Review] DNNVM : End-to-End Compiler Leveraging Heterogeneous Optimizations on FPGA-based CNN Accelerators

Yu Xing, Shuang Liang|arXiv (Cornell University)|Feb 20, 2019
Advanced Neural Network ApplicationsComputer Science37 references9 citations
TL;DR

DNNVM is an end-to-end FPGA compiler that unifies graph, loop, and data layout optimizations to accelerate CNN inference. By modeling optimizations as graph-level transformations and using a heuristic subgraph isomorphism algorithm, DNNVM achieves up to 1.26x speedup over naive implementations and state-of-the-art performance on VGG (2.82 TOPs/s) and ResNet50 (1.38 TOPs/s) with lower resource usage on Xilinx FPGAs.

ABSTRACT

The convolutional neural network (CNN) has become a state-of-the-art method for several artificial intelligence domains in recent years. The increasingly complex CNN models are both computation-bound and I/O-bound. FPGA-based accelerators driven by custom instruction set architecture (ISA) achieve a balance between generality and efficiency, but there is much on them left to be optimized. We propose the full-stack compiler DNNVM, which is an integration of optimizers for graphs, loops and data layouts, and an assembler, a runtime supporter and a validation environment. The DNNVM works in the context of deep learning frameworks and transforms CNN models into the directed acyclic graph: XGraph. Based on XGraph, we transform the optimization challenges for both the data layout and pipeline into graph-level problems. DNNVM enumerates all potentially profitable fusion opportunities by a heuristic subgraph isomorphism algorithm to leverage pipeline and data layout optimizations, and searches for the best choice of execution strategies of the whole computing graph. On the Xilinx ZU2 @330 MHz and ZU9 @330 MHz, we achieve equivalently state-of-the-art performance on our benchmarks by naïve implementations without optimizations, and the throughput is further improved up to 1.26x by leveraging heterogeneous optimizations in DNNVM. Finally, with ZU9 @330 MHz, we achieve state-of-the-art performance for VGG and ResNet50. We achieve a throughput of 2.82 TOPs/s and an energy efficiency of 123.7 GOPs/s/W for VGG. Additionally, we achieve 1.38 TOPs/s for ResNet50 and 1.41 TOPs/s for GoogleNet.

Motivation & Objective

  • To address the performance and efficiency gap in FPGA-based CNN accelerators due to suboptimal data layout and pipeline scheduling.
  • To reduce the complexity of manually tuning FPGA kernels for diverse CNN models by automating optimization across multiple abstraction levels.
  • To enable high-throughput, energy-efficient inference on resource-constrained FPGAs through a unified compiler stack.
  • To achieve state-of-the-art performance on standard CNNs like VGG and ResNet50 without relying on large on-chip memory.

Proposed method

  • DNNVM compiles CNN models into a framework-agnostic, intermediate graph representation called XGraph.
  • It formulates data layout and pipeline optimization as graph-level problems, enabling holistic exploration of fusion opportunities.
  • A heuristic subgraph isomorphism algorithm enumerates all potentially profitable fusion patterns across layers and operations.
  • The compiler performs joint optimization of loop tiling, data layout, and operation fusion to maximize parallelism and data locality.
  • An assembler generates custom hardware kernels from the optimized schedule, and a runtime environment supports dynamic model loading and execution.
  • The system includes a validation framework to ensure correctness and performance across diverse CNN architectures.

Experimental results

Research questions

  • RQ1How can heterogeneous optimizations across data layout, loop tiling, and operation fusion be systematically explored in a compiler stack for FPGA-based CNN accelerators?
  • RQ2What is the impact of graph-level modeling on reducing the search space for optimal execution strategies in CNN compilation?
  • RQ3Can a unified compiler infrastructure achieve state-of-the-art performance on complex models like VGG and ResNet50 without requiring large on-chip memory?
  • RQ4How does the proposed approach compare to existing compilers in terms of throughput and energy efficiency on resource-constrained FPGAs?
  • RQ5What is the performance gain from automated fusion and scheduling compared to naive, hand-optimized implementations?

Key findings

  • On Xilinx ZU9@330 MHz, DNNVM achieves 2.82 TOPs/s throughput and 123.7 GOPs/s/W energy efficiency for VGG, setting a new state-of-the-art.
  • For ResNet50, DNNVM achieves 1.38 TOPs/s throughput, also representing state-of-the-art performance on the same FPGA platform.
  • On GoogLeNet, the compiler delivers up to 1.26x speedup over a naive implementation through heterogeneous optimizations.
  • The system reduces hardware resource consumption compared to prior FPGA-based CNN accelerators while maintaining or improving performance.
  • The use of a heuristic subgraph isomorphism algorithm enables efficient exploration of fusion opportunities without combinatorial explosion.
  • The compiler stack is portable across multiple deep learning frameworks and supports automatic mapping of diverse CNN models to custom FPGA hardware.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.