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

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

Traditional neural network optimization is an iterative, computationally expensive process. This paper introduces a "single-shot" approach using Scale Equivariant Graph Metanetworks (ScaleGMNs). By treating a neural network as a graph and embedding physical symmetries—specifically scaling and permutation—the authors demonstrate that a metanetwork can fine-tune or regularize a model in a single forward pass. This method often outperforms 150 epochs of traditional Stochastic Gradient Descent (SGD) in a fraction of the time.

The Challenge of Iterative Optimization

Standard optimization relies on thousands of steps of algorithms like SGD or Adam. While "Learning to Optimize" (L2O) research aims to replace these with learned models, most existing methods are semi-amortized, still requiring multiple iterative steps. Crucially, they often ignore the internal "gauge symmetries" of neural networks, such as the ability to permute neurons or scale weights without altering the network's output. Ignoring these symmetries forces the optimizer to redundantly learn the same functional mapping for different weight configurations.

Conceptual comparison of single-shot optimization vs. iterative SGD.

Methodology: Scale Equivariant Graph Metanetworks

The proposed fully-amortized meta-optimizer, ScaleGMN, takes the current weights of a network as input and directly outputs an optimized set of weights in one pass.

Key Technical Components:

  • Graph Representation: The target network is mapped to a graph where weights are edge features and biases are vertex features.
  • Scale Equivariance: The metanetwork is designed to be equivariant to scaling. If input weights are scaled, the output scales predictably. This is achieved through specialized message-passing layers using canonicalization.
  • Operator Approach: Rather than generating weights from scratch, the model acts as an operator ($\hat{f}_\phi: \mathcal{G} \times \Theta \to \Theta$), mapping an existing parameter state to a lower-cost region.
  • Multi-Objective Training: The metanetwork minimizes a combination of classification loss (Cross-Entropy) and regularization (e.g., $L_1$ for sparsity).

Experimental Setup and Key Insights

The approach was evaluated using "Model Zoos":

  1. Small CNN Zoo: 30,000 CNNs trained on CIFAR-10-GS.
  2. Small MLP Zoo: A new benchmark of 3,200 MLPs with diverse hyperparameters to test generalization.

Theoretical and Practical Insights:

  • Gauge Freedom Disparity: The authors prove that CNNs have less scaling symmetry than MLPs due to weight sharing, which restricts how individual "neurons" can be scaled without breaking the convolutional structure.
  • Symmetry as Inductive Bias: Hard-coding scale equivariance prevents the model from wasting capacity on redundant weight configurations, significantly increasing efficiency.
  • Single-Shot Sparsity: The metanetwork can prune a model in one pass, achieving high sparsity while maintaining accuracy—a task typically requiring complex iterative schedules.

Results and Performance

The ScaleGMN demonstrates remarkable speed and efficacy. It performs optimization in approximately 0.055 seconds, compared to 350–500 seconds for the SGD baseline.

Validation loss curves comparing Equivariant and Symmetry Broken models across MLP and CNN architectures.

On CNN tasks, the single-shot metanetwork achieved a higher average accuracy (50.3%) than an SGD baseline trained for 150 epochs (44.5%). For $L_1$ regularization, it reached ~85-87% sparsity in one pass, whereas iterative SGD hovered around 70% for the same duration.

Limitations and Future Outlook

Despite its success, the method faces challenges:

  • Numerical Stability: Training scale-symmetric models can be unstable with ReLU activations due to reciprocal computations.
  • Scalability: Current experiments focused on 3-layer networks; scaling to ResNets or Transformers is an ongoing challenge.
  • Symmetry Scope: Other symmetries, such as those in BatchNorm or attention mechanisms, are not yet addressed.

Future work aims to extend this framework to arbitrary architectures and improve the stability of positive-scale symmetric models.

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