Threshold Neuron: A Brain-inspired Artificial Neuron for Efficient On-device Inference

Zihao Zheng, Yuanchun Li, Jiayu Chen, Peng Zhou, Xiang Chen, Yunxin LiuarXiv 2024

Abstract

Enhancing the computational efficiency of on-device Deep Neural Networks (DNNs) remains a significant challenge in mobile and edge computing. While research often focuses on structure compression or system optimization, the fundamental building block—the neuron—remains largely unchanged. This study proposes the Threshold Neuron (TN), a novel artificial neuron model inspired by biological threshold mechanisms and excitation-inhibition balance. By replacing power-hungry multiplications with simple subtractions and comparisons, Threshold Neurons significantly reduce hardware complexity. Extensive experiments demonstrate that TN-based networks achieve 7.51x to 8.19x power savings and 3.89x to 4.33x area savings at the kernel level with minimal precision loss. FPGA implementations further show 2.52x power savings and 1.75x speed enhancements at the system level.

The Multiplication Bottleneck in Edge AI

Deep Neural Networks (DNNs) are increasingly deployed on resource-constrained "edge" devices, such as IoT sensors and mobile phones. However, the standard neuron paradigm relies heavily on the "weighted-sum" operation, which necessitates millions of multiplications. In silicon hardware, multiplier circuits are disproportionately large and energy-intensive compared to adders or comparators.

Hardware operation costs and biological inspiration. Multiplication consumes significantly more power and area than simpler operations like subtraction or comparison.

As shown in the hardware analysis above, a single multiplication operation requires nearly 14 times the power and 8 times the area of a simple addition. Furthermore, modern DNN architectures require a "hybrid" of disparate circuit types for normalization, activation, and pooling, which complicates the hardware design process and leads to inefficiencies.

The Threshold Neuron Model

To address these inefficiencies, we introduce the Threshold Neuron (TN). This model is built upon two core biological principles:

  1. Threshold Mechanism: Biological neurons fire only when an input signal exceeds a specific threshold. In our model, the weight $W$ acts as this threshold.
  2. Excitation-Inhibition Balance: The brain balances excitatory (stimulating) and inhibitory (suppressing) signals. We implement this by assigning a "polarity" to each neuron.
The Threshold Neuron model replaces multiplication with a thresholding function $T(X, W)$ based on subtraction and comparison.

Mathematically, the interaction between an input $X$ and a weight $W$ is defined by the function $T(X, W)$. If $X > W$, the output is $X - W$; otherwise, it is 0. This simple logic replaces the traditional $W \times X$ multiplication with a comparison and a subtraction.

Unified Architecture: Threshold-Net

By utilizing the inherent non-linearity of the thresholding operation, we can construct Threshold-Net. This architecture eliminates the need for separate ReLU activation and Batch Normalization layers, as the TN naturally handles non-linearity and numerical variance. For high-precision tasks, we utilize Multiplication Injection (MI), a hybrid approach that selectively retains traditional multiplications in critical layers while keeping the majority of the network multiplication-free.

Experimental Results

We evaluated Threshold-Net across image classification (CIFAR10, MNIST), image generation (Diffusion models), and human activity recognition (HAR) datasets.

Hardware Efficiency

Simulations using a 28nm process reveal that Threshold Neurons achieve:

  • Power Savings: 7.51x to 8.19x reduction at the kernel level.
  • Area Savings: 3.89x to 4.33x reduction in silicon area.
  • System Performance: On a Xilinx FPGA, a 4-layer Threshold-Net achieved a 2.52x power saving and a 1.75x speedup compared to traditional implementations.

Accuracy and Versatility

Threshold-Net maintains competitive accuracy across domains. In sensing tasks (HAR), it often outperformed traditional CNNs, such as a +2.14% accuracy gain on the USC-HAD dataset. On CIFAR10, it achieved 88.53% accuracy, staying competitive with other multiplication-less baselines. Notably, the model successfully powered a generative Diffusion model, demonstrating scalability to modern generative AI workloads.

Conclusion

The Threshold Neuron represents a fundamental shift in artificial neuron design, prioritizing hardware-algorithm co-design. By mimicking biological efficiency, we can create DNNs that are significantly faster and more energy-efficient without sacrificing performance. Future work will explore Neural Architecture Search (NAS) to optimize network structures specifically for TN logic and the development of custom ASICs to fully realize the potential of multiplication-free computing.

Summary updated

BibTeX
@misc{zheng2024threshold,
  author = {Zihao Zheng and Yuanchun Li and Jiayu Chen and Peng Zhou and Xiang Chen and Yunxin Liu},
  title = {{Threshold Neuron: A Brain-inspired Artificial Neuron for Efficient On-device Inference}},
  year = {2024},
  eprint = {2412.13902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.13902},
}
Figure