TF2FPGA: A Framework for Projecting and Accelerating Tensorflow CNNs on FPGA Platforms

Spyridon Mouselinos, Vasileios Leon, Sotirios Xydis, Dimitrios Soudris, Kiamal Pekmestzi

2019 · 11 citations · 14 references

Concepts

Abstract

FPGA-based accelerators of Convolutional Neural Networks (CNNs) deliver significant performance, while leaving much room for optimizations. In this paper, we present a CNN accelerator based on the state-of-the-art Dataflow Hardware Mapping (DHM) methodology, optimized with the use of 8-bit unsigned integer quantization, 1-bit input mapping and deep-to-shallow conversion techniques. Interestingly, we introduce a Tensorflow-to-VHDL framework to generate high-performance accelerators for inferencing on FPGAs, adopting a holistic view of CNN problems. The proposed framework uses a VHDL library of our pre-optimized layers and modules, and creates the accelerator by extracting the model definition and weights from the respective Tensorflow files. The 8-bit quantized weights are stored in an on-board ROM memory, and thus, the need for external-to-FPGA “glue logic” modules and increased bandwidth is eliminated. Additionally, we include a Matrix Multiplication-to-FIR conversion method that manages to include the fully connected part of the CNN inside the FPGA. Finally, we achieve 75% less memory footprint and 53% less resource utilization compared to the state-of-the-art based architectures, and up to ×10 speedup vs different GPU, CPU combinations.

References

14