NeuralFuse: Learning to Recover the Accuracy of Access-Limited Neural Network Inference in Low-Voltage Regimes

Hao-Lun Sun, Lei Hsiung, Nandhini Chandramoorthy, Pin-Yu Chen, Tsung-Yi Ho

TL;DR

NeuralFuse is a plug-and-play module that protects deep learning models from accuracy loss caused by energy-saving "undervolting." By learning to transform inputs into error-resistant representations, it allows for significant power savings (up to 24%) without needing to retrain the original, often inaccessible, "black-box" model.

The Problem: The "Voltage Floor" in Edge AI

Deep Neural Networks (DNNs) are notoriously power-hungry, which is a major hurdle for deploying them on edge devices like smartphones or IoT sensors. One of the most effective ways to save power is to lower the supply voltage of the hardware, as dynamic power consumption has a quadratic relationship with voltage ($P \propto V^2$).

Bit Error Rate and Energy vs. Normalized Voltage

However, there is a "voltage floor." If you drop the voltage too low, the Static Random Access Memory (SRAM) where model weights are stored becomes unstable. This leads to random bit-flips—0s become 1s and vice versa. Even a single bit-flip in a critical weight (like a Most Significant Bit) can cause a model's accuracy to plummet from 90% to 10% instantly.

Existing solutions usually involve "error-aware training," where you retrain the entire model to be robust to these flips. But what if you don't have access to the model's internals? If you are using a cloud API or a proprietary hardware accelerator, you can't retrain the model. The authors call this the access-limited scenario, and it’s where NeuralFuse steps in.

Methods: Shifting the Burden to Input Data

The core idea of NeuralFuse is to shift the burden of robustness from the model weights to the input data.

Overview of NeuralFuse Architecture and Performance

Instead of fixing the model, the authors introduce a small, secondary DNN called a Generator $\mathcal{G}$. This generator sits in front of the main model and applies a learned transformation to the input $x$. The resulting "error-resistant" representation is what actually gets processed by the undervolted, error-prone main model.

Key Technical Innovations:

  • Input-Aware Transformation: The generator doesn't just add random noise; it learns a specific perturbation for each input that makes the resulting features more "separable" and resilient to weight perturbations.
  • Expectation Over Perturbed Models (EOPM): To train the generator, the authors developed a new optimizer. During training, they simulate $N$ different versions of the main model, each with a different set of random bit-flips. The generator is optimized to perform well across this entire distribution of faulty models.
  • Surrogate Training: For "restricted access" cases where the main model is a total black box, the authors train the generator using a "white-box" surrogate model (like a standard ResNet) and then transfer that generator to the target black-box model.

Datasets Evaluated

The authors evaluated NeuralFuse across a variety of standard computer vision benchmarks to prove its versatility:

  • CIFAR-10 & CIFAR-100: Standard object classification.
  • GTSRB: The German Traffic Sign Recognition Benchmark (critical for autonomous driving contexts).
  • ImageNet-10: A subset of the massive ImageNet dataset to test performance on higher-resolution images.

Key Insights and Results

  • The "Noise-Canceling" Analogy: Think of NeuralFuse like noise-canceling headphones. Instead of trying to silence a noisy city (fixing the hardware/weights), you provide a signal that is specifically designed to remain clear despite the surrounding interference.
  • Cross-Architecture Transferability: One of the most surprising findings was that a generator trained on a VGG19 model could effectively protect a ResNet18 model. This suggests that "error-resistant representations" share common characteristics across different neural architectures.
  • Downward Applicability: The authors found that training a generator on a high bit-error rate (e.g., 1.5%) makes it even more effective at protecting models running at lower error rates (e.g., 0.5%). It essentially "over-prepares" the data for the worst-case scenario.

Performance Gains

The experimental results demonstrate a significant win-win for energy and accuracy:

  • Energy Savings: NeuralFuse enabled a reduction in SRAM access energy by up to 24%.
  • Accuracy Recovery: At a 1% bit-error rate (which usually destroys model performance), NeuralFuse recovered up to 57% of the lost accuracy.

Limitations and Future Work

While promising, the authors acknowledge a few hurdles:

  • Latency Overhead: Adding a generator adds a small amount of computation time (a few milliseconds). For ultra-real-time applications, this needs to be minimized.
  • Generator Power: The generator itself consumes power. While it saves energy on the main model's memory access, the net energy gain depends on the generator being significantly smaller and more efficient than the model it protects.
  • Beyond Vision: The current work focuses on CNNs and image data. The authors suggest that future work should explore applying NeuralFuse to Transformers and Large Language Models (LLMs), where energy consumption is an even bigger concern.

Summary updated

BibTeX
@inproceedings{sun2024neuralfuse,
  author = {Hao-Lun Sun and Lei Hsiung and Nandhini Chandramoorthy and Pin-Yu Chen and Tsung-Yi Ho},
  title = {{NeuralFuse: Learning to Recover the Accuracy of Access-Limited Neural Network Inference in Low-Voltage Regimes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=npoHt6WV1F},
}
Figure