NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networks

Xue Geng, Zhe Wang, Chunyun Chen, Qing Xu, Kaixin Xu, Jin Chao, Manas Gupta, Xulei Yang, Zhenghua Chen, Mohamed M. Sabry Aly, Jie Lin, Min Wu, Xiaoli Li

Deploying state-of-the-art Deep Neural Networks (DNNs) today is a significant engineering challenge. With billions of parameters, these models are computationally intensive, energy-hungry, and often too slow for real-time edge devices like smartphones or autonomous drones. This survey by Xue Geng and colleagues provides a comprehensive roadmap for navigating these challenges, moving beyond simple "model shrinking" to explore the full stack: from algorithmic compression to custom hardware co-design and privacy-preserving computation.

Overview of the survey structure and key topics covered, spanning model compression, hardware optimization, and secure deployment.

Bridging the Hardware-Software Gap

The primary hurdle in modern AI deployment is the "AI Tax." Modern models demand massive memory bandwidth and power, creating a bottleneck for edge computing. Furthermore, a significant "hardware-software gap" exists: an algorithm that reduces a model's size on paper might not yield actual speedups if the underlying hardware cannot efficiently handle sparse matrices or low-precision arithmetic.

Beyond efficiency, security is a growing concern. Sending sensitive data to the cloud for AI analysis risks privacy leaks. While Homomorphic Encryption (HE) allows AI to process encrypted data without decryption, it is notoriously slow. This paper explores how efficiency techniques are the "secret sauce" needed to make HE practical for real-world use.

Core Pillars of Efficient Deployment

The authors categorize solutions into three main pillars: Model Compression, Hardware-Software Co-design, and Secure Deployment.

1. Model Compression

Model compression aims to reduce the storage and computational requirements of DNNs through several key techniques:

  • Quantization: This involves reducing the precision of weights (e.g., from 32-bit floats to 8-bit or even 1-bit integers). The survey details various approaches, including uniform, non-uniform, and mixed-precision quantization.
  • Pruning: This technique removes redundant neurons or connections. The paper distinguishes between unstructured pruning (removing random weights) and structured pruning (removing entire channels), noting that structured pruning is significantly easier for hardware to accelerate.
  • Knowledge Distillation (KD): KD involves training a smaller "student" model to mimic the behavior and performance of a larger, pre-trained "teacher" model.
Comparison of different quantization strategies: (a) Uniform, (b) Non-uniform, (c) Mixed-Precision, and (d) Transform Quantization.

2. Hardware-Software Co-design

The paper reviews custom accelerators, such as ASICs and FPGAs, designed specifically for compressed models. A key insight is the importance of accelerating non-linear operations like Softmax and Non-Maximum Suppression (NMS). Once the main convolutions are optimized, these operations often become the new system bottlenecks.

3. Secure Deployment

The authors dive into Homomorphic Neural Networks (HNNs). They explain how compression techniques, such as binarization, can mitigate the "polynomial expansion" problem in HE, where encrypted data grows exponentially during computation. By quantizing a model to very low bit-widths, the "noise" that accumulates during encryption is reduced, making secure cloud AI more feasible.

Key Insights and Results

  • The Memory Wall: Reading data from DRAM is orders of magnitude more expensive than computation. A 32-bit DRAM read consumes ~21,000x more energy than an 8-bit addition, making compression a necessity.
  • Sparsity Challenges: Unstructured pruning creates "holey" matrices difficult for standard hardware. Real speedups require specialized architectures (like Eyeriss) that can skip zero-value computations.
  • NMS Bottlenecks: In object detection, NMS can dominate latency. The paper highlights "ShapoolNMS," a hardware-friendly approach achieving up to a 42,713x speedup over traditional greedy algorithms.
  • Performance Gains: Global Magnitude Pruning (GMP) can achieve 80% sparsity on ResNet-50 with minimal accuracy loss. Mixed-precision hardware can reduce computation area by nearly 50% and dynamic power by 12% compared to fixed-precision baselines.

Future Frontiers

While the survey covers a vast landscape, several open frontiers remain. Most research currently focuses on CNNs, leaving the deployment of Large Language Models (LLMs)—with their unique memory and attention bottlenecks—as a critical area for future study. Additionally, the lack of standardized hardware platforms for evaluation and the difficulty of combining multiple compression techniques into a single stable "recipe" continue to challenge the field.

Summary updated

BibTeX
@article{geng2024from,
  author = {Xue Geng and Zhe Wang and Chunyun Chen and Qing Xu and Kaixin Xu and Jin Chao and Manas Gupta and Xulei Yang and Zhenghua Chen and Mohamed M. Sabry Aly and Jie Lin and Min Wu and Xiaoli Li},
  title = {{From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networks}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
}
Figure