[Paper Review] Invariance Learning in Deep Neural Networks with Differentiable Laplace Approximations
This paper proposes a differentiable Bayesian method for end-to-end learning of data augmentation invariances in deep neural networks using a Kronecker-factored Laplace approximation to the marginal likelihood. By optimizing invariance parameters via gradient descent without validation data, the method improves generalization and data efficiency, achieving up to 10 percentage points higher accuracy and 10× better data efficiency on image benchmarks compared to standard augmentation.
Data augmentation is commonly applied to improve performance of deep learning by enforcing the knowledge that certain transformations on the input preserve the output. Currently, the data augmentation parameters are chosen by human effort and costly cross-validation, which makes it cumbersome to apply to new datasets. We develop a convenient gradient-based method for selecting the data augmentation without validation data during training of a deep neural network. Our approach relies on phrasing data augmentation as an invariance in the prior distribution on the functions of a neural network, which allows us to learn it using Bayesian model selection. This has been shown to work in Gaussian processes, but not yet for deep neural networks. We propose a differentiable Kronecker-factored Laplace approximation to the marginal likelihood as our objective, which can be optimised without human supervision or validation data. We show that our method can successfully recover invariances present in the data, and that this improves generalisation and data efficiency on image datasets.
Motivation & Objective
- To automate the selection of data augmentation transformations in deep neural networks, eliminating reliance on manual tuning and cross-validation.
- To enable gradient-based optimization of invariance parameters (e.g., rotation, scaling) during training without requiring validation data.
- To extend Bayesian model selection to deep neural networks by approximating the marginal likelihood in a differentiable and scalable way.
- To improve generalization and data efficiency by learning task-specific invariances directly from data.
Proposed method
- Formalizes data augmentation as a prior over input perturbations, enforcing functional invariance through averaging over transformed inputs.
- Proposes a differentiable Kronecker-factored Laplace approximation to the marginal likelihood for Bayesian neural networks with invariance priors.
- Derives stochastic gradients with respect to invariance parameters using a reparameterization trick, enabling end-to-end optimization.
- Integrates invariance parameter learning with standard neural network training via joint optimization of weights and invariance hyperparameters.
- Employs a scalable Laplace approximation to estimate the marginal likelihood, enabling gradient-based Bayesian model selection in deep networks.
Experimental results
Research questions
- RQ1Can invariance parameters (e.g., rotation, scaling) be automatically learned from data using gradient-based optimization in deep neural networks?
- RQ2Does differentiable Bayesian model selection via marginal likelihood approximation improve generalization and data efficiency compared to handcrafted augmentations?
- RQ3Can the proposed method learn meaningful invariances without access to validation data or human-specified hyperparameters?
- RQ4How does the performance of the learned invariance method compare to standard data augmentation baselines on image classification tasks?
Key findings
- The method achieved up to 8–10 percentage points higher test accuracy on original MNIST, Fashion-MNIST, and CIFAR-10 datasets compared to standard data augmentation.
- On random subsets of image datasets, the method achieved up to 10× better data efficiency, significantly outperforming baselines with fixed augmentations.
- The learned invariance distributions recovered meaningful transformations such as rotations and affine perturbations, as confirmed by visualization and trajectory analysis.
- The approach successfully optimized invariance parameters end-to-end using gradients, without requiring validation data or hyperparameter tuning.
- The Kronecker-factored Laplace approximation enabled efficient and differentiable marginal likelihood estimation, making Bayesian model selection feasible in deep networks.
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.