[Paper Review] Eigenvalue Corrected Noisy Natural Gradient
This paper proposes noisy EK-FAC, an eigenvalue-corrected matrix-variate Gaussian posterior for variational Bayesian neural networks that improves uncertainty estimation by computing diagonal variance in the K-FAC eigenbasis. By correcting the diagonal re-scaling factor using Kronecker-factored eigenbases, the method achieves higher ELBO and test accuracy than noisy K-FAC on regression and classification tasks, with no additional computational overhead.
Variational Bayesian neural networks combine the flexibility of deep learning with Bayesian uncertainty estimation. However, inference procedures for flexible variational posteriors are computationally expensive. A recently proposed method, noisy natural gradient, is a surprisingly simple method to fit expressive posteriors by adding weight noise to regular natural gradient updates. Noisy K-FAC is an instance of noisy natural gradient that fits a matrix-variate Gaussian posterior with minor changes to ordinary K-FAC. Nevertheless, a matrix-variate Gaussian posterior does not capture an accurate diagonal variance. In this work, we extend on noisy K-FAC to obtain a more flexible posterior distribution called eigenvalue corrected matrix-variate Gaussian. The proposed method computes the full diagonal re-scaling factor in Kronecker-factored eigenbasis. Empirically, our approach consistently outperforms existing algorithms (e.g., noisy K-FAC) on regression and classification tasks.
Motivation & Objective
- To address the limitation of matrix-variate Gaussian posteriors in variational Bayesian neural networks, which fail to capture accurate diagonal variance.
- To improve the flexibility and expressiveness of the posterior distribution beyond standard noisy K-FAC.
- To develop a scalable method that maintains the efficiency of K-FAC while enhancing uncertainty estimation through eigenvalue correction.
- To enable accurate diagonal variance estimation by re-expressing the re-scaling factor in the K-FAC eigenbasis rather than parameter space.
Proposed method
- The method extends noisy K-FAC by computing the diagonal re-scaling factor in the Kronecker-factored eigenbasis of the K-FAC approximation.
- It uses the second moment of the gradient vector in the eigenbasis to compute a more accurate diagonal variance, correcting the standard matrix-variate Gaussian assumption.
- The eigenbasis is updated periodically (every 50 iterations) to maintain alignment with the current curvature structure.
- The approach amortizes basis updates to reduce computational cost, setting T_eig = 5 for eigenbasis updates and T_scale = 10 for re-scaling updates.
- The method applies to both fully connected and convolutional networks by extending K-FAC to convolutional layers via Kronecker factors.
- It maintains the same computational complexity as noisy K-FAC by reusing existing K-FAC infrastructure and only modifying the diagonal variance computation.
Experimental results
Research questions
- RQ1Can correcting the diagonal variance in the K-FAC eigenbasis improve the expressiveness of matrix-variate Gaussian posteriors in Bayesian neural networks?
- RQ2Does eigenvalue-corrected diagonal variance lead to better uncertainty estimation and generalization compared to standard noisy K-FAC?
- RQ3Can the proposed method maintain computational efficiency while improving posterior flexibility in both regression and classification tasks?
- RQ4How does the method perform under different data augmentations and batch normalization settings?
Key findings
- Noisy EK-FAC achieves higher test log-likelihood than noisy K-FAC across all regression datasets, with improvements ranging from 0.02 to 0.25 in log-likelihood.
- On the CIFAR10 dataset, noisy EK-FAC achieves 87.07% accuracy without data augmentation and 92.22% with both data augmentation and batch normalization, outperforming noisy K-FAC by 1.55 percentage points.
- The method consistently achieves higher ELBO than noisy K-FAC during training, indicating better variational approximation quality.
- The eigenvalue correction leads to more stable and accurate diagonal variance estimation, especially in small-batch settings where gradient second moments are unstable.
- Amortizing eigenbasis and re-scaling updates does not significantly degrade optimization performance, maintaining efficiency.
- The method scales effectively to deeper networks, including a modified VGG16, with no measurable computational overhead compared to noisy K-FAC.
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.