Introduction
As neural networks (NNs) increasingly serve as data representations—such as Implicit Neural Representations (INRs) for images or 3D geometry—the need for "metanetworks" (networks that process other networks) has grown. A primary challenge in metanetworking is accounting for the inherent symmetries of neural architectures. While permutation symmetry (the ability to reorder neurons without changing the function) is widely addressed, scaling symmetry remains largely overlooked.
Scaling symmetry occurs when weights and biases can be scaled by a factor (e.g., in ReLU or tanh layers) while maintaining functional equivalence. Ignoring these symmetries forces a metanetwork to learn redundant representations, hindering generalization. This paper introduces Scale Equivariant Graph MetaNetworks (ScaleGMNs), a framework designed to be equivariant to both neuron permutations and scaling symmetries.
Methodology
ScaleGMN treats the input neural network as a graph where neurons are nodes and weights are edges. It extends standard Graph Neural Networks (GNNs) with three core innovations:
- Scale Equivariant Building Blocks: The authors introduce
ScaleInv(invariant) andScaleEq(equivariant) layers. These utilize canonicalization—mapping equivalent scaled vectors to a single representative—to ensure internal representations respect scaling rules. - Rescale Equivariant Message Passing: Standard GNN message passing is modified with a
ReScaleEqblock. This ensures that messages between neurons account for potentially different scaling factors between the "sender" and "receiver" nodes. - Bidirectional Processing (ScaleGMN-B): To capture global network behavior, a bidirectional variant allows information to flow both forward and backward through the input network's layers.
Theoretically, ScaleGMN is shown to be expressive enough to simulate both the forward and backward passes of any feedforward network, suggesting it can perform complex functional analysis rather than simple pattern matching.
Experiments and Results
The model was evaluated on tasks including INR classification, generalization prediction, and INR editing.
INR Classification
In classifying images represented as INRs (MNIST, F-MNIST, CIFAR-10), ScaleGMN significantly outperformed existing baselines. On the Fashion-MNIST dataset, ScaleGMN achieved an accuracy of 80.78%, a substantial improvement over the previous state-of-the-art of approximately 69%.
Generalization Prediction
ScaleGMN was also tested on its ability to predict the test accuracy of trained classifiers from the SmallCNN Zoo. It demonstrated superior performance, particularly in scenarios involving heterogeneous activation functions (e.g., mixing ReLU and tanh), where previous methods struggled.
Key Insights
- Scaling as an Inductive Bias: Incorporating scaling symmetries as a fundamental architectural constraint allows the model to generalize better without requiring massive amounts of data to "learn" these symmetries.
- Activation Flexibility: ScaleGMN handles different activation functions (ReLU, tanh, sine) by swapping modular canonicalization components tailored to each function's specific symmetry group.
- Efficiency: The architecture achieves state-of-the-art results without relying on common auxiliary techniques like input normalization or random Fourier features.
Limitations and Future Work
Current limitations include a focus on standard feedforward and convolutional architectures, excluding complex structures like ResNets or layers with BatchNorm. Additionally, the bidirectional ScaleGMN-B increases computational complexity. Future research aims to extend the framework to general computational graphs and more complex symmetries found in Softmax or LayerNorm.
Summary updated