[Paper Review] Denoising Noisy Neural Networks: A Bayesian Approach with Compensation
This paper proposes a Bayesian denoising framework for noisy neural networks (NoisyNNs) arising from wireless transmission, analog hardware, or quantization, using a minimum mean square error (MMSE) estimator with compensation to reconstruct clean weights. It achieves up to 13.4 dB gain over maximum likelihood estimation in test accuracy for ResNet18 under noisy training.
Deep neural networks (DNNs) with noisy weights, which we refer to as noisy neural networks (NoisyNNs), arise from the training and inference of DNNs in the presence of noise. NoisyNNs emerge in many new applications, including the wireless transmission of DNNs, the efficient deployment or storage of DNNs in analog devices, and the truncation or quantization of DNN weights. This paper studies a fundamental problem of NoisyNNs: how to reconstruct the DNN weights from their noisy manifestations. While all prior works relied on the maximum likelihood (ML) estimation, this paper puts forth a denoising approach to reconstruct DNNs with the aim of maximizing the inference accuracy of the reconstructed models. The superiority of our denoiser is rigorously proven in two small-scale problems, wherein we consider a quadratic neural network function and a shallow feedforward neural network, respectively. When applied to advanced learning tasks with modern DNN architectures, our denoiser exhibits significantly better performance than the ML estimator. Consider the average test accuracy of the denoised DNN model versus the weight variance to noise power ratio (WNR) performance. When denoising a noisy ResNet34 model arising from noisy inference, our denoiser outperforms ML estimation by up to 4.1 dB to achieve a test accuracy of 60%.When denoising a noisy ResNet18 model arising from noisy training, our denoiser outperforms ML estimation by 13.4 dB and 8.3 dB to achieve test accuracies of 60% and 80%, respectively.
Motivation & Objective
- Address the challenge of reconstructing deep neural network (DNN) weights corrupted by noise during wireless transmission, analog computation, or quantization.
- Overcome the limitations of maximum likelihood (ML) estimation, which fails to optimize inference accuracy in noisy DNN scenarios.
- Develop a Bayesian denoising approach that explicitly maximizes test accuracy of reconstructed DNN models rather than merely estimating weights.
- Provide theoretical justification and empirical validation of the denoiser's superiority in small-scale and large-scale DNN settings.
Proposed method
- Formulate the denoising problem as a Bayesian inference task, modeling noisy weights as random variables corrupted by additive white Gaussian noise (AWGN).
- Derive a minimum mean square error (MMSE) estimator for DNN weight reconstruction, incorporating prior knowledge about weight distributions.
- Introduce a compensation mechanism to correct for bias introduced by the MMSE estimator in the presence of non-Gaussian weight distributions.
- Use a quadratic activation function and shallow feedforward network as analytical testbeds to rigorously prove the superiority of the denoiser over ML estimation.
- Apply the denoiser to modern architectures like ResNet18 and ResNet34 under noisy inference and training conditions.
- Optimize the denoising parameters (e.g., regularization strength) via analytical derivation and numerical validation under varying noise power ratios (WNR).
Experimental results
Research questions
- RQ1Can a Bayesian denoising approach outperform maximum likelihood estimation in reconstructing DNN weights from noisy observations?
- RQ2How does the proposed denoiser improve inference accuracy compared to ML estimation in noisy neural network scenarios?
- RQ3What is the theoretical performance gain of the Bayesian denoiser in small-scale problems with known weight distributions?
- RQ4How does the compensation mechanism enhance the denoising performance when the true weight distribution deviates from Gaussian assumptions?
- RQ5What is the achievable performance gain in terms of test accuracy and signal-to-noise ratio (WNR) for real-world DNNs like ResNet18 and ResNet34 under noisy transmission or training?
Key findings
- The proposed Bayesian denoiser outperforms maximum likelihood (ML) estimation by up to 4.1 dB in WNR when denoising a noisy ResNet34 model under noisy inference.
- For a noisy ResNet18 model trained under noise, the denoiser achieves a 13.4 dB gain over ML at 60% test accuracy and an 8.3 dB gain at 80% test accuracy.
- Theoretical analysis shows that the optimal denoising parameter θ* is derived as √(σ_w² / (σ_w² + 2σ_z²)), which minimizes the expected distortion under the MMSE criterion.
- The denoiser achieves a significant performance gain because it explicitly optimizes for inference accuracy rather than likelihood maximization.
- The compensation mechanism effectively reduces bias in the MMSE estimator, particularly when the weight distribution is non-Gaussian or heavy-tailed.
- The performance gain is most pronounced at low to moderate signal-to-noise ratios, where ML estimation suffers from high variance and bias.
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.