Symmetry-Aware Fully-Amortized Optimization with Scale Equivariant Graph Metanetworks

Bart Kuipers, Freek Byrman, Daniel Uyterlinde, Alejandro García-Castellanos

TL;DR

Iterative neural network optimization like SGD is computationally heavy, but what if a meta-network could fine-tune an entire model in a single forward pass? This paper leverages Scale Equivariant Graph Metanetworks (ScaleGMNs) to perform single-shot amortized optimization directly in weight space, simultaneously boosting accuracy and pruning weights. Crucially, the authors mathematically prove why scale equivariance supercharges meta-optimization for Multi-Layer Perceptrons (MLPs) far more than Convolutional Neural Networks (CNNs): weight sharing in convolutions drastically reduces scaling gauge freedom.

What Problem Does This Paper Address?

Traditional neural network training requires hundreds of iterative gradient descent steps. While "Learning to Optimize" (L2O) trains neural networks to serve as optimizers, it remains inherently iterative. Conversely, weight prediction approaches can generate parameters from a computational graph ($\mathcal{G} \to \Theta$), but only from scratch—meaning they cannot incorporate prior training states or perform fine-tuning.

Parameter spaces also contain huge redundancies known as gauge symmetries (e.g., neuron permutation and weight rescaling that leave the network's function identical). The authors tackle two questions:

  1. Can we perform fully amortized, single-shot fine-tuning ($\mathcal{G} \times \Theta \to \Theta$) that maps existing weights directly to an improved, regularized state in one forward pass?
  2. Why have scale-equivariant metanetworks historically yielded huge gains on MLPs but comparatively modest improvements on CNNs?

Methods

The authors adopt the ScaleGMN framework, mapping neural architectures to graphs where biases become vertex features and weights become edge features (with convolutional kernels padded to uniform dimensions).

  • Meta-Optimization Operator: They train an operator $\hat{f}_\phi(\mathcal{G}, \theta) = \theta + \gamma \cdot \text{ScaleGMN}(\theta)$ to minimize task cross-entropy loss along with an $L_1$ penalty on predicted weights: $$\mathcal{L}(\phi; \theta, \mathcal{B}) = \lambda \|\hat{f}_\phi(\mathcal{G}, \theta)\|_1 + \frac{1}{|\mathcal{B}|}\sum_{(x,y) \in \mathcal{B}} \mathcal{L}_{\text{CE}}\left(u_{\mathcal{G}, \hat{f}_\phi(\mathcal{G},\theta)}(x), y\right)$$
  • Scale Equivariance via Canonicalization: Features are normalized by their norm ($x / |x|$) and combined with rescale-equivariant message passing, ensuring that rescaling the input weights correspondingly rescales the output predictions.
  • Symmetry-Breaking Ablation: To measure the specific value of scale equivariance, they evaluate identical architectures where the canonicalization step is stripped away.

Datasets

The authors evaluate models trained on CIFAR-10-GS (grayscale CIFAR-10):

  • Small CNN Zoo: Drawn from Unterthiner et al. (2021), featuring 3-layer CNNs (16 channels/layer, 4,970 parameters) filtered by test accuracy (>40% for ReLU, >35% for Tanh).
  • Small MLP Zoo: A custom dataset introduced in this work to match the scale of the CNN zoo. It contains 4-layer MLPs (64-48-32-16-10 architecture, 5,386 parameters) trained across varied optimizers and initializations, filtered for $>30\%$ test accuracy (6,135 checkpoints).

Key Insights and Ideas

  • The CNN vs. MLP Gauge Freedom Proof: In an MLP layer, weights can be rescaled by any invertible diagonal matrices ($Q_\ell, Q_{\ell-1}$), yielding $n + m$ degrees of freedom per layer. However, a 2D convolution's weight matrix is doubly-block Toeplitz. Because receptive fields overlap, adjacent rows share identical kernel parameters; scaling individual rows independently breaks this structure. Consequently, all diagonal elements must be identical ($\alpha I$). The authors formally prove: $$\mathcal{G}_{\text{scale}}(W_{\text{CNN}}) \subsetneq \mathcal{G}_{\text{scale}}(W_{\text{MLP}})$$ An MLP enjoys $N_{\text{neurons}} + N_{\text{inputs}}$ scaling degrees of freedom across the network, whereas a CNN's freedom is restricted strictly to its channel count.

  • Why Equivariance Matters More for MLPs: Because the scaling gauge group for CNNs is much smaller, enforcing scale equivariance has minimal impact on CNN training trajectories. In contrast, for MLPs, breaking equivariance noticeably degrades optimization efficiency.

  • Context-Aware Mapping: Unlike graph hypernetworks that output a static parameter initialization from the graph structure alone, ScaleGMN preserves variation from the initial weights $\theta$, showing true adaptive parameter translation.

Key Results

  • Massive Speedups over Iterative Baselines: In a single forward pass taking ~0.055 to 0.070 seconds, ScaleGMN fine-tunes unseen test models, outperforming 150 epochs of SGD (which takes 350–600 seconds)—a roughly 6,000× speedup.
  • Accuracy Improvements: On CNNs with Tanh activations, ScaleGMN boosts average accuracy from 37.9% to 50.3% (vs. 44.5% after 150 epochs of SGD). On ReLU CNNs, it improves average accuracy from 44.71% to 54.30% (vs. 53.17% for 150 epochs of SGD).
  • Simultaneous Sparsification: Under $L_1$ regularization ($\lambda > 0$), the metanetwork reduces the total parameter $L_1$ norm by 85% to 87% while improving loss and accuracy compared to the initial checkpoint.

Limitations and Future Work

  • Training Instabilities with ReLU MLPs: Training bidirectional ScaleGMNs on ReLU MLPs suffered from numerical instabilities, caused by computing reciprocals of edge representations during scale-equivariant message passing.
  • Model Scale: Experiments were constrained to small, proof-of-concept architectures (3-layer CNNs, 4-layer MLPs) on low-resolution grayscale images.
  • Future Directions: Stabilizing positive-scale symmetric models and scaling the operator formulation to larger, modern architectures (e.g., ResNets, Transformers).

Summary updated

BibTeX
@inproceedings{kuipers2025symmetry,
  author = {Bart Kuipers and Freek Byrman and Daniel Uyterlinde and Alejandro García-Castellanos},
  title = {{Symmetry-Aware Fully-Amortized Optimization with Scale Equivariant Graph Metanetworks}},
  booktitle = {UniReps @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=5fY2uzBu1M},
}
Figure