Meta-learning Symmetries by Reparameterization

Allan Zhou, Tom Knowles, Chelsea Finn

Meta-learning Symmetries by Reparameterization

Meta-learning Symmetries by Reparameterization (MSR) is a novel framework that automatically discovers and encodes symmetries—such as rotation, reflection, or translation—into neural networks. By separating a layer's weights into a "sharing pattern" and "filter values," the model can meta-learn the optimal architectural structure directly from data, outperforming manually designed equivariant networks and standard data augmentation techniques.

The Problem: Hard-Coding vs. Learning Symmetries

In deep learning, we often "bake in" inductive biases to help models generalize. The most famous example is the Convolutional Neural Network (CNN), which is hard-coded to be equivariant to translation. If you shift an image, the features shift accordingly.

Standard convolution represented as a parameter-sharing matrix.

However, identifying the right symmetries for a new task (e.g., rotation in satellite imagery or reflection in physics) and manually designing a custom architecture to support them is incredibly difficult. Practitioners usually fall back on data augmentation—showing the model rotated or flipped versions of the same image. Unfortunately, this doesn't actually change the model's internal structure. It’s a "soft" fix that can fail when data is scarce or when an agent needs to adapt quickly to a new environment where those specific symmetries are crucial.

Methods: Symmetry as a Parameter-Sharing Problem

The authors introduce MSR, which treats symmetry not as a fixed architectural constraint, but as a learnable parameter-sharing problem.

  1. Reparameterization: Instead of learning a standard weight matrix $W$, MSR factors it into two components: $vec(W) = Uv$.
  2. $U$ (Symmetry Matrix): Encodes the pattern of how weights are shared. This represents the "structure" or symmetry of the layer.
  3. $v$ (Filter Parameters): The actual values of the weights being shared.
  4. Meta-Learning (The Two-Loop Approach):
    • Inner Loop: For a specific task, the model only updates the filter values ($v$). This allows for fast, task-specific adaptation.
  5. Outer Loop: Across many different tasks, the model updates the symmetry matrix ($U$). It searches for a sharing pattern that consistently leads to better generalization across the entire task distribution.
The MSR bi-level optimization framework, updating filter values in the inner loop and the symmetry matrix in the outer loop.

To prevent the symmetry matrix $U$ from becoming massive and computationally intractable, the authors utilize Kronecker factorization, allowing the method to scale to larger layers without exploding in memory or computation.

Key Insights and Results

The paper mathematically proves that any equivariance to a finite group can be represented as a specific parameter-sharing pattern ($U$). By embedding the symmetry directly into the weights, MSR generalizes much better than models that simply try to "learn" the symmetry through data augmentation alone.

Recovering Structure from Scratch In experiments on 1D synthetic data, MSR started with a standard fully-connected layer and, after meta-learning on translational data, automatically evolved a weight matrix that perfectly mimicked a convolutional filter bank. Standard Model-Agnostic Meta-Learning (MAML) without this reparameterization failed significantly on the same task.

Rotation, Reflection, and Few-Shot Learning * 2D Symmetries: On 2D tasks with rotation and flip symmetries, MSR achieved a Mean Squared Error (MSE) of 0.001, whereas a standard CNN (which only knows about translation) had an error of 0.507. * Aug-Omniglot: The authors tested MSR on heavily augmented versions of standard few-shot learning benchmarks (where training data is clean, but validation/test data is heavily rotated, flipped, and resized). On Aug-Omniglot (20-way, 1-shot), MSR achieved 84.3% accuracy, significantly outperforming standard MAML (67.0%) and even a specialized, manually designed equivariant model (MAML+D8, 82.6%).

Limitations and Future Work

While MSR successfully learns complex combinations of symmetries that would be nearly impossible to hand-engineer, it does have limitations:

  • Finite vs. Continuous: The current theory focuses on finite symmetry groups. While it can approximate continuous symmetries (like $45^\circ$ rotations), native handling of continuous groups remains a future goal.
  • Computational Cost: Due to the matrix factorizations, MSR incurs a 30-40% computational overhead per outer step compared to standard meta-learning.
  • Scaling and Single-Task Discovery: Applying this to massive architectures like large Transformers remains an engineering challenge. Furthermore, MSR currently requires a distribution of tasks to learn symmetries; discovering symmetries within a single, large dataset is an open research frontier.

Summary updated

BibTeX
@inproceedings{zhou2021meta,
  author = {Allan Zhou and Tom Knowles and Chelsea Finn},
  title = {{Meta-learning Symmetries by Reparameterization}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=k-a62pCF_5Q},
}
Figure