Introduction
Instead of hard-coding symmetries like translation equivariance (convolutions) into neural networks, this paper introduces a method to automatically learn the optimal type and amount of symmetry for each layer using gradients. By optimizing the marginal likelihood via a scalable Laplace approximation, the model discovers architectural structures—like becoming "convolutional" in early layers—directly from training data.
In deep learning, we often bake in "inductive biases" like translation equivariance through convolutional layers. While this helps models generalize, it’s a double-edged sword. Strict symmetry is a hard constraint: in digit recognition, for example, too much rotational invariance makes a '6' indistinguishable from a '9'. Furthermore, translation equivariance can prevent a network from "rate coding" important positional information.
Currently, researchers must choose these symmetries manually through trial and error. Learning them automatically is difficult because general linear layers (Fully Connected) have far more parameters than convolutional ones, making them hard to scale. Additionally, standard training losses (like cross-entropy) only care about fitting the data. Since symmetries are constraints that limit what a function can do, a standard loss will always prefer a less-constrained, non-symmetric model, even if it generalizes poorly.
Methods
The authors tackle these challenges with a three-part strategy:
1. Differentiable "Soft" Equivariance They parameterize layers as a combination of a stationary (convolutional) part and a non-stationary (fully connected) part. To keep the parameter count low, they introduce Factored Fully-Connected (F-FC) layers and Spatial Sparsification, which use basis functions to approximate dense connections without the memory overhead.
2. Bayesian Model Selection To solve the training objective gap, they don't just minimize training error. Instead, they optimize the Marginal Likelihood. This objective naturally incorporates "Occam’s Razor," penalizing overly complex models (like a raw FC layer) unless the data strictly requires that complexity.
3. Scalable Laplace Approximations Calculating the marginal likelihood for deep networks is usually intractable. The authors derive a Kronecker-factored (KFAC) approximation of the Hessian for their new factored layers. This allows them to estimate the model's complexity and update symmetry hyperparameters using gradients in a single training run.
Key Insights and Discoveries
- Architecture as a Hyperparameter: The paper treats the "amount of symmetry" as a continuous hyperparameter ($\sigma$). When $\sigma=0$, the layer is strictly convolutional; as $\sigma$ increases, it relaxes into a fully connected layer.
- The "Convolutional" Emergence: On CIFAR-10, the model automatically learned to be highly convolutional in the early layers and more flexible (fully connected) in the final layers. This mirrors how human experts design "hand-crafted" architectures, but here it emerged purely from the math of the marginal likelihood.
- One-Shot Discovery: Unlike Neural Architecture Search (NAS) which often requires training thousands of models, this approach learns the layer-wise structure during a single training procedure.
Experimental Results
The method was evaluated on Modified MNIST (digits placed in specific quadrants), CIFAR-10, and Translated/Rotated variants to test symmetry selection.
- Task Adaptation: On the MNIST quadrant task, the model successfully "turned off" translation symmetry to identify the quadrant, while the hard-coded CONV baseline failed completely (24.50% accuracy vs. the learned model's 99.00%).
- Competitive Performance: On CIFAR-10, the automatically learned models achieved performance equivalent to (within <1%) or better than hard-coded convolutional baselines, despite starting with much less structural information.
- Symmetry Selection: When given a choice between translation (CONV) and rotation (GCONV) symmetries, the model correctly identified which symmetry was present in the data (e.g., favoring rotation for Rotated MNIST).
Limitations and Future Work
While the model learns the amount of symmetry, it still requires a predefined list of potential symmetry groups (like translations or 90-degree rotations) to choose from. It cannot yet "invent" a brand-new symmetry group from scratch. Furthermore, while KFAC makes the Laplace approximation scalable, it is still more computationally intensive than standard backpropagation. Future work could apply this to 3D point clouds, graphs, or transformers, where the "correct" symmetry is often even less obvious than in computer vision.
Summary updated