[Paper Review] Learning Invariances using the Marginal Likelihood
This paper proposes a method to learn input invariances in Gaussian process models by embedding them directly into the kernel structure and optimizing via the marginal likelihood. Using variational inference with unbiased kernel estimates from differentiable sampling procedures, the approach enables end-to-end training to discover optimal invariances—such as affine transformations and local deformations—resulting in improved generalization on MNIST variants, with the marginal likelihood correctly identifying superior models without validation data.
Generalising well in supervised learning tasks relies on correctly extrapolating the training data to a large region of the input space. One way to achieve this is to constrain the predictions to be invariant to transformations on the input that are known to be irrelevant (e.g. translation). Commonly, this is done through data augmentation, where the training set is enlarged by applying hand-crafted transformations to the inputs. We argue that invariances should instead be incorporated in the model structure, and learned using the marginal likelihood, which correctly rewards the reduced complexity of invariant models. We demonstrate this for Gaussian process models, due to the ease with which their marginal likelihood can be estimated. Our main contribution is a variational inference scheme for Gaussian processes containing invariances described by a sampling procedure. We learn the sampling procedure by back-propagating through it to maximise the marginal likelihood.
Motivation & Objective
- To address the limitations of data augmentation in supervised learning by replacing it with invariance modeling in the model prior.
- To enable the learning of invariances—such as rotations, shears, and deformations—directly through the marginal likelihood in Gaussian process models.
- To overcome the technical challenge of non-closed-form invariant kernels by using unbiased kernel estimates via differentiable sampling.
- To demonstrate that the marginal likelihood can serve as a valid, differentiable objective for end-to-end optimization of invariance parameters.
- To show that the method generalizes well on MNIST variants, outperforming standard RBF kernels and enabling model selection without validation sets.
Proposed method
- The method uses double-sum kernels that average a base kernel (e.g., RBF) over transformed inputs under a given invariance distribution.
- It introduces a variational lower bound on the marginal likelihood that depends only on unbiased estimates of the kernel, enabling optimization despite intractable integrals or sums.
- The invariance is modeled via a differentiable sampling procedure (e.g., affine transformations, deformations) that can be backpropagated through to optimize the invariance parameters.
- The kernel estimates are constructed by sampling from a distribution parameterized by the invariance transformation, allowing gradient-based optimization of the invariance structure.
- The full training objective is the variational lower bound of the marginal likelihood, which is maximized using stochastic gradient descent with reparameterization gradients.
- The approach supports end-to-end training where both GP hyperparameters and invariance parameters are jointly optimized via backpropagation.
Experimental results
Research questions
- RQ1Can invariances such as affine transformations and local deformations be effectively learned in Gaussian process models using the marginal likelihood as an objective?
- RQ2Does the marginal likelihood correctly identify the best invariance structure when used as a model selection criterion, without requiring a validation set?
- RQ3Can a differentiable sampling procedure for invariances enable end-to-end optimization of both the GP and the invariance parameters?
- RQ4How does the performance of learned invariances compare to hand-crafted data augmentation or fixed invariance assumptions on benchmark datasets like MNIST?
- RQ5What are the optimization dynamics when jointly learning invariance parameters, GP hyperparameters, and variational posteriors?
Key findings
- The GP model with learned affine transformations achieved a test error of 1.35% on MNIST, significantly outperforming the RBF baseline of 2.15%.
- The model with learned local deformations achieved a test error of 1.47%, also outperforming the RBF baseline, indicating that non-rigid deformations are more beneficial than rigid rotations for MNIST.
- The marginal likelihood bound correctly identified the best-performing model across all experiments, even when joint optimization did not reach the performance of models initialized with the true invariance.
- Models invariant to rotations only showed only a slight improvement over the RBF baseline, suggesting that rotational invariance alone is insufficient for MNIST generalization.
- The method successfully learned invariances without requiring a validation set, as the marginal likelihood served as a reliable and differentiable objective for model selection.
- In the rotated MNIST experiment, models with fixed invariance bounds (e.g., ±45° or ±179°) outperformed those with learned parameters, indicating optimization challenges in joint training, though the marginal likelihood still correctly ranked the best model.
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.