Introduction
Weight-space learning studies neural architectures that operate directly on the parameters of other neural networks, enabling tasks such as predicting model properties, editing trained models, and generating weights ([51 , 41 , 42 , 44 ] (Eilertsen et al. 2020)). A central property of weight spaces is their permutation symmetries, resulting in many different model parameterizations that represent the same function. This has motivated the development of permutation-equivariant weight-space architectures ([35 , 61 , 63 , 30 , 26 , 49 , 50 , 52 ] ), which represent the current state of the art for learning over weights in many tasks.
Many practical transformations of neural network weights do not preserve the network architecture. Model compression maps a trained network into a smaller one for deployment under memory, latency, or compute constraints, through structured pruning ([29 ] ) or knowledge distillation ([20 , 17 ] ). Cross-architecture knowledge transfer moves the behavior of a trained network into a structurally different one ([1 , 32 , 10 ] ). Model upscaling initializes a wider or deeper network from a trained smaller one, allowing training to continue from the transferred parameters rather than from scratch ([7 , 55 , 6 , 54 , 37 ] ). All of these map the weights of one architecture into the parameter space of another, and most of them are realized today by a separate optimization process run from scratch for every source network. Learning such a transformation instead would replace this per-network optimization with a single feedforward pass: one weight-space model is trained once, and every new source network is then transformed in a fraction of a second. Existing equivariant weight-space architectures, however, have exclusively addressed mappings whose input and output lie in the same weight space. The cross-architecture setting is fundamentally different: the source and target networks carry distinct symmetry groups acting on distinct parameter spaces, so it is not even clear what equivariance should mean. Designing equivariant cross-architecture weight-space models is thus a central yet overlooked challenge in weight-space learning.
Our key observation is that cross-architecture transformations typically come with a natural second input. Whether the target is smaller or larger than the source, the procedure always begins from an initialized target network, which is then optimized against the trained source network, as in knowledge distillation and its variants [20 , 17 , 34 ] . The transformation is therefore a function of two arguments: the trained source network and an initialization of the target. Importantly, taking both as input resolves the difficulty above. The initialization specifies the target architecture and carries the target symmetry group, so the operator has a well-defined action on each of its arguments: it should be invariant to symmetries of the source network and equivariant to symmetries of the target. This leads us to study equivariant cross-architecture operators F : V s r c × V t g t → V t g t F : \mathcal{V}_{\mathrm{src}} \times\mathcal{V}_{\mathrm{tgt}} \to\mathcal{V}_{\mathrm{tgt}} F : V src × V tgt → V tgt .
With the right class of operators in place, the remaining question is how to parameterize it. We introduce CrossGMN , a graph metanetwork for learning such operators. CrossGMN represents each of the two networks as a parameter graph, joins them with cross edges, and performs message passing over the resulting joint graph. Information can thus flow between the source and the target while the two permutation symmetries are respected independently. We prove that CrossGMN is a universal approximator of continuous equivariant cross-architecture operators on compact sets under a general-position assumption, and extend this result to finite collections of source architectures mapping into a common target weight space.
We evaluate CrossGMN for model compression through knowledge distillation. Given a trained teacher (source network) and an initialization for a smaller student (target network), CrossGMN predicts refined student parameters intended to reduce the number of distillation steps needed to match the teacher. We evaluate width, depth, and combined compressions across 2-D and 3-D INRs ([46 ] ) and MNIST ([28 ] )/CIFAR-10 ([27 ] ) classifiers, on architectures including MLPs, CNNs, and Vision Transformers ([12 ] ). Across these settings, CrossGMN accelerates subsequent distillation for initializing compressed students, achieving speedups of up to 8.89 × 8.89\times 8.89 × on MNIST INRs and 6.85 × 6.85\times 6.85 × on ModelNet ([56 ] ) INRs. CrossGMN also generalizes out of distribution: a model trained on MNIST INRs transfers to FashionMNIST ([57 ] ), achieving up to 3.78 × 3.78\times 3.78 × speedup without retraining. Moreover, a single CrossGMN can compress heterogeneous CIFAR-10 MLP teacher architectures into a common smaller student architecture and generalize to unseen teacher architectures.
In summary, our contributions are: (1) formulating cross-architecture weight-space learning as learn-ing equivariant operators on a source network and a target initialization, which makes the problem’s symmetry structure well-defined; (2) introducing CrossGMN, a graph metanetwork for learning equivariant transformations between different neural-network weight spaces; (3) establishing its universality for continuous cross-architecture operators, including settings with multiple source architectures; and (4) demonstrating its effectiveness for model compression, where it accelerates knowledge distillation across diverse architectures and out-of-distribution settings.
Preliminaries
We introduce the notation and background required to define cross-architecture weight-space operators. For the remainder of the manuscript, we focus our theoretical analysis on fully connected MLPs, while evaluating our method empirically on a broader range of architectures, including CNNs and Transformers. The corresponding formal treatment for these architectures is provided in Appendix § 10 .2.3–§ 10 .2.4.
Weight spaces. An MLP architecture A = ( d , σ ) A = (d,\sigma) A = ( d , σ ) with L L L layers is specified by layer widths d = ( d 0 , … , d L ) d = (d_0,\ldots,d_L) d = ( d 0 , … , d L ) and an activation function σ \sigma σ . Its parameters are
v = ( W 1 , b 1 , … , W L , b L ) , W ℓ ∈ R d ℓ × d ℓ − 1 , b ℓ ∈ R d ℓ . v = (W_1,b_1,\ldots,W_L,b_L), \qquad W_\ell\in\mathbb{R}^{d_\ell\times d_{\ell-1}}, \quad b_\ell\in\mathbb{R}^{d_\ell}. v = ( W 1 , b 1 , … , W L , b L ) , W ℓ ∈ R d ℓ × d ℓ − 1 , b ℓ ∈ R d ℓ .
The corresponding realized function f v : R d 0 → R d L f_v : \mathbb{R}^{d_0} \to\mathbb{R}^{d_L} f v : R d 0 → R d L is
f v ( x ) = W L σ ( ⋯ σ ( W 1 x + b 1 ) ⋯ ) + b L . f_v(\mathbf{x}) = W_L \sigma(\cdots\sigma(W_1\mathbf{x} + b_1)\cdots) + b_L. f v ( x ) = W L σ ( ⋯ σ ( W 1 x + b 1 ) ⋯ ) + b L .
Definition 1 (Weight space). For an architecture A = ( d , σ ) A = (d, \sigma) A = ( d , σ ) , its weight space is V A : = ⨁ ℓ = 1 L ( R d ℓ × d ℓ − 1 ⊕ R d ℓ ) \mathcal{V}_A := \bigoplus_{\ell=1}^{L}(\mathbb{R}^{d_\ell\times d_{\ell-1}} \oplus\mathbb{R}^{d_\ell}) V A := ⨁ ℓ = 1 L ( R d ℓ × d ℓ − 1 ⊕ R d ℓ ) , where, ⊕ \oplus ⊕ denotes a direct sum.
Throughout the paper, we consider a source architecture A s r c A_{\mathrm{src}} A src and a target architecture A t g t A_{\mathrm{tgt}} A tgt , with corresponding weight spaces V s r c \mathcal{V}_{\mathrm{src}} V src and V t g t \mathcal{V}_{\mathrm{tgt}} V tgt . Their hidden widths and depths may differ, but we assume the same input and output dimensions.
Permutation symmetries. Permuting hidden neurons changes the parameterization of an MLP while preserving its realized function. We formalize these transformations through the following group action.
Definition 2 (Permutation action on weight space). For an architecture A = ( d , σ ) A = (d, \sigma) A = ( d , σ ) , let G A : = S d 1 × ⋯ × S d L − 1 G_A := S_{d_1} \times\cdots\times S_{d_{L-1}} G A := S d 1 × ⋯ × S d L − 1 be its hidden-neuron permutation group. For g = ( τ 1 , … , τ L − 1 ) ∈ G A g = (\tau_1, \ldots, \tau_{L-1}) \in G_A g = ( τ 1 , … , τ L − 1 ) ∈ G A , set τ 0 , τ L = e \tau_0, \tau_L = e τ 0 , τ L = e and let P τ ℓ P_{\tau_\ell} P τ ℓ denote the corresponding permutation matrix. The action ρ A ( g ) : V A → V A \rho_A(g) : \mathcal{V}_A \to\mathcal{V}_A ρ A ( g ) : V A → V A is defined by W ℓ ′ = P τ ℓ W ℓ P τ ℓ − 1 − 1 W'_\ell= P_{\tau_\ell} W_\ell P_{\tau_{\ell-1}}^{-1} W ℓ ′ = P τ ℓ W ℓ P τ ℓ − 1 − 1 and b ℓ ′ = P τ ℓ b ℓ b'_\ell= P_{\tau_\ell} b_\ell b ℓ ′ = P τ ℓ b ℓ for 1 ≤ ℓ ≤ L 1 \le\ell\le L 1 ≤ ℓ ≤ L . By construction, f ρ A ( g ) v = f v f_{\rho_A(g)v} = f_v f ρ A ( g ) v = f v for every g ∈ G A g \in G_A g ∈ G A .
Definition 3 (Permutation-invariant and equivariant weight-space networks). Let A A A be an architecture, and let G A G_A G A act on its weight space V A \mathcal{V}_A V A through ρ A \rho_A ρ A as in Definition 2. A weight-space network is a parameterized map Ψ θ : V A → Y \Psi_\theta: \mathcal{V}_A \to Y Ψ θ : V A → Y , where G A G_A G A acts on Y Y Y through a representation ρ Y \rho_Y ρ Y . The network is G A G_A G A -equivariant if Ψ θ ( ρ A ( g ) v ) = ρ Y ( g ) Ψ θ ( v ) \Psi_\theta(\rho_A(g)v) = \rho_Y(g)\Psi_\theta(v) Ψ θ ( ρ A ( g ) v ) = ρ Y ( g ) Ψ θ ( v ) for all g ∈ G A g \in G_A g ∈ G A and v ∈ V A v \in\mathcal{V}_A v ∈ V A . It is G A G_A G A -invariant if Ψ θ ( ρ A ( g ) v ) = Ψ θ ( v ) \Psi_\theta(\rho_A(g)v) = \Psi_\theta(v) Ψ θ ( ρ A ( g ) v ) = Ψ θ ( v ) for all g ∈ G A g \in G_A g ∈ G A and v ∈ V A v \in\mathcal{V}_A v ∈ V A .
In the next section, we consider the cross-architecture setting in which the source and target networks belong to different weight spaces with independent permutation symmetries.
Cross-Architecture Weight-Space Transformations
Let A s r c A_{\mathrm{src}} A src and A t g t A_{\mathrm{tgt}} A tgt be two architectures with weight spaces V s r c \mathcal{V}_{\mathrm{src}} V src and V t g t \mathcal{V}_{\mathrm{tgt}} V tgt , and permutation groups G s r c G_{\mathrm{src}} G src and G t g t G_{\mathrm{tgt}} G tgt .
Limitations of predicting the target directly from the source. One could directly map source parameters to target parameters, T : V s r c ⟶ V t g t T : \mathcal{V}_{\mathrm{src}} \longrightarrow\mathcal{V}_{\mathrm{tgt}} T : V src ⟶ V tgt . However, this formulation has two difficulties. First, its equivariance structure is unclear: because the source and target have different permutation groups acting on different weight spaces, T T T must be invariant to source permutations while selecting a representative among equivalent target parameterizations. Second, natural source-to-target maps may be discontinuous and thus cannot be uniformly approximated arbitrarily well by continuous neural networks. Appendix C.1 gives a simple setting of model compression where mapping each larger network to an optimal smaller one is discontinuous.
Instead, we formulate the problem as refinement from an initialization of the target network; this gives rise to more natural continuous cross-architecture operators. This leads to the following definition.
Definition 4 (Cross-architecture weight-space operator). A cross-architecture weight-space operator is a map
F : V s r c × V t g t ⟶ V t g t , ( v s r c , v i n i t ) ⟼ F ( v s r c , v i n i t ) . (1) F : \mathcal{V}_{\mathrm{src}} \times\mathcal{V}_{\mathrm{tgt}} \longrightarrow\mathcal{V}_{\mathrm{tgt}}, \qquad(v_{\mathrm{src}}, v_{\mathrm{init}}) \longmapsto F(v_{\mathrm{src}}, v_{\mathrm{init}}). \tag*{(1)} F : V src × V tgt ⟶ V tgt , ( v src , v init ) ⟼ F ( v src , v init ) . (1) The second input v i n i t v_{\mathrm{init}} v init both specifies a concrete parameterization in the target weight space and provides the parameters that the operator can refine. We say that F F F is equivariant with respect to the source and target permutations if
F ( g s r c ⋅ v s r c , g t g t ⋅ v i n i t ) = g t g t ⋅ F ( v s r c , v i n i t ) ∀ ( g s r c , g t g t ) ∈ G s r c × G t g t (2) F(g_{\mathrm{src}} \cdot v_{\mathrm{src}}, g_{\mathrm{tgt}} \cdot v_{\mathrm{init}}) = g_{\mathrm{tgt}} \cdot F(v_{\mathrm{src}}, v_{\mathrm{init}}) \qquad\forall(g_{\mathrm{src}}, g_{\mathrm{tgt}}) \in G_{\mathrm{src}} \times G_{\mathrm{tgt}} \tag*{(2)} F ( g src ⋅ v src , g tgt ⋅ v init ) = g tgt ⋅ F ( v src , v init ) ∀ ( g src , g tgt ) ∈ G src × G tgt (2)
A natural and practically important instance of the operator class above is knowledge distillation (Hinton et al., [20 ] ). In its simplest setting, a target network, called the student , is trained to match the outputs of a source network, called the teacher . In our setting, we denote their architectures by A T = A s r c A_T = A_{\mathrm{src}} A T = A src and A S = A t g t A_S = A_{\mathrm{tgt}} A S = A tgt , their weight spaces by V T \mathcal{V}_T V T and V S \mathcal{V}_S V S , the trained teacher by v T v_T v T , and the student by v S v_S v S . Distillation then minimizes
L ( v T , v S ) : = E x ∼ D [ ℓ ( f v T ( x ) , f v S ( x ) ) ] , (3) L(v_T, v_S) := \mathbb{E}_{x \sim\mathcal{D}} \left[\ell(f_{v_T}(x), f_{v_S}(x))\right], \tag*{(3)} L ( v T , v S ) := E x ∼ D [ ℓ ( f v T ( x ) , f v S ( x )) ] , (3)
where ℓ \ell ℓ measures the discrepancy between teacher and student outputs.
Let Φ k ( v T , v 0 ) \Phi_k(v_T, v_0) Φ k ( v T , v 0 ) denote the student parameters obtained after k k k distillation steps initialized at v 0 v_0 v 0 . For SGD (Bottou, [3 ] ) and Adam (Kingma & Ba, [24 ] ) with fixed hyperparameters and minibatches, Φ k \Phi_k Φ k is a continuous equivariant cross-architecture operator in the sense of Definition 4 for every fixed k k k , provided the student loss gradient is jointly continuous. Appendix § 11 .§ 2 gives the formal statement and proof.
CrossGMN
To learn the cross-architecture operators defined in the previous section (Definition 4), we introduce CrossGMN. § 4.1 presents its architecture, and § 4.2 establishes its universality for continuous cross-architecture operators.
Architecture
For parameters v v v , let P ( v ) = ( V , E ) \mathcal{P}(v) = (V, E) P ( v ) = ( V , E ) denote the parameter graph constructed as in GMN (Lim et al., [30 ] ). For an MLP, neurons form the nodes, weights are represented as directed edges between consecutive layers, and biases as node features. The full graph construction and feature specification are given in Appendix § 10 .2.2.
Given source and target MLP architectures, let v s r c v_{\mathrm{src}} v src denote the source-network parameters and v i n i t v_{\mathrm{init}} v init an initialization of the target network. Let P ( v s r c ) = ( V s r c , E s r c ) \mathcal{P}(v_{\mathrm{src}}) = (V^{\mathrm{src}}, E^{\mathrm{src}}) P ( v src ) = ( V src , E src ) and P ( v i n i t ) = ( V t g t , E t g t ) \mathcal{P}(v_{\mathrm{init}}) = (V^{\mathrm{tgt}}, E^{\mathrm{tgt}}) P ( v init ) = ( V tgt , E tgt ) denote their parameter graphs. We define the joint graph as
J ( v s r c , v i n i t ) : = ( V s r c ⊔ V t g t , E s r c ⊔ E t g t ⊔ E × ) , (4) \mathcal{J}(v_{\mathrm{src}}, v_{\mathrm{init}}) := \left(V^{\mathrm{src}} \sqcup V^{\mathrm{tgt}},\ E^{\mathrm{src}} \sqcup E^{\mathrm{tgt}} \sqcup E_{\times}\right), \tag*{(4)} J ( v src , v init ) := ( V src ⊔ V tgt , E src ⊔ E tgt ⊔ E × ) , (4)
where E × E_{\times} E × denotes the set of cross edges. For the joint graph to respect both symmetries, E × E_{\times} E × must be invariant under the joint action of G s r c × G t g t G_{\mathrm{src}} \times G_{\mathrm{tgt}} G src × G tgt on neurons: whenever ( u , v ) ∈ E × (u,v) \in E_{\times} ( u , v ) ∈ E × , also ( g ⋅ u , h ⋅ v ) ∈ E × (g \cdot u, h \cdot v) \in E_{\times} ( g ⋅ u , h ⋅ v ) ∈ E × for all g ∈ G s r c g \in G_{\mathrm{src}} g ∈ G src and h ∈ G t g t h \in G_{\mathrm{tgt}} h ∈ G tgt . We construct E × E_{\times} E × in two steps. We first determine how the neurons of a source layer are joined to those of a target layer, which is dictated by this invariance requirement. We then choose which pairs of layers to join, which is a free design choice.
Joining two layers. Consider a source hidden layer and a target hidden layer. Since the neurons of each can be permuted independently, the only nonempty set of edges between them that is invariant to both permutations is the complete bipartite one, connecting every source neuron to every target neuron. We call this a layerwise join , following the graph join of two disjoint graphs (Cardoso et al., [5 ] ). Input and output neurons, in contrast, are indexed by the coordinates of the realized function’s input and output, and are not permuted. Since the source and target share input and output dimensions, we join them with the sparser positionwise join : the i i i -th source input neuron is connected only to the i i i -th target input neuron, and likewise for output neurons.
Choosing which layers to join. Because each layerwise join is invariant on its own, any choice of which source and target hidden layers to join yields a symmetry-preserving E × E_{\times} E × . We call this choice a cross-edge policy . The most permissive policy, all-to-all , joins every source hidden layer to every target hidden layer, giving n m nm nm layerwise joins for networks with n n n and m m m hidden layers. To avoid this quadratic growth with depth, we use the following strided policy .
Definition 5 (Strided cross-edge policy). For two networks with n ≥ m n \ge m n ≥ m hidden layers, the strided policy partitions the n n n hidden layers of the deeper network into m m m consecutive blocks of near-equal size, and joins the k k k -th hidden layer of the shallower network to every layer in the k k k -th block. Each hidden layer of the deeper network is thus joined to exactly one hidden layer of the shallower network, for a total of n n n layerwise joins. For example, with n = 10 n = 10 n = 10 and m = 5 m = 5 m = 5 , the k k k -th hidden layer of the shallower network is joined to layers 2 k − 1 2k - 1 2 k − 1 and 2 k 2k 2 k of the deeper network, giving 10 joins instead of the 50 required by all-to-all. The formal construction is given in Appendix § 10 .2.1.
Importantly, the strided policy retains the benefits of all-to-all connectivity while using fewer cross edges. In § 4.2 , we establish universality for the strided construction, and our experiments later show that it performs comparably to all-to-all connectivity in practice (Table 6 ). We now have all the components needed to define CrossGMN.
Table 6. Teacher–student communication. CrossGMN ablations on MNIST INR width reduction [2, 32, 32, 1] → [2, 8, 8, 1], same compression setting as in Table 1 .
Definition 6 (CrossGMN). Given the joint graph J ( v s r c , v i n i t ) \mathcal{J}(v_{\mathrm{src}},v_{\mathrm{init}}) J ( v src , v init ) , let G M N θ \mathrm{GMN}_\theta GMN θ denote a graph metanetwork with learnable parameters θ \theta θ operating on the joint graph, and let Π t g t \Pi_{\mathrm{tgt}} Π tgt denote the map that extracts the target-side parameters and arranges them into a vector in the target weight space. We define the resulting parameter update as
Δ θ ( v s r c , v i n i t ) = Π t g t ( G M N θ ( J ( v s r c , v i n i t ) ) ) . \Delta_\theta(v_{\mathrm{src}},v_{\mathrm{init}})=\Pi_{\mathrm{tgt}}\left(\mathrm{GMN}_\theta\left(\mathcal{J}(v_{\mathrm{src}},v_{\mathrm{init}})\right)\right). Δ θ ( v src , v init ) = Π tgt ( GMN θ ( J ( v src , v init ) ) ) . The CrossGMN operator is then
C r o s s G M N θ ( v s r c , v i n i t ) = v i n i t + s Δ θ ( v s r c , v i n i t ) , (5) \mathrm{CrossGMN}_\theta(v_{\mathrm{src}},v_{\mathrm{init}})=v_{\mathrm{init}}+s\,\Delta_\theta(v_{\mathrm{src}},v_{\mathrm{init}}), \tag*{(5)} CrossGMN θ ( v src , v init ) = v init + s Δ θ ( v src , v init ) , (5) where s > 0 s>0 s > 0 is a fixed residual-scale hyperparameter. Figure 1 illustrates CrossGMN.
Figure 1. CrossGMN. The source parameters v s r c v_{\mathrm{src}} v src and an initialization v i n i t v_{\mathrm{init}} v init of the target network are represented as parameter graphs and combined into the joint graph J ( v s r c , v i n i t ) \mathcal{J}(v_{\mathrm{src}},v_{\mathrm{init}}) J ( v src , v init ) . A GNN operates on the joint graph, and its outputs corresponding to the target network form the parameter update Δ θ \Delta_\theta Δ θ , yielding the CrossGMN output defined in Definition 6.
By construction, CrossGMN is invariant to source permutations and equivariant to target permutations, as required by Definition 4. Message passing on the joint graph preserves both symmetry actions, while Π t g t \Pi_{\mathrm{tgt}} Π tgt discards the source and retains the target, yielding the desired invariance and equivariance. A formal statement and proof are given in Proposition 2 in Appendix § 10 .2.5.
Expressivity
Symmetry-preserving architectures restrict the hypothesis space and may therefore limit approximation power, making expressivity analysis particularly important in this setting. We establish that CrossGMN is universal for arbitrary continuous cross-architecture operators satisfying the symmetry in equation (2) . Our result applies whenever the cross-edge connectivity contains all edges of the strided policy in Definition 5.
Theorem 1 (Universality of CrossGMN). Let A s r c A_{\mathrm{src}} A src and A t g t A_{\mathrm{tgt}} A tgt be fixed MLP architectures, and let K s r c ⊂ V A s r c K_{\mathrm{src}}\subset\mathcal{V}_{A_{\mathrm{src}}} K src ⊂ V A src and K t g t ⊂ V A t g t K_{\mathrm{tgt}}\subset\mathcal{V}_{A_{\mathrm{tgt}}} K tgt ⊂ V A tgt be compact sets of weights in general position.1 Let F : K s r c × K t g t → V A t g t F:K_{\mathrm{src}}\times K_{\mathrm{tgt}}\to\mathcal{V}_{A_{\mathrm{tgt}}} F : K src × K tgt → V A tgt be a continuous cross-architecture operator in the sense of Definition 4. Then, for every ε > 0 \varepsilon>0 ε > 0 , there exists a C r o s s G M N θ \mathrm{CrossGMN}_\theta CrossGMN θ such that
sup ( v s r c , v i n i t ) ∈ K s r c × K t g t ∥ C r o s s G M N θ ( v s r c , v i n i t ) − F ( v s r c , v i n i t ) ∥ < ε . \sup_{(v_{\mathrm{src}},v_{\mathrm{init}})\in K_{\mathrm{src}}\times K_{\mathrm{tgt}}}\left\lVert\mathrm{CrossGMN}_\theta(v_{\mathrm{src}},v_{\mathrm{init}})-F(v_{\mathrm{src}},v_{\mathrm{init}})\right\rVert<\varepsilon. ( v src , v init ) ∈ K src × K tgt sup ∥ CrossGMN θ ( v src , v init ) − F ( v src , v init ) ∥ < ε .
In particular, this theorem provides an approximation guarantee for CrossGMN applied to the knowledge distillation operator Φ k \Phi_k Φ k introduced in § 3 .
Proof idea. The proof reduces the cross-architecture setting to the fixed-architecture universality results of Dayan et al. [11 ] , who showed that prominent permutation-equivariant weight-space architectures, including DWSNets (Navon et al. [35 ] ) and GMNs (Lim et al. [30 ] ), have equivalent expressive power and are universal on compact general-position sets for invariant functionals and equivariant operators. Specifically, fixing v i n i t v_{\mathrm{init}} v init makes v s r c ↦ F ( v s r c , v i n i t ) v_{\mathrm{src}} \mapsto F(v_{\mathrm{src}}, v_{\mathrm{init}}) v src ↦ F ( v src , v init ) source-invariant, while fixing v s r c v_{\mathrm{src}} v src makes v i n i t ↦ F ( v s r c , v i n i t ) v_{\mathrm{init}} \mapsto F(v_{\mathrm{src}}, v_{\mathrm{init}}) v init ↦ F ( v src , v init ) target-equivariant. We approximate these components using the corresponding invariant and equivariant universality results and combine them through the cross edges. The full proof is given in Appendix § 11 .§ 3 .
A single CrossGMN for heterogeneous architectures. The universality result extends to any finite collection of source architectures A s r c ( 1 ) , … , A s r c ( m ) A_{\mathrm{src}}^{(1)}, \ldots, A_{\mathrm{src}}^{(m)} A src ( 1 ) , … , A src ( m ) sharing a common target architecture A t g t A_{\mathrm{tgt}} A tgt , provided the source architecture is identifiable from the joint graph. The formal statement and proof are given in Appendix § 11 .§ 4 , and we evaluate this setting empirically in § 5.2 .
Experiments
We evaluate CrossGMN for model compression through knowledge distillation, a practical instance of the cross-architecture operators discussed in § 3 . Following that example, we refer to the source network as the teacher and the target network as the student. We measure whether student initializations predicted by CrossGMN accelerate subsequent distillation toward their teachers. Our experiments cover several model families and compression settings, including transfer across datasets and to unseen source architectures. Full experimental details are provided in Appendix § 12 .§ 1 –§ 12 .§ 7 .
Experimental setup and evaluation
Training and evaluation protocol. For each compression setting, we train CrossGMN on a population of trained teachers and student initializations using the distillation objective in equation (3) . Given a teacher v T v_T v T , CrossGMN predicts v ^ S = CrossGMN θ ( v T , v 0 ) \hat{v}_S = \operatorname{CrossGMN}_{\theta}(v_T, v_0) v ^ S = CrossGMN θ ( v T , v 0 ) , where v 0 v_0 v 0 is an initialization of the target network as defined in § 3 , which we refer to as the anchor throughout the compression experiments.
We initialize the anchor v 0 v_0 v 0 by applying structured pruning methods to the teacher v T v_T v T , as this provides a stronger starting point for knowledge distillation than random initialization with little additional compression overhead (Xu et al. [58 ] ). For each experiment, we select the structured-pruning method that yields the lowest loss at initialization among the evaluated methods, providing a strong anchor for CrossGMN to improve upon. We compare CrossGMN with the selected anchor itself and with other structured-pruning baselines, including magnitude-based (Xu et al. [58 ] ), activation-based (Hu et al. [22 ] ), and OBS/OBC pruning (Hassibi & Stork [19 ] ; Frantar & Alistarh [15 ] ). Appendix § 12 .§ 2 details the anchor and baseline initialization methods.
At evaluation, we measure the distillation speedup of CrossGMN relative to the anchor separately for each held-out teacher. We first distill the anchor v 0 v_0 v 0 until its relevant validation metric plateaus,2 and denote the attained value by q v T ⋆ q^{\star}_{v_T} q v T ⋆ . We then distill the CrossGMN prediction v ^ S \hat{v}_S v ^ S toward the same teacher under a fixed budget. The per-teacher speedup S v T S_{v_T} S v T is the ratio between the numbers of distillation steps required by v 0 v_0 v 0 and v ^ S \hat{v}_S v ^ S to reach q v T ⋆ q^{\star}_{v_T} q v T ⋆ . Thus, S v T > 1 S_{v_T} > 1 S v T > 1 indicates that CrossGMN accelerates distillation relative to the anchor. If v ^ S \hat{v}_S v ^ S does not reach q v T ⋆ q^{\star}_{v_T} q v T ⋆ within the budget, we count the teacher as a failure and set S v T = 0 S_{v_T} = 0 S v T = 0 . We report the median speedup over all held-out teachers together with two complementary statistics: the acceleration rate, defined as the fraction of teachers with S v T > 1 S_{v_T} > 1 S v T > 1 , and the failure rate, defined as the fraction of teachers with S v T = 0 S_{v_T} = 0 S v T = 0 . We additionally report wall-clock speedup, including the cost of the CrossGMN forward pass.
Reach–budget plots. A speedup metric relative to an anchor may be less informative when the anchor itself is weak. We therefore complement speedup metrics with reach–budget plots , which evaluate whether the student reaches prescribed performance defined relative to the teacher. Each plot shows the fraction of teachers whose students reach a fixed target as the distillation budget increases. We report two measures: fidelity reach , which tracks how quickly students match their teachers’ functions, and performance-retention reach , which tracks how quickly they attain a prescribed level of their teachers’ task performance. Figure 2 shows both measures for representative settings; Appendices § 12 .§ 2 and § 12 .9 provide the full protocol and plots for all settings.
Figure 2. Reach-budget plots for MNIST INRs. Fraction of 1,000 held-out teachers whose students reach a prescribed performance threshold defined relative to the teacher as a function of distillation budget (log scale), comparing CrossGMN with its anchor and other baselines (Appendix D.3). Each compression setting includes two panels: (a) Fidelity to the teacher , measured by PSNR(student, teacher) ≥ T \ge T ≥ T dB, and (b) Student performance retention , measured by PSNR(student, image) ≥ \ge ≥ PSNR(teacher, image) − ε -\varepsilon − ε . The thresholds T T T and ε \varepsilon ε are chosen separately for each compression setting to account for differences in student architecture capacity. See § 5.1 for the full description of the reach-budget plots.
Teacher model families. We evaluate compression on trained-model populations 3 , including 2-D SIREN implicit neural representations (INRs) (Sitzmann et al., [46 ] ) fitted to MNIST images (LeCun et al., [28 ] ), 3-D SIREN INRs fitted to ModelNet40 shapes (Wu et al., [56 ] ), MLP and Vision Transformer (ViT) classifiers (Dosovitskiy et al., [12 ] ) on CIFAR-10 (Krizhevsky, [27 ] ), and CNN classifiers on MNIST from the model zoo of Schürholt et al. [43 ] .
CrossGMN distillation speedup across model families and datasets
INR datasets. For MNIST, we use the dataset of Navon et al. [35 ] , containing one SIREN INR per image with teacher architecture [ 2 , 32 , 32 , 1 ] [2,32,32,1] [ 2 , 32 , 32 , 1 ] (1,185 parameters). For ModelNet40, we use the SIREN dataset of 3-D shape distance fields from Shamsian et al. [45 ] , with teacher architecture [ 3 , 48 , 48 , 48 , 48 , 1 ] [3,48,48,48,48,1] [ 3 , 48 , 48 , 48 , 48 , 1 ] (7,297 parameters). CrossGMN is trained and evaluated on disjoint teacher subsets for each dataset; Appendix § 12 .§ 3 –§ 12 .§ 4 provides full details. Table 1 reports distillation speedups across compression settings, and Figure 2 shows reach–budget curves for representative MNIST width and depth reductions, with wall-clock speedups reported below.
Table 1. INR compression. We report median speedup + IQR (in brackets) relative to the best pruning-based anchor initialization. The last two columns report the percentage of held-out teachers for which CrossGMN accelerates distillation, and the percentage for which CrossGMN fails to reach the target within the budget.
Wall-clock speedup. We additionally report wall-clock speedup, including graph construction and the CrossGMN forward pass. For the MNIST INR settings in Table 1 , CrossGMN inference takes
18–20 ms per teacher on an NVIDIA A100, compared with 1.8–2.4 ms per distillation step. This overhead is small relative to the overall distillation budget: width compression from [2, 32, 32, 1] to [2, 8, 8, 1], with a budget of 2,480 steps, achieves a 4.99× wall-clock speedup versus 5.20× in distillation steps, while joint width–depth compression to [2, 16, 1], with a budget of 2,750 steps, achieves 8.36× versus 8.89×. Full timing details and results are provided in Appendices § 12 .§ 2 and § 12 .10.
Classifier datasets. We conduct separate compression experiments on MLP, ViT, and CNN model zoos. For MLPs and ViTs, we construct separate datasets of models trained on CIFAR-10, with 5,000 training and 1,000 test models per dataset. The MLPs have architecture [3072, 64, 64, 64, 64, 10] (209,802 parameters), while the ViTs have four Transformer blocks, two attention heads, hidden dimension 48, and FFN width 192 (115,930 parameters). For CNNs, we use the existing model zoo of Schürholt et al. [43 ] , containing 2,560 MNIST classifiers with three convolutional layers of widths [8, 6, 4] (2,464 parameters). Table 2 reports the compression settings and results; Appendix § 12 .§ 5 –§ 12 .§ 7 provides dataset construction and training details.
Table 2. Classifier compression. Median distillation speedup + IQR (in brackets) relative to the best pruning-based anchor initialization; columns as defined in Table 1 .
Heterogeneous-architecture compression. When a model collection spans multiple architectures, training a separate compression operator for each reduces the benefits of amortization. To evaluate this setting, we train a single CrossGMN on four CIFAR-10 MLP teacher architectures, all mapped to a common student architecture. Table 3 reports results for held-out teachers from each architecture and for the pooled population.
Table 3. Heterogeneous-architecture compression. A single CrossGMN maps all four source architectures to [3072, 8, 10].
Discussion. As seen in Table 1 , CrossGMN consistently accelerates distillation across INRs, achieving significant speedups. For classifiers, Table 2 shows more modest gains that depend on the compression setting: CrossGMN improves distillation for MLPs, CNNs and the ViT depth reductions, while reducing the ViT attention dimension or head count does not yield a speedup. The results in Table 3 show that CrossGMN achieves positive speedups across heterogeneous architectures. Taken together, the results provide evidence that model compression can be learned and amortized directly in weight space, and suggest that CrossGMN is a suitable architecture for studying such learned cross-architecture transformations.
Out-of-Distribution Generalization
A desirable property of weight-space models is to become increasingly agnostic to the underlying network architecture, rather than requiring retraining for each specific model family. We therefore evaluate CrossGMN under two out-of-distribution shifts: cross-dataset transfer and unseen source architectures. Table 4 reports cross-dataset transfer, while Table 5 evaluates unseen architectures. These results support CrossGMN’s ability to transfer across datasets and provide evidence of partial generalization to unseen architectures.
Table 4. Transfer across datasets. The CrossGMN models trained on the MNIST INR settings of Table 1 are applied unchanged to FashionMNIST INRs of the same architectures.
Table 5. Generalization to unseen architectures. The CrossGMN checkpoint used in § 5.2 is applied without retraining to unseen wider and deeper teacher architectures.
Ablations: the role of cross edges
We ablate the main architectural and training choices of CrossGMN, including teacher–student communication, cross-edge policy, student initialization, supervision objective, teacher-population size, weight-space backbone, and operator capacity. Table 6 focuses on the communication ablation, which highlights two main findings: removing cross edges or replacing them with FiLM conditioning on a pooled teacher summary [36 ] reduces distillation speedup, supporting direct equivariant neuron-level communication; and the strided policy of Definition 5 performs comparably to all-to-all connectivity while using fewer cross edges. The remaining ablations are reported in Appendix § 12 .8.
Related Work
Weight-space learning treats neural-network parameters as structured data [18 ] . The pioneering works that started exploring this direction are Eilertsen et al. [13 ] ; Unterthiner et al. [51 ] ; Schurholt et al. [41 ] . Later approaches use symmetry considerations and include equivariant weight-space networks (Navon et al., 2023; Zhou et al., 2023a;b; Tran et al., 2025) and graph-based models [30 , 26 ] , with extensions to additional symmetries [23 , 49 ] . Importantly, these symmetry-aware architectures operate within a single weight space, whereas we study transformations between distinct source and target weight spaces. Related parameter-generation methods either condition on a target architecture [60 , 25 , 33 ] or learn distributions over trained-model populations [42 , 44 , 53 , 47 ] (Erçelik et al. 2023). They generate new weights rather than transforming a particular trained network into another weight space. An extended discussion is provided in Appendix § 9 .
Conclusion
We explored learning transformations between the weight spaces of different neural architectures and introduced CrossGMN, an equivariant framework for learning such cross-architecture operators. CrossGMN is a graph metanetwork that operates jointly over the source and target weight spaces, using a trained source network to refine an initialization of the target network. We proved universality for continuous cross-architecture operators and evaluated the framework on model compression with knowledge distillation. Across INRs and classifiers, CrossGMN reduces subsequent distillation steps for both width and depth compression, while supporting reuse across source architectures, transfer across datasets, and partial generalization to unseen source architectures. These results show that equivariant models can learn architecture-changing transformations directly in weight space.
Limitations and future work. Our current setting requires access to source parameters, assumes compatible input and output spaces, and is evaluated only at moderate scale (up to roughly 200k parameters). Scaling to larger models may require sparse or blockwise joint graphs and more efficient cross-network communication. Future work could also extend the operator view beyond compression to settings such as model upscaling and cross-family transfer.
Acknowledgments
HM is supported by the Israel Science Foundation through a personal grant (ISF 264/23) and an equipment grant (ISF 532/23), and by the Career Advancement Chairs in Artificial Intelligence – Schmidt Futures.
Extended Related Work
Weight-space learning. Weight-space learning treats neural-network parameters as structured data for learning, representation, and manipulation [18 ] . DWSNets [35 ] and Neural Functional Networks [61 ] construct permutation-equivariant layers directly in weight space, while Neural Functional Transformers [62 ] use attention. Graph Metanetworks [30 ] and Neural Graph models [26 ] instead represent networks as graphs and apply message passing. Related work also considers additional symmetries [23 , 49 ] , structured parameterizations such as LoRA weights [59 ] , and related neural artifacts such as gradients [16 ] and activations [2 ] . Universal Neural Functionals extend equivariant weight-space models to general architectures [63 ] , while related approaches extend neural functionals to Transformers and polynomial weight-space features [50 , 52 ] . These models have also been used to learn operators on trained networks, including optimization [26 ] and pruning-oriented editing [31 ] . Existing expressivity results compare such architectures over a single weight space [11 ] . In contrast, CrossGMN studies learned operators between distinct source and target weight spaces with independent permutation actions.
Parameter generation. Parameter-generation methods amortize weight generation across architectures, tasks, or model populations. Graph HyperNetworks [60 , 25 ] and MetaPruning [33 ] take a target architecture as input and predict its weights. Hyper-representations [42 , 44 ] and diffusion-based generators [14 , 53 , 47 ] instead learn a distribution over a population of trained models and sample new weights, optionally conditioned on the task or dataset. These methods generate weights for an architecture or population rather than transforming a particular trained source network from one weight space into another.
Source-conditioned architecture changes. Net2Net provides analytic function-preserving transformations that widen or deepen a network [7 ] , and model-growth methods extend this approach to pretrained Transformers [6 ] . LiGO [54 ] learns a structured linear map from a smaller pretrained model to an initialization of a larger one. While these methods use analytic growth rules or optimize a growth map for a given pretrained source model, CrossGMN learns a shared operator across a population of source networks and reuses it on unseen sources without fitting a new operator for each model.
Compression and distillation. Structured pruning constructs a smaller network by removing entire units or channels and reusing the retained weights [29 ] . Knowledge distillation trains a student to match a teacher’s outputs [20 , 17 ] . FitNets additionally uses intermediate teacher representations as hints to train thinner, deeper students [40 ] . Distillation can also start from weights selected from the teacher [58 ] . CrossGMN fits between these stages: it jointly processes the teacher and the structured-pruning initialization (the anchor) to predict a refined student initialization, from which distillation proceeds toward the same teacher. The refinement is learned across a population of teachers to accelerate this subsequent optimization.
Notation and Architecture-Specific Symmetries
This section records the notation shared by the theoretical and experimental appendices and makes precise which permutation actions are respected by the parameter graphs used for MLPs, CNNs, and Transformers. The main universality theorem is stated for MLPs; the final paragraph of Appendix § 11 explains what transfers to the other families.
Notation
The theoretical sections use the terms source and target , whereas the compression with knowledge distillation experiments use teacher and student . Table 7 fixes the correspondence. We write g ⋅ v g \cdot v g ⋅ v for the action ρ A ( g ) v \rho_A(g)v ρ A ( g ) v of Definition 2. In the experiments, the anchor is simply the target initialization supplied to the operator.
Table 7. Correspondence between the theoretical and experimental notation.
Parameter graphs and induced permutation actions
Parameter graph. CrossGMN uses the parameter-graph construction of Lim et al. [30 ] . We state only the structure needed for the symmetry arguments and for reproducing the implementation.
Definition 7 (Parameter graph). For parameters v ∈ V A v \in\mathcal{V}_A v ∈ V A , the parameter graph P A ( v ) = ( V , E ) \mathcal{P}_A(v) = (V, E) P A ( v ) = ( V , E ) is a typed directed multigraph. Unit nodes represent neurons, channels, or attention coordinates. Auxiliary nodes represent parameter vectors not indexed by two units, such as biases and the gain and shift parameters of normalization layers. Every learnable scalar is stored on either a node or an edge: a matrix entry [ W ] i j [W]_{ij} [ W ] ij is carried by the edge j → i j \to i j → i ; the entries of a convolutional kernel give parallel edges between its input and output channels; and bias or normalization entries are stored on their unit node or on an edge from the corresponding auxiliary node. A fixed parameter-to-graph encoding specifies this assignment and the correspondence used to decode graph outputs into network parameters (Appendix § 12 .§ 1 ). Nodes carry layer and source/target labels; classifier nodes also carry node type, canonical input/output indices, and optional architecture-family and activation-type labels. Edges carry their scalar value, layer index, and role (source-internal, target-internal, source-to-target, or target-to-source in the joint graph), with an optional architecture-family label for classifiers.
Following Lim et al. [30 ] , a neural DAG automorphism preserves edge incidence, fixes input, output, and bias nodes, and preserves weight-sharing constraints. We use the term neural graph automorphism for the corresponding relabelings of our parameter and joint graphs, which may include reciprocal edges. We require these relabelings to fix auxiliary nodes and preserve all structural node and edge features, as in Lim et al. [30 ] . Parameter values are permuted with their nodes or edges, rather than held numerically fixed. Message passing with shared functions is equivariant to these relabelings. The layerwise joins of § 4.1 are preserved under independent relabelings of their two endpoint layers, while positionwise joins connect only canonically indexed boundary nodes. Hence the joint graph preserves the source and target actions independently.
For an MLP, the automorphisms of the standard parameter graph are precisely the hidden-neuron permutations in Definition 2 (Lim et al., [30 ] ). We first specify the shared cross-edge policy, then give the full definitions for MLPs, CNNs, and Transformers.
Joint graphs and cross-edge policies
Joint graph and layerwise joins. For source and target parameter graphs P s r c ( v s r c ) = ( V s r c , E s r c ) \mathcal{P}_{\mathrm{src}}(v_{\mathrm{src}}) = (V^{\mathrm{src}}, E^{\mathrm{src}}) P src ( v src ) = ( V src , E src ) and P t g t ( v i n i t ) = ( V t g t , E t g t ) \mathcal{P}_{\mathrm{tgt}}(v_{\mathrm{init}}) = (V^{\mathrm{tgt}}, E^{\mathrm{tgt}}) P tgt ( v init ) = ( V tgt , E tgt ) , the joint graph is
J ( v s r c , v i n i t ) = ( V s r c ⊔ V t g t , E s r c ⊔ E t g t ⊔ E X ) , (6) \mathcal{J}(v_{\mathrm{src}}, v_{\mathrm{init}}) = (V^{\mathrm{src}} \sqcup V^{\mathrm{tgt}}, E^{\mathrm{src}} \sqcup E^{\mathrm{tgt}} \sqcup E_X), \tag*{(6)} J ( v src , v init ) = ( V src ⊔ V tgt , E src ⊔ E tgt ⊔ E X ) , (6)
as in Equation (4) . For node sets U , W U, W U , W on opposite sides, write
Join ( U , W ) = ( U × W ) ∪ ( W × U ) \operatorname{Join}(U, W) = (U \times W) \cup(W \times U) Join ( U , W ) = ( U × W ) ∪ ( W × U )
for the bidirectional layerwise join of § 4.1 , with each ordered pair representing a directed cross edge. Cross-edge structural features are constant within each directed join. For CNNs and Transformers, cross edges have scalar value 0 and their direction role; auxiliary nodes retain only their internal connections, as in Appendix § 12 .§ 1 .
Positionwise boundary joins. For canonically indexed node sets U = { u i : i ∈ [ q ] } U = \{u_i : i \in[q]\} U = { u i : i ∈ [ q ]} and W = { w i : i ∈ [ q ] } W = \{w_i : i \in[q]\} W = { w i : i ∈ [ q ]} , where [ q ] = { 1 , … , q } [q] = \{1,\ldots,q\} [ q ] = { 1 , … , q } , define
Pos ( U , W ) = { ( u i , w i ) , ( w i , u i ) : i ∈ [ q ] } . \operatorname{Pos}(U,W)=\{(u_i,w_i),(w_i,u_i):i\in[q]\}. Pos ( U , W ) = {( u i , w i ) , ( w i , u i ) : i ∈ [ q ]} .
Source and target share input and output dimensions. Following § 4.1 , their boundary cross edges are
E × , ∂ = Pos ( U i n s r c , U i n t g t ) ∪ Pos ( U o u t s r c , U o u t t g t ) . (7) E_{\times,\partial}=\operatorname{Pos}(U_{\mathrm{in}}^{\mathrm{src}},U_{\mathrm{in}}^{\mathrm{tgt}})\cup\operatorname{Pos}(U_{\mathrm{out}}^{\mathrm{src}},U_{\mathrm{out}}^{\mathrm{tgt}}). \tag*{(7)} E × , ∂ = Pos ( U in src , U in tgt ) ∪ Pos ( U out src , U out tgt ) . (7)
These nodes are fixed by the permutation actions, so positionwise joins preserve the required symmetries. Internal layer and block boundaries remain hidden-unit sets and use layerwise joins.
Strided cross-edge policy. We give the indexed construction of Definition 5. Let n , m ≥ 0 n,m\ge0 n , m ≥ 0 be the numbers of source and target hidden layers, indexed from 0. For n ≥ m ≥ 1 n\ge m\ge1 n ≥ m ≥ 1 , define
a i = round ( i n m ) , b i = max { round ( ( i + 1 ) n m ) , a i + 1 } , a_i=\operatorname{round}\left(\frac{in}{m}\right),\qquad b_i=\max\left\{\operatorname{round}\left(\frac{(i+1)n}{m}\right),a_i+1\right\}, a i = round ( m in ) , b i = max { round ( m ( i + 1 ) n ) , a i + 1 } ,
M n , m = ⋃ i = 0 m − 1 ( { a i , … , b i − 1 } × { i } ) . (8) \mathcal{M}_{n,m}=\bigcup_{i=0}^{m-1}\left(\{a_i,\ldots,b_i-1\}\times\{i\}\right). \tag*{(8)} M n , m = i = 0 ⋃ m − 1 ( { a i , … , b i − 1 } × { i } ) . (8)
where round denotes nearest-integer rounding with a fixed tie convention. Each target layer i i i is paired with the source layers in the nonempty block { a i , … , b i − 1 } \{a_i,\ldots,b_i-1\} { a i , … , b i − 1 } ; these blocks partition the source hidden layers. For n < m n<m n < m , set M n , m = { ( i , j ) : ( j , i ) ∈ M m , n } \mathcal{M}_{n,m}=\{(i,j):(j,i)\in\mathcal{M}_{m,n}\} M n , m = {( i , j ) : ( j , i ) ∈ M m , n } , so pairs always list the source index first. If either network has no hidden layers, set M n , m = ∅ \mathcal{M}_{n,m}=\varnothing M n , m = ∅ . In particular, M n , n = { ( i , i ) : 0 ≤ i < n } \mathcal{M}_{n,n}=\{(i,i):0\le i<n\} M n , n = {( i , i ) : 0 ≤ i < n } gives the shared-index policy for width-only compression. For Transformers, the same matching rule is applied to blocks, with joins defined below by submodule type.
Multilayer perceptrons
Weight space. Let A = ( d , σ ) A=(d,\sigma) A = ( d , σ ) have widths d = ( d 0 , … , d L ) \mathbf{d}=(d_0,\ldots,d_L) d = ( d 0 , … , d L ) and entrywise activation σ \sigma σ . As in Definition 1, its parameters v = ( W 1 , b 1 , … , W L , b L ) \mathbf{v}=(W_1,b_1,\ldots,W_L,b_L) v = ( W 1 , b 1 , … , W L , b L ) lie in
V A = ⨁ ℓ = 1 L ( R d ℓ × d ℓ − 1 ⊕ R d ℓ ) . \mathcal{V}_A=\bigoplus_{\ell=1}^{L}\left(\mathbb{R}^{d_\ell\times d_{\ell-1}}\oplus\mathbb{R}^{d_\ell}\right). V A = ℓ = 1 ⨁ L ( R d ℓ × d ℓ − 1 ⊕ R d ℓ ) .
Realized function. For x ∈ R d 0 x\in\mathbb{R}^{d_0} x ∈ R d 0 , set
h 0 = x , h ℓ = σ ( W ℓ h ℓ − 1 + b ℓ ) ( 1 ≤ ℓ < L ) , f v ( x ) = W L h L − 1 + b L . h_0=x,\qquad h_\ell=\sigma(W_\ell h_{\ell-1}+b_\ell)\quad(1\le\ell<L),\qquad f_{\mathbf{v}}(x)=W_Lh_{L-1}+b_L. h 0 = x , h ℓ = σ ( W ℓ h ℓ − 1 + b ℓ ) ( 1 ≤ ℓ < L ) , f v ( x ) = W L h L − 1 + b L .
Thus hidden layers apply σ \sigma σ and the output layer is affine, as in § 2 .
Permutation symmetries. The group G A = ∏ ℓ = 1 L − 1 S d ℓ G_A=\prod_{\ell=1}^{L-1}S_{d_\ell} G A = ∏ ℓ = 1 L − 1 S d ℓ acts as in Definition 2. For g = ( τ 1 , … , τ L − 1 ) g=(\tau_1,\ldots,\tau_{L-1}) g = ( τ 1 , … , τ L − 1 ) , set P τ 0 = I d 0 P_{\tau_0}=I_{d_0} P τ 0 = I d 0 and P τ L = I d L P_{\tau_L}=I_{d_L} P τ L = I d L , and define
W ℓ ′ = P τ ℓ T W ℓ P τ ℓ − 1 , b ℓ ′ = P τ ℓ T b ℓ , 1 ≤ ℓ ≤ L . W'_\ell=P_{\tau_\ell}^{\mathsf{T}}W_\ell P_{\tau_{\ell-1}},\qquad b'_\ell=P_{\tau_\ell}^{\mathsf{T}}b_\ell,\qquad1\le\ell\le L. W ℓ ′ = P τ ℓ T W ℓ P τ ℓ − 1 , b ℓ ′ = P τ ℓ T b ℓ , 1 ≤ ℓ ≤ L .
Since σ \sigma σ commutes with permutations, the transformed hidden states satisfy h ℓ ′ = P τ ℓ T h ℓ h'_\ell=P_{\tau_\ell}^{\mathsf{T}}h_\ell h ℓ ′ = P τ ℓ T h ℓ , giving f ρ A ( g ) v = f v f_{\rho_A(g)\mathbf{v}}=f_{\mathbf{v}} f ρ A ( g ) v = f v . The same permutations relabel the hidden nodes and their incident edges, while fixing input, output, and auxiliary nodes. Each layerwise join and positionwise boundary edge is preserved under independent source and target actions.
Parameter graph. The node-bias encoding used in § 4.1 has one node per neuron and one directed edge per weight:
U ℓ = { u ℓ , i : i ∈ [ d ℓ ] } , V = ⨆ ℓ = 0 L U ℓ , U_\ell=\{u_{\ell,i}:i\in[d_\ell]\},\qquad V=\bigsqcup_{\ell=0}^{L}U_\ell, U ℓ = { u ℓ , i : i ∈ [ d ℓ ]} , V = ℓ = 0 ⨆ L U ℓ ,
E = ⨆ ℓ = 1 L { e ℓ , i j : u ℓ − 1 , j → u ℓ , i ∣ i ∈ [ d ℓ ] , j ∈ [ d ℓ − 1 ] } . E=\bigsqcup_{\ell=1}^{L}\{e_{\ell,ij}:u_{\ell-1,j}\to u_{\ell,i}\mid i\in[d_\ell],\ j\in[d_{\ell-1}]\}. E = ℓ = 1 ⨆ L { e ℓ , ij : u ℓ − 1 , j → u ℓ , i ∣ i ∈ [ d ℓ ] , j ∈ [ d ℓ − 1 ]} .
The parameter graph P A ( v ) = ( V , E ) \mathcal{P}_A(v) = (V, E) P A ( v ) = ( V , E ) carries scalar features
ω v ( e ℓ , i j ) = ( W ℓ ) i j , ω v ( u ℓ , i ) = { 0 , ℓ = 0 , ( b ℓ ) i , 1 ≤ ℓ ≤ L . \omega_v(e_{\ell,ij}) = (W_\ell)_{ij}, \qquad\omega_v(u_{\ell,i}) =
\begin{cases}
0, & \ell= 0,\\
(b_\ell)_i, & 1 \le\ell\le L.
\end{cases} ω v ( e ℓ , ij ) = ( W ℓ ) ij , ω v ( u ℓ , i ) = { 0 , ( b ℓ ) i , ℓ = 0 , 1 ≤ ℓ ≤ L .
For the classifier encoding, replace node-stored biases by edges e ℓ , i b : η ℓ → u ℓ , i e^b_{\ell,i} : \eta_\ell\to u_{\ell,i} e ℓ , i b : η ℓ → u ℓ , i of value ( b ℓ ) i (b_\ell)_i ( b ℓ ) i , adding one fixed auxiliary node η ℓ \eta_\ell η ℓ per affine layer. Both encodings use the structural features of Definition 7; their feature dimensions and reciprocal message-passing edges are specified in Appendix D.1.
Joint graph. For source and target MLPs with n = L s r c − 1 n = L_{\mathrm{src}} - 1 n = L src − 1 and m = L t g t − 1 m = L_{\mathrm{tgt}} - 1 m = L tgt − 1 hidden layers, use the strided pairs M n , m \mathcal{M}_{n,m} M n , m from Equation (8) and the positionwise boundary edges of Equation (7) :
E × M L P = E × , ∂ ∪ ⋃ ( j , i ) ∈ M n , m Join ( U j + 1 s r c , U i + 1 t g t ) . (9) E^{\mathrm{MLP}}_{\times} = E_{\times,\partial} \cup\bigcup_{(j,i)\in\mathcal{M}_{n,m}} \operatorname{Join}(U^{\mathrm{src}}_{j+1}, U^{\mathrm{tgt}}_{i+1}). \tag*{(9)} E × MLP = E × , ∂ ∪ ( j , i ) ∈ M n , m ⋃ Join ( U j + 1 src , U i + 1 tgt ) . (9)
Here U i n α = U 0 α U^\alpha_{\mathrm{in}} = U^\alpha_0 U in α = U 0 α and U o u t α = U L α α U^\alpha_{\mathrm{out}} = U^\alpha_{L_\alpha} U out α = U L α α for α ∈ { s r c , t g t } \alpha\in\{\mathrm{src}, \mathrm{tgt}\} α ∈ { src , tgt } . The joint graph is Equation (6) with E × = E × M L P E_\times= E^{\mathrm{MLP}}_\times E × = E × MLP ; auxiliary bias nodes receive no cross edges. The all-to-all policy replaces M n , m \mathcal{M}_{n,m} M n , m by { 0 , … , n − 1 } × { 0 , … , m − 1 } \{0,\ldots,n-1\} \times\{0,\ldots,m-1\} { 0 , … , n − 1 } × { 0 , … , m − 1 } .
Convolutional networks
Weight space. Let a convolutional stack have channel counts c = ( c 0 , … , c L ) \mathbf{c} = (c_0,\ldots,c_L) c = ( c 0 , … , c L ) , kernel sizes k = ( k 1 , … , k L ) \mathbf{k} = (k_1,\ldots,k_L) k = ( k 1 , … , k L ) , and pointwise nonlinearity σ \sigma σ . Its weight space is
V A = ⨁ ℓ = 1 L ( R c ℓ × c ℓ − 1 × k ℓ × k ℓ ⊕ R c ℓ ) . \mathcal{V}_A = \bigoplus_{\ell=1}^{L} \left(\mathbb{R}^{c_\ell\times c_{\ell-1} \times k_\ell\times k_\ell} \oplus\mathbb{R}^{c_\ell}\right). V A = ℓ = 1 ⨁ L ( R c ℓ × c ℓ − 1 × k ℓ × k ℓ ⊕ R c ℓ ) .
Realized function. For v = ( K 1 , b 1 , … , K L , b L ) v = (K_1,b_1,\ldots,K_L,b_L) v = ( K 1 , b 1 , … , K L , b L ) , define the affine convolution maps C ℓ ( X ) = K ℓ ∗ X + b ℓ C_\ell(X) = K_\ell* X + b_\ell C ℓ ( X ) = K ℓ ∗ X + b ℓ , where ∗ * ∗ denotes spatial convolution with the architecture’s fixed stride and padding, and biases are broadcast over spatial positions. The realized function is:
f v ( x ) = ( C L ∘ σ ∘ C L − 1 ∘ ⋯ ∘ σ ∘ C 1 ) ( x ) . f_v(x) = (C_L \circ\sigma\circ C_{L-1} \circ\cdots\circ\sigma\circ C_1)(x). f v ( x ) = ( C L ∘ σ ∘ C L − 1 ∘ ⋯ ∘ σ ∘ C 1 ) ( x ) .
Fixed channelwise pooling maps may be inserted between layers. Any dense layers following the convolutional stack use the MLP parameterization above.
Permutation symmetries. The hidden-channel group is G A = ∏ ℓ = 1 L − 1 S c ℓ G_A = \prod_{\ell=1}^{L-1} S_{c_\ell} G A = ∏ ℓ = 1 L − 1 S c ℓ . For g = ( τ 1 , … , τ L − 1 ) g = (\tau_1,\ldots,\tau_{L-1}) g = ( τ 1 , … , τ L − 1 ) , with τ 0 \tau_0 τ 0 and τ L \tau_L τ L the identity, ρ A ( g ) \rho_A(g) ρ A ( g ) applies P τ ℓ P_{\tau_\ell} P τ ℓ to the output-channel axis and P τ ℓ − 1 T P_{\tau_{\ell-1}}^{\mathsf{T}} P τ ℓ − 1 T to the input-channel axis of the ℓ \ell ℓ -th kernel, and sets b ℓ ′ = P τ ℓ b ℓ b'_\ell= P_{\tau_\ell} b_\ell b ℓ ′ = P τ ℓ b ℓ . Channelwise nonlinearities and pooling commute with this action; flattening induces the corresponding permutation of the input coordinates of any following dense layer. Thus f ρ A ( g ) v = f v f_{\rho_A(g)v} = f_v f ρ A ( g ) v = f v . In the parameter graph, the same action relabels the hidden channel nodes and their incident kernel and bias edges.
Parameter graph. The corresponding parameter graph P A ( v ) = ( V , E ) \mathcal{P}_A(v) = (V, E) P A ( v ) = ( V , E ) has one node per channel and one auxiliary bias node per convolutional layer:
U ℓ = { u ℓ , i : i ∈ [ c ℓ ] } , V = ⨆ ℓ = 0 L U ℓ ⊔ { η ℓ : ℓ ∈ [ L ] } . U_\ell= \{u_{\ell,i} : i \in[c_\ell]\}, \qquad V = \bigsqcup_{\ell=0}^{L} U_\ell\sqcup\{\eta_\ell: \ell\in[L]\}. U ℓ = { u ℓ , i : i ∈ [ c ℓ ]} , V = ℓ = 0 ⨆ L U ℓ ⊔ { η ℓ : ℓ ∈ [ L ]} .
Its edge set is
E = ⋃ ℓ = 1 L ( { e ℓ , i j r s : u ℓ − 1 , j → u ℓ , i ∣ i ∈ [ c ℓ ] , j ∈ [ c ℓ − 1 ] , r , s ∈ [ k ℓ ] } ⊔ { e ℓ , i b : η ℓ → u ℓ , i ∣ i ∈ [ c ℓ ] } ) , E = \bigcup_{\ell=1}^{L} \left(\{e_{\ell,ijrs} : u_{\ell-1,j} \to u_{\ell,i} \mid i \in[c_\ell],\ j \in[c_{\ell-1}],\ r,s \in[k_\ell]\}
\sqcup\{e^b_{\ell,i} : \eta_\ell\to u_{\ell,i} \mid i \in[c_\ell]\}\right), E = ℓ = 1 ⋃ L ( { e ℓ , ij r s : u ℓ − 1 , j → u ℓ , i ∣ i ∈ [ c ℓ ] , j ∈ [ c ℓ − 1 ] , r , s ∈ [ k ℓ ]} ⊔ { e ℓ , i b : η ℓ → u ℓ , i ∣ i ∈ [ c ℓ ]} ) ,
with scalar edge values
ω v ( e ℓ , i j r s ) = ( K ℓ ) i j r s , ω v ( e ℓ , i b ) = ( b ℓ ) i . \omega_v(e_{\ell,ijrs}) = (K_\ell)_{ijrs}, \qquad\omega_v(e^b_{\ell,i}) = (b_\ell)_i. ω v ( e ℓ , ij r s ) = ( K ℓ ) ij r s , ω v ( e ℓ , i b ) = ( b ℓ ) i .
Thus each input/output channel pair has k ℓ 2 k_{\ell}^{2} k ℓ 2 parallel kernel edges. Spatial reuse of a kernel entry does not create additional parameter edges [30 Section 2.1.2] . Edge indices specify the parameter-to-edge correspondence; structural features are those of Definition 7. Channelwise activations and pooling reuse the channel nodes. If a dense readout follows the stack, continue the layer-node notation as U L + 1 , … , U L n e t U_{L+1},\ldots,U_{L_{\mathrm{net}}} U L + 1 , … , U L net using the MLP construction, where L n e t L_{\mathrm{net}} L net is the total number of convolutional and dense layers. For the stack alone, L n e t = L L_{\mathrm{net}}=L L net = L .
Joint graph for width compression. Our CNN experiments change widths only, so source and target have the same sequence of L n e t L_{\mathrm{net}} L net layers. Using the node sets U ℓ s r c U_{\ell}^{\mathrm{src}} U ℓ src and U ℓ t g t U_{\ell}^{\mathrm{tgt}} U ℓ tgt of their parameter graphs, join corresponding hidden layers:
E × C N N = E × , ∂ ∪ ⋃ ℓ = 1 L n e t − 1 Join ( U ℓ s r c , U ℓ t g t ) . (10) E_{\times}^{\mathrm{CNN}}=E_{\times,\partial}\cup\bigcup_{\ell=1}^{L_{\mathrm{net}}-1}\operatorname{Join}(U_{\ell}^{\mathrm{src}},U_{\ell}^{\mathrm{tgt}}). \tag*{(10)} E × CNN = E × , ∂ ∪ ℓ = 1 ⋃ L net − 1 Join ( U ℓ src , U ℓ tgt ) . (10)
This is the equal-depth matching M n , n \mathcal{M}_{n,n} M n , n of Equation (8) , with n = L n e t − 1 n=L_{\mathrm{net}}-1 n = L net − 1 . The boundary edges E × , ∂ E_{\times,\partial} E × , ∂ follow Equation (7) , with U i n α = U 0 α U_{\mathrm{in}}^{\alpha}=U_{0}^{\alpha} U in α = U 0 α and U o u t α = U L n e t α U_{\mathrm{out}}^{\alpha}=U_{L_{\mathrm{net}}}^{\alpha} U out α = U L net α for α ∈ { s r c , t g t } \alpha\in\{\mathrm{src},\mathrm{tgt}\} α ∈ { src , tgt } . The CNN joint graph is Equation (6) with E × = E × C N N E_{\times}=E_{\times}^{\mathrm{CNN}} E × = E × CNN .
Transformers
Weight space. Let a Transformer have L L L blocks, residual width d d d , H H H heads of dimension d h d_h d h , attention width d a = H d h d_a=Hd_h d a = H d h , and feed-forward width d f d_f d f . For blocks with biases and two affine LayerNorms, its weight space is
V A = V e m b ⊕ ⨁ ℓ = 0 L − 1 [ ( R d h × d ⊕ R d h ) ⊕ 3 ⊕ ( R d × d a ⊕ R d ) ⊕ ( R d f × d ⊕ R d f ) ⊕ ( R d × d f ⊕ R d ) ⊕ R 4 d ] ⊕ V o u t . \mathcal{V}_{A}=\mathcal{V}_{\mathrm{emb}}\oplus\bigoplus_{\ell=0}^{L-1}\left[\left(\mathbb{R}^{d_h\times d}\oplus\mathbb{R}^{d_h}\right)^{\oplus3}\oplus\left(\mathbb{R}^{d\times d_a}\oplus\mathbb{R}^{d}\right)\oplus\left(\mathbb{R}^{d_f\times d}\oplus\mathbb{R}^{d_f}\right)\oplus\left(\mathbb{R}^{d\times d_f}\oplus\mathbb{R}^{d}\right)\oplus\mathbb{R}^{4d}\right]\oplus\mathcal{V}_{\mathrm{out}}. V A = V emb ⊕ ℓ = 0 ⨁ L − 1 [ ( R d h × d ⊕ R d h ) ⊕ 3 ⊕ ( R d × d a ⊕ R d ) ⊕ ( R d f × d ⊕ R d f ) ⊕ ( R d × d f ⊕ R d ) ⊕ R 4 d ] ⊕ V out .
The block factors contain the query, key, and value projections, the attention output projection, the two feed-forward maps, and the LayerNorm gains and shifts, respectively. The spaces V e m b \mathcal{V}_{\mathrm{emb}} V emb and V o u t \mathcal{V}_{\mathrm{out}} V out contain the trainable input and positional embeddings (including any class token), and the output head and any final normalization, respectively.
Realized function. To specify the realized function, store tokens as columns of X ∈ R d × n X\in\mathbb{R}^{d\times n} X ∈ R d × n and write 1 n \mathbf{1}_{n} 1 n for the all-ones vector. Suppressing the block index, the projections for head h h h are
Q h = W q , h X + b q , h 1 n T , K h = W k , h X + b k , h 1 n T , V h = W v , h X + b v , h 1 n T . Q_h=W_{q,h}X+b_{q,h}\mathbf{1}_{n}^{\mathsf{T}},\qquad K_h=W_{k,h}X+b_{k,h}\mathbf{1}_{n}^{\mathsf{T}},\qquad V_h=W_{v,h}X+b_{v,h}\mathbf{1}_{n}^{\mathsf{T}}. Q h = W q , h X + b q , h 1 n T , K h = W k , h X + b k , h 1 n T , V h = W v , h X + b v , h 1 n T .
Here W q , h , W k , h , W v , h W_{q,h},W_{k,h},W_{v,h} W q , h , W k , h , W v , h are the d h d_h d h -row blocks of W q , W k , W v W_q,W_k,W_v W q , W k , W v . With softmax applied rowwise, define
T h ( X ) = V h softmax ( Q h T K h d h ) T , T_h(X)=V_h\operatorname{softmax}\left(\frac{Q_h^{\mathsf{T}}K_h}{\sqrt{d_h}}\right)^{\mathsf{T}}, T h ( X ) = V h softmax ( d h Q h T K h ) T ,
MHA ( X ) = W o concat h = 1 H T h ( X ) + b o 1 n T , \operatorname{MHA}(X)=W_o\operatorname{concat}_{h=1}^{H}T_h(X)+b_o\mathbf{1}_{n}^{\mathsf{T}}, MHA ( X ) = W o concat h = 1 H T h ( X ) + b o 1 n T ,
FF ( X ) = W 2 σ ( W 1 X + b 1 1 n T ) + b 2 1 n T , \operatorname{FF}(X)=W_2\sigma\left(W_1X+b_1\mathbf{1}_{n}^{\mathsf{T}}\right)+b_2\mathbf{1}_{n}^{\mathsf{T}}, FF ( X ) = W 2 σ ( W 1 X + b 1 1 n T ) + b 2 1 n T ,
where concatenation is along the feature dimension and σ \sigma σ acts entrywise. In the pre-normalization convention, block ℓ \ell ℓ is
Y = X + MHA ℓ ( LN ℓ , 1 ( X ) ) , B ℓ ( X ) = Y + FF ℓ ( LN ℓ , 2 ( Y ) ) , Y=X+\operatorname{MHA}_{\ell}(\operatorname{LN}_{\ell,1}(X)),\qquad B_{\ell}(X)=Y+\operatorname{FF}_{\ell}(\operatorname{LN}_{\ell,2}(Y)), Y = X + MHA ℓ ( LN ℓ , 1 ( X )) , B ℓ ( X ) = Y + FF ℓ ( LN ℓ , 2 ( Y )) ,
where each LayerNorm acts separately on each token, with learned gain and shift and a fixed positive stabilizer. The realized function is
f V ( x ) = ( R V ∘ B L − 1 ∘ ⋯ ∘ B 0 ∘ E V ) ( x ) , f_{\mathcal{V}}(x)=\left(R_{\mathcal{V}}\circ B_{L-1}\circ\cdots\circ B_{0}\circ E_{\mathcal{V}}\right)(x), f V ( x ) = ( R V ∘ B L − 1 ∘ ⋯ ∘ B 0 ∘ E V ) ( x ) ,
where E V E_{\mathcal{V}} E V embeds the input and adds positional representations, and R V R_{\mathcal{V}} R V applies the architecture’s readout and any final normalization.
Permutation symmetries. We use permutations of coordinates within each head, permutations of heads, and permutations of feed-forward units, while fixing residual-stream coordinates:
G A = ∏ ℓ = 0 L − 1 ( ( S d h ≀ S H ) × S d f ) . G_A=\prod_{\ell=0}^{L-1}\left((S_{d_h}\wr S_H)\times S_{d_f}\right). G A = ℓ = 0 ∏ L − 1 ( ( S d h ≀ S H ) × S d f ) .
For ( τ ℓ , κ ℓ ) (\tau_\ell,\kappa_\ell) ( τ ℓ , κ ℓ ) in the ℓ \ell ℓ -th factor, the attention action applies P τ ℓ T P_{\tau_\ell}^{\mathsf T} P τ ℓ T to the rows and biases of W q , W k , W v W_q,W_k,W_v W q , W k , W v and P τ ℓ P_{\tau_\ell} P τ ℓ to the columns of W o W_o W o ; the feed-forward action applies P κ ℓ T P_{\kappa_\ell}^{\mathsf T} P κ ℓ T to the rows and bias of W 1 W_1 W 1 and P κ ℓ P_{\kappa_\ell} P κ ℓ to the columns of W 2 W_2 W 2 . Joint query–key permutations preserve the attention logits, value permutations are absorbed by W o W_o W o , and feed-forward permutations are the usual one-hidden-layer MLP symmetry. Thus this action preserves the realized function.
This subgroup is compatible with the shared-coordinate attention graph of Lim et al. [30 ] , Section 2.1.2 and Figure 3 . They describe attention edges as “a set that corresponds to the query, key, and value maps”; the shared intermediate nodes for these three projections are explicit in their released graph construction.4 The subgroup does not exhaust the functional symmetries of Transformers. For example, standard dot-product attention also permits independent permutations of query–key and value coordinates within each head, as well as compensating invertible changes of basis in the query and key projections.
Figure 3. Mapping a teacher to an optimal student can be discontinuous. The width-2 teacher parameters v T ( t ) v_T(t) v T ( t ) in Equation (14) vary continuously and realize f t = ( 1 − t ) u + ( 1 + t ) v f_t = (1-t)u + (1+t)v f t = ( 1 − t ) u + ( 1 + t ) v . By Lemma 3, the optimal width-1 student realizes ( 1 − t ) u (1-t)u ( 1 − t ) u for t < 0 t<0 t < 0 and ( 1 + t ) v (1+t)v ( 1 + t ) v for t > 0 t>0 t > 0 ; at t = 0 t=0 t = 0 , both u u u and v v v are optimal. These one-sided limits differ, so no continuous parameter map can select an optimal student for every teacher along the path (Proposition 4).
The symmetry implemented by a graph metanetwork is determined by the typed parameter graph, not only by the computational architecture. We therefore distinguish the chosen function-preserving group G A G_A G A above from
G ^ A : = { g ∈ G A : ρ A ( g ) is induced by a neural graph automorphism of P A } . \widehat{G}_A:=\{g\in G_A:\rho_A(g)\text{ is induced by a neural graph automorphism of }\mathcal{P}_A\}. G A := { g ∈ G A : ρ A ( g ) is induced by a neural graph automorphism of P A } .
Whether G ^ A = G A \widehat{G}_A=G_A G A = G A depends on the structural labels preserved by the graph encoding; fixed head-index labels, for example, can restrict head permutations. Our implementation and all formal claims about the deployed Transformer operator use this represented subgroup G ^ A \widehat{G}_A G A , without claiming equivariance to every functional symmetry.
Parameter graph. The parameter graph is built by joining the parameter subgraphs of these modules. For block ℓ \ell ℓ , let
R ℓ s = { r ℓ , i s : i ∈ [ d ] } ( s = 0 , 1 , 2 ) , A ℓ = { a ℓ , p : p ∈ [ d a ] } , F ℓ = { f ℓ , j : j ∈ [ d f ] } . R_\ell^s=\{r_{\ell,i}^s:i\in[d]\}\quad(s=0,1,2),\qquad A_\ell=\{a_{\ell,p}:p\in[d_a]\},\qquad F_\ell=\{f_{\ell,j}:j\in[d_f]\}. R ℓ s = { r ℓ , i s : i ∈ [ d ]} ( s = 0 , 1 , 2 ) , A ℓ = { a ℓ , p : p ∈ [ d a ]} , F ℓ = { f ℓ , j : j ∈ [ d f ]} .
The sets R ℓ 0 , R ℓ 1 , R ℓ 2 R_\ell^0,R_\ell^1,R_\ell^2 R ℓ 0 , R ℓ 1 , R ℓ 2 index the residual coordinates at the block input, after attention, and at the block output. The nodes in A ℓ A_\ell A ℓ jointly index query, key, and value coordinates, with p = ( h − 1 ) d h + r p=(h-1)d_h+r p = ( h − 1 ) d h + r for coordinate r r r of head h h h ; F ℓ F_\ell F ℓ indexes the feed-forward hidden units. Add bias nodes B ℓ = { η ℓ , t : t ∈ { q , k , v , o , 1 , 2 } } B_\ell=\{\eta_{\ell,t}:t\in\{q,k,v,o,1,2\}\} B ℓ = { η ℓ , t : t ∈ { q , k , v , o , 1 , 2 }} and normalization nodes N ℓ = { ν ℓ , s γ , ν ℓ , s β : s = 1 , 2 } N_\ell=\{\nu_{\ell,s}^{\gamma},\nu_{\ell,s}^{\beta}:s=1,2\} N ℓ = { ν ℓ , s γ , ν ℓ , s β : s = 1 , 2 } . The block node set is
V ℓ = ( ⨆ s = 0 2 R ℓ s ) ⊔ A ℓ ⊔ F ℓ ⊔ B ℓ ⊔ N ℓ . V_\ell=\left(\bigsqcup_{s=0}^{2}R_\ell^s\right)\sqcup A_\ell\sqcup F_\ell\sqcup B_\ell\sqcup N_\ell. V ℓ = ( s = 0 ⨆ 2 R ℓ s ) ⊔ A ℓ ⊔ F ℓ ⊔ B ℓ ⊔ N ℓ .
Writing u → α v u\xrightarrow{\alpha}v u α v for an edge whose scalar value is ω v ( e ) = α \omega_v(e)=\alpha ω v ( e ) = α , the matrix edges are precisely
r ℓ , i 0 → ( W ℓ , t ) p i a ℓ , p ( t ∈ { q , k , v } , i ∈ [ d ] , p ∈ [ d a ] ) , r_{\ell,i}^{0}\xrightarrow{(W_{\ell,t})_{pi}}a_{\ell,p}\qquad(t\in\{q,k,v\},\ i\in[d],\ p\in[d_a]), r ℓ , i 0 ( W ℓ , t ) p i a ℓ , p ( t ∈ { q , k , v } , i ∈ [ d ] , p ∈ [ d a ]) ,
a ℓ , p → ( W ℓ , o ) i p r ℓ , i 1 ( p ∈ [ d a ] , i ∈ [ d ] ) , a_{\ell,p}\xrightarrow{(W_{\ell,o})_{ip}}r_{\ell,i}^{1}\qquad(p\in[d_a],\ i\in[d]), a ℓ , p ( W ℓ , o ) i p r ℓ , i 1 ( p ∈ [ d a ] , i ∈ [ d ]) ,
r ℓ , i 1 → ( W ℓ , 1 ) j i f ℓ , j ( i ∈ [ d ] , j ∈ [ d f ] ) , r_{\ell,i}^{1}\xrightarrow{(W_{\ell,1})_{ji}}f_{\ell,j}\qquad(i\in[d],\ j\in[d_f]), r ℓ , i 1 ( W ℓ , 1 ) j i f ℓ , j ( i ∈ [ d ] , j ∈ [ d f ]) ,
f ℓ , j → ( W ℓ , 2 ) i j r ℓ , i 2 ( j ∈ [ d f ] , i ∈ [ d ] ) . f_{\ell,j}\xrightarrow{(W_{\ell,2})_{ij}}r_{\ell,i}^{2}\qquad(j\in[d_f],\ i\in[d]). f ℓ , j ( W ℓ , 2 ) ij r ℓ , i 2 ( j ∈ [ d f ] , i ∈ [ d ]) .
In particular, each pair ( r ℓ , i 0 , a ℓ , p ) (r_{\ell,i}^{0},a_{\ell,p}) ( r ℓ , i 0 , a ℓ , p ) has three parallel edges, one for each of W q , W k , W v W_q,W_k,W_v W q , W k , W v . For every affine map t t t , connect η ℓ , t \eta_{\ell,t} η ℓ , t to each output-coordinate node of that map with the corresponding entry of b ℓ , t b_{\ell,t} b ℓ , t . LayerNorm adds two edge families for its gain γ ℓ , s ∈ R d \gamma_{\ell,s}\in\mathbb{R}^{d} γ ℓ , s ∈ R d and shift β ℓ , s ∈ R d \beta_{\ell,s}\in\mathbb{R}^{d} β ℓ , s ∈ R d :
ν ℓ , s γ → ( γ ℓ , s ) i r ℓ , i s − 1 , ν ℓ , s β → ( β ℓ , s ) i r ℓ , i s − 1 ( i ∈ [ d ] , s = 1 , 2 ) . \nu_{\ell,s}^{\gamma}\xrightarrow{(\gamma_{\ell,s})_i}r_{\ell,i}^{s-1},\qquad
\nu_{\ell,s}^{\beta}\xrightarrow{(\beta_{\ell,s})_i}r_{\ell,i}^{s-1}
\qquad(i\in[d],\ s=1,2). ν ℓ , s γ ( γ ℓ , s ) i r ℓ , i s − 1 , ν ℓ , s β ( β ℓ , s ) i r ℓ , i s − 1 ( i ∈ [ d ] , s = 1 , 2 ) .
The remaining block edges are the parameter-free residual edges r ℓ , i 0 , 0 → r ℓ , i 1 , 1 r_{\ell,i}^{0,0} \to r_{\ell,i}^{1,1} r ℓ , i 0 , 0 → r ℓ , i 1 , 1 and r ℓ , i 1 , 1 → r ℓ , i 2 , 2 r_{\ell,i}^{1,1} \to r_{\ell,i}^{2,2} r ℓ , i 1 , 1 → r ℓ , i 2 , 2 . These matrix, bias, normalization, and residual edges together define E ℓ E_\ell E ℓ . As in Lim et al. [30 ] , activations, attention softmax, and tokenwise reuse of the projections introduce no additional parameter nodes or edges.
The full graph P A ( v ) = ( V , E ) \mathcal{P}_{A}(v) = (V,E) P A ( v ) = ( V , E ) is the union of these block graphs and the embedding and readout graphs, identifying r ℓ , i 2 , ℓ = r ℓ + 1 , i 0 , 0 r_{\ell,i}^{2, \ell} = r_{\ell+1,i}^{0,0} r ℓ , i 2 , ℓ = r ℓ + 1 , i 0 , 0 at consecutive block boundaries. Patch embeddings use the convolutional construction above, and linear embeddings and readouts use the MLP edge rule. Denote their layer-node sets by U k e m b U_k^{\mathrm{emb}} U k emb and U k o u t U_k^{\mathrm{out}} U k out , with depths L e m b L_{\mathrm{emb}} L emb and L o u t L_{\mathrm{out}} L out , and identify
U L e m b e m b = R 0 0 , U 0 o u t = R L − 1 2 . U_{L_{\mathrm{emb}}}^{\mathrm{emb}} = R_0^{0}, \qquad U_0^{\mathrm{out}} = R_{L-1}^{2}. U L emb emb = R 0 0 , U 0 out = R L − 1 2 .
The network’s input and output node sets are U i n = U 0 e m b U_{\mathrm{in}} = U_0^{\mathrm{emb}} U in = U 0 emb and U o u t = U L o u t o u t U_{\mathrm{out}} = U_{L_{\mathrm{out}}}^{\mathrm{out}} U out = U L out out . Any trainable positional or class-token vector is represented by an auxiliary node with one edge per entry to the corresponding embedding coordinate; final normalization uses the same gain/shift construction. Fixed positional representations introduce no learnable edges. The node indices above specify parameter locations; structural labels and any reciprocal edges used for message passing follow Definition 7 and Appendix § 12 .§ 1 .
Joint graph. Apply the strided matching M n , m M_{n,m} M n , m of Equation (8) to whole Transformer blocks, with n = L s r c n = L_{\mathrm{src}} n = L src and m = L t g t m = L_{\mathrm{tgt}} m = L tgt . Within each matched block pair, join corresponding unit sets:
E × , b l o c k s = ⋃ ( j , i ) ∈ M n , m [ ⋃ s = 0 2 Join ( R j s , s r c , R i s , t g t ) ∪ Join ( A j s r c , A i t g t ) ∪ Join ( F j s r c , F i t g t ) ] . (11) E_{\times,\mathrm{blocks}} =
\bigcup_{(j,i)\in M_{n,m}}
\left[
\bigcup_{s=0}^{2}\operatorname{Join}(R_{j}^{s,\mathrm{src}},R_{i}^{s,\mathrm{tgt}})
\mathbin{\cup}\operatorname{Join}(A_{j}^{\mathrm{src}},A_{i}^{\mathrm{tgt}})
\mathbin{\cup}\operatorname{Join}(F_{j}^{\mathrm{src}},F_{i}^{\mathrm{tgt}})
\right]. \tag*{(11)} E × , blocks = ( j , i ) ∈ M n , m ⋃ [ s = 0 ⋃ 2 Join ( R j s , src , R i s , tgt ) ∪ Join ( A j src , A i tgt ) ∪ Join ( F j src , F i tgt ) ] . (11)
Thus joins match attention coordinates, feed-forward hidden units, and residual coordinates at corresponding submodule boundaries. Attention joins include all coordinates on both sides, allowing different head counts.
For matching embedding and readout depths on the two sides, join their corresponding internal node sets U k t , α U_k^{t,\alpha} U k t , α defined above, where t ∈ { e m b , o u t } t \in\{\mathrm{emb},\mathrm{out}\} t ∈ { emb , out } and α ∈ { s r c , t g t } \alpha\in\{\mathrm{src},\mathrm{tgt}\} α ∈ { src , tgt } . With the positionwise input/output edges of Equation (7) , the full cross-edge set is
E × T r = E × , ∂ ∪ E × , b l o c k s ∪ ⋃ t ∈ { e m b , o u t } ⋃ k = 1 L t − 1 Join ( U k t , s r c , U k t , t g t ) . E_{\times}^{\mathrm{Tr}} = E_{\times,\partial} \cup E_{\times,\mathrm{blocks}} \cup\bigcup_{t\in\{\mathrm{emb},\mathrm{out}\}}\bigcup_{k=1}^{L_t-1}\operatorname{Join}(U_k^{t,\mathrm{src}},U_k^{t,\mathrm{tgt}}). E × Tr = E × , ∂ ∪ E × , blocks ∪ t ∈ { emb , out } ⋃ k = 1 ⋃ L t − 1 Join ( U k t , src , U k t , tgt ) .
which defines the Transformer joint graph through Equation (6) . The embedding–block and block–readout interfaces are already included through R 0 0 , α R_0^{0,\alpha} R 0 0 , α and R L α − 1 2 , α R_{L_\alpha-1}^{2,\alpha} R L α − 1 2 , α . For a single patch-embedding layer and linear classifier, L e m b = L o u t = 1 L_{\mathrm{emb}} = L_{\mathrm{out}} = 1 L emb = L out = 1 , so the last union is empty. Set unions include each cross edge once, even when joins overlap after the block-boundary identifications.
Equivariance of the joint graph
Proposition 2 (Equivariance induced by the joint graph). Let J \mathcal{J} J be the joint graph of Equation (4) , with the cross-edge construction of § 4.1 (and Appendix § 10 .2.2) for MLPs, Appendix § 10 .2.3 for CNNs, or Appendix § 10 .2.4 for Transformers. Let G MM N _\mathrm{MN} MN be a graph meta-network as defined by Lim et al. [30 ] , and let H s r c H_{\mathrm{src}} H src and H t g t H_{\mathrm{tgt}} H tgt be parameter-permutation groups induced by neural graph automorphisms of the respective parameter graphs. Then the CrossGMN operator of Definition 6 satisfies, for every choice of parameters θ \theta θ ,
CrossGMN θ ( g s r c ⋅ v s r c , g t g t ⋅ v t g t , v i n i t ) = g t g t ⋅ CrossGMN θ ( v s r c , v i n i t ) \operatorname{CrossGMN}_{\theta}(g_{\mathrm{src}}\cdot v_{\mathrm{src}},g_{\mathrm{tgt}}\cdot v_{\mathrm{tgt}},v_{\mathrm{init}})
=
g_{\mathrm{tgt}}\cdot\operatorname{CrossGMN}_{\theta}(v_{\mathrm{src}},v_{\mathrm{init}}) CrossGMN θ ( g src ⋅ v src , g tgt ⋅ v tgt , v init ) = g tgt ⋅ CrossGMN θ ( v src , v init ) for all g s r c ∈ H s r c g_{\mathrm{src}}\in H_{\mathrm{src}} g src ∈ H src and g t g t ∈ H t g t g_{\mathrm{tgt}}\in H_{\mathrm{tgt}} g tgt ∈ H tgt and all source and target parameters. For MLPs, we may take H s r c = G s r c H_{\mathrm{src}} = G_{\mathrm{src}} H src = G src and H t g t = G t g t H_{\mathrm{tgt}} = G_{\mathrm{tgt}} H tgt = G tgt , so this is exactly the symmetry required by Definition 4.
Proof. Fix ( g s r c , g t g t ) ∈ H s r c × H t g t (g_{\mathrm{src}},g_{\mathrm{tgt}}) \in H_{\mathrm{src}}\times H_{\mathrm{tgt}} ( g src , g tgt ) ∈ H src × H tgt and write J = J ( v s r c , v i n i t ) \mathcal{J} = \mathcal{J}(v_{\mathrm{src}},v_{\mathrm{init}}) J = J ( v src , v init ) . Let γ \gamma γ be the disjoint union of inducing automorphisms of the two parameter graphs. Each layerwise join is preserved because its endpoint sets are preserved; any positionwise boundary edges are fixed. Cross-edge features are unchanged within each directed join. Thus γ \gamma γ preserves the joint graph’s structure and structural features, and
J ( g s r c ⋅ v s r c , g t g t ⋅ v i n i t ) = γ ⋅ J . \mathcal{J}(g_{\mathrm{src}}\cdot v_{\mathrm{src}},g_{\mathrm{tgt}}\cdot v_{\mathrm{init}})=\gamma\cdot\mathcal{J}. J ( g src ⋅ v src , g tgt ⋅ v init ) = γ ⋅ J .
Graph metanetworks commute with such relabelings (Lim et al., [30 ] , Appendix § 11 .§ 6 ), so GMN θ ( γ ⋅ J ) = γ ⋅ GMN θ ( J ) \operatorname{GMN}_{\theta}(\gamma\cdot\mathcal{J})=\gamma\cdot\operatorname{GMN}_{\theta}(\mathcal{J}) GMN θ ( γ ⋅ J ) = γ ⋅ GMN θ ( J ) . Moreover, the target projection satisfies Π t g t ( γ ⋅ Z ) = g t g t ⋅ Π t g t ( Z ) \Pi_{\mathrm{tgt}}(\gamma\cdot Z)=g_{\mathrm{tgt}}\cdot\Pi_{\mathrm{tgt}}(Z) Π tgt ( γ ⋅ Z ) = g tgt ⋅ Π tgt ( Z ) for every joint output Z Z Z : it discards source entries and decodes target entries into their corresponding parameter coordinates. Consequently,
Δ θ ( g s r c ⋅ v s r c , g t g t ⋅ v i n i t ) = Π t g t ( GMN θ ( γ ⋅ J ) ) = Π t g t ( γ ⋅ GMN θ ( J ) ) = g t g t ⋅ Δ θ ( v s r c , v i n i t ) . \begin{aligned}
\Delta_{\theta}(g_{\mathrm{src}}\cdot v_{\mathrm{src}},g_{\mathrm{tgt}}\cdot v_{\mathrm{init}})&=\Pi_{\mathrm{tgt}}(\operatorname{GMN}_{\theta}(\gamma\cdot\mathcal{J}))\\
&=\Pi_{\mathrm{tgt}}(\gamma\cdot\operatorname{GMN}_{\theta}(\mathcal{J}))\\
&=g_{\mathrm{tgt}}\cdot\Delta_{\theta}(v_{\mathrm{src}},v_{\mathrm{init}}).
\end{aligned} Δ θ ( g src ⋅ v src , g tgt ⋅ v init ) = Π tgt ( GMN θ ( γ ⋅ J )) = Π tgt ( γ ⋅ GMN θ ( J )) = g tgt ⋅ Δ θ ( v src , v init ) .
Since g t g t g_{\mathrm{tgt}} g tgt acts linearly on target parameters, adding the transformed initialization and applying the fixed residual scale s s s in Equation (5) gives the claimed identity. Taking g t g t = e g_{\mathrm{tgt}}=e g tgt = e gives source invariance, and taking g s r c = e g_{\mathrm{src}}=e g src = e gives target equivariance.
Theoretical Results
This appendix proves the three claims used in the main text. First, mapping each larger network to an optimal smaller one can be discontinuous (Appendix § 11 .§ 1 ). Second, any fixed number of standard distillation steps does define a continuous cross-architecture operator (Appendix § 11 .§ 2 ). Third, CrossGMN is universal for continuous source-invariant, target-equivariant operators on compact general-position sets (Appendix § 11 .§ 3 ), including a finite collection of source architectures (Appendix § 11 .§ 4 ).
Discontinuity of mapping a larger network to an optimal smaller one
In model compression, mapping each larger network to an optimal smaller one can be discontinuous. Following § 3 , we call the larger source network the teacher and the smaller target network the student , with parameters v T ∈ V T v_T\in\mathcal{V}_T v T ∈ V T and v S ∈ V S v_S\in\mathcal{V}_S v S ∈ V S . We consider compressing a ReLU MLP with one hidden layer from width 2 to width 1. The optimal student switches between the teacher’s two spatially separated ReLU components as their coefficients cross. Figure 3 illustrates this discontinuity.
Formal construction. Take A T = ( ( 1 , 2 , 1 ) , ReLU ) A_T=((1,2,1),\operatorname{ReLU}) A T = (( 1 , 2 , 1 ) , ReLU ) and A S = ( ( 1 , 1 , 1 ) , ReLU ) A_S=((1,1,1),\operatorname{ReLU}) A S = (( 1 , 1 , 1 ) , ReLU ) . On I = [ − 11 , 10 ] I=[-11,10] I = [ − 11 , 10 ] , define
u ( x ) = ReLU ( − x − 10 ) , v ( x ) = ReLU ( x − 9 ) . (12) u(x)=\operatorname{ReLU}(-x-10),\qquad v(x)=\operatorname{ReLU}(x-9). \tag*{(12)} u ( x ) = ReLU ( − x − 10 ) , v ( x ) = ReLU ( x − 9 ) . (12)
All norms and inner products below are on I I I . The supports of u u u and v v v are disjoint, and
∥ u ∥ 2 2 = ∥ v ∥ 2 2 = 1 3 , ⟨ u , v ⟩ = 0 , ∥ u − v ∥ ∞ = 1. (13) \lVert u\rVert_2^2=\lVert v\rVert_2^2=\frac{1}{3},\qquad\langle u,v\rangle=0,\qquad\lVert u-v\rVert_{\infty}=1. \tag*{(13)} ∥ u ∥ 2 2 = ∥ v ∥ 2 2 = 3 1 , ⟨ u , v ⟩ = 0 , ∥ u − v ∥ ∞ = 1. (13)
For t ∈ [ − 1 2 , 1 2 ] t\in\left[-\frac{1}{2},\frac{1}{2}\right] t ∈ [ − 2 1 , 2 1 ] , choose teacher parameters v T ( t ) v_T(t) v T ( t ) realizing
f t : = f v T ( t ) = ( 1 − t ) u + ( 1 + t ) v . f_t:=f_{v_T(t)}=(1-t)u+(1+t)v. f t := f v T ( t ) = ( 1 − t ) u + ( 1 + t ) v .
An explicit continuous parameter path is
W T , 1 = [ − 1 1 ] , b T , 1 = [ − 10 − 9 ] , W T , 2 ( t ) = [ 1 − t 1 + t ] , b T , 2 = 0. (14) W_{T,1}=\begin{bmatrix}-1\\1\end{bmatrix},\qquad b_{T,1}=\begin{bmatrix}-10\\-9\end{bmatrix},\qquad W_{T,2}(t)=[1-t\quad1+t],\qquad b_{T,2}=0. \tag*{(14)} W T , 1 = [ − 1 1 ] , b T , 1 = [ − 10 − 9 ] , W T , 2 ( t ) = [ 1 − t 1 + t ] , b T , 2 = 0. (14)
Restrict the student to zero output bias:
V S 0 = { ( w , b , a , 0 ) : w , b , a ∈ R } ⊂ V S , f v S ( x ) = a ReLU ( w x + b ) . \mathcal{V}_S^0=\{(w,b,a,0):w,b,a\in\mathbb{R}\}\subset\mathcal{V}_S,\qquad f_{v_S}(x)=a\operatorname{ReLU}(wx+b). V S 0 = {( w , b , a , 0 ) : w , b , a ∈ R } ⊂ V S , f v S ( x ) = a ReLU ( w x + b ) .
Its realized function class is S = { f v S ∣ I : v S ∈ V S 0 } S=\{f_{v_S}|_I:v_S\in\mathcal{V}_S^0\} S = { f v S ∣ I : v S ∈ V S 0 } , as in Figure 3 . Use squared functional error,
L ( v T ( t ) , v S ) = L t ( f v S ) , L t ( g ) : = ∫ I ∣ f t ( x ) − g ( x ) ∣ 2 d x . (15) L(v_T(t),v_S)=L_t(f_{v_S}),\qquad L_t(g):=\int_I\lvert f_t(x)-g(x)\rvert^2\,dx. \tag*{(15)} L ( v T ( t ) , v S ) = L t ( f v S ) , L t ( g ) := ∫ I ∣ f t ( x ) − g ( x ) ∣ 2 d x . (15)
which is the loss of Equation (3) for uniform inputs on I I I , up to a constant factor. The optimal student parameters are
Opt ( v T ( t ) ) = arg min v S ∈ V 0 S L ( v T ( t ) , v S ) . (16) \operatorname{Opt}(v_T(t)) = \underset{v_S \in\mathcal{V}_0^S}{\arg\min}\ \mathcal{L}(v_T(t), v_S). \tag*{(16)} Opt ( v T ( t )) = v S ∈ V 0 S arg min L ( v T ( t ) , v S ) . (16)
Lemma 3 (Best one-hinge approximation). The functions realized by the optimal students are
{ f v S ∣ I : v S ∈ Opt ( v T ( t ) ) } = { { ( 1 − t ) u } , t < 0 , { u , v } , t = 0 , { ( 1 + t ) v } , t > 0. (17) \{f_{v_S}|_I : v_S \in\operatorname{Opt}(v_T(t))\} =
\begin{cases}
\{(1-t)u\}, & t<0,\\
\{u,v\}, & t=0,\\
\{(1+t)v\}, & t>0.
\end{cases} \tag*{(17)} { f v S ∣ I : v S ∈ Opt ( v T ( t ))} = ⎩ ⎨ ⎧ {( 1 − t ) u } , { u , v } , {( 1 + t ) v } , t < 0 , t = 0 , t > 0. (17)
Proof. On I I I , every student in V 0 S \mathcal{V}_0^S V 0 S realizes a scalar multiple of either the constant function, a right-facing hinge h c + ( x ) = ReLU ( x − c ) h_c^+(x)=\operatorname{ReLU}(x-c) h c + ( x ) = ReLU ( x − c ) , or a left-facing hinge h c − ( x ) = ReLU ( c − x ) h_c^-(x)=\operatorname{ReLU}(c-x) h c − ( x ) = ReLU ( c − x ) . For a nonzero candidate shape h h h , optimizing its scalar coefficient gives
min λ ∈ R ∥ f t − λ h ∥ 2 2 = ∥ f t ∥ 2 2 − Γ t ( h ) , Γ t ( h ) = ⟨ f t , h ⟩ 2 ∥ h ∥ 2 2 . (18) \min_{\lambda\in\mathbb{R}}\|f_t-\lambda h\|_2^2=\|f_t\|_2^2-\Gamma_t(h),\qquad\Gamma_t(h)=\frac{\langle f_t,h\rangle^2}{\|h\|_2^2}. \tag*{(18)} λ ∈ R min ∥ f t − λh ∥ 2 2 = ∥ f t ∥ 2 2 − Γ t ( h ) , Γ t ( h ) = ∥ h ∥ 2 2 ⟨ f t , h ⟩ 2 . (18)
Thus Γ t ( h ) \Gamma_t(h) Γ t ( h ) is the reduction in squared error obtained by fitting the best scalar multiple of h h h , relative to the zero function. Minimizing the student’s error is therefore equivalent to maximizing Γ t ( h ) \Gamma_t(h) Γ t ( h ) .
For the teacher’s two ReLU components,
Γ t ( u ) = ( 1 − t ) 2 3 , Γ t ( v ) = ( 1 + t ) 2 3 . \Gamma_t(u)=\frac{(1-t)^2}{3},\qquad\Gamma_t(v)=\frac{(1+t)^2}{3}. Γ t ( u ) = 3 ( 1 − t ) 2 , Γ t ( v ) = 3 ( 1 + t ) 2 .
For the constant function h ( x ) ≡ 1 h(x)\equiv1 h ( x ) ≡ 1 , we have ∫ I f t ( x ) d x = ( 1 − t ) / 2 + ( 1 + t ) / 2 = 1 \int_I f_t(x)\,dx=(1-t)/2+(1+t)/2=1 ∫ I f t ( x ) d x = ( 1 − t ) /2 + ( 1 + t ) /2 = 1 and ∥ h ∥ 2 2 = ∣ I ∣ = 21 \|h\|_2^2=|I|=21 ∥ h ∥ 2 2 = ∣ I ∣ = 21 . Hence
Γ t ( 1 ) = 1 21 < 1 12 ≤ min { Γ t ( u ) , Γ t ( v ) } , \Gamma_t(1)=\frac{1}{21}<\frac{1}{12}\leq\min\{\Gamma_t(u),\Gamma_t(v)\}, Γ t ( 1 ) = 21 1 < 12 1 ≤ min { Γ t ( u ) , Γ t ( v )} ,
where the last inequality follows from ∣ t ∣ ≤ 1 / 2 |t|\leq1/2 ∣ t ∣ ≤ 1/2 . Thus the best constant student has strictly larger error than either optimally scaled component and cannot be optimal.
Consider a nonzero right-facing hinge h c + h_c^+ h c + . If c ≥ − 10 c\geq-10 c ≥ − 10 , it does not overlap the support of u u u , and Cauchy–Schwarz gives Γ t ( h c + ) ≤ Γ t ( v ) \Gamma_t(h_c^+)\leq\Gamma_t(v) Γ t ( h c + ) ≤ Γ t ( v ) , with equality only when h c + h_c^+ h c + is proportional to v v v , i.e. only when c = 9 c=9 c = 9 . If c < − 10 c<-10 c < − 10 , put τ = − 10 − c > 0 \tau=-10-c>0 τ = − 10 − c > 0 and M t = max { 1 − t , 1 + t } M_t=\max\{1-t,1+t\} M t = max { 1 − t , 1 + t } . Direct integration gives
∥ h c + ∥ 2 2 ≥ 8000 + 1200 τ + 60 τ 2 3 , ⟨ f t , h c + ⟩ ≤ M t ( 59 6 + τ ) . \|h_c^+\|_2^2\geq\frac{8000+1200\tau+60\tau^2}{3},\qquad\langle f_t,h_c^+\rangle\leq M_t\left(\frac{59}{6}+\tau\right). ∥ h c + ∥ 2 2 ≥ 3 8000 + 1200 τ + 60 τ 2 , ⟨ f t , h c + ⟩ ≤ M t ( 6 59 + τ ) .
and hence
Γ t ( h c + ) ≤ 3 M t 2 ( 59 / 6 + τ ) 2 8000 + 1200 τ + 60 τ 2 < M t 2 3 . \Gamma_t(h_c^+) \le\frac{3M_t^2(59/6+\tau)^2}{8000+1200\tau+60\tau^2}<\frac{M_t^2}{3}. Γ t ( h c + ) ≤ 8000 + 1200 τ + 60 τ 2 3 M t 2 ( 59/6 + τ ) 2 < 3 M t 2 .
The last inequality is equivalent to 51 τ 2 + 1023 τ + 28519 / 4 > 0 51\tau^2+1023\tau+28519/4>0 51 τ 2 + 1023 τ + 28519/4 > 0 . Reflecting the interval by x ↦ − 1 − x x\mapsto-1-x x ↦ − 1 − x exchanges u u u and v v v and gives the same conclusion for every left-facing hinge other than u u u . Therefore the maximizing shape is u u u for t < 0 t<0 t < 0 , v v v for t > 0 t>0 t > 0 , and both for t = 0 t=0 t = 0 . The minimizing scalar in equation (18) is respectively 1 − t 1-t 1 − t or 1 + t 1+t 1 + t , proving equation (17) .
Proposition 4 (Discontinuity of mapping teachers to optimal students). Let K T = { v T ( t ) : t ∈ [ − 1 2 , 1 2 ] } ⊂ V T K_T=\{v_T(t):t\in[-\frac{1}{2},\frac{1}{2}]\}\subset V_T K T = { v T ( t ) : t ∈ [ − 2 1 , 2 1 ]} ⊂ V T . There is no continuous map T : K T → V S T:K_T\to V_S T : K T → V S such that T ( v T ( t ) ) ∈ Opt ( v T ( t ) ) T(v_T(t))\in\operatorname{Opt}(v_T(t)) T ( v T ( t )) ∈ Opt ( v T ( t )) for every t t t . More strongly, for any continuous T : K T → V S T:K_T\to V_S T : K T → V S and any selection T ⋆ : K T → V S 0 T^\star:K_T\to V_S^0 T ⋆ : K T → V S 0 with T ⋆ ( v T ( t ) ) ∈ Opt ( v T ( t ) ) T^\star(v_T(t))\in\operatorname{Opt}(v_T(t)) T ⋆ ( v T ( t )) ∈ Opt ( v T ( t )) ,
sup t ∈ [ − 1 / 2 , 1 / 2 ] ∥ f T ( v T ( t ) ) − f T ⋆ ( v T ( t ) ) ∥ ∞ ≥ 1 2 . (19) \sup_{t\in[-1/2,1/2]}\left\|f_{T(v_T(t))}-f_{T^\star(v_T(t))}\right\|_\infty\ge\frac{1}{2}. \tag*{(19)} t ∈ [ − 1/2 , 1/2 ] sup f T ( v T ( t )) − f T ⋆ ( v T ( t )) ∞ ≥ 2 1 . (19)
Proof. The realization map v S ↦ f v S ∣ I v_S\mapsto f_{v_S}|_I v S ↦ f v S ∣ I is continuous into C ( I ) C(I) C ( I ) with the supremum norm. Hence a continuous T T T induces a continuous path φ ( t ) = f T ( v T ( t ) ) ∣ I \varphi(t)=f_{T(v_T(t))}|_I φ ( t ) = f T ( v T ( t )) ∣ I . If the supremum in Equation (19) were ε < 1 / 2 \varepsilon<1/2 ε < 1/2 , then Lemma 3 and the limits t ↑ 0 t\uparrow0 t ↑ 0 and t ↓ 0 t\downarrow0 t ↓ 0 would give
∥ φ ( 0 ) − u ∥ ∞ ≤ ε , ∥ φ ( 0 ) − v ∥ ∞ ≤ ε . \|\varphi(0)-u\|_\infty\le\varepsilon,\qquad\|\varphi(0)-v\|_\infty\le\varepsilon. ∥ φ ( 0 ) − u ∥ ∞ ≤ ε , ∥ φ ( 0 ) − v ∥ ∞ ≤ ε .
The triangle inequality would imply 1 = ∥ u − v ∥ ∞ ≤ 2 ε < 1 1=\|u-v\|_\infty\le2\varepsilon<1 1 = ∥ u − v ∥ ∞ ≤ 2 ε < 1 , a contradiction. A continuous map selecting optimal students would have zero gap, so none exists.
Remark 1 (The counterexample is in general position). General position , as defined in Equation (23) , requires distinct biases within each hidden layer. Along the entire teacher path v T ( t ) v_T(t) v T ( t ) , the hidden biases are − 10 -10 − 10 and − 9 -9 − 9 , including at t = 0 t=0 t = 0 . The width-1 student satisfies this condition vacuously. Hence K T ⊂ V T ∖ E A T K_T\subset V_T\setminus E_{A_T} K T ⊂ V T ∖ E A T and E A S = ∅ E_{A_S}=\varnothing E A S = ∅ . The approximation lower bound in Proposition 4 therefore holds even in general position: the obstruction is the discontinuous choice of an optimal student.
Remark 2 (Refinement from a student initialization). The proposition concerns mapping each teacher to a globally optimal student. A cross-architecture operator F ( v T , v 0 ) F(v_T,v_0) F ( v T , v 0 ) instead refines a supplied student initialization v 0 v_0 v 0 , without requiring global optimality. Appendix § 11 .§ 2 proves that a fixed number of distillation steps gives a continuous equivariant operator under the stated assumptions.
Finite-step distillation is a cross-architecture operator
Recall from § 3 that knowledge distillation trains a student with parameters v S v_S v S to match a teacher with parameters v T v_T v T by minimizing
L ( v T , v S ) = E x ∼ D [ ℓ ( f v T ( x ) , f v S ( x ) ) ] , L(v_T,v_S)=\mathbb{E}_{x\sim D}\left[\ell(f_{v_T}(x),f_{v_S}(x))\right], L ( v T , v S ) = E x ∼ D [ ℓ ( f v T ( x ) , f v S ( x )) ] ,
where ℓ \ell ℓ measures the discrepancy between their outputs (Equation (3) ). Starting from a student initialization v 0 v_0 v 0 , this loss can be optimized with standard first-order methods, including gradient descent (GD) (Bottou et al., [4 ] ), stochastic gradient descent (SGD) (Bottou, [3 ] ), momentum (Polyak, [38 ] ), RMSProp (Tieleman & Hinton, [48 ] ), and Adam (Kingma & Ba, [24 ] ). These methods operate coordinatewise : after computing the gradient, they apply the same scalar update rule to each parameter, using its own value and its current or past gradient components. The gradient itself may depend on all teacher and student parameters.
For full-batch optimization, set L j = L L_j=L L j = L at every step. For SGD, fix the sequence of sampled minibatches and let L j L_j L j be the average distillation loss over the minibatch at step j j j ; the same convention applies to minibatch versions of the other methods. Assume each L j L_j L j is differentiable in the student parameters and ∇ v S L j ( v T , v S ) \nabla_{v_S}L_j(v_T,v_S) ∇ v S L j ( v T , v S ) is jointly continuous in ( v T , v S ) (v_T,v_S) ( v T , v S ) . Write G T G_T G T and G S G_S G S for the teacher and student permutation groups, and d S = dim V S d_S=\dim V_S d S = dim V S .
Proposition 5 (Finite-step distillation). Starting from v ( 0 ) = v 0 \mathbf{v}^{(0)}=\mathbf{v}_0 v ( 0 ) = v 0 , suppose the optimizer has the coordinatewise form
q ( j ) = ∇ v S L j ( v T , v ( j ) ) , \mathbf{q}^{(j)}=\nabla_{\mathbf{v}_S}L_j(\mathbf{v}_T,\mathbf{v}^{(j)}), q ( j ) = ∇ v S L j ( v T , v ( j ) ) , v i ( j + 1 ) = u j ( ( v 0 ) i , q i ( 0 ) , … , q i ( j ) ) , 1 ≤ i ≤ d S , (20) v_i^{(j+1)}=u_j\left((\mathbf{v}_0)_i,q_i^{(0)},\ldots,q_i^{(j)}\right),\qquad1\le i\le d_S, \tag*{(20)} v i ( j + 1 ) = u j ( ( v 0 ) i , q i ( 0 ) , … , q i ( j ) ) , 1 ≤ i ≤ d S , (20) where each u j : R j + 2 → R u_j:\mathbb{R}^{j+2}\to\mathbb{R} u j : R j + 2 → R is a fixed continuous function shared across all coordinates. Then, for every fixed integer k ≥ 0 k\ge0 k ≥ 0 , the map Φ k ( v T , v 0 ) : = v ( k ) \Phi_k(\mathbf{v}_T,\mathbf{v}_0):=\mathbf{v}^{(k)} Φ k ( v T , v 0 ) := v ( k ) is continuous and satisfies
Φ k ( g T ⋅ v T , g S ⋅ v 0 ) = g S ⋅ Φ k ( v T , v 0 ) ( g T ∈ G T , g S ∈ G S ) . \Phi_k(g_T\cdot\mathbf{v}_T,g_S\cdot\mathbf{v}_0)=g_S\cdot\Phi_k(\mathbf{v}_T,\mathbf{v}_0)\qquad(g_T\in G_T,\ g_S\in G_S). Φ k ( g T ⋅ v T , g S ⋅ v 0 ) = g S ⋅ Φ k ( v T , v 0 ) ( g T ∈ G T , g S ∈ G S ) . Thus Φ k \Phi_k Φ k is a continuous equivariant cross-architecture operator in the sense of Definition 4. Functionally equivalent teachers produce identical trajectories from the same initialization.
Proof. Each L j L_j L j depends only on the realized teacher and student functions, so
f v T = f v T ′ ⟹ L j ( v T , ⋅ ) = L j ( v T ′ , ⋅ ) , L j ( v T , P g v S ) = L j ( v T , v S ) , (21) f_{\mathbf{v}_T}=f_{\mathbf{v}'_T}\Longrightarrow L_j(\mathbf{v}_T,\cdot)=L_j(\mathbf{v}'_T,\cdot),\qquad L_j(\mathbf{v}_T,P_g\mathbf{v}_S)=L_j(\mathbf{v}_T,\mathbf{v}_S), \tag*{(21)} f v T = f v T ′ ⟹ L j ( v T , ⋅ ) = L j ( v T ′ , ⋅ ) , L j ( v T , P g v S ) = L j ( v T , v S ) , (21)
where P g P_g P g is the permutation matrix of g ∈ G S g\in G_S g ∈ G S . Differentiating the second identity and using P g P g T = I P_gP_g^{\mathsf T}=I P g P g T = I gives
∇ v S L j ( v T , P g v S ) = P g ∇ v S L j ( v T , v S ) . (22) \nabla_{\mathbf{v}_S}L_j(\mathbf{v}_T,P_g\mathbf{v}_S)=P_g\nabla_{\mathbf{v}_S}L_j(\mathbf{v}_T,\mathbf{v}_S). \tag*{(22)} ∇ v S L j ( v T , P g v S ) = P g ∇ v S L j ( v T , v S ) . (22)
Differentiating L j ( v T , ⋅ ) = L j ( v T ′ , ⋅ ) L_j(\mathbf{v}_T,\cdot)=L_j(\mathbf{v}'_T,\cdot) L j ( v T , ⋅ ) = L j ( v T ′ , ⋅ ) likewise shows that functionally equivalent teachers give identical student gradients.
Continuity follows by induction: v ( 0 ) = v 0 \mathbf{v}^{(0)}=\mathbf{v}_0 v ( 0 ) = v 0 is continuous in ( v T , v 0 ) (\mathbf{v}_T,\mathbf{v}_0) ( v T , v 0 ) , and the jointly continuous gradients and continuous u j u_j u j make each subsequent iterate continuous by composition.
For symmetry, compare runs initialized at ( v T , v 0 ) (\mathbf{v}_T,\mathbf{v}_0) ( v T , v 0 ) and ( v T ′ , P g v 0 ) (\mathbf{v}'_T,P_g\mathbf{v}_0) ( v T ′ , P g v 0 ) , where f v T ′ = f v T f_{\mathbf{v}'_T}=f_{\mathbf{v}_T} f v T ′ = f v T . Denote their student parameters at step r r r by v ( r ) \mathbf{v}^{(r)} v ( r ) and v ~ ( r ) \widetilde{\mathbf{v}}^{(r)} v ( r ) , respectively. Their student-loss gradient vectors are
q ( r ) = ∇ v S L r ( v T , v ( r ) ) , q ~ ( r ) = ∇ v S L r ( v T ′ , v ~ ( r ) ) . \mathbf{q}^{(r)}=\nabla_{\mathbf{v}_S}L_r(\mathbf{v}_T,\mathbf{v}^{(r)}),\qquad\widetilde{\mathbf{q}}^{(r)}=\nabla_{\mathbf{v}_S}L_r(\mathbf{v}'_T,\widetilde{\mathbf{v}}^{(r)}). q ( r ) = ∇ v S L r ( v T , v ( r ) ) , q ( r ) = ∇ v S L r ( v T ′ , v ( r ) ) .
Assume inductively that v ~ ( r ) = P g v ( r ) \widetilde{\mathbf{v}}^{(r)}=P_g\mathbf{v}^{(r)} v ( r ) = P g v ( r ) for 0 ≤ r ≤ j 0\le r\le j 0 ≤ r ≤ j . Substituting this relation, replacing the teacher using Equation (21) , and applying the gradient transformation in Equation (22) gives
q ~ ( r ) = ∇ v S L r ( v T ′ , P g v ( r ) ) = ∇ v S L r ( v T , P g v ( r ) ) = P g ∇ v S L r ( v T , v ( r ) ) = P g q ( r ) ( 0 ≤ r ≤ j ) . \begin{aligned}
\widetilde{\mathbf{q}}^{(r)}
&=\nabla_{\mathbf{v}_S}L_r(\mathbf{v}'_T,P_g\mathbf{v}^{(r)})\\
&=\nabla_{\mathbf{v}_S}L_r(\mathbf{v}_T,P_g\mathbf{v}^{(r)})\\
&=P_g\nabla_{\mathbf{v}_S}L_r(\mathbf{v}_T,\mathbf{v}^{(r)})=P_g\mathbf{q}^{(r)}
\end{aligned}
\qquad(0\le r\le j). q ( r ) = ∇ v S L r ( v T ′ , P g v ( r ) ) = ∇ v S L r ( v T , P g v ( r ) ) = P g ∇ v S L r ( v T , v ( r ) ) = P g q ( r ) ( 0 ≤ r ≤ j ) .
Writing ( P g x ) i = x π g ( i ) (P_gx)_i=x_{\pi_g(i)} ( P g x ) i = x π g ( i ) , the shared update rule in Equation (20) therefore yields
v ~ i ( j + 1 ) = u j ( ( P g v 0 ) i , q ~ i ( 0 ) , … , q ~ i ( j ) ) = u j ( ( v 0 ) π g ( i ) , q π g ( i ) ( 0 ) , … , q π g ( i ) ( j ) ) = v π g ( i ) ( j + 1 ) . \begin{aligned}
\widetilde{v}_i^{(j+1)}=u_j\left((P_g\mathbf{v}_0)_i,\widetilde{q}_i^{(0)},\ldots,\widetilde{q}_i^{(j)}\right) \\
&=u_j\left((\mathbf{v}_0)_{\pi_g(i)},q_{\pi_g(i)}^{(0)},\ldots,q_{\pi_g(i)}^{(j)}\right)=v_{\pi_g(i)}^{(j+1)}.
\end{aligned} v i ( j + 1 ) = u j ( ( P g v 0 ) i , q i ( 0 ) , … , q i ( j ) ) = u j ( ( v 0 ) π g ( i ) , q π g ( i ) ( 0 ) , … , q π g ( i ) ( j ) ) = v π g ( i ) ( j + 1 ) .
Since v ~ ( 0 ) = P g v 0 \widetilde{\mathbf{v}}^{(0)}=P_g\mathbf{v}_0 v ( 0 ) = P g v 0 , induction gives v ~ ( k ) = P g v ( k ) \widetilde{\mathbf{v}}^{(k)}=P_g\mathbf{v}^{(k)} v ( k ) = P g v ( k ) for every fixed k k k . Taking v T ′ = g T ⋅ v T \mathbf{v}'_T=g_T\cdot\mathbf{v}_T v T ′ = g T ⋅ v T proves the claimed equivariance, and taking g g g to be the identity proves equality of trajectories for functionally equivalent teachers. □
Lemma 6 (Standard gradient methods). Gradient descent, SGD, momentum, RMSProp, and Adam have the form in equation (20) , with fixed scalar hyperparameter schedules, decay factors in [ 0 , 1 ) [0,1) [ 0 , 1 ) , the usual zero initialization of running averages, and ϵ > 0 \epsilon>0 ϵ > 0 in the denominators of RMSProp and Adam.
Proof. Gradient descent and SGD subtract a scalar multiple of the current gradient. Unrolling momentum expresses each update as a weighted sum of the gradients computed so far. Likewise, the running averages in RMSProp and Adam are weighted sums of gradients or squared gradients, with coefficients independent of the parameter coordinate. Their remaining operations are coordinatewise square roots and division; Adam’s bias corrections are fixed scalars at each step. All these operations are continuous, since the squared-gradient averages are nonnegative and ϵ > 0 \epsilon>0 ϵ > 0 keeps denominators positive. Unrolling the parameter updates therefore gives a continuous function u j u_j u j of the initial coordinate and its gradient history, identical across coordinates, as required by equation (20) . □
:::
Universal approximation of cross-architecture operators
We now prove Theorem 1. The proof has two conceptual ingredients. First, every continuous source-invariant, target-equivariant map can be approximated by a finite sum of a source-invariant scalar times a target-equivariant operator. Second, CrossGMN can realize such finite mixtures: it computes the two factors on their respective parameter graphs, communicates the scalar through a cross edge, and multiplies them on the target side.
General position and the fixed-architecture theorem. For an MLP architecture A = ( d , σ ) A=(d,\sigma) A = ( d , σ ) , let
E A = { v : two neurons in some hidden layer have equal biases } . (23) E_A=\{v:\text{two neurons in some hidden layer have equal biases}\}. \tag*{(23)} E A = { v : two neurons in some hidden layer have equal biases } . (23)
The complement is the general-position set used by Dayan et al. [11 ] . We use the following result.
Theorem 7 (Fixed-architecture universality; Dayan et al. [11 ] ). On every compact K ⊂ V A ∖ E A K\subset\mathcal{V}_A\setminus E_A K ⊂ V A ∖ E A , GMNs uniformly approximate every continuous G A G_A G A -invariant functional and every continuous G A G_A G A -equivariant operator K → V A K\to\mathcal{V}_A K → V A .
We may assume that each compact set contains every hidden-neuron permutation of each of its elements. To obtain this property, enlarge the sets to
K ~ α = { g ⋅ v : v ∈ K α , g ∈ G α } , α ∈ { s r c , t g t } . \widetilde{K}_\alpha=\{g\cdot v:v\in K_\alpha,\ g\in G_\alpha\},\qquad\alpha\in\{\mathrm{src},\mathrm{tgt}\}. K α = { g ⋅ v : v ∈ K α , g ∈ G α } , α ∈ { src , tgt } .
Each enlarged set is a finite union of permuted copies of a compact set, so it remains compact. It also remains in general position, since permuting neurons only reorders the distinct biases within each hidden layer. Extend F F F to the enlarged sets by
F ~ ( g s r c ⋅ v s r c , g t g t ⋅ v i n i t ) = g t g t ⋅ F ( v s r c , v i n i t ) . \widetilde{F}(g_{\mathrm{src}}\cdot v_{\mathrm{src}},g_{\mathrm{tgt}}\cdot v_{\mathrm{init}})=g_{\mathrm{tgt}}\cdot F(v_{\mathrm{src}},v_{\mathrm{init}}). F ( g src ⋅ v src , g tgt ⋅ v init ) = g tgt ⋅ F ( v src , v init ) .
The symmetry condition in Equation (2) ensures that different ways of writing the same permuted input pair give the same output. The extension is continuous on each permuted copy of K s r c × K t g t K_{\mathrm{src}}\times K_{\mathrm{tgt}} K src × K tgt ; since these are finitely many closed sets and the definitions agree on their overlaps, it is continuous on their union. Uniform approximation on the enlarged sets implies the same guarantee on the original sets. We therefore use the enlarged sets below, retaining the notation K s r c K_{\mathrm{src}} K src , K t g t K_{\mathrm{tgt}} K tgt , and F F F .
Lemma 8 (Invariant–equivariant finite mixture). Let F : K s r c × K t g t → V t g t F:K_{\mathrm{src}}\times K_{\mathrm{tgt}}\to\mathcal{V}_{\mathrm{tgt}} F : K src × K tgt → V tgt be continuous, source invariant, and target equivariant. For every η > 0 \eta>0 η > 0 , there are continuous source-invariant functions a 1 , … , a M : K s r c → [ 0 , 1 ] a_1,\ldots,a_M:K_{\mathrm{src}}\to[0,1] a 1 , … , a M : K src → [ 0 , 1 ] with ∑ i a i ≡ 1 \sum_i a_i\equiv1 ∑ i a i ≡ 1 and continuous target-equivariant maps h 1 , … , h M : K t g t → V t g t h_1,\ldots,h_M:K_{\mathrm{tgt}}\to\mathcal{V}_{\mathrm{tgt}} h 1 , … , h M : K tgt → V tgt such that
sup ( v s r c , v i n i t ) ∥ F ( v s r c , v i n i t ) − ∑ i = 1 M a i ( v s r c ) h i ( v i n i t ) ∥ < η . (24) \sup_{(v_{\mathrm{src}},v_{\mathrm{init}})}
\left\|F(v_{\mathrm{src}},v_{\mathrm{init}})-\sum_{i=1}^{M}a_i(v_{\mathrm{src}})h_i(v_{\mathrm{init}})\right\|<\eta. \tag*{(24)} ( v src , v init ) sup F ( v src , v init ) − i = 1 ∑ M a i ( v src ) h i ( v init ) < η . (24)
Proof. Let Q = K s r c / G s r c Q=K_{\mathrm{src}}/G_{\mathrm{src}} Q = K src / G src be the source orbit space. Because the group is finite and acts by isometries,
d Q ( [ v ] , [ v ′ ] ) = min g ∈ G s r c ∥ g ⋅ v − v ′ ∥ d_Q([v],[v'])=\min_{g\in G_{\mathrm{src}}}\|g\cdot v-v'\| d Q ([ v ] , [ v ′ ]) = g ∈ G src min ∥ g ⋅ v − v ′ ∥
makes Q Q Q a compact metric space. Source invariance lets F F F factor through a continuous map F ‾ : Q × K t g t → V t g t \overline{F}:Q\times K_{\mathrm{tgt}}\to\mathcal{V}_{\mathrm{tgt}} F : Q × K tgt → V tgt , and every F ‾ ( q , ⋅ ) \overline{F}(q,\cdot) F ( q , ⋅ ) remains target equivariant. Uniform continuity implies that q ↦ F ‾ ( q , ⋅ ) q\mapsto\overline{F}(q,\cdot) q ↦ F ( q , ⋅ ) is continuous in the supremum norm. Choose a finite cover U 1 , … , U M U_1,\ldots,U_M U 1 , … , U M of Q Q Q and points q i ∈ U i q_i\in U_i q i ∈ U i such that
q ∈ U i ⟹ ∥ F ‾ ( q , ⋅ ) − F ‾ ( q i , ⋅ ) ∥ ∞ < η . q\in U_i\quad\Longrightarrow\quad\|\overline{F}(q,\cdot)-\overline{F}(q_i,\cdot)\|_\infty<\eta. q ∈ U i ⟹ ∥ F ( q , ⋅ ) − F ( q i , ⋅ ) ∥ ∞ < η .
Let { α i } \{\alpha_i\} { α i } be a continuous partition of unity subordinate to this cover, set a i ( v ) = α i ( [ v ] ) a_i(v)=\alpha_i([v]) a i ( v ) = α i ([ v ]) , and set h i ( v i n i t ) = F ‾ ( q i , v i n i t ) h_i(v_{\mathrm{init}})=\overline{F}(q_i,v_{\mathrm{init}}) h i ( v init ) = F ( q i , v init ) . Then the a i a_i a i are invariant, the h i h_i h i are equivariant, and the convex-combination bound gives equation (24) . □ \square □
Lemma 9 (CrossGMN realizes finite mixtures). Let K s r c K_{\mathrm{src}} K src and K t g t K_{\mathrm{tgt}} K tgt be compact general-position sets for fixed source and target MLP architectures. For i = 1 , … , M i=1,\ldots,M i = 1 , … , M , let a i : K s r c → R a_i:K_{\mathrm{src}}\to\mathbb{R} a i : K src → R be a continuous source-invariant functional, and let h i : K t g t → V t g t h_i:K_{\mathrm{tgt}}\to\mathcal{V}_{\mathrm{tgt}} h i : K tgt → V tgt be continuous and target equivariant. For
every ε > 0 \varepsilon> 0 ε > 0 , there exists a CrossGMNθ _\theta θ whose joint graph uses the positionwise boundary joins of § 4.1 and the strided cross-edge policy of Definition 5 such that
sup ( v s r c , v i n i t ) ∈ K s r c × K t g t ∥ CrossGMN θ ( v s r c , v i n i t ) − ∑ i = 1 M a i ( v s r c ) h i ( v i n i t ) ∥ < ε . (25) \sup_{(v_{\mathrm{src}},v_{\mathrm{init}})\in K_{\mathrm{src}}\times K_{\mathrm{tgt}}}
\left\lVert\operatorname{CrossGMN}_{\theta}(v_{\mathrm{src}},v_{\mathrm{init}})-\sum_{i=1}^{M}a_i(v_{\mathrm{src}})h_i(v_{\mathrm{init}})\right\rVert< \varepsilon. \tag*{(25)} ( v src , v init ) ∈ K src × K tgt sup CrossGMN θ ( v src , v init ) − i = 1 ∑ M a i ( v src ) h i ( v init ) < ε . (25)
The same conclusion holds if further symmetry-preserving cross edges are added.
Proof. Approximate the factors. Let e o u t ∈ V s r c e_{\mathrm{out}}\in V_{\mathrm{src}} e out ∈ V src have value 1 in the first output-bias coordinate and 0 elsewhere, and define Ψ i ( v s r c ) = a i ( v s r c ) e o u t \Psi_i(v_{\mathrm{src}})=a_i(v_{\mathrm{src}})e_{\mathrm{out}} Ψ i ( v src ) = a i ( v src ) e out . This map is continuous and source equivariant because a i a_i a i is invariant and hidden-neuron permutations fix e o u t e_{\mathrm{out}} e out . For any η > 0 \eta>0 η > 0 , Theorem 7 gives source and target GMNs S i S_i S i , H i H_i H i satisfying
sup K s r c ∥ S i − Ψ i ∥ < η , sup K t g t ∥ H i − h i ∥ < η . \sup_{K_{\mathrm{src}}}\lVert S_i-\Psi_i\rVert<\eta,\qquad
\sup_{K_{\mathrm{tgt}}}\lVert H_i-h_i\rVert<\eta. K src sup ∥ S i − Ψ i ∥ < η , K tgt sup ∥ H i − h i ∥ < η .
Store and compute the factors in node and edge features. Let x v , x u v x_v,x_{uv} x v , x uv be the original node and edge features, including the parameter values and structural labels. At step j j j , use
z v ( j ) = ( x v , ( w v , i ( j ) ) i = 1 M , c v ( j ) ) , z u v ( j ) = ( x u v , ( w u v , i ( j ) ) i = 1 M , c u v ( j ) ) . z_v^{(j)}=\left(x_v,\left(w_{v,i}^{(j)}\right)_{i=1}^{M},c_v^{(j)}\right),\qquad
z_{uv}^{(j)}=\left(x_{uv},\left(w_{uv,i}^{(j)}\right)_{i=1}^{M},c_{uv}^{(j)}\right). z v ( j ) = ( x v , ( w v , i ( j ) ) i = 1 M , c v ( j ) ) , z uv ( j ) = ( x uv , ( w uv , i ( j ) ) i = 1 M , c uv ( j ) ) .
The block w ⋅ , i w_{\cdot,i} w ⋅ , i stores the working state of S i S_i S i on the source side and of H i H_i H i on the target side; add zero coordinates and identity layers to match their dimensions and depths. The vectors c v , c u v ∈ R M c_v,c_{uv}\in\mathbb{R}^{M} c v , c uv ∈ R M will store the source scalars and are initially zero. Keep x v , x u v x_v,x_{uv} x v , x uv unchanged throughout.
Set χ α ( v ) = 1 { v ∈ V α } \chi_\alpha(v)=\mathbf{1}_{\{v\in V^\alpha\}} χ α ( v ) = 1 { v ∈ V α } and χ α ( u , v ) = χ α ( u ) χ α ( v ) \chi_\alpha(u,v)=\chi_\alpha(u)\chi_\alpha(v) χ α ( u , v ) = χ α ( u ) χ α ( v ) , where α ∈ { s r c , t g t } \alpha\in\{\mathrm{src},\mathrm{tgt}\} α ∈ { src , tgt } . Initialize each working block with its side’s GMN encoder applied to x x x . For block i i i , suppress i i i and the step index on its message, node-update, and edge-update maps ϕ α , U α , E α \phi^\alpha,U^\alpha,E^\alpha ϕ α , U α , E α , and use
m u v , i ( j ) = ∑ α χ α ( u , v ) ϕ α ( w u , i ( j ) , w v , i ( j ) , w u v , i ( j ) ) , m_{uv,i}^{(j)}=\sum_\alpha\chi_\alpha(u,v)\phi^\alpha\left(w_{u,i}^{(j)},w_{v,i}^{(j)},w_{uv,i}^{(j)}\right), m uv , i ( j ) = α ∑ χ α ( u , v ) ϕ α ( w u , i ( j ) , w v , i ( j ) , w uv , i ( j ) ) ,
w v , i ( j + 1 ) = ∑ α χ α ( v ) U α ( w v , i ( j ) , ∑ u : u → v m u v , i ( j ) ) , w_{v,i}^{(j+1)}=\sum_\alpha\chi_\alpha(v)U^\alpha\left(w_{v,i}^{(j)},\sum_{u:u\to v}m_{uv,i}^{(j)}\right), w v , i ( j + 1 ) = α ∑ χ α ( v ) U α ( w v , i ( j ) , u : u → v ∑ m uv , i ( j ) ) ,
w u v , i ( j + 1 ) = ∑ α χ α ( u , v ) E α ( w u , i ( j ) , w v , i ( j ) , w u v , i ( j ) ) . w_{uv,i}^{(j+1)}=\sum_\alpha\chi_\alpha(u,v)E^\alpha\left(w_{u,i}^{(j)},w_{v,i}^{(j)},w_{uv,i}^{(j)}\right). w uv , i ( j + 1 ) = α ∑ χ α ( u , v ) E α ( w u , i ( j ) , w v , i ( j ) , w uv , i ( j ) ) .
Thus each side performs its own GMN computation, and cross edges send zero messages in this stage. Apply the local readouts and replace the working blocks by their scalar outputs. Let λ ( p ) \lambda(p) λ ( p ) be the node or edge storing target parameter p p p , as in Appendix § 10 .2.2, and let o s r c o_{\mathrm{src}} o src be the first source output node. The resulting features contain
w o s r c , i = a ^ i : = [ S i ( v s r c ) ] o u t , w λ ( p ) , i = [ h ^ i ] p , h ^ i : = H i ( v i n i t ) . w_{o_{\mathrm{src}},i}=\hat{a}_i:=[S_i(v_{\mathrm{src}})]_{\mathrm{out}},\qquad
w_{\lambda(p),i}=[\hat{h}_i]_p,\qquad
\hat{h}_i:=H_i(v_{\mathrm{init}}). w o src , i = a ^ i := [ S i ( v src ) ] out , w λ ( p ) , i = [ h ^ i ] p , h ^ i := H i ( v init ) .
Here [ ⋅ ] o u t [\cdot]_{\mathrm{out}} [ ⋅ ] out selects the first output-bias coordinate. Consequently ∣ a ^ i − a i ∣ < η |\hat{a}_i-a_i|<\eta ∣ a ^ i − a i ∣ < η and ∥ h ^ i − h i ∥ < η \lVert\hat{h}_i-h_i\rVert<\eta ∥ h ^ i − h i ∥ < η uniformly on the corresponding input sets.
Copy the source scalars to the target features. Write a ^ = ( a ^ 1 , … , a ^ M ) \hat{a}=(\hat{a}_1,\ldots,\hat{a}_M) a ^ = ( a ^ 1 , … , a ^ M ) . On the positionwise cross edge from o s r c o_{\mathrm{src}} o src to the first target output node o t g t o_{\mathrm{tgt}} o tgt , send the message ( w o s r c , i ) i = 1 M = a ^ (w_{o_{\mathrm{src}},i})_{i=1}^{M}=\hat{a} ( w o src , i ) i = 1 M = a ^ to the c c c field. Set all other messages in this step to zero, so that
c v ( 0 ) = 1 { v = o t g t } a ^ ( v ∈ V t g t ) . c_v^{(0)}=\mathbf{1}_{\{v=o_{\mathrm{tgt}}\}}\hat{a}\qquad(v\in V^{\mathrm{tgt}}). c v ( 0 ) = 1 { v = o tgt } a ^ ( v ∈ V tgt ) .
We now update only c c c , keeping the computed factors and original features fixed. Use the bidirectional internal message passing of Appendix § 12 .§ 1 . Let d ( v ) d(v) d ( v ) be the distance from o t g t o_{\mathrm{tgt}} o tgt in the target graph, and let N − ( v ) N_-(v) N − ( v ) consist of its target neighbors at distance d ( v ) − 1 d(v)-1 d ( v ) − 1 . For v ≠ o t g t v\ne o_{\mathrm{tgt}} v = o tgt , this set is nonempty. Apply
c v ( j + 1 ) = { c v ( j ) , v = o t g t , 1 ∣ N − ( v ) ∣ ∑ u ∈ N − ( v ) c u ( j ) , v ≠ o t g t . c_v^{(j+1)}=
\begin{cases}
c_v^{(j)}, & v=o_{\mathrm{tgt}},\\
\dfrac{1}{\lvert N_-(v)\rvert}\sum_{u\in N_-(v)}c_u^{(j)}, & v\ne o_{\mathrm{tgt}}.
\end{cases} c v ( j + 1 ) = ⎩ ⎨ ⎧ c v ( j ) , ∣ N − ( v )∣ 1 ∑ u ∈ N − ( v ) c u ( j ) , v = o tgt , v = o tgt .
The required neighbor masks and normalization constants are determined by the fixed MLP architecture, layer labels, and canonical output indices. Induction on d ( v ) d(v) d ( v ) gives c v ( j ) = a ^ c_v^{(j)}=\hat{a} c v ( j ) = a ^ for j ≥ d ( v ) j\ge d(v) j ≥ d ( v ) . After D = max v d ( v ) D=\max_v d(v) D = max v d ( v ) steps, set c u v = c v c_{uv}=c_v c uv = c v on each target edge. Every target parameter location now has the features
z λ ( p ) = ( x λ ( p ) , ( [ h ^ i ] p ) i = 1 M , ( a ^ i ) i = 1 M ) . z_{\lambda(p)}=\left(x_{\lambda(p)},([\hat{h}_i]_p)_{i=1}^{M},(\hat{a}_i)_{i=1}^{M}\right). z λ ( p ) = ( x λ ( p ) , ([ h ^ i ] p ) i = 1 M , ( a ^ i ) i = 1 M ) .
Multiply the stored factors and read out the parameters. Multiplication is continuous on [ − R , R ] 2 [-R,R]^2 [ − R , R ] 2 . Hence, by the classical universal approximation theorems [9 , 21 ] , for every R > 0 R>0 R > 0 and κ > 0 \kappa>0 κ > 0 there is an MLP μ R , κ : R 2 → R \mu_{R,\kappa}:\mathbb{R}^2\to\mathbb{R} μ R , κ : R 2 → R such that
sup ( x , y ) ∈ [ − R , R ] 2 ∣ μ R , κ ( x , y ) − x y ∣ < κ . (26) \sup_{(x,y)\in[-R,R]^2}\left|\mu_{R,\kappa}(x,y)-xy\right|<\kappa. \tag*{(26)} ( x , y ) ∈ [ − R , R ] 2 sup ∣ μ R , κ ( x , y ) − x y ∣ < κ . (26)
Let B = max i { ∥ a i ∥ ∞ , ∥ h i ∥ ∞ } B=\max_i\{\lVert a_i\rVert_\infty,\lVert h_i\rVert_\infty\} B = max i {∥ a i ∥ ∞ , ∥ h i ∥ ∞ } and P = dim V t g t P=\dim V_{\mathrm{tgt}} P = dim V tgt . Choose
0 < η < min { 1 , ε 3 M ( 2 B + 1 ) } , 0 < κ < ε 3 M P , R = B + 1. 0<\eta<\min\left\{1,\frac{\varepsilon}{3M(2B+1)}\right\},\qquad0<\kappa<\frac{\varepsilon}{3M\sqrt{P}},\qquad R=B+1. 0 < η < min { 1 , 3 M ( 2 B + 1 ) ε } , 0 < κ < 3 M P ε , R = B + 1.
Then ∣ a ^ i ∣ , ∣ [ h ^ i ] p ∣ < R |\hat{a}_i|,|[\hat{h}_i]_p|<R ∣ a ^ i ∣ , ∣ [ h ^ i ] p ∣ < R . Using the values stored at λ ( p ) \lambda(p) λ ( p ) , define the local readout
[ F ^ κ ] p = ∑ i = 1 M μ R , κ ( c λ ( p ) , i , w λ ( p ) , i ) , [ Δ ] p = [ F ^ κ ] p − [ v i n i t ] p s . [\hat{F}_\kappa]_p=\sum_{i=1}^{M}\mu_{R,\kappa}(c_{\lambda(p),i},w_{\lambda(p),i}),\qquad[\Delta]_p=\frac{[\hat{F}_\kappa]_p-[v_{\mathrm{init}}]_p}{s}. [ F ^ κ ] p = i = 1 ∑ M μ R , κ ( c λ ( p ) , i , w λ ( p ) , i ) , [ Δ ] p = s [ F ^ κ ] p − [ v init ] p .
The initialization coordinate is available in x λ ( p ) x_{\lambda(p)} x λ ( p ) . Thus the residual update of Definition 6 returns F ^ κ \hat{F}_\kappa F ^ κ . In the Euclidean norm, uniformly on the input sets,
∥ F ^ κ − ∑ i a i h i ∥ ≤ M P κ + ∑ i ( ∣ a ^ i − a i ∣ ∥ h i ∥ + ∣ a ^ i ∣ ∥ h ^ i − h i ∥ ) ≤ M P κ + M η ( 2 B + η ) < 2 ε 3 . \begin{aligned}
\left\lVert\hat{F}_\kappa-\sum_i a_i h_i\right\rVert\le M\sqrt{P}\kappa+\sum_i\left(|\hat{a}_i-a_i|\lVert h_i\rVert+|\hat{a}_i|\lVert\hat{h}_i-h_i\rVert\right) \\
&\le M\sqrt{P}\kappa+M\eta(2B+\eta)<\frac{2\varepsilon}{3}.
\end{aligned} F ^ κ − i ∑ a i h i ≤ M P κ + i ∑ ( ∣ a ^ i − a i ∣ ∥ h i ∥ + ∣ a ^ i ∣ ∥ h ^ i − h i ∥ ) ≤ M P κ + M η ( 2 B + η ) < 3 2 ε .
All local rules above are continuous on compact neighborhoods of the feature ranges, and their structural masks preserve the source and target permutations. Uniform MLP approximation of these rules and uniform continuity of their finite composition give a choice of θ \theta θ such that
sup K s r c × K t g t ∥ CrossGMN θ − F ^ κ ∥ < ε 3 . \sup_{K_{\mathrm{src}}\times K_{\mathrm{tgt}}}\left\lVert\operatorname{CrossGMN}_{\theta}-\hat{F}_\kappa\right\rVert<\frac{\varepsilon}{3}. K src × K tgt sup CrossGMN θ − F ^ κ < 3 ε .
The triangle inequality proves Equation (25) . Additional cross edges are assigned zero messages in this construction.
Theorem 1 (Universality of CrossGMN, restated). Let A s r c A_{\mathrm{src}} A src and A t g t A_{\mathrm{tgt}} A tgt be fixed MLP architectures, and let
K s r c ⊂ V A s r c ∖ E A s r c , K t g t ⊂ V A t g t ∖ E A t g t K_{\mathrm{src}}\subset V_{A_{\mathrm{src}}}\setminus E_{A_{\mathrm{src}}},\qquad K_{\mathrm{tgt}}\subset V_{A_{\mathrm{tgt}}}\setminus E_{A_{\mathrm{tgt}}} K src ⊂ V A src ∖ E A src , K tgt ⊂ V A tgt ∖ E A tgt be compact sets, where E A E_A E A is defined in Equation (23) . Let F : K s r c × K t g t → V t g t F:K_{\mathrm{src}}\times K_{\mathrm{tgt}}\to V_{\mathrm{tgt}} F : K src × K tgt → V tgt be a continuous cross-architecture operator in the sense of Definition 4. For joint graphs containing the positionwise boundary joins and strided hidden-layer joins of § 4.1 , and every ε > 0 \varepsilon>0 ε > 0 , there exists a CrossGMN θ \operatorname{CrossGMN}_\theta CrossGMN θ such that
sup ( v s r c , v i n i t ) ∈ K s r c × K t g t ∥ CrossGMN θ ( v s r c , v i n i t ) − F ( v s r c , v i n i t ) ∥ < ε . \sup_{(v_{\mathrm{src}},v_{\mathrm{init}})\in K_{\mathrm{src}}\times K_{\mathrm{tgt}}}\left\lVert\operatorname{CrossGMN}_\theta(v_{\mathrm{src}},v_{\mathrm{init}})-F(v_{\mathrm{src}},v_{\mathrm{init}})\right\rVert<\varepsilon. ( v src , v init ) ∈ K src × K tgt sup ∥ CrossGMN θ ( v src , v init ) − F ( v src , v init ) ∥ < ε .
Proof of Theorem 1. Apply Lemma 8 with error ε / 2 \varepsilon/2 ε /2 and write F m i x = ∑ i a i h i F_{\mathrm{mix}}=\sum_i a_i h_i F mix = ∑ i a i h i . Lemma 9 gives a CrossGMN within ε / 2 \varepsilon/2 ε /2 of F m i x F_{\mathrm{mix}} F mix . The triangle inequality with equation 24 gives the desired uniform ε \varepsilon ε approximation of F F F .
One CrossGMN for finitely many source architectures
The same argument applies when the source population contains finitely many architectures and all map to one target architecture. The only additional requirement is that the source architecture be identifiable from the graph.
Definition 8 (Architecture-identifiable family). A finite family A s r c ( 1 ) , … , A s r c ( m ) A_{\mathrm{src}}^{(1)},\ldots,A_{\mathrm{src}}^{(m)} A src ( 1 ) , … , A src ( m ) is architecture identifiable if a finite message-passing block can write the one-hot architecture tag e r e_r e r on every node of a joint graph whose source has architecture A s r c ( r ) A_{\mathrm{src}}^{(r)} A src ( r ) . An explicit family feature is sufficient. For finite MLP families, graph depth, layer types, and layer cardinalities are also sufficient.
Theorem 10 (Finite heterogeneous source families). Let A t g t A_{\mathrm{tgt}} A tgt be a fixed MLP architecture and let A s r c ( 1 ) , … , A s r c ( m ) A_{\mathrm{src}}^{(1)},\ldots,A_{\mathrm{src}}^{(m)} A src ( 1 ) , … , A src ( m ) be an architecture-identifiable finite family of MLP architectures. Let
K r ⊂ V A s r c ( r ) ∖ E A s r c ( r ) ( r = 1 , … , m ) , K t g t ⊂ V A t g t ∖ E A t g t K_r \subset\mathcal{V}_{A_{\mathrm{src}}^{(r)}} \setminus E_{A_{\mathrm{src}}^{(r)}} \quad(r=1,\ldots,m), \qquad K_{\mathrm{tgt}} \subset\mathcal{V}_{A_{\mathrm{tgt}}} \setminus E_{A_{\mathrm{tgt}}} K r ⊂ V A src ( r ) ∖ E A src ( r ) ( r = 1 , … , m ) , K tgt ⊂ V A tgt ∖ E A tgt be compact sets, with E A E_A E A as in Equation (23) . For each r r r , let F r : K r × K t g t → V t g t F_r: K_r \times K_{\mathrm{tgt}} \to\mathcal{V}_{\mathrm{tgt}} F r : K r × K tgt → V tgt be continuous, source invariant, and target equivariant. Then one CrossGMN, with one parameter set, can approximate all F r F_r F r uniformly to any prescribed accuracy.
Proof. Fix ε > 0 \varepsilon> 0 ε > 0 . For each r r r , Theorem 1 gives F ^ r = CrossGMN θ r \widehat{F}_r = \operatorname{CrossGMN}_{\theta_r} F r = CrossGMN θ r with
sup K r × K t g t ∥ F ^ r − F r ∥ < ε 2 . \sup_{K_r \times K_{\mathrm{tgt}}} \lVert\widehat{F}_r - F_r \rVert< \frac{\varepsilon}{2}. K r × K tgt sup ∥ F r − F r ∥ < 2 ε .
Add zero hidden coordinates and identity layers so that these networks have common hidden-state dimensions and depth.
Let x v x_v x v and x u v x_{uv} x uv denote the original node and edge features, including their parameter values and structural labels. On a joint graph with source architecture A s r c ( r ) A_{\mathrm{src}}^{(r)} A src ( r ) , the identification block of Definition 8 writes the tag e r ∈ R m e_r \in\mathbb{R}^m e r ∈ R m on every source and target node; its r r r -th entry is 1 and all other entries are 0. Copy this tag to each edge from either endpoint. At step j j j , use node and edge features
z v ( j ) = ( x v , e r , h v ( j ) ) , z u v ( j ) = ( x u v , e r , h u v ( j ) ) , z_v^{(j)} = (x_v,e_r,h_v^{(j)}), \qquad z_{uv}^{(j)} = (x_{uv},e_r,h_{uv}^{(j)}), z v ( j ) = ( x v , e r , h v ( j ) ) , z uv ( j ) = ( x uv , e r , h uv ( j ) ) ,
where h v ( j ) h_v^{(j)} h v ( j ) and h u v ( j ) h_{uv}^{(j)} h uv ( j ) are the working hidden states. Initialize these states to zero. The original features and tags remain unchanged throughout; the first encoding step fills the working states.
For each encoding, message, node-update, edge-update, or readout operation j j j , let Φ j ( q ) \Phi_j^{(q)} Φ j ( q ) be the corresponding rule of network q q q , with inputs padded to common dimensions. If τ \tau τ is the stored tag and z z z collects the operation’s other inputs, use the shared rule
Φ j ( τ , z ) = ∑ q = 1 m τ q Φ j ( q ) ( z ) . \Phi_j(\tau,z) = \sum_{q=1}^{m} \tau_q \Phi_j^{(q)}(z). Φ j ( τ , z ) = q = 1 ∑ m τ q Φ j ( q ) ( z ) .
A message uses the tag at its receiving node; node and edge operations use their own stored tags. Since all tags equal e r e_r e r , Φ j ( e r , z ) = Φ j ( r ) ( z ) \Phi_j(e_r,z) = \Phi_j^{(r)}(z) Φ j ( e r , z ) = Φ j ( r ) ( z ) at every operation. Induction over the encoding, message-passing steps, and readout therefore shows that these rules return exactly F ^ r \widehat{F}_r F r on K r × K t g t K_r \times K_{\mathrm{tgt}} K r × K tgt . The rules Φ j \Phi_j Φ j are continuous and can be uniformly approximated by MLPs on compact neighborhoods of the local feature ranges ([9 , 21 ] ). There are finitely many rules, layers, and graph sizes, and each input set is compact. Uniform continuity of the resulting finite compositions therefore lets us choose their approximation accuracies so that one assembled CrossGMN satisfies
max 1 ≤ r ≤ m sup K r × K t g t ∥ CrossGMN θ − F ^ r ∥ < ε 2 . \max_{1 \le r \le m}\ \sup_{K_r \times K_{\mathrm{tgt}}} \lVert\operatorname{CrossGMN}_{\theta} - \widehat{F}_r \rVert< \frac{\varepsilon}{2}. 1 ≤ r ≤ m max K r × K tgt sup ∥ CrossGMN θ − F r ∥ < 2 ε .
The triangle inequality gives
max 1 ≤ r ≤ m sup K r × K t g t ∥ CrossGMN θ − F r ∥ < ε . \max_{1 \le r \le m}\ \sup_{K_r \times K_{\mathrm{tgt}}} \lVert\operatorname{CrossGMN}_{\theta} - F_r \rVert< \varepsilon. 1 ≤ r ≤ m max K r × K tgt sup ∥ CrossGMN θ − F r ∥ < ε .
All local rules are shared across architectures, so θ \theta θ is a single parameter set, as required. ∎
Proposition 2 establishes equivariance for CNNs and Transformers directly from their implemented parameter graphs. The universality proof extends to these families as long as the fixed-architecture invariant and equivariant universality for GMNs on their parameter graphs still hold. The extension applies with respect to the neural graph automorphism groups defined in Appendix § 10 .§ 2 .
Experimental Details
Throughout, CrossGMN denotes the operator in Equation (5) , and the anchor is the target initialization v 0 v_0 v 0 that it refines. As in § 5.1 , the source network is the teacher v T v_T v T and the target network is the student, whose predicted initialization is v ^ S \hat{v}_S v ^ S .
CrossGMN implementation
All experiments use the joint graph of the teacher v T v_T v T and anchor v 0 v_0 v 0 . An equivariant graph metanetwork processes this graph, and the target-side readout predicts the residual in Equation (5) .
In the classifier experiments, node features concatenate a scalar, an 8-dimensional layer embedding, a 4-dimensional source/target-role embedding, a 4-dimensional node-type embedding, and optional 4-dimensional family and activation embeddings. Edge features concatenate the parameter value, the layer embedding, a 4-dimensional edge-role embedding, and an optional family embedding. In the INR experiments, node and edge inputs both have dimension 1 + 4 + 4 = 9 1 + 4 + 4 = 9 1 + 4 + 4 = 9 : scalar value, layer embedding, and role embedding. Parameter values are not normalized. The four edge roles are source-internal, target-internal, source-to-target, and target-to-source.
Cross edges. Cross edges use the layerwise joins and matching notation of Appendix § 10 .2.1. The formal joint graphs in Appendices § 10 .2.2–§ 10 .2.4 use positionwise input/output joins. The CNN and ViT classifier encoding uses dense boundary joins, replacing Pos by Join in Equation (7) ; MLP boundaries remain positionwise. Both choices preserve the stated symmetries because input and output nodes are fixed.
Backbone and readout. We use a bidirectional SCALEGMN backbone (Kalogeropoulos et al., [23 ] ), motivated by its better empirical performance than plain GMN in most experiments. Our universality results are established for plain GMN. The backbone uses skip connections, edge updates, and dropout 0.1 during operator training. Message and update functions are two-layer SiLU MLPs with layer normalization. The classifier families use scale-equivariant message passing; the SIREN families use sign-equivariant message passing, except for the parameter-matched permutation-equivariant ModelNet40 width+depth operator. Table 8 gives the configuration for each model family.
Table 8. CrossGMN configurations. d v / d e d_v/d_e d v / d e are node/edge input widths and ∣ θ ∣ |\theta| ∣ θ ∣ is the metanetwork parameter count; s s s is the residual scale in Equation (5) .
Operator objective. We train CrossGMN directly on teacher–student outputs, without an inner distillation loop. For a minibatch of B B B teachers, write
v ^ S , i = CrossGMN θ ( v T , i , v 0 , i ) = v 0 , i + s Δ θ ( v T , i , v 0 , i ) , i = 1 , … , B , \hat{v}_{S,i} = \operatorname{CrossGMN}_{\theta}(v_{T,i}, v_{0,i}) = v_{0,i} + s\,\Delta_{\theta}(v_{T,i}, v_{0,i}), \qquad i = 1,\ldots,B, v ^ S , i = CrossGMN θ ( v T , i , v 0 , i ) = v 0 , i + s Δ θ ( v T , i , v 0 , i ) , i = 1 , … , B ,
where v 0 , i v_{0,i} v 0 , i is the corresponding anchor. For classifiers, a shared image batch X X X gives the objective
L ( θ ) = 1 B ∣ X ∣ ∑ i = 1 B ∑ x ∈ X KL ( softmax ( f v T , i ( x ) ) ∥ softmax ( f v ^ S , i ( x ) ) ) . (27) \mathcal{L}(\theta)=\frac{1}{B|X|}\sum_{i=1}^{B}\sum_{\boldsymbol{x}\in X}\operatorname{KL}\left(\operatorname{softmax}(f_{v_{T,i}}(\boldsymbol{x})) \,\middle\|\, \operatorname{softmax}(f_{\hat{v}_{S,i}}(\boldsymbol{x}))\right). \tag*{(27)} L ( θ ) = B ∣ X ∣ 1 i = 1 ∑ B x ∈ X ∑ KL ( softmax ( f v T , i ( x )) softmax ( f v ^ S , i ( x )) ) . (27)
The temperature is 1; operator training uses neither a cross-entropy term nor logit clipping.
For INRs, we minimize the MSE between teacher and predicted-student outputs. Let G ⊂ R 2 G \subset\mathbb{R}^{2} G ⊂ R 2 be the full 28 × 28 28 \times28 28 × 28 pixel grid and P i ⊂ R 3 P_i \subset\mathbb{R}^{3} P i ⊂ R 3 the fixed set of uniformly sampled query points for ModelNet40 teacher i i i . The respective objectives are
L r e n d e r ( θ ) = 1 B ∣ G ∣ ∑ i = 1 B ∑ x ∈ G ∣ f v ^ S , i ( x ) − f v T , i ( x ) ∣ 2 , (28) \mathcal{L}_{\mathrm{render}}(\theta)=\frac{1}{B|G|}\sum_{i=1}^{B}\sum_{\boldsymbol{x}\in G}\left|f_{\hat{v}_{S,i}}(\boldsymbol{x})-f_{v_{T,i}}(\boldsymbol{x})\right|^{2}, \tag*{(28)} L render ( θ ) = B ∣ G ∣ 1 i = 1 ∑ B x ∈ G ∑ f v ^ S , i ( x ) − f v T , i ( x ) 2 , (28)
L f i e l d ( θ ) = 1 B ∑ i = 1 B 1 ∣ P i ∣ ∑ x ∈ P i ∣ f v ^ S , i ( x ) − f v T , i ( x ) ∣ 2 . (29) \mathcal{L}_{\mathrm{field}}(\theta)=\frac{1}{B}\sum_{i=1}^{B}\frac{1}{|P_i|}\sum_{\boldsymbol{x}\in P_i}\left|f_{\hat{v}_{S,i}}(\boldsymbol{x})-f_{v_{T,i}}(\boldsymbol{x})\right|^{2}. \tag*{(29)} L field ( θ ) = B 1 i = 1 ∑ B ∣ P i ∣ 1 x ∈ P i ∑ f v ^ S , i ( x ) − f v T , i ( x ) 2 . (29)
The scalar outputs represent pixel intensities for MNIST and distance-field values for ModelNet40. Table 9 gives the training hyperparameters and number of query points.
Table 9. Operator training.
All runs use global gradient clipping at 1.
Evaluation protocol
Teacher, anchor, and predicted student. We follow the notation of § 5.1 . For each held-out teacher v T v_T v T , we construct the anchor v 0 v_0 v 0 using the corresponding method in Table 10 and predict v ^ S = CrossGMN θ ( v T , v 0 ) \hat{v}_S=\operatorname{CrossGMN}_{\theta}(v_T,v_0) v ^ S = CrossGMN θ ( v T , v 0 ) . Let v S ( k ) v_S^{(k)} v S ( k ) denote the student parameters after k k k distillation steps, where a ∈ { anchor , CrossGMN } a \in\{\text{anchor},\operatorname{CrossGMN}\} a ∈ { anchor , CrossGMN } identifies the initialization:
Table 10. Anchor initializations used for the distillation comparisons.
v S a n c h o r ( 0 ) = v 0 , v S C r o s s G M N ( 0 ) = v ^ S . v_{S}^{\mathrm{anchor}}(0)=v_0,\qquad v_{S}^{\mathrm{CrossGMN}}(0)=\hat{v}_S. v S anchor ( 0 ) = v 0 , v S CrossGMN ( 0 ) = v ^ S .
Both students are distilled toward the same teacher with the same optimizer, minibatches, data order, and evaluation steps. The comparison therefore measures the benefit of refining the anchor with CrossGMN. Additional structured-pruning baselines and random initialization appear in the reach–budget plots.
Student initializations. We define the structured initializations used as anchors and comparison baselines below; Table 10 identifies the anchor for each setting. Write the teacher’s affine layers as ( W ℓ , b ℓ ) ℓ = 1 L T (W_\ell,b_\ell)_{\ell=1}^{L_T} ( W ℓ , b ℓ ) ℓ = 1 L T , with hidden widths d ℓ d_\ell d ℓ , and let L S L_S L S be the student’s number of affine layers. Retained unit indices are kept in increasing order.
Width reduction. When L S = L T L_S = L_T L S = L T , selecting m ℓ m_\ell m ℓ units in each hidden layer gives index sets S ℓ ⊆ { 1 , … , d ℓ } S_\ell\subseteq\{1,\ldots,d_\ell\} S ℓ ⊆ { 1 , … , d ℓ } with ∣ S ℓ ∣ = m ℓ |S_\ell| = m_\ell ∣ S ℓ ∣ = m ℓ . With S 0 S_0 S 0 and S L T S_{L_T} S L T containing all input and output indices, the student parameters are
W ℓ 0 = W ℓ [ S ℓ , S ℓ − 1 ] , b ℓ 0 = b ℓ [ S ℓ ] . W_\ell^0 = W_\ell[S_\ell,S_{\ell-1}], \qquad b_\ell^0 = b_\ell[S_\ell]. W ℓ 0 = W ℓ [ S ℓ , S ℓ − 1 ] , b ℓ 0 = b ℓ [ S ℓ ] .
Magnitude-based pruning ([58 , 29 ] ) and activation-based pruning ([22 ] ) motivate the following variants. For each hidden layer, our implementations keep the m ℓ m_\ell m ℓ units with the largest scores:
s ℓ i m a g n i t u d e = ∑ j ∣ ( W ℓ ) i j ∣ + ∑ j ∣ ( W ℓ + 1 ) j i ∣ , (30) s_{\ell i}^{\mathrm{magnitude}} = \sum_j |(W_\ell)_{ij}| + \sum_j |(W_{\ell+1})_{ji}|, \tag*{(30)} s ℓ i magnitude = j ∑ ∣ ( W ℓ ) ij ∣ + j ∑ ∣ ( W ℓ + 1 ) j i ∣ , (30)
s ℓ i ℓ 1 -outgoing = ∑ j ∣ ( W ℓ + 1 ) j i ∣ , (31) s_{\ell i}^{\ell_1\text{-outgoing}} = \sum_j |(W_{\ell+1})_{ji}|, \tag*{(31)} s ℓ i ℓ 1 -outgoing = j ∑ ∣ ( W ℓ + 1 ) j i ∣ , (31)
s ℓ i m a g n i t u d e - s u m = ∑ j ∣ ( W ℓ ) i j ∣ , (32) s_{\ell i}^{\mathrm{magnitude\text{-}sum}} = \sum_j |(W_\ell)_{ij}|, \tag*{(32)} s ℓ i magnitude - sum = j ∑ ∣ ( W ℓ ) ij ∣ , (32)
s ℓ i a c t i v a t i o n = 1 n c a l ∑ r = 1 n c a l ∣ [ σ ( W ℓ x ℓ − 1 , r + b ℓ ) ] i ∣ . (33) s_{\ell i}^{\mathrm{activation}} = \frac{1}{n_{\mathrm{cal}}}\sum_{r=1}^{n_{\mathrm{cal}}}\left|[\sigma(W_\ell x_{\ell-1,r}+b_\ell)]_i\right|. \tag*{(33)} s ℓ i activation = n cal 1 r = 1 ∑ n cal ∣ [ σ ( W ℓ x ℓ − 1 , r + b ℓ ) ] i ∣ . (33)
The magnitude anchor uses a two-sided ℓ 1 \ell_1 ℓ 1 score, summing incoming and outgoing weight magnitudes. Here x ℓ − 1 , r x_{\ell-1,r} x ℓ − 1 , r is the input to layer ℓ \ell ℓ for calibration example r r r , and σ \sigma σ is its activation. Two baselines use no score: uniform selection retains
S ℓ = { 1 + round ( r ( d ℓ − 1 ) m ℓ − 1 ) : r = 0 , … , m ℓ − 1 } S_\ell= \left\{1+\operatorname{round}\left(\frac{r(d_\ell-1)}{m_\ell-1}\right):r=0,\ldots,m_\ell-1\right\} S ℓ = { 1 + round ( m ℓ − 1 r ( d ℓ − 1 ) ) : r = 0 , … , m ℓ − 1 }
for m ℓ > 1 m_\ell> 1 m ℓ > 1 (and S ℓ = { 1 } S_\ell= \{1\} S ℓ = { 1 } for $m_\ell = 1); random-neuron selection samples m ℓ m_\ell m ℓ distinct indices using a fixed seed per teacher.
CNN magnitude pruning. For the CNN kernels K ℓ K_\ell K ℓ of Appendix § 10 .2.3, the anchor uses the convolutional analogue of the MLP magnitude score. For output channel c c c of layer ℓ \ell ℓ , followed by another convolution, this is
s ℓ c m a g n i t u d e = ∑ i , r , t ∣ ( K ℓ ) c i r t ∣ + ∑ o , r , t ∣ ( K ℓ + 1 ) o c r t ∣ . s_{\ell c}^{\mathrm{magnitude}} = \sum_{i,r,t}|(K_\ell)_{cirt}|+\sum_{o,r,t}|(K_{\ell+1})_{ocrt}|. s ℓ c magnitude = i , r , t ∑ ∣ ( K ℓ ) c i r t ∣ + o , r , t ∑ ∣ ( K ℓ + 1 ) ocr t ∣.
where i , o i,o i , o index channels and r , t r,t r , t index spatial kernel entries. For the final convolution, the outgoing term uses the first dense layer’s weights associated with that channel. We retain the highest-scoring channels in increasing index order and slice biases and adjacent weights consistently. Thus the anchor uses structured magnitude pruning with a two-sided ℓ 1 \ell_1 ℓ 1 score; the incoming term alone is the filter criterion of Li et al. [29 ] . For ViTs, structured selection acts on heads or attention coordinates and slices the corresponding projection blocks.
Structured OBS/OBC. This baseline removes units sequentially while correcting the surviving weights using a quadratic layer-reconstruction objective ([19 , 15 ] ). For hidden layer ℓ \ell ℓ , let A ∈ R n c a l × d ℓ A \in\mathbb{R}^{n_{\mathrm{cal}}\times d_\ell} A ∈ R n cal × d ℓ contain its calibration activations as rows, and define
H 0 = A T A n c a l , h ˉ = tr ( H 0 ) d ℓ , H = H 0 + 10 − 2 h ˉ I . H_0 = \frac{A^\mathsf{T}A}{n_{\mathrm{cal}}}, \qquad\bar{h} = \frac{\operatorname{tr}(H_0)}{d_\ell}, \qquad H = H_0 + 10^{-2}\bar{h}I. H 0 = n cal A T A , h ˉ = d ℓ tr ( H 0 ) , H = H 0 + 1 0 − 2 h ˉ I .
Starting from W = W ℓ + 1 W = W_{\ell+1} W = W ℓ + 1 and K = H − 1 K = H^{-1} K = H − 1 , each iteration selects and compensates for a removed unit by
p = arg min i ∥ W [ : , i ] ∥ 2 2 K i i , W ← W − W [ : , p ] K [ p , : ] K p p . (34) p = \underset{i}{\operatorname{arg\,min}}\ \frac{\lVert W[:,i]\rVert_2^2}{K_{ii}}, \qquad W \leftarrow W-\frac{W[:,p]K[p,:]}{K_{pp}}. \tag*{(34)} p = i arg min K ii ∥ W [ : , i ] ∥ 2 2 , W ← W − K pp W [ : , p ] K [ p , : ] . (34)
Delete column p p p of W W W and the corresponding row and bias entry in the preceding affine map, and update the inverse on the remaining indices:
K ← ( K − K [ : , p ] K [ p , : ] K p p ) − p , − p . K \leftarrow\left(K-\frac{K[:,p]K[p,:]}{K_{pp}}\right)_{-p,-p}. K ← ( K − K pp K [ : , p ] K [ p , : ] ) − p , − p .
Repeat until m ℓ m_\ell m ℓ units remain.
Depth and joint reduction. For 2 ≤ L S < L T 2 \le L_S < L_T 2 ≤ L S < L T , strided layer transfer copies student layer j j j from teacher layer
π ( j ) = 1 + round ( ( j − 1 ) ( L T − 1 ) L S − 1 ) , j = 1 , … , L S . (35) \pi(j)=1+\operatorname{round}\left(\frac{(j-1)(L_T-1)}{L_S-1}\right), \qquad j=1,\ldots,L_S. \tag*{(35)} π ( j ) = 1 + round ( L S − 1 ( j − 1 ) ( L T − 1 ) ) , j = 1 , … , L S . (35)
Layer fold instead replaces each contiguous group ℓ 1 , … , ℓ 2 \ell_1,\ldots,\ell_2 ℓ 1 , … , ℓ 2 by the affine composition obtained by omitting its intermediate nonlinearities:
W 0 = c W ℓ 2 ⋯ W ℓ 1 , b 0 = c ( b ℓ 2 + ∑ r = ℓ 1 ℓ 2 − 1 W ℓ 2 ⋯ W r + 1 b r ) . (36) W^0=cW_{\ell_2}\cdots W_{\ell_1}, \qquad b^0=c\left(b_{\ell_2}+\sum_{r=\ell_1}^{\ell_2-1}W_{\ell_2}\cdots W_{r+1}b_r\right). \tag*{(36)} W 0 = c W ℓ 2 ⋯ W ℓ 1 , b 0 = c ( b ℓ 2 + r = ℓ 1 ∑ ℓ 2 − 1 W ℓ 2 ⋯ W r + 1 b r ) . (36)
At c = 1 c=1 c = 1 these are exactly the parameters of that affine composition; the scale controls its magnitude. Folded classifier maps use c = 0.1 c=0.1 c = 0.1 , whereas INRs use c = 1 c=1 c = 1 . Keep-first copies the first L S − 1 L_S-1 L S − 1 teacher layers and initializes a new output layer; keep-last copies the last L S − 1 L_S-1 L S − 1 layers and initializes a new input layer; keep-first+last retains layers at both ends and drops intermediate ones. For width+depth reduction, fold-then-prune applies magnitude pruning after folding, and strided-prune applies it after strided layer selection. Fresh random initialization uses the corresponding model family’s initialization rule. Family-specific choices are given below.
Quality and target. Write q v T a ( k ) q^{a}_{v_T}(k) q v T a ( k ) for the quality of v S a ( k ) v^{a}_{S}(k) v S a ( k ) , with larger values indicating better agreement with the teacher. For classifiers, this is the fraction of test inputs on which teacher and student predict the same label, measured on the full test set for ViTs and CNNs and a fixed 1,000-image subset for MLPs. For INRs, it is the negative MSE between student and teacher renders or fields. Both initializations are evaluated on the step grid G = { 0 , 10 , 20 , … } \mathcal{G}=\{0,10,20,\ldots\} G = { 0 , 10 , 20 , … } , without interpolation.
For each teacher, we determine the anchor’s plateau step p v T p_{v_T} p v T using the improvement threshold ϵ = 10 − 4 \epsilon=10^{-4} ϵ = 1 0 − 4 and patience P = 50 P=50 P = 50 evaluations from § 5.1 . Its target quality is
q v T ⋆ = max k ∈ G k ≤ p v T q v T a n c h o r ( k ) . q^\star_{v_T}=\max_{\substack{k\in\mathcal{G}\\k\le p_{v_T}}}q^{\mathrm{anchor}}_{v_T}(k). q v T ⋆ = k ∈ G k ≤ p v T max q v T anchor ( k ) .
Thus each predicted student is evaluated against the quality attained by its own teacher’s anchor.
Budget and per-teacher speedup. Let T \mathcal{T} T be the set of N N N held-out teachers in a compression setting. The setting’s budget is the empirical 95th percentile of the anchor plateau steps, rounded up to the next evaluation step:
B = 10 ⌈ Q 0.95 ( { p v T : v T ∈ T } ) 10 ⌉ . (37) B=10\left\lceil\frac{Q_{0.95}(\{p_{v_T}:v_T\in\mathcal{T}\})}{10}\right\rceil. \tag*{(37)} B = 10 ⌈ 10 Q 0.95 ({ p v T : v T ∈ T }) ⌉ . (37)
The CrossGMN distillation budget is H = 1.5 B H=1.5B H = 1.5 B . For a ∈ { a n c h o r , C r o s s G M N } a\in\{\mathrm{anchor},\mathrm{CrossGMN}\} a ∈ { anchor , CrossGMN } , define the first recorded step reaching the target by
k v T a = min { k ∈ G : k ≤ h v T a , q v T a ( k ) ≥ q v T ⋆ } , h v T a n c h o r = p v T , h v T C r o s s G M N = H , k^{a}_{v_T}=\min\left\{k\in\mathcal{G}:k\le h^{a}_{v_T},\ q^{a}_{v_T}(k)\ge q^\star_{v_T}\right\}, \qquad h^{\mathrm{anchor}}_{v_T}=p_{v_T}, \qquad h^{\mathrm{CrossGMN}}_{v_T}=H, k v T a = min { k ∈ G : k ≤ h v T a , q v T a ( k ) ≥ q v T ⋆ } , h v T anchor = p v T , h v T CrossGMN = H ,
where the minimum is over recorded evaluations and min ∅ = + ∞ \min\varnothing=+\infty min ∅ = + ∞ . The anchor reaches its target by construction. Following the main paper, the per-teacher speedup is
S v T = k v T a n c h o r k v T C r o s s G M N . S_{v_T}=\frac{k^{\mathrm{anchor}}_{v_T}}{k^{\mathrm{CrossGMN}}_{v_T}}. S v T = k v T CrossGMN k v T anchor .
If no recorded CrossGMN evaluation reaches the target by H H H , we count a failure and set S v T = 0 S_{v_T}=0 S v T = 0 .
Reported metrics. We report the median and interquartile range of { S v T : v T ∈ T } \{S_{v_T}:v_T\in\mathcal{T}\} { S v T : v T ∈ T } , together with the acceleration and failure rates defined in the main paper:
r a c c = 1 N ∑ v T ∈ T 1 [ S v T > 1 ] , r f a i l = 1 N ∑ v T ∈ T 1 [ S v T = 0 ] . r_{\mathrm{acc}}=\frac{1}{N}\sum_{v_T\in\mathcal{T}}1[S_{v_T}>1], \qquad r_{\mathrm{fail}}=\frac{1}{N}\sum_{v_T\in\mathcal{T}}1[S_{v_T}=0]. r acc = N 1 v T ∈ T ∑ 1 [ S v T > 1 ] , r fail = N 1 v T ∈ T ∑ 1 [ S v T = 0 ] .
All N N N teachers, including failures, contribute to these statistics; tables express the rates as percentages. The additional > 2 × >2\times > 2 × column in Table 17 uses the same definition with threshold 2. The reach–budget plots instead track fidelity to the teacher and performance retention against teacher-relative thresholds, as described in § 5.1 and Appendix § 12 .9.
Table 17. Complete compression results. Budget is B B B from Equation (37) . Speedup statistics include failures (S v T = 0 S_{vT} = 0 S v T = 0 ). Wall-clock speedup is the median per-teacher ratio from Equation (38) . Δ \Delta Δ @Budget is the median paired CrossGMN-minus-anchor quality difference at the last evaluation step not exceeding B B B : PSNR (dB) for INRs and test agreement for classifiers.
Wall-clock speedup. We include the time needed to construct each student initialization. Let c a n c h o r c_{\mathrm{anchor}} c anchor be the anchor-construction time, c C r o s s G M N c_{\mathrm{CrossGMN}} c CrossGMN the complete CrossGMN initialization time (including anchor construction, graph construction, and the forward pass), and d a n c h o r d_{\mathrm{anchor}} d anchor , d C r o s s G M N d_{\mathrm{CrossGMN}} d CrossGMN the measured distillation time per step. The per-teacher wall-clock speedup is
s v T w a l l = c a n c h o r + d a n c h o r k v T a n c h o r c C r o s s G M N + d C r o s s G M N k v T C r o s s G M N . (38) s_{v_T}^{\mathrm{wall}} = \frac{c_{\mathrm{anchor}} + d_{\mathrm{anchor}} k_{v_T}^{\mathrm{anchor}}}{c_{\mathrm{CrossGMN}} + d_{\mathrm{CrossGMN}} k_{v_T}^{\mathrm{CrossGMN}}}. \tag*{(38)} s v T wall = c CrossGMN + d CrossGMN k v T CrossGMN c anchor + d anchor k v T anchor . (38)
Table 17 reports the median over all teachers, assigning wall-clock speedup 0 to failures. All timing constants were measured with device synchronization and batch size one on NVIDIA A100-SXM4-40GB (A100-SXM4-80GB for ViT). The ModelNet40 width+depth setting has no recorded runtime profile.
Table 11. Evaluation-time distillation. Classifiers use pure KL at temperature 1 and no learning-rate schedule; all evaluation loops record every 10 steps.
MNIST and FashionMNIST INR compression
Population and splits. We use the pre-fit MNIST SIREN population of Navon et al. [35 ] : one INR per 28 × 28 28 \times28 28 × 28 image, with teacher architecture [ 2 , 32 , 32 , 1 ] [2, 32, 32, 1] [ 2 , 32 , 32 , 1 ] (1,185 parameters), two sine hidden layers with ω 0 = 30 \omega_0 = 30 ω 0 = 30 , and a linear output. Of 70,000 INRs, 55,000 are used for operator training, 5,000 for validation, and a fixed 1,000-INR subset of the test split for every reported evaluation. The FashionMNIST transfer population has the same architecture and 55,000/5,000/10,000 split. The MNIST-trained operators are applied to its 1,000-INR test cohort without retraining.
Anchors and comparator initializations. Table 12 specifies the anchors; their formulas and the comparison baselines are defined in Appendix § 12 .§ 2 . For MNIST depth reduction, layer folding retains the first affine map and composes the final two, omitting the intermediate sine activation. The reach–budget plots compare CrossGMN with these anchors, the width or depth baselines appropriate to each setting, and fresh SIREN initialization, all distilled with the same optimizer and minibatches. Width reductions use strided cross edges; depth and width+depth reductions use all-to-all cross edges.
Table 12. MNIST SIREN configurations. Compression is the teacher-to-student parameter-count ratio; s s s is the CrossGMN residual scale.
Operator training and evaluation. The five operators use the MNIST row of Table 8 and Table 9 . One epoch contains 1,719 optimizer steps over the 55,000 training teachers; validation render MSE selects the checkpoint. The selected checkpoints are from epochs 29, 142, 30, 12, and 40 in the order of Table 12 . Evaluation distills the complete 1,000-teacher cohort as a batch of independent student parameter vectors and records per-INR render MSE every ten steps.
ModelNet40 3-D INR compression
Population and splits. We use the pre-fit SIREN distance-field population of Shamsian et al. [45 ] , with teacher architecture [ 3 , 48 , 48 , 48 , 1 ] [3, 48, 48, 48, 1] [ 3 , 48 , 48 , 48 , 1 ] (7,297 parameters) and ω 0 = 30 \omega_0 = 30 ω 0 = 30 . The dataset contains 12,311 objects, each fit ten times; we use view 0 and the object-disjoint 7,874/1,969/2,468 train/validation/test split.
Table 13. ModelNet40 configurations. Columns follow Table 12 .
Anchors, training, and evaluation. We use magnitude pruning for width reduction, strided layer transfer for depth reduction, and strided-prune for width+depth reduction, as defined in Appendix § 12 .§ 2 . Three operators use the sign-equivariant d h i d = 192 d_{\mathrm{hid}} = 192 d hid = 192 backbone. The width+depth operator uses the parameter-matched permutation-equivariant d h i d = 324 d_{\mathrm{hid}} = 324 d hid = 324 backbone. Each is trained for 30 epochs with a fixed set of uniformly sampled points and the final epoch is evaluated.
All settings are evaluated on 4,096 points.
CIFAR-10 MLP compression
Teacher populations. For fixed-architecture compression, we construct a model zoo of 6,100 ReLU MLP teachers of architecture [ 3072 , 64 , 64 , 64 , 64 , 10 ] [3072, 64, 64, 64, 64, 10] [ 3072 , 64 , 64 , 64 , 64 , 10 ] (209,802 parameters), trained for 100 epochs with varied learning rates, weight decay, label smoothing, dropout, and seeds. The split contains 5,000 training, 100 validation, and 1,000 test teachers.
For heterogeneous-architecture compression, we construct a second ReLU MLP model zoo with four training architectures: [ 3072 , 16 , 10 ] [3072, 16, 10] [ 3072 , 16 , 10 ] , [ 3072 , 16 , 16 , 10 ] [3072, 16, 16, 10] [ 3072 , 16 , 16 , 10 ] , [ 3072 , 32 , 10 ] [3072, 32, 10] [ 3072 , 32 , 10 ] , and [ 3072 , 32 , 32 , 10 ] [3072, 32, 32, 10] [ 3072 , 32 , 32 , 10 ] , all mapped to the common student [ 3072 , 8 , 10 ] [3072, 8, 10] [ 3072 , 8 , 10 ] as in § 5.2 . We hold out the wider architecture [ 3072 , 64 , 10 ] [3072, 64, 10] [ 3072 , 64 , 10 ] and the deeper architecture [ 3072 , 16 , 16 , 16 , 16 , 10 ] [3072, 16, 16, 16, 16, 10] [ 3072 , 16 , 16 , 16 , 16 , 10 ] to test generalization to unseen source architectures. The respective splits contain 5,000 training, 100 validation, 1,000 test teachers from the training architectures, and 500 teachers from unseen architectures, balanced across the architectures in each split. These model zoos and their fixed splits can also serve as benchmarks for other weight-space methods, supporting evaluation within an architecture and generalization to unseen architectures.
Anchors. We use the magnitude-pruning and layer-fold initializations defined in Appendix § 12 .§ 2 , with the choices in Table 14 . Layer folding partitions the teacher’s affine layers into contiguous groups, composes each group, and scales folded interior maps by 0.1.
Table 14. MLP compression configurations.
Operator training and evaluation. The fixed-architecture operators use eight message-passing layers and learning rate 10 − 4 10^{-4} 1 0 − 4 . The heterogeneous-architecture operator uses four layers and learning rate 10 − 3 10^{-3} 1 0 − 3 . The test cohorts contain 1,000 teachers from training architectures or 500 teachers from unseen architectures.
Teacher population. We construct a model zoo of 6,100 ViTs with patch size 4, residual width 48, four blocks, two heads of dimension 24, FFN width 192, and a ten-class head (115,930 parameters). Teachers vary in optimizer hyperparameters and seed. The splits contain 5,000 training, 100 validation, and 1,000 test teachers. Like the MLP zoos, this population and its fixed splits serve as a benchmark for learning from model parameters, extending evaluation to the Transformer family. Operator configurations and checkpoints are chosen using only the validation split.
Anchors, training, and evaluation. Attention-dimension and head-count anchors use two-sided ℓ 1 \ell_1 ℓ 1 magnitude pruning. Each attention coordinate is scored by summing the absolute weights in its value-projection row and output-projection column. Attention-dimension reduction retains the twelve highest-scoring coordinates in each head; head-count reduction retains the head with the largest sum of coordinate scores. The retained indices are applied to the query, key, and value rows and output columns, preserving their original order. Depth reduction uses strided block selection, retaining the first and third teacher blocks; head count+depth reduction first selects these blocks and then prunes their heads. Parameters outside the reduced modules are copied unchanged.
Each operator is trained for 10,000 steps at three candidate learning rates; mean validation agreement selects the run and checkpoint. The selected checkpoints are from steps 10,000, 9,500, 9,000, and 10,000, in the order of Table 15 .
Table 15. ViT compression configurations. All four settings use the strided cross-edge policy of Definition 5; when the teacher and student block counts agree it reduces to shared-index matching. Here d d d is the residual width, L L L the number of blocks, H H H the number of heads, and d a d_a d a the total attention dimension across heads.
MNIST CNN compression
The public zoo of Schürholt et al. [43 ] contains 2,560 classifiers with three convolutional stages of widths [8, 6, 4], kernel sizes 5, 5, 2, pooling after the first two stages, a 20-unit fully connected layer, and a ten-class head (2,464 parameters). The population spans tanh, ReLU, sigmoid, and GELU models; the activation-type embedding is therefore enabled.
We reduce only convolutional width, [8, 6, 4] → \to → [4, 3, 2], leaving the head unchanged and retaining 41.5% of the parameters. The anchor uses the two-sided ℓ 1 \ell_1 ℓ 1 magnitude-pruning criterion in Appendix § 12 .§ 2 . The operator uses the CNN row of Table 8 and Table 9 , with residual scale s = .4 s = .4 s = .4 , and is trained for 100,000 steps on 1,407 teachers. Evaluation uses a fixed 400-teacher cohort.
Ablations
All rows in Table 16 use the MNIST INR reduction [2, 32, 32, 1] → \to → [2, 8, 8, 1] and the same 1,000 held-out teachers as the corresponding main result. Each row changes one choice from the reference CrossGMN configuration and follows the per-teacher speedup protocol in Appendix § 12 .§ 2 .
Table 16. CrossGMN ablations on MNIST INR compression. Median speedup and IQR relative to the corresponding anchor, including failures (S v T = 0 S_{v_T}=0 S v T = 0 ).
The communication rows isolate the role of the joint graph: direct neuron-level cross edges outperform removing communication or replacing it by pooled FiLM summary, while strided and all-to-all cross-edge policies yield similar speedups. The remaining rows show that performance depends more strongly on the training population, message-passing depth, and width than on choosing ScaleGMN rather than a parameter-matched GMN. Direct teacher matching is also more effective here than supervising the initialization toward a student obtained after a fixed number of distillation steps. These are single operator runs; the table should not be read as an estimate of seed variance.
Reach–budget plots
The speedup tables use the target q V T ⋆ q^\star_{\mathrm{VT}} q VT ⋆ attained by each teacher’s anchor. To show progress independently of that relative target, the following figures plot the fraction of teachers that have reached a fixed teacher-dependent criterion by distillation budget b b b . They cover exactly the 22 settings reported in the main tables: all rows of Table 1 , Table 2 and Table 4 , and the pooled rows of Table 3 and Table 5 .
For INRs, fidelity reach requires PSNR ( student , teacher ) ≥ T \operatorname{PSNR}(\text{student}, \text{teacher}) \ge T PSNR ( student , teacher ) ≥ T , while performance-retention reach requires PSNR ( student , data ) ≥ PSNR ( teacher , data ) − ε \operatorname{PSNR}(\text{student}, \text{data}) \ge\operatorname{PSNR}(\text{teacher}, \text{data}) - \varepsilon PSNR ( student , data ) ≥ PSNR ( teacher , data ) − ε . For classifiers, fidelity is test agreement at least T T T , and retention is student accuracy at least ( 1 − ε ) (1-\varepsilon) ( 1 − ε ) times that teacher’s accuracy. For ModelNet40, we record only error to the teacher field and therefore report fidelity reach only.
We choose thresholds to make the reach–budget plots informative: overly easy or difficult thresholds can produce nearly flat curves near one or zero, respectively, obscuring how reach changes with the distillation budget. We choose a threshold separately for each setting and criterion from
T I N R ∈ { 15 , 20 , 25 , 30 , 35 , 40 } d B , ε I N R ∈ { .5 , 1 , 2 , 3 , 5 , 7 , 10 , 15 , 20 } d B , T_{\mathrm{INR}} \in\{15, 20, 25, 30, 35, 40\}\ \mathrm{dB}, \qquad\varepsilon_{\mathrm{INR}} \in\{.5, 1, 2, 3, 5, 7, 10, 15, 20\}\ \mathrm{dB}, T INR ∈ { 15 , 20 , 25 , 30 , 35 , 40 } dB , ε INR ∈ { .5 , 1 , 2 , 3 , 5 , 7 , 10 , 15 , 20 } dB ,
T c l f ∈ { .95 , .9 , .85 , .8 , .75 , .7 , .6 , .5 , .4 , .3 } T_{\mathrm{clf}} \in\{.95, .9, .85, .8, .75, .7, .6, .5, .4, .3\} T clf ∈ { .95 , .9 , .85 , .8 , .75 , .7 , .6 , .5 , .4 , .3 } , ε c l f ∈ { .01 , .02 , .05 , .1 , .15 , .2 , .3 , .4 , .5 } \varepsilon_{\mathrm{clf}} \in\{.01, .02, .05, .1, .15, .2, .3, .4, .5\} ε clf ∈ { .01 , .02 , .05 , .1 , .15 , .2 , .3 , .4 , .5 } .
For each setting, let H r e c o r d H_{\mathrm{record}} H record be the last recorded distillation step. We choose the strictest threshold for which (i) the anchor reaches it for at least half the teachers by H r e c o r d H_{\mathrm{record}} H record , (ii) neither the anchor nor CrossGMN reaches it for half the teachers at step 0, and (iii) the anchor’s median step to reach it lies in [ H r e c o r d / 200 , H r e c o r d / 3 ] [H_{\mathrm{record}}/200, H_{\mathrm{record}}/3] [ H record /200 , H record /3 ] . If none qualifies, we display the most informative available level and mark it by an asterisk.
Each curve is an empirical step function giving the fraction of teachers whose students have reached the threshold by budget b b b . A final value below one indicates that some students never reach it within the recorded horizon. Each panel shows the budget interval in which its curves change.
We show all evaluated initializations: CrossGMN in solid blue, its anchor in dashed orange, random initialization in dotted gray, and additional structured baselines in thin gray. Appendix § 12 .§ 2 defines the baselines, and the family-specific subsections specify which ones are evaluated. In thirteen of the forty panels, both CrossGMN and its anchor eventually reach the threshold for nearly all teachers.
Figure 4. MNIST INR reach–budget plots (N = 1,000 N = 1{,}000 N = 1 , 000 per setting). All five reductions in Table 1 ; fidelity reach above and performance-retention reach below.
Figure 5. ModelNet40 INR reach–budget plots (N = 1,000 N = 1{,}000 N = 1 , 000 per setting). All four reductions in Table 1 , showing fidelity to the teacher field. The asterisk marks a fallback threshold.
Figure 6. CIFAR-10 MLP reach–budget plots (N = 1,000 N = 1{,}000 N = 1 , 000 per setting). The three reductions in Table 2 ; fidelity reach above and performance-retention reach below.
Figure 7. CIFAR-10 ViT reach–budget plots (N = 1,000 N = 1{,}000 N = 1 , 000 per setting). The four reductions in Table 2 ; fidelity reach above and performance-retention reach below.
Figure 8. Transfer across datasets (N = 1,000 N = 1{,}000 N = 1 , 000 per setting). MNIST-trained CrossGMN operators applied to FashionMNIST INRs without retraining (Table 4 ). Asterisks mark fallback thresholds.
Figure 9. Reach–budget plots for CNNs and heterogeneous MLPs. (a) CNN width reduction (N = 400 N = 400 N = 400 , Table 2 ). (b) Four teacher architectures mapped to [ 3072 , 8 , 10 ] [3072, 8, 10] [ 3072 , 8 , 10 ] (N = 1,000 N = 1{,}000 N = 1 , 000 , Table 3 ). (c) The same operator on unseen source architectures (N = 500 N = 500 N = 500 , Table 5 ).
Complete results
Table 17 collects the complete results under the protocol in Appendix § 12 .§ 2 . It reports each setting’s anchor and budget, the median and interquartile range of per-teacher speedups, the fractions with S v T > 1 S_{vT} > 1 S v T > 1 and S v T > 2 S_{vT} > 2 S v T > 2 , the failure rate, and wall-clock speedup including initialization. The final group is an anchor ablation.
The quality difference at B B B complements speedup: faster distillation need not imply a better asymptotic solution. All reported settings with median speedup above one also have nonnegative median quality differences at this budget. For ViT attention-dimension and head-count reductions, the structured anchors already provide strong initializations, and CrossGMN does not accelerate subsequent distillation.
Classifier teacher-population diversity
As noted in § 5.1 , amortizing a learned compression operator across a model population is motivated by the population spanning diverse functions. We therefore measure diversity in classifier teachers’ outputs, which directly characterize the functions that their students must preserve. Parameter differences alone would be insufficient, since different weights can realize the same function.
Populations and sampling. Table 18 reports averages over 10,000 randomly sampled pairs of distinct teachers from each classifier population, using the full held-out cohort evaluated for compression. Settings that share a teacher population share its diversity statistics.
Table 18. Classifier teacher-population diversity. Mean statistics over 10,000 pairs of distinct teachers. Lower agreement, error IoU, and κ \kappa κ indicate greater diversity in their respective aspects.
Diversity metrics. For teachers v T v_T v T and v T ′ v_{T'} v T ′ , let c T ( x ) = arg max j f v T ( x ) j c_T(x) = \arg\max_j f_{v_T}(x)_j c T ( x ) = arg max j f v T ( x ) j and c T ′ ( x ) c_{T'}(x) c T ′ ( x ) be their predicted labels on a shared test set D \mathcal{D} D . Prediction agreement measures how often their decisions coincide:
p o = 1 ∣ D ∣ ∑ ( x , y ) ∈ D 1 [ c T ( x ) = c T ′ ( x ) ] . p_o = \frac{1}{|\mathcal{D}|} \sum_{(x,y)\in\mathcal{D}} \mathbf{1}[c_T(x) = c_{T'}(x)]. p o = ∣ D ∣ 1 ( x , y ) ∈ D ∑ 1 [ c T ( x ) = c T ′ ( x )] .
Lower agreement indicates greater variation in predictions. To distinguish shared correct predictions from shared mistakes, define each teacher’s error set E T = { ( x , y ) ∈ D : c T ( x ) ≠ y } E_T = \{(x,y) \in\mathcal{D} : c_T(x) \ne y\} E T = {( x , y ) ∈ D : c T ( x ) = y } and report wrong-prediction intersection over union :
IoU e r r ( T , T ′ ) = ∣ E T ∩ E T ′ ∣ ∣ E T ∪ E T ′ ∣ . \operatorname{IoU}_{\mathrm{err}}(T,T') = \frac{|E_T \cap E_{T'}|}{|E_T \cup E_{T'}|}. IoU err ( T , T ′ ) = ∣ E T ∪ E T ′ ∣ ∣ E T ∩ E T ′ ∣ .
This measures whether the teachers fail on the same inputs, regardless of which incorrect labels they predict. Lower values mean less overlap in errors, although the metric also depends on accuracy.
Finally, Cohen’s κ \kappa κ ([8 ] ) corrects agreement for each teacher’s predicted-label frequencies:
κ = p o − p e 1 − p e , p e = ∑ j p T ( j ) p T ′ ( j ) , p T ( j ) = 1 ∣ D ∣ ∑ ( x , y ) ∈ D 1 [ c T ( x ) = j ] . \kappa= \frac{p_o-p_e}{1-p_e}, \qquad p_e = \sum_j p_T(j)p_{T'}(j), \qquad p_T(j) = \frac{1}{|\mathcal{D}|}\sum_{(x,y)\in\mathcal{D}} \mathbf{1}[c_T(x)=j]. κ = 1 − p e p o − p e , p e = j ∑ p T ( j ) p T ′ ( j ) , p T ( j ) = ∣ D ∣ 1 ( x , y ) ∈ D ∑ 1 [ c T ( x ) = j ] .
Here p e p_e p e is the agreement expected from independent predictions with those label frequencies. Thus κ \kappa κ complements raw agreement by accounting for class preferences; it does not remove all effects of accuracy or task difficulty. Together, the three metrics describe overall prediction similarity, overlap in errors, and agreement beyond the label marginals.
Findings. On CIFAR-10, fixed-architecture MLP teachers have lower agreement than ViTs (0.715 versus 0.792), also reflected in κ \kappa κ (0.682 versus 0.769). The MNIST CNNs have high agreement (0.891) but low error overlap (0.210): their predictions often coincide, while their mistakes are less shared. The heterogeneous MLP population and its unseen-architecture counterpart have similar statistics, with κ = 0.602 \kappa= 0.602 κ = 0.602 and 0.574, respectively. These results establish variation within each population.