N3H-Core: Neuron-designed Neural Network Accelerator via FPGA-based Heterogeneous Computing Cores

Yu Gong, Zhihan Xu, Zhezhi He, Weifeng Zhang, Xiaobing Tu, Xiaoyao Liang, Li Jiang · DOI

Abstract

Modern FPGA-based neural network accelerators often suffer from underutilized resources due to a heavy reliance on dedicated Digital Signal Processing (DSP) slices. This paper presents N3H-Core, a heterogeneous hardware architecture that leverages both DSP units and Look-Up Tables (LUTs) as primary compute engines. By integrating a bit-parallel DSP-Core with a flexible bit-serial LUT-Core, N3H-Core efficiently handles mixed-precision workloads. We further propose a reinforcement learning-based optimization framework to automate workload splitting and quantization. Evaluation on ImageNet benchmarks demonstrates that N3H-Core provides up to 1.32x latency improvement over existing state-of-the-art accelerators while maintaining competitive accuracy.

Introduction

The efficiency of FPGA-based Deep Neural Network (DNN) accelerators is typically constrained by the availability of DSP slices. While DSPs are optimized for fixed-width multiplication, they are often underutilized in mixed-precision scenarios, and the FPGA's significant LUT resources are frequently relegated to peripheral logic. N3H-Core addresses this by treating LUTs as first-class compute units, enabling a more balanced and dense utilization of FPGA silicon. This approach is particularly relevant as DNNs move toward mixed-precision quantization, where different layers require varying bit-widths to balance power, memory, and accuracy.

Heterogeneous Hardware Architecture

The core of N3H-Core is its dual-engine design. The DSP-Core is optimized for standard 4-bit parallel computation, while the LUT-Core employs a bit-serial approach (inspired by BISMO) to provide flexibility for variable bit-widths ranging from 2 to 8 bits. This heterogeneity allows the system to assign sensitive filters to higher-precision DSP units and more robust filters to compressed LUT-based units, effectively increasing the compute density of the FPGA.

The N3H-Core heterogeneous architecture featuring dedicated LUT and DSP cores with shared activation and weight buffers.

Instruction Synchronization and Execution

To maximize throughput, N3H-Core utilizes an asynchronous execution model. A unified Instruction Set Architecture (ISA) manages the flow between the Fetch, Execute, and Result engines. Instruction queues and synchronization signals ensure that the heterogeneous cores operate efficiently without stalling the pipeline. This decoupled architecture allows for overlapping data movement with computation, which is critical for maintaining high utilization across both core types.

Instruction synchronization via queues and the corresponding timing diagram for fetch, execute, and result stages.

RL-based Optimization Framework

Managing the distribution of workloads across heterogeneous cores is a complex optimization problem. N3H-Core employs a Deep Deterministic Policy Gradient (DDPG) reinforcement learning agent to explore the massive design space. The agent automatically tunes three key parameters:

  1. Resource Allocation: Distribution of BRAMs, LUTs, and DSPs.
  2. Workload Splitting: The ratio of filters (neurons) assigned to the LUT-core vs. the DSP-core for every layer.
  3. Mixed-Precision Quantization: Ideal bit-widths for weights and activations per layer.

Results and Discussion

The framework was validated on Xilinx Zynq platforms (XC7Z020 and XC7Z045) using ResNet-18 and MobileNet-V2 benchmarks on the ImageNet dataset. N3H-Core achieved a latency reduction of 1.12x to 1.32x compared to the state-of-the-art "Mix&Match" baseline.

Key findings include:

  • Accuracy Preservation: The system achieved higher inference accuracy than fixed-precision counterparts by leveraging the flexibility of the LUT-core for sensitive layers.
  • Architecture Synergy: The LUT-core proved particularly effective for ResNet architectures, while the DSP-core excelled at handling the depth-wise convolutions in MobileNet-V2.
  • Automated Insights: The RL agent independently discovered that down-sampling layers require higher precision to prevent accuracy loss, matching expert manual tuning intuition.

Conclusion

N3H-Core demonstrates the potential of heterogeneous FPGA computing for neural acceleration. By elevating LUTs to primary compute units and automating the optimization process via RL, the system achieves significant performance gains and superior resource utilization. Future work will explore extending this architecture to support Transformers and Graph Neural Networks (GNNs).

Summary updated

BibTeX
@inproceedings{gong2021n,
  author = {Yu Gong and Zhihan Xu and Zhezhi He and Weifeng Zhang and Xiaobing Tu and Xiaoyao Liang and Li Jiang},
  title = {{N3H-Core: Neuron-designed Neural Network Accelerator via FPGA-based Heterogeneous Computing Cores}},
  booktitle = {FPGA},
  year = {2021},
  doi = {10.1145/3490422.3502367},
}
Figure