NullaNet Tiny: Ultra-low-latency DNN Inference Through Fixed-function Combinational Logic

Mahdi Nazemi, Arash Fayyazi, Amirhossein Esmaili, Atharva Khare, Soheil Nazar Shahsavani, Massoud Pedram

Abstract

NullaNet Tiny is a specialized framework designed to enable ultra-low-latency deep neural network (DNN) inference on hardware by treating neurons as optimized combinational logic circuits. By integrating fanin-constrained pruning with advanced logic minimization, the framework transforms DNN neurons into Boolean functions mapped directly to FPGA Look-Up Tables (LUTs). Experimental results on high-energy physics benchmarks demonstrate sub-microsecond inference latency and up to a 24x reduction in resource utilization compared to state-of-the-art FPGA accelerators, while simultaneously improving classification accuracy.

1. Introduction

Deploying deep neural networks (DNNs) in environments with stringent, sub-microsecond latency requirements—such as high-frequency trading or real-time particle physics experiments—remains a significant challenge. Standard hardware accelerators like GPUs and CPUs often fail to meet these demands due to their reliance on sequential processing and complex Multiply-Accumulate (MAC) operations. NullaNet Tiny addresses this by replacing traditional arithmetic operations with fixed-function combinational logic that executes in minimal clock cycles.

2. Methodology

The NullaNet Tiny pipeline is divided into two primary modules: a training module and a logic minimization module.

The NullaNet Tiny design flow, illustrating the training and logic minimization modules.

2.1 Training Module

The training process incorporates Quantization-Aware Training (QAT) and Fanin-constrained Pruning (FCP). Unlike standard models, NullaNet Tiny uses binary, bipolar, or multi-bit values. A key innovation is the use of heterogeneous activation functions (e.g., sign or PACT) tailored to the input distribution of specific layers. FCP is critical as it limits the number of inputs (fanin) to each neuron, ensuring that the resulting Boolean truth tables remain computationally manageable.

2.2 Logic Minimization Module

Once trained, the pruned and quantized neurons are converted into truth tables by enumerating all possible input combinations. The framework then applies ESPRESSO-II for two-level logic minimization, followed by multi-level logic minimization and retiming using Xilinx Vivado. This process yields a circuit that is mathematically equivalent to the original neuron but optimized for the FPGA's native LUT architecture.

3. Experimental Evaluation

The framework was evaluated using the Jet Substructure Classification (JSC) task, a benchmark in high-energy physics requiring nanosecond-level decision-making. Three architectures—JSC-Small (JSC-S), JSC-Medium (JSC-M), and JSC-Large (JSC-L)—were compared against LogicNets, the previous state-of-the-art.

4. Results and Discussion

NullaNet Tiny consistently outperformed existing solutions across several key metrics, including accuracy, area, and speed.

Performance comparison of NullaNet Tiny architectures (JSC-S, JSC-M, JSC-L) showing improvements in accuracy, resource utilization, and clock frequency.

As shown in the table above, NullaNet Tiny achieved:

  • Higher Accuracy: An improvement of 1.55% to 1.85% over LogicNets across all model sizes.
  • Resource Efficiency: At similar accuracy levels, the design achieved a 24.42× lower LUT utilization.
  • Latency Reduction: Inference speeds were 2.36× faster than LogicNets and 9.25× faster than optimized Google designs for the same task.
  • Clock Frequency: The JSC-S model reached a theoretical clock frequency of 2,079 MHz, highlighting the efficiency of the logic-based approach.

5. Conclusion

NullaNet Tiny demonstrates that treating quantized neurons as Boolean black boxes can unlock unprecedented performance for ultra-low-latency applications. While the approach currently faces scalability constraints for very deep models due to the fanin requirements, it provides a powerful paradigm for specialized hardware deployment. Future work will focus on refining multi-level logic optimization to support more complex neural architectures.

Summary updated

BibTeX
@inproceedings{nazemi2021nullanet,
  author = {Mahdi Nazemi and Arash Fayyazi and Amirhossein Esmaili and Atharva Khare and Soheil Nazar Shahsavani and Massoud Pedram},
  title = {{NullaNet Tiny: Ultra-low-latency DNN Inference Through Fixed-function Combinational Logic}},
  booktitle = {FCCM},
  year = {2021},
  doi = {10.1109/fccm51124.2021.00053},
}
Figure