[Paper Review] Noisy Computations during Inference: Harmful or Helpful?
This paper proposes noise-injected training and inference voting to enhance neural network robustness against both hardware-induced inference noise and black-box adversarial attacks. It achieves near-perfect accuracy (up to 99.5%) on noisy MNIST inference and improves adversarial robustness by 0.5–1.13% via multiplicative noise during inference, demonstrating that noise can be leveraged beneficially in deep learning systems.
We study two aspects of noisy computations during inference. The first aspect is how to mitigate their side effects for naturally trained deep learning systems. One of the motivations for looking into this problem is to reduce the high power cost of conventional computing of neural networks through the use of analog neuromorphic circuits. Traditional GPU/CPU-centered deep learning architectures exhibit bottlenecks in power-restricted applications (e.g., embedded systems). The use of specialized neuromorphic circuits, where analog signals passed through memory-cell arrays are sensed to accomplish matrix-vector multiplications, promises large power savings and speed gains but brings with it the problems of limited precision of computations and unavoidable analog noise. We manage to improve inference accuracy from 21.1% to 99.5% for MNIST images, from 29.9% to 89.1% for CIFAR10, and from 15.5% to 89.6% for MNIST stroke sequences with the presence of strong noise (with signal-to-noise power ratio being 0 dB) by noise-injected training and a voting method. This observation promises neural networks that are insensitive to inference noise, which reduces the quality requirements on neuromorphic circuits and is crucial for their practical usage. The second aspect is how to utilize the noisy inference as a defensive architecture against black-box adversarial attacks. During inference, by injecting proper noise to signals in the neural networks, the robustness of adversarially-trained neural networks against black-box attacks has been further enhanced by 0.5% and 1.13% for two adversarially trained models for MNIST and CIFAR10, respectively.
Motivation & Objective
- To mitigate the harmful effects of noisy computations in neuromorphic inference, especially in low-power embedded systems.
- To explore whether noisy inference can enhance robustness against black-box adversarial attacks.
- To reduce the precision and power requirements of neuromorphic hardware by training networks to be resilient to noise.
- To develop algorithmic solutions that improve neural network performance under strong analog noise without increasing latency or power overhead.
Proposed method
- Noise-injected training: During backpropagation, multiplicative noise with standard deviation σ is added to activations to simulate inference noise.
- Voting-based inference: Multiple noisy forward passes are performed per input, and the majority prediction is taken to improve robustness.
- Multiplicative noise model: Noise is applied as x' = x × (1 + ε), where ε ~ N(0, σ²), simulating analog circuit variability.
- Adversarial training setup: Two separate networks are trained—one to generate adversarial examples (NN_adv), another to validate robustness (NN_val)—with noise injected during inference on NN_val.
- Black-box attack evaluation: Iterative FGSM with PGD and multiple restarts is used to test transferability of adversarial examples across networks with and without inference noise.
- Quantitative comparison: Accuracy is measured under varying noise levels (σ ∈ [0.0, 0.4]) to assess trade-offs between noise and robustness.
Experimental results
Research questions
- RQ1Can noise-injected training and voting-based inference significantly improve accuracy under high levels of inference noise in neuromorphic hardware?
- RQ2Does introducing noise during inference reduce the need for high-precision analog components in neuromorphic circuits?
- RQ3Can noisy inference enhance the robustness of adversarially trained networks against black-box adversarial attacks?
- RQ4What is the optimal level of inference noise that maximizes defense against transferable adversarial examples?
- RQ5How does the transferability of adversarial examples change when the victim network uses noisy inference?
Key findings
- Noise-injected training combined with voting improved MNIST inference accuracy from 21.1% to 99.5% under strong noise (SNR = 0 dB), demonstrating high resilience to hardware noise.
- For CIFAR10, accuracy increased from 29.9% to 89.1% under the same noise conditions, showing generalization across datasets.
- On MNIST stroke sequences, accuracy rose from 15.5% to 89.6%, confirming effectiveness on sequential data.
- With low-to-medium noise (σ ≤ 0.4), noise-injected training alone improved accuracy from 95.8% to 99.4% on MNIST without added latency or power cost.
- Noisy inference enhanced adversarial robustness by 0.5% on MNIST and 1.13% on CIFAR10 for adversarially trained models, indicating improved defense against black-box attacks.
- Optimal noise levels were σ = 0.2 for MNIST and σ = 0.1 for CIFAR10, beyond which performance degraded due to excessive noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.