Many symmetric learning problems ask a model to map one tensor to another, for example an adjacency matrix to a matrix of pairwise scores. These problems have a property that current models rarely use. When a layer must commute with relabeling of the $n$ nodes (a permutation-equivariant layer), its allowed weights form a fixed, finite list of patterns, and the length of that list does not depend on $n$. A model trained on 6-node graphs therefore has exactly the same parameters as one meant for 600-node graphs. This proposal asks what is needed for the small model to compute the right function on the large inputs. We want a guarantee that such networks can approximate any well-behaved equivariant tensor-to-tensor map across all sizes. We also want a precise rule for the smallest training size at which the parameters are pinned down. Finally, we want a way to check a trained layer's behavior at size $n$ without ever building the $n^k \times n^k$ matrix.
The answer draws on three lines of work, each in a different role. The diagram description of equivariant layers supplies the mechanism. Universality theory supplies the target theorem. The block-diagonalization techniques used to shrink symmetric semidefinite programs supply the analysis tool. With that tool, a layer at any size becomes a handful of small matrices whose entries are explicit functions of $n$. The concrete outcome is a training recipe with a falsifiable prediction: extrapolation fails below a computable threshold size and succeeds above it.
Core Claim
A permutation-equivariant linear map from order-$k$ tensors to order-$l$ tensors on $n$ points is a weighted sum of "partition diagram" matrices, one for each way of grouping the $k+l$ indices into equal-valued blocks. There are $B_{k+l}$ of them (the Bell number). For example, there are 15 for matrix-to-matrix layers, as shown in Invariant and Equivariant Graph Networks and formalized through the partition algebra in Connecting Permutation Equivariant Neural Networks and Partition Diagrams. When $n < k+l$, these matrices become linearly dependent, and only an "$n$-restricted" Bell number of them remain independent.
We claim three things. First, if each diagram coefficient is rescaled by the right power of $n$, the network has a well-defined limit as $n$ grows. Concretely, we divide by $n$ once for every block made only of input indices, since each such block is a free sum over $n$ values. With that rescaling, deep networks built from these layers can approximate any continuous equivariant map that is consistent across sizes, in an appropriate limit topology.
Second, the coefficients learned from data at sizes $\{n_1,\dots,n_m\}$ determine the function at every larger size exactly when every diagram is independent at some training size. For a single 2→2 layer this means training at some $n \ge 4$. Training only at $n=3$ leaves one direction unidentified: 14 of the 15 diagrams are independent, and the missing one is the "all indices distinct" pattern. Training only at $n=2$ leaves seven directions unidentified, since 8 of 15 are independent. Deep networks with order-3 intermediate tensors need $n \ge 6$.
Third, the product of two diagram matrices is again a combination of diagrams, with coefficients polynomial in $n$. This gives a closed form for each layer's restriction to each symmetry block (each isotypic component) as a function of $n$. From it we can compute operator norms, and therefore Lipschitz bounds, at any size, using only diagram combinatorics.
Relation to Prior Work
Two papers motivate the work by marking the gap. Any-dimensional invariant universality proves universality across input sizes by embedding inputs in a limit space. It covers only scalar invariant outputs, and it shows that pointwise activations such as ReLU are discontinuous under the cut metric used for graph limits. Our target is equivariant tensor outputs. Our response to the discontinuity result is to work in a stronger topology: dense, kernel-sampled tensors under an $L^2$/$L^\infty$ distance. We accept that this is narrower than graphon universality and say so explicitly.
Dimension-Free Descriptions of Convex Sets uses representation stability, the phenomenon that symmetric structures stop changing once $n$ passes a "presentation degree." It uses this to fit invariant convex functions at $n=1,2$ and evaluate them at $n=20$. Its stabilization idea is the one we reuse. We extend it from invariant convex regression to deep equivariant tensor maps, and we replace the generally intractable presentation-degree computation with the explicit diagram-independence threshold.
Two papers supply the universality method. Universal Invariant and Equivariant Graph Neural Networks proves fixed-size equivariant universality through a Stone–Weierstrass argument with elementwise products. That result is restricted to vector outputs and has no cross-size statement. Expressive Power of Invariant and Equivariant Graph Neural Networks ties separating power to approximation, showing that 2-FGNN matches the 3-dimensional Weisfeiler–Lehman test (a standard graph-isomorphism heuristic, abbreviated WL). We adapt both arguments to sequences of sizes linked by consistency.
Two papers supply the analysis tool. Symmetry groups, semidefinite programs, and sums of squares block-diagonalizes invariant matrices using an irreducible-representation basis; for instance, it reduces a 715×715 matrix to a 55×55 block, forty-five 10×10 blocks, and 210 scalars. Fast computation of permutation equivariant layers with the partition algebra factors diagram matrices into Kronecker products for fast evaluation. We obtain the block structure directly from diagram multiplication, so no Clebsch–Gordan coefficients are needed. This addresses the tension between the irreducible-representation view advocated in REVISITING MULTI-PERMUTATION EQUIVARIANCE THROUGH THE LENS OF IRREDUCIBLE REPRESENTATIONS and the diagram view of Brauer's Group Equivariant Neural Networks. We use diagrams for computation and irreducible blocks only as a bookkeeping device for the analysis.
Constructive Universal Approximation Theorems for Deep Joint-Equivariant Networks by Schur's Lemma is a contrast case. It gives universality through continuous integral representations, not finite diagram bases, and says nothing about size transfer.
Research Program
The theoretical part has three pieces. The first is an identifiability theorem: the set of training sizes at which a deep diagram network's coefficients are determined, characterized through the restricted Bell numbers of each layer's index orders. The second is a limit theorem: with $n$-rescaled coefficients and Lipschitz activations, each layer converges on kernel-sampled inputs, and the network is consistent across sizes. The third is a universality theorem: consistent continuous equivariant maps from order-$k$ to order-$l$ tensors can be approximated uniformly over all $n$ by such networks, provided the intermediate order grows with target complexity. We expect the order requirement to mirror the WL hierarchy, consistent with the order bottleneck reported in the graph universality literature.
The computational part builds a small library with three components. One computes diagram structure constants as polynomials in $n$. One evaluates per-block spectra of a trained layer at arbitrary $n$. One implements rescaled layers using Kronecker-factored diagrams.
We will extend the analysis from permutations to the orthogonal group $O(d)$ using the Brauer diagrams of Pearce-Crump. This extension is secondary, and we commit to it only if the $S_n$ case works.
Baselines
The naive reference point is a standard 15-basis invariant graph network from Invariant and Equivariant Graph Networks with its usual normalization. It is trained at the same small sizes and evaluated at large sizes with no rescaling. Within its training size it is a strong model: on the synthetic matrix-operations benchmark it reaches near-zero error ("e.g., 1e-5"), while incomplete 4-basis models fail with errors around 2.0. The question is whether that accuracy survives a change in $n$. We will report its error as a function of test size. Beating it means keeping relative error within a small constant factor of the in-distribution error out to 50× the training size, where the baseline degrades.
The strongest existing size-transfer method on invariant tasks is the dimension-free convex regression of Levin et al. We will rerun it on their $\ell_\pi$-norm task (train at $n=1,2$, test at $n=20$). The file reports only "significantly lower error than non-compatible models" and no number, so no reported result found on Lacuna for the exact error. Matching it on the invariant task is the bar; the equivariant tasks are where it does not apply.
For expressivity-heavy tasks, the strongest competitor is 2-FGNN from Expressive Power of Invariant and Equivariant Graph Neural Networks. On the quadratic assignment problem (QAP), a graph-alignment task, it outperformed message-passing networks and semidefinite relaxations, but the file gives no exact accuracy: no reported result found on Lacuna for 2-FGNN QAP accuracy. We will retrain it with an identical training-size schedule.
All models get the same data, the same optimizer budget (equal hyperparameter-search trials), and matched parameter counts.
Two ablations isolate the key ingredients. The first removes the $n$-rescaling while keeping everything else, which isolates the limit construction. The second trains below versus above the identifiability threshold, for example $n=3$ versus $n=4$ for 2→2 layers, which isolates the identifiability claim.
Why not just…?
Why not just train an ordinary equivariant network on a mix of sizes? This is the real threat. Mixing sizes may implicitly fix both the scaling and the unidentified directions. Our theory predicts it will work exactly when the mix includes a size above the threshold and the learned coefficients happen to absorb the correct powers of $n$. It should fail when all training sizes lie below the threshold, because then the unidentified direction is set by initialization. We will run mixed-size training as a baseline. If it matches our method whenever the threshold is met, the contribution narrows to the theorem and the threshold rule rather than a new architecture, and we will report it that way.
Why not just use message-passing networks, which already run at any size? They transfer across sizes cheaply, but they are bounded by the 1-dimensional WL test. Expressive Power of Invariant and Equivariant Graph Neural Networks shows they fail on random regular graphs, where 2-FGNN succeeds. Our QAP and regular-graph experiments test whether size transfer can be kept while retaining higher-order expressivity.
Why not just reduce everything to scalar invariants and use an MLP? Tensor learning with orthogonal, Lorentz, and symplectic symmetries shows that inner products suffice for vector inputs. Our inputs and outputs are matrices and higher-order tensors, where that shortcut does not apply. It also does not answer how the function should change with $n$.
Why not just block-diagonalize with irreducible representations, as in symmetric semidefinite programming? That works for a fixed $n$, but it requires change-of-basis matrices for every $n$. The diagram route gives the block spectra symbolically in $n$. We will compare compute time and numerical agreement on 2→2 and 3→3 layers.
Proposed Experiments
The first experiment uses the matrix-operations benchmark of Maron et al.: trace, diagonal extraction, symmetric projection, and normalized top singular vector. We will add consistent equivariant targets such as $A^2/n$ and per-edge triangle density. Training sizes will be $\{2\}$, $\{3\}$, $\{4\}$, and $\{4,6\}$, and test sizes will run up to $n=200$.
The second experiment uses the mixed-topology graph benchmark of Universal Invariant and Equivariant Graph Neural Networks, covering diameter and longest-shortest-path targets on complete, star, cycle, path, and wheel graphs. We will train at $n=5$ and test at $n=10$ through $n=40$.
The third experiment uses graphs sampled from smooth graphons to probe the limit theorem, the Levin et al. convex regression task for the invariant comparison, and QAP on random regular graphs for expressivity.
The metric throughout is relative error versus test size. For QAP we also report alignment accuracy.
The decisive check is the threshold prediction. With 2→2 layers trained only at $n=3$, the large-$n$ error should vary with the random initialization along the single "all-distinct" diagram direction. Training at $n=4$ should remove that dependence. With order-3 intermediates, the analogous jump should occur at $n=6$.
A second check validates the analysis tool. The symbolically computed per-block operator norms of trained layers should match dense numerical spectra at $n \le 30$, and they should predict which models blow up at $n=200$. If the threshold does not appear, or if the symbolic norms fail to predict blow-up, the core claim is wrong.
References
- Invariant and Equivariant Graph Networks
- Connecting Permutation Equivariant Neural Networks and Partition Diagrams
- Any-dimensional invariant universality
- Dimension-Free Descriptions of Convex Sets
- Universal Invariant and Equivariant Graph Neural Networks
- Expressive Power of Invariant and Equivariant Graph Neural Networks
- Symmetry groups, semidefinite programs, and sums of squares
- Fast computation of permutation equivariant layers with the partition algebra
- REVISITING MULTI-PERMUTATION EQUIVARIANCE THROUGH THE LENS OF IRREDUCIBLE REPRESENTATIONS
- Brauer's Group Equivariant Neural Networks
- Constructive Universal Approximation Theorems for Deep Joint-Equivariant Networks by Schur's Lemma
- Tensor learning with orthogonal, Lorentz, and symplectic symmetries