Efficient Noise Mitigation for Enhancing Inference Accuracy in DNNs on Mixed-Signal Accelerators

Seyedarmin Azizi, Mohammad Erfan Sadeghi, Mehdi Kamal, Massoud PedramarXiv 2024 · DOI

Abstract

Analog mixed-signal accelerators provide a high-efficiency alternative to digital processors for Deep Neural Network (DNN) inference. However, hardware non-idealities like process and temporal variations introduce noise that significantly degrades model accuracy. This paper proposes a modular, probabilistic denoising framework designed to mitigate these effects. By inserting lightweight denoising blocks into pre-trained models and employing parameter-efficient fine-tuning, the framework recovers nearly all accuracy loss with minimal hardware overhead.

Introduction

The computational demands of modern DNNs have spurred interest in energy-efficient hardware. Analog mixed-signal accelerators perform Matrix-Vector Multiplications (MVM) using physical properties like resistance, offering orders of magnitude better efficiency than traditional GPUs. Despite this potential, analog hardware is inherently noisy. Manufacturing variations and environmental factors like heat introduce stochastic errors into activations, often causing model performance to collapse. Traditional solutions, such as noise-aware retraining of the entire network, are computationally prohibitive. This work addresses the challenge through a targeted, modular denoising approach.

Methodology

The Probabilistic Denoising Block

The core of the proposed framework is a lightweight denoising block inspired by diffusion models but optimized for single-pass inference. The block utilizes a bottleneck architecture consisting of 1x1 convolutions for dimension reduction followed by depthwise convolutions. Unlike deterministic filters, this block is probabilistic: it estimates the mean ($\mu$) and variance ($\sigma^2$) of the noise at a specific layer to perform signal subtraction.

Architecture of the probabilistic denoising block, showing the flow from noisy activation to noise estimation and cancellation.

Parameter-Efficient Fine-Tuning (PEFT)

To minimize training costs, the original pre-trained model weights remain frozen. Only the parameters within the newly inserted denoising blocks are trained. This allows the model to adapt to specific hardware noise profiles in as few as five epochs, making it practical for post-deployment calibration.

Strategic Layer Insertion

Inserting denoising blocks at every layer would incur excessive latency. The authors employ a strategic insertion algorithm based on a first-order Taylor expansion of the loss function. By ranking layers according to their sensitivity to noise (gradient norms), blocks are placed only in the most critical locations, balancing accuracy recovery with performance.

Hardware Integration

The framework is designed for a digital-analog hybrid architecture. While the heavy MVM operations occur in the analog domain, the denoising blocks are implemented as dedicated digital modules. This ensures the denoiser itself is not subject to analog noise.

Overview of the denoiser hardware architecture, including the noise cancellation block and its integration with the convolution core.

Results and Discussion

Evaluations on ImageNet-1k and CIFAR-10 across various architectures (ResNet-18, MobileNetV2, EfficientNet-B0) demonstrate the framework's effectiveness. On ImageNet, where noise reduced baseline accuracy to 31.7%, the denoising blocks restored performance to within 1.15% of the original noise-free baseline.

The overhead is remarkably low, with an average parameter increase of only 2.03%. In hardware simulations, the integration of these blocks added only 11% to total latency and a negligible 1.78 mW in power consumption. Notably, highly compressed models like EfficientNet-B0, which are extremely fragile under noise, saw near-complete recovery using this method.

Conclusion

This work demonstrates that hardware-induced noise in analog accelerators can be effectively mitigated using modular, probabilistic denoising. By combining sensitivity-based block insertion with parameter-efficient fine-tuning, the proposed framework enables the deployment of high-accuracy DNNs on energy-efficient mixed-signal hardware without the need for exhaustive retraining.

Summary updated

BibTeX
@misc{azizi2024efficient,
  author = {Seyedarmin Azizi and Mohammad Erfan Sadeghi and Mehdi Kamal and Massoud Pedram},
  title = {{Efficient Noise Mitigation for Enhancing Inference Accuracy in DNNs on Mixed-Signal Accelerators}},
  year = {2024},
  eprint = {2409.18553},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.18553},
}
Figure