TL;DR
NeuralFuse is a novel, plug-and-play add-on module designed to protect Deep Neural Network (DNN) accuracy when running on undervolted hardware. By learning to transform input data into error-resistant representations, it allows for aggressive energy savings (up to 24%) without requiring any retraining of the original "black-box" model, recovering up to 57% of lost accuracy at high bit-error rates.
What Problem Does This Paper Address?
The energy appetite of modern DNNs is a major hurdle for deployment on edge devices. A powerful lever for reducing power consumption is undervolting—reducing the supply voltage to the SRAM (Static Random Access Memory) where model weights are stored. Because dynamic power consumption has a quadratic relationship with voltage ($P \propto V^2$), even small reductions yield significant savings.
However, undervolting comes with a catch: once you drop below a certain threshold ($V_{min}$), the memory becomes unstable, leading to random bit-flips. As shown in the figure below, these bit errors increase exponentially as voltage scales down, causing catastrophic drops in model accuracy.
Existing solutions typically involve hardware-level error mitigation (which adds overhead) or "error-aware" retraining of the entire model. The latter is often impossible for "access-limited" scenarios, such as when using proprietary cloud APIs or fixed, non-configurable hardware accelerators.
Methods
The authors introduce NeuralFuse, a small, trainable generator module ($G$) that acts as a pre-processor. Instead of changing the model, NeuralFuse changes the input. It learns a transformation $F(x) = \text{clip}_{[-1,1]}(x + G(x))$ that adds a specifically crafted, input-aware perturbation to the data, making the resulting representation robust to the errors the base model will encounter in its weights.
Key technical highlights include:
- Expectation Over Perturbed Models (EOPM): A novel optimizer inspired by adversarial attack techniques. It trains the generator by simulating $N$ different perturbed versions of the base model (each with random bit-flips) and averaging the gradients to ensure the transformation works across the entire distribution of possible errors.
- Access-Limited Training: The paper explores two realistic scenarios:
- Relaxed Access: The model is a black box, but you can backpropagate gradients through it.
- Restricted Access: The model is a total black box. Here, NeuralFuse is trained on a "white-box surrogate" model and then transferred to the target model.
- Generator Architectures: The authors tested six variants based on Convolutional, Deconvolutional, and UNet structures in both "Large" and "Small" sizes.
Datasets
The framework was evaluated across four standard image recognition benchmarks:
- CIFAR-10 & CIFAR-100: Standard small-image classification.
- GTSRB: The German Traffic Sign Recognition Benchmark.
- ImageNet-10: A subset of the large-scale ImageNet dataset.
Key Insights and Ideas
- Input-Awareness is Mandatory: The authors found that a "universal" perturbation (one fixed pattern for all images) fails. The transformation must be tailored to each specific input to effectively "shield" the features from weight noise.
- Surprising Transferability: A generator trained to protect one type of model (e.g., VGG19) can effectively protect a completely different architecture (e.g., ResNet18). This makes it highly practical for black-box cloud services.
- Downward Applicability: Generators trained on high bit-error rates (e.g., 1.5%) often perform even better when deployed on systems with lower error rates (e.g., 0.5%) than generators trained specifically for those lower rates.
- Quantization Bonus: Although not explicitly trained for it, NeuralFuse also helps recover accuracy lost due to low-precision quantization (e.g., 4-bit weights), showing its versatility in handling various forms of model degradation.
Key Results
NeuralFuse consistently manages the energy-accuracy tradeoff. As shown in Figure 1 below, it can significantly boost accuracy in low-voltage regimes compared to a "disabled" state.
- Energy Savings: Reduced SRAM access energy by up to 24%.
- Accuracy Recovery: At a 1% bit-error rate, it recovered accuracy by up to 57%.
- Efficiency: UNet-based generators proved to be the most efficient, providing the best recovery per million parameters.
- Robustness: In restricted-access tests, transferring a VGG19-trained generator to a ResNet18 target model still yielded significant accuracy gains, proving the method's viability for black-box scenarios.
Limitations and Future Work
While promising, NeuralFuse introduces an inference latency overhead because the input must pass through the generator before the main model. The authors acknowledge this as an unavoidable tradeoff for the energy savings achieved at the hardware level.
Future research directions suggested by the authors include:
- Designing lighter-weight generator modules to minimize latency.
- Adapting the approach to other architectures like Transformers and Large Language Models (LLMs).
- Integrating the module with specific hardware error characteristics of different SRAM technologies.
Summary updated