FPGN: Redefining Ultra-Fast Programmable Gate-based Neural Acceleration with Differentiable LUTs

Jiawei Liang, Haotong Qin, Linfeng Du, Xingyu Liu, Shangkun Li, Hui Yu, Michele Magno, Xinyu Chen, Jiang Xu, Wei ZhangarXiv 2026

TL;DR

FPGN is an end-to-end, physically-aware framework that redefines FPGA neural acceleration by treating Look-Up Tables (LUTs) as learnable neurons rather than simple arithmetic building blocks. By co-designing hardware-aligned training, structured network topologies, and an automated compiler, it achieves nanosecond-scale inference latency, outperforming traditional binary neural network accelerators by up to 205$\times$.

What Problem Does This Paper Address?

Applications like high-energy physics triggers, high-frequency trading, and line-rate network packet classification demand sub-microsecond, nanosecond-scale inference latencies. While FPGAs are an ideal substrate for this due to their reconfigurability and deterministic timing, traditional accelerators use an "arithmetic-centric" approach. They force the FPGA's core primitives—Look-Up Tables (LUTs)—to act merely as building blocks for standard multipliers and adders, severely underutilizing their intrinsic Boolean expressivity.

Evolution of FPGA neural paradigms

Recent "LUT-as-neuron" methods try to fix this by making LUT configurations directly learnable. However, they suffer from three major issues: a severe mathematical mismatch between differentiable training and discrete hardware, chaotic "unstructured" connections that break physical FPGA routing (causing timing failures), and a lack of automated tools to explore the hardware design space.

Methods

FPGN bridges the gap between machine learning algorithms and physical hardware through a three-tiered co-design approach:

  1. Hardware-Aligned Training: FPGN introduces a continuous, differentiable relaxation that mathematically mirrors the discrete address decoding logic of a physical $k$-input LUT. This formulation scales efficiently ($O(2^k)$ parameters per neuron) to modern 6-LUTs. To ensure stable convergence, training uses a three-stage optimization strategy: smooth continuous relaxation, progressive binarization via sigmoid annealing, and binary fine-tuning, backed by a bimodal Gaussian initialization to prevent vanishing gradients.
  2. Physically-Aware Topology & Streaming Architecture: FPGN enforces strict structural regularity using micro-topologies like parallel LUT-vectors and tree-structured reduction units, combined with in-order flattening and locality-aware padding. At the macro level, it organizes these into aggregation, feature extraction, and output stages. Notably, it mathematically fuses Batch Normalization directly into the binarization function, eliminating DSP blocks entirely.
  3. Latency-Driven Automated Compiler: To avoid time-consuming logic synthesis during design exploration, the authors built a high-fidelity analytical Quality of Results (QoR) model to predict timing, resource usage, and streaming latency. A hybrid design space exploration (DSE) engine combines a heuristic search with a Mixed-Integer Linear Programming (MILP) solver to automatically generate optimized, synthesizable RTL code.
Fig. 4. FPGN’s network topology. The network consists of hardware-friendly layers built on structured micro-topology (a-d,f). (e) Mathematical fusion of BN and binarization into a simple integer comparison.

Datasets

The framework was evaluated on standard computer vision and edge datasets:

  • CIFAR-10 (Image classification)
  • SVHN (Street View House Numbers)
  • Keyword Spotting (KWS) (Speech commands)

It was also tested on two physics-focused benchmarks for ultra-low latency tasks:

  • JSC-CERNBox and JSC-OpenML (Jet Substructure Classification datasets)

Key Insights and Ideas

  • Unstructured Connections Kill Hardware Performance: Algorithmic flexibility often leads researchers to allow random neuron connections. The authors prove that unstructured layouts cause convoluted routing paths that degrade clock frequency ($F_{max}$). Enforcing structured, local connectivity reduces half-perimeter wirelength (HPWL) by 3.5$\times$ and keeps clock frequencies high.
Fig. 2. Profiling of connection topologies. (a, b) Post-P&R layout of unstruc- tured and structured designs, highlighting top 10 critical paths. (c) Quantitative P&R results. The structured topology drastically reduces wirelength and achieve higher frequency. (d) Scaling behavior of Fmax versus LUT count. Structured topology maintains high frequency while the unstructured one causes severe frequency degradation.
  • Bypassing the Double-Exponential Explosion: Instead of assigning weights to every possible Boolean function combination ($2^{2^k}$), FPGN maps parameters directly to the $2^k$ physical truth-table entries of a LUT, making 6-LUT training scalable for the first time without heuristic approximations.
  • DSP-Free Execution: By shifting the identity addition in residual blocks and fusing Batch Normalization into simple integer comparisons, the entire network maps directly to LUTs, freeing up valuable DSP and memory blocks.

Key Results

  • Massive Latency Reduction: On the CIFAR-10 dataset, FPGN-6-G achieved a deterministic latency of just 658 ns—a 205$\times$ absolute reduction compared to the standard AMD FINN BNN framework.
  • High Throughput & Efficiency: It delivered a peak throughput of 3.21M FPS and a 7.31$\times$ improvement in energy efficiency (kFPS/W) over FINN.
  • Superior LUT Utility: FPGN demonstrated up to 30$\times$ higher LUT efficiency (FPS/LUT) compared to the LUT-as-operator paradigm (LUTNet), proving that treating LUTs as standalone neurons is far more effective than replacing individual gates.
  • Rapid Compilation: The compiler's hybrid DSE solver successfully navigated the massive unrolling design space to find optimal configurations in only 16 seconds.

Limitations and Future Work

The current framework is strictly optimized for fully binary operating regimes; the authors note that exploring intermediate precision or hybrid architectures remains an open area for future work. Additionally, while currently tailored for CNN and MLP topologies, extending FPGN's primitives to support linear operations in Transformer architectures (such as QKV projections) is highlighted as a promising future direction.

Summary updated

BibTeX
@misc{liang2026fpgn,
  author = {Jiawei Liang and Haotong Qin and Linfeng Du and Xingyu Liu and Shangkun Li and Hui Yu and Michele Magno and Xinyu Chen and Jiang Xu and Wei Zhang},
  title = {{FPGN: Redefining Ultra-Fast Programmable Gate-based Neural Acceleration with Differentiable LUTs}},
  year = {2026},
  eprint = {2607.08427},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.08427},
}
Figure