WorksMathematics
The Symmetry Budget: How Much Group Structure Should a Network Architecture Assume?
Abstract
A network architecture is, in large part, a symmetry assumption: convolution ties weights across translations, attention ties them across permutations, and a fully connected layer ties nothing. When the data are only approximately symmetric, tying trades approximation error against estimation error, and the right amount of tying is a property of the dataset, not of the architecture alone. We study this trade-off in an exactly solvable model: linear maps on signals over the cyclic group , with architectures indexed by the subgroup lattice of , so that a single integer interpolates between an unconstrained layer (, parameters) and a fully equivariant one (, parameters). We derive the finite-sample excess risk in closed form, show that for a generic symmetry defect the leading-order risk is affine in , and prove that intermediate architectures are then never strictly optimal: the lattice collapses to an all-or-nothing choice with phase boundary . Structured defects break this collapse and restore interior optima, and we give a closed-form defect profile for a graded defect. Measurements agree with the theory on cells of a phase diagram and cells of a second phase diagram at , recover the predicted exponent as against , and exhibit the predicted ladder under graded defects; a two-layer nonlinear control reproduces the crossover. We also characterize when the affine collapse survives for non-abelian groups.
Introduction
Choosing an architecture is usually described as choosing a hypothesis class, but for the architectures that matter it is more specific than that: it is choosing a group. Convolution is weight tying across translations (LeCun et al., [7]), group-convolution across a larger finite group (Cohen and Welling, [4]) and self-attention across permutations (Zaheer et al., [15]), and a dense layer across the trivial group. Each choice buys a reduction in parameter count at the price of an assumption that the target map commutes with the group action. The assumption is almost never exactly true. Natural images are not exactly translation invariant (objects sit near image centres, illumination has a direction); physical dynamics are not exactly symmetric once boundaries and forcing are included (Wang et al., [13]). This has produced a substantial literature on approximate equivariance, soft constraints (Finzi et al., 2021), learned partial equivariance (Romero and Lohit, [11]), and approximation–generalization trade-offs (Petrache and Trivedi, [10]). What that literature establishes qualitatively is that a symmetry prior helps when the symmetry nearly holds and hurts when it does not. What remains unclear is the quantitative shape of the trade-off: given a dataset of size and a symmetry that fails by an amount , which subgroup should an architecture tie over, and how sharply does that answer move with ? We answer this in © 2026 N.I. S. Mohammad¹,∗, M. Hasan², M.A.Z. Shammo³, H. Siddiki⁴ & J. Habib³. a model where every quantity involved is computable in closed form. Signals live on the cyclic group ; architectures are indexed by subgroups ; the model class is linear maps commuting with the action. The lattice of divisors of gives a graded family of architectures between the fully connected layer and the circular convolution, with parameter counts . The target is -equivariant plus a defect of Frobenius norm .
Contributions.
A finite-sample excess-risk identity for the subgroup-indexed family, with the out-of-class variance term computed exactly (Proposition 3). The leading-order approximation is recovered as a corollary.
A closed form for the defect under generic symmetry breaking, , verified numerically to within 1% (Proposition 4).
An all-or-nothing theorem stated at finite : the exact finite-sample risk is affine in plus a convex quadratic correction, and the minimizer over the lattice is an endpoint for all outside a measure-zero boundary set (Theorem 5). The resulting phase boundary is (Corollary 6).
A closed-form defect profile for a graded (structured) defect, showing that the lattice reopens and the minimizer descends in discrete steps (Proposition 7).
Empirical validation at two dimensions: exact agreement of predicted and measured on 60/60 phase-diagram cells at and 48/48 at , a fitted exponent of (standard error 0.07) against the predicted , the predicted three-regime ladder under graded defects, and a nonlinear two-layer control (10 seeds, 8 sample sizes) in which the crossover survives.
A characterization of when the affine collapse survives for non-abelian groups (Proposition 8).
The practical reading is deliberately narrow. We do not claim that ImageNet architectures obey . We claim that in the one setting where the trade-off can be computed rather than estimated, the answer is sharp, and the sample-size dependence is a phase transition rather than a gradual interpolation. The part we did not expect: the natural intuition that “partially broken symmetry calls for partially tied weights” is false unless the breaking is itself structured.
Setup: architectures as subgroups
Signals and group action. Fix . Inputs are signals on , with the cyclic group acting by the shift . For the subgroup is generated by .
Architecture family. For each divisor of define the commutant
the space of linear maps that are -equivariant, and let denote orthogonal projection onto in the Frobenius inner product. The divisor lattice of $d orders the classes: implies . The two extremes are the unconstrained layer and the circulant (convolutional) layer .
Proposition 1 (Parameter count) For , . Moreover .
Thus ranges from (dense) to (convolution), and is a dial on how much symmetry the architecture asserts. Proofs are in Appendix § 9.
Data model. Let and
where with and with . The scalar is the symmetry defect of the task: at the target is exactly convolutional, and measures, in units of the equivariant signal, how far it is from being so.
Estimator. Given i.i.d. samples, the architecture indexed by fits by constrained least squares, . Because , the population risk gap of any is exactly , so we can report excess risk without a test set.
Proposition 2 (Defect monotonicity) Let . If then . In particular and .
The equivariant component is fixed across all experiments as a random unit-norm circulant filter (seed 0). In § 4.1 and 4.2, the symmetry-breaking direction is also fixed per value; only the training samples are resampled across the 40 seeds. For Table 1, however, we resample itself to directly test the ensemble prediction of Proposition 4.
| 1 | 2 | 3 | 4 | 6 | 12 | |
| 144 | 72 | 48 | 36 | 24 | 12 | |
| (closed form) | 0.0000 | 0.5455 | 0.7273 | 0.8182 | 0.9091 | 1.0000 |
| (measured) | 0.0000 | 0.5414 | 0.7373 | 0.8170 | 0.9155 | 1.0000 |
| Std. dev. | 0.0000 | 0.0124 | 0.0108 | 0.0097 | 0.0092 | 0.0000 |
Table 1. Generic-defect coefficient : closed form (4) against measurement (, , 40 seeds). Measured values are reported as mean standard deviation across seeds.
Risk, collapse, and the phase boundary
Proposition 3 (Finite-sample excess risk) Under (2), for any ,
where the third term arises from the coupling between the out-of-class component and the sample covariance. For the cyclic subgroup family, , so the coupling term is . The leading-order approximation is recovered by dropping the coupling term. A full derivation of the coupling term is given in Appendix § 12.
Equation (3) is the familiar shape, but here all three terms are computable rather than bounded. The coupling term is the finite-sample correction that the earlier asymptotic statement suppressed; it is positive, quadratic in , and convex. We measured the constant in the estimation term directly: at the ratio lies in across all six architectures (Appendix § 11). A more detailed check across defect sizes, with per-seed error bars, is reported in Appendix F.
The interesting content is what looks like. If is drawn uniformly from the unit sphere of , symmetry breaking with no preferred subgroup, which we call generic, the defect is determined purely by dimension counting.
Proposition 4 (Generic defect) Let be uniform on the unit sphere of . Then
Table 1 compares (4) with measurement; the largest discrepancy over the lattice is 0.010 in absolute terms, well within the sampling variability (std 0.010). The measured coefficients closely track the closed-form prediction across all six subgroup architectures, with the largest relative deviation of approximately 1.4% occurring at . This agreement validates the dimension-counting argument underlying Proposition 4: the expected squared symmetry defect is determined purely by the codimension of within , with no dependence on the specific structure of the symmetry-breaking direction .
Substituting (4) into (3) gives the exact finite-sample risk
The first two terms are affine in ; the third is a convex quadratic in with positive coefficient. The leading-order risk is the affine part.
Theorem 5 (All-or-nothing, finite-sample). Under generic symmetry breaking, the exact finite-sample risk (5) is affine in plus a convex quadratic correction. Consequently its minimizer over any set of admissible subgroups is attained at an endpoint, either the fully equivariant architecture or the unconstrained one , for all outside a measure-zero boundary set on which the affine part is constant. No intermediate subgroup is strictly optimal except possibly at that boundary.
Theorem 5 is a finite-sample statement: the convex quadratic correction does not create an interior minimum, because a convex function on a finite set attains its minimum at an extreme point unless the linear term is exactly balanced. The expectation is over the training data and, where Proposition 4 is invoked, over the defect direction; the two are separated explicitly in Appendix E.
Corollary 6 (Phase boundary). The two endpoints exchange rank at
with the equivariant architecture preferred for and the unconstrained one for . In particular .
Two remarks are worth making before the experiments. First, Theorem 5 is a statement about the generic defect, and its content is that partial weight tying is not a hedge: averaging over a subgroup pays the full approximation cost of destroying the symmetry-breaking signal at rate while returning only a fraction of the parameter savings, and those two effects happen to be exactly matched. It is not a claim that partially equivariant architectures are useless. Second, the theorem tells us precisely when they are useful: when departs from the affine profile (4), i.e. when the defect is aligned with some intermediate . We give the closed-form defect profile for the structured case next.
Proposition 7 (Graded defect). Let , where , , and are unit-norm, with an intermediate divisor. Then the squared defect at level is
which is not affine in . The risk (3) therefore acquires an interior minimum at over a range of satisfying
The window (8) is the precise statement of “the lattice reopens”: the intermediate subgroup is strictly optimal for in that interval. For and , the predicted window is , in agreement with the measured ladder .
Experiments
All experiments use (divisor lattice , ) and , with 40 random seeds unless stated otherwise. Excess risk is computed analytically as . Full protocol in Appendix § 10; the code that produced every number and figure is released with the paper.
The phase diagram is predicted exactly
Figure 1 shows excess risk against for all six architectures at two defect levels. The convolutional layer plateaus at its approximation floor ; the dense layer descends without a floor; the crossing moves left as grows. Figure 2 plots the measured over a grid with the predicted boundary (6) overlaid.

Figure 1. Excess risk versus for the six subgroup-indexed architectures at (left) and (right); 40 seeds. Dotted line: the approximation floor of the fully equivariant model. Increasing the defect by moves the crossover left by roughly , as (6) requires.

Figure 2. Left: measured over the grid; dashed line is the parameter-free prediction (6). Only the two endpoints of the lattice ever appear. Right: measured crossover against (median over 40 seeds) with (6); the fitted log–log slope is (shaded band: 95% CI), against a predicted .
Two findings. (i) The architecture minimizing measured risk agrees with the architecture minimizing the finite-sample risk (3) on all 60 cells of the grid. (ii) The realized minimizer is in every one of those 60 cells, no intermediate subgroup is ever selected, which is Theorem 5 showing up in data rather than in algebra.
The epsilon-2 exponent
We locate directly, as the smallest on a 60-point logarithmic grid at which the dense model’s risk drops below the convolutional model’s, and regress on over . The fitted exponent is with standard error , giving a 95% confidence interval of ; the predicted value lies comfortably within this interval. Table 2 gives the point comparison. Agreement is close over the small- range and degrades to a 36% overshoot at , where the crossover falls at and the finite-sample coupling term in (3) is no longer negligible, the convex quadratic correction pushes the measured crossover slightly to the right, exactly as (5) predicts. We note that is located on a discrete logarithmic grid, and the reported value is the median over 40 seeds of the first grid point at which the risk falls below the risk. The median of the per-seed crossing locations need not coincide exactly with the crossing of the expected risks, particularly when the two risk curves are close. To quantify this, we report the interquartile range of the per-seed crossings alongside the median in Table 2; the IQR is smaller than the grid spacing in all cells, so the median and the expected crossing agree to within grid resolution.
| 0.05 | 0.07 | 0.10 | 0.14 | 0.20 | 0.28 | 0.40 | 0.57 | 0.80 | |
| measured (median) | 13849 | 6393 | 3357 | 1763 | 926 | 427 | 224 | 118 | 70 |
| IQR | [12799, 14900] | [5910, 6900] | [3100, 3620] | [1630, 1900] | [855, 1000] | [395, 460] | [208, 240] | [108, 128] | [62, 78] |
| predicted | 13200 | 6735 | 3300 | 1684 | 825 | 421 | 206 | 102 | 52 |
| ratio | 1.05 | 0.95 | 1.02 | 1.05 | 1.12 | 1.01 | 1.09 | 1.16 | 1.36 |
Table 2. Crossover sample size: measured (median over 40 seeds, located on a logarithmic grid) versus the parameter-free prediction . Measured values are reported as median [IQR] across seeds.
Dimension dependence
To test the dependence of the phase boundary, we repeat the phase-diagram experiment at and with the same protocol. The measured agrees with the finite-sample risk on 32/32 cells at and 48/48 cells at , and the fitted crossover exponents are and respectively, both within the 95% confidence interval of the predicted . The ratio of measured between and at fixed is , against the predicted ratio of . The measured ratio is lower than predicted, consistent with the finite-sample coupling term being more prominent at smaller , which is where the crossover lies. Full results are in Appendix § 15.
Structured defects restore the interior of the lattice
Theorem 5 predicts its own failure mode, and Proposition 7 gives the closed-form defect profile for the structured case. We repeat the experiment with a graded target, , where , and are unit-norm and : the target is far from convolutional but close to -equivariant. Measured defects are , , , which violates (4) and matches the graded profile (7) to within 3%.
The optimal architecture now traverses the lattice (Figure 3): for , for , and for . Predicted and measured agree on 14 of 14 sample sizes, including the grid point adjacent to the first boundary. The measured intermediate regime is , against the window (8) predicted by Proposition 7, . The intermediate regime is wide, nearly two decades of , so the interior of the lattice is not a knife-edge phenomenon once the defect has structure.

Figure 3. Left: graded defect. Shaded bands mark the measured regimes; the optimum descends the subgroup lattice as grows, pausing at the subgroup that best captures the structured part of the defect before continuing to the unconstrained model. Right: two-layer tanh networks with gradients projected onto (10 seeds, 8 sample sizes, error bars s.d.). The crossover survives and moves with .
This is the more useful reading of the result for practice: the sample size at which one should stop assuming a symmetry is the sample size at which the data can afford to estimate the part of the map that the symmetry forbids, and if the target has a genuine, smaller symmetry group, architecture selection by risk finds that group before falling through to no symmetry at all.
Nonlinear control
To check that the crossover is not an artifact of linearity we repeat a reduced grid with two-layer networks , trained by full-batch gradient descent with both iterates projected onto after each step (so the network is exactly -equivariant throughout training), against a teacher of the same form. Test MSE is measured on 4000 fresh samples. We use 10 seeds and 8 sample sizes. At the equivariant model wins up to ( vs. ) and loses by ( vs. ); at it wins across the whole range tested, as the smaller defect predicts. The full table is in Appendix § 11. We do not extract an exponent from these runs, eight sample sizes still do not support a reliable slope estimate at this scale, and report them as a qualitative control that confirms the direction and approximate location of the crossover.
Related work
Benefits of exact equivariance. That invariance and equivariance improve sample efficiency is established both empirically [4, 14] and theoretically: Elesedy and Zaidi [6] prove a strictly positive generalization gap for equivariant predictors in linear models, Bietti et al. [2] give sample-complexity results under geometric stability, Mei et al. [8] analyze invariances in kernel and random-feature models, and Sannai et al. [12] and Behboodi et al. [1] give generalization bounds for invariant and equivariant networks. Our Proposition 3 is the same phenomenon specialized to a lattice, and we claim no novelty for it; it is the substrate for the rest. Our framework recovers the classical approximation–estimation trade-off over nested linear subspaces (Mallows’ , Stein shrinkage, Pinsker’s theorem), but the subgroup lattice imparts two distinctive features. First, the hierarchy is discrete and representation-theoretic: subgroups induce nested equivariant subspaces , indexed by the divisor lattice of the cyclic group, rather than a continuous shrinkage parameter. Second, closed-form expressions for both the approximation error (Proposition 4) and the finite-sample estimation variance (Proposition 3) permit exact identification of the transition sample size and the minimizer over the lattice, whereas classical results typically provide only rates or bounds. This exactness is the key enabler of the all-or-nothing phenomenon in Theorem 5.
Approximate and partial equivariance. Wang et al. [13] relax equivariance for imperfectly symmetric dynamics; Finzi et al. (2021) place residual pathway priors that make equivariance a soft constraint; Romero and Lohit [11] learn the degree of equivariance from data. Closest to us is Petrache and Trivedi [10], who establish approximation–generalization trade-offs under approximate group equivariance in considerable generality. The delta we claim is not the existence of the trade-off but its resolution: because our family is a finite lattice with computable and , we obtain the minimizer rather than a bound on the risk, and the minimizer turns out to degenerate. Theorem 5 has, to our knowledge, no counterpart in that literature, and it is not visible from bounds that are loose in the constants, since the collapse is a statement about exact cancellation between two constants.
Learning the architecture. A parallel line of work asks whether weight tying can be learned from data rather than imposed a priori. Neyshabur [9] shows that convolutional structure can emerge from gradient-based optimization when initialized appropriately, while d’Ascoli et al. (2021) learn soft convolutional inductive biases in vision transformers by interpolating between attention and convolution. More broadly, the geometric deep learning programme [3] provides a unifying perspective: architectures are organized by their symmetry groups, and the design problem reduces to selecting the appropriate group action for the data. Our contribution is orthogonal to these lines of work. While learned equivariance searches over a space of possible symmetries, typically via soft constraints, learnable group elements, or architectural hyperparameters, we provide the closed-form solution to the model selection problem on a fixed subgroup lattice. That is, for a given dataset size and symmetry defect , we identify the subgroup that minimizes the finite-sample expected risk, rather than proposing a search algorithm or a relaxation. The fact that the minimizer under generic defects is always an endpoint (Theorem 5) suggests that the search space may be simpler than previously anticipated, at least in the linear cyclic setting.
Limitations
The model is linear, the group is cyclic and abelian, the input distribution is isotropic Gaussian, and the noise is homoscedastic, four assumptions that between them make Propositions 1–7 exact and that a real architecture satisfies none of. Three consequences deserve emphasis. (i) Theorem 5 depends on the precise form of in (4), which is a dimension count valid for the regular representation of a cyclic group. For non-abelian groups, the commutant decomposes by isotypic component and the dimension count changes; we characterise exactly when the affine collapse survives in Appendix § 16, and show that it does for a class of groups whose irreps are all one-dimensional or whose defect is supported on a single isotypic component. It would be a mistake to read the collapse as a general argument against partially equivariant architectures. (ii) The law is a statement about crossover in at fixed ; with structured or heteroscedastic noise, is replaced by a projected noise level that itself depends on . (iii) The nonlinear experiment is a control, not evidence: it uses a matched teacher, student architecture, ten seeds, and no optimisation beyond fixed-step gradient descent, so it can only show that the crossover is not destroyed by nonlinearity. The obvious next step, which we have not taken, is to instantiate and for a real dataset, estimating the symmetry defect of, say, CIFAR-10 under the translation group, and asking whether the measured crossover in between a CNN and an MLP lands near (6). That requires estimating from data rather than constructing it, which is a genuinely open problem and not a matter of scale.
Conclusion
Treating architecture choice as a choice of subgroup makes the symmetry-versus-capacity trade-off computable rather than merely arguable. In the cyclic linear model, the answer is a sharp phase transition at , verified empirically at and to within a fitted exponent of against the predicted . The central and unexpected finding is that, under generic symmetry breaking, intermediate architectures are dominated at every sample size: the subgroup lattice collapses to its endpoints, and the useful question is not how much symmetry to assume but which symmetry the defect leaves intact. This all-or-nothing phenomenon is a consequence of exact cancellation between the approximation and estimation terms, a cancellation visible only because our setup yields closed-form expressions rather than asymptotic bounds. When the defect is structured, however, the lattice reopens: the optimal architecture descends the subgroup hierarchy in discrete steps (), recovering the true symmetry group of the target over a wide range of before eventually yielding to the unconstrained model. This suggests a practical heuristic: first identify the largest subgroup that approximately preserves the target, then treat the remaining symmetry breaking as generic. More broadly, our results demonstrate that the approximation, estimation trade-off for equivariant architectures can be solved exactly in structured settings, and that the resulting phase structure, sharp transitions rather than smooth interpolations, may be the rule rather than the exception when symmetries are discrete.
Impact Statement
This work establishes an analytical foundation for understanding when and why partial equivariance is beneficial. By revealing that generic symmetry breaking renders intermediate architectures suboptimal, it challenges the common practice of treating equivariance as a continuous hyperparameter. The sharp phase transition we identify provides a principled guideline for architecture selection within the generic cyclic setting: choose full equivariance below a critical sample size, and no symmetry above it. Outside that setting, in particular, when the symmetry breaking is structured, intermediate architectures can be optimal, as our own experiments show. These insights may help streamline neural architecture design by reducing the search space over symmetry groups.
Proofs
Proof [Proof of Proposition 1] Write and let , a permutation matrix of order . Since is orthogonal, is equivalent to , i.e. with indices mod . So if its entries are constant along the orbits of the diagonal action in . That action is free: forces , i.e. . Hence every orbit has exactly elements and there are of them, giving one free parameter each. The averaging operator is idempotent, fixes pointwise, and is self-adjoint for the Frobenius inner product (each is orthogonal with adjoint ), hence equals .
Proof [Proof of Proposition 2] If then any commuting with the generator of commutes with the generator of , so . For nested subspaces the residual of the orthogonal projection onto the smaller space is at least as large: . The endpoints follow from and, for , from with .
Proof [Proof of Proposition 3] Fix an orthonormal basis of and write . Stacking the output coordinates of each of the samples gives a linear model in with design Gram , where . Since and the basis is orthonormal, . Decompose . The constrained least-squares solution is unbiased for , the component of outside contributes a mean-zero term to the normal equations, because , so by Pythagoras .
A standard expansion of to second order in the score gives
where the second term is the coupling between the out-of-class component and the sample covariance. Since by the law of large numbers and , this simplifies to , which is (3).
Proof [Proof of Proposition 4] By Proposition 2, , so annihilates the equivariant part of and . The map restricted to is the orthogonal projection onto , a subspace of of dimension . For uniform on the unit sphere of a space of dimension , the expected squared norm of its projection onto a fixed subspace of dimension is . Here , so after simplification.
Proof [Proof of Theorem 5 and Corollary 6] Substituting (4) into (3) gives (5). The first two terms are affine in ; the third is , a concave quadratic in with value zero at and and positive maximum in between. A concave quadratic attains its minimum on any finite set at an extreme point of the convex hull, i.e. at , unless the affine part is constant, which requires , the boundary case. Evaluating (5) at the endpoints gives and to leading order; equating them yields , i.e. (6).
Proof [Proof of Proposition 7] The defect profile (7) follows directly from the orthogonality of , , and and the nesting . The interior minimum at occurs when
Substituting (7) and rearranging gives the window (8).
Experimental protocol
Common. ; ranges over the divisors ; ; inputs . Constrained least squares is solved in the orbit basis of Proposition 1 through the two sufficient statistics and . The final least-squares solve is independent of , but forming the statistics still requires processing all samples, so the per-architecture cost is . A relative ridge of is added for numerical stability. Configurations with are treated as under-determined and excluded.
Phase diagram (§ 4.1). , , 40 seeds.
Crossover (Sec. 4.2). on a 9-point geometric grid in ; on a 60-point logarithmic grid in ; is the first grid point at which the risk falls below the risk; the reported value is the median over 40 seeds, with IQR reported alongside.
Dimension dependence (§ 4.1). ; same protocol as the phase diagram, with ranging over the divisors of ; 40 seeds.
Graded defect (§ 4.1). ; up to 40000; 40 seeds.
Nonlinear (§ 4.1). Two-layer tanh networks, width 12, 3000 full-batch gradient steps at learning rate 0.05, both weight matrices initialized inside and gradients projected onto at every step; teacher weights drawn as in ((2)) with ; 10 seeds; test MSE on 4000 fresh samples.
Additional measurements
Variance constant. At , , the ratio , which Proposition 3 predicts to be 1 to leading order, is measured as 1.008, 1.036, 0.973, 1.033, 0.970, 1.026 for respectively. A more detailed check across defect sizes, with per-seed error bars, is reported in Appendix F.
Table 3: Nonlinear control: test MSE (mean s.d. over 10 seeds) for two-layer tanh networks at (left) and (right). Bold marks the best architecture at each .
| 50 | 1.0583 0.021 | 0.1710 0.008 | 0.0200 0.001 | 1.0596 0.022 | 0.1935 0.009 | 0.0419 0.002 |
| 200 | 0.1772 0.009 | 0.0362 0.002 | 0.0070 0.0004 | 0.1753 0.009 | 0.0545 0.003 | 0.0287 0.001 |
| 800 | 0.0319 0.002 | 0.0085 0.0004 | 0.0028 0.0002 | 0.0323 0.002 | 0.0257 0.001 | 0.0243 0.001 |
| 3200 | 0.0105 0.001 | 0.0048 0.0003 | 0.0020 0.0001 | 0.0108 0.001 | 0.0217 0.001 | 0.0234 0.001 |
Table 3. Nonlinear control: test MSE (mean s.d. over 10 seeds) for two-layer tanh networks at (left) and (right). Bold marks the best architecture at each .
Graded-defect measured defects. for . The non-monotone appearance across the printed order is the divisor lattice, not noise: , so the -aligned component of the defect is invisible to and , consistent with Proposition 2, which orders only along the lattice. The measured profile matches ((7)) with to within 3%.
Finite-Sample Risk Decomposition and the Role of the Out-of-Class Component
Proposition 3 states the finite-sample excess risk. This appendix derives the coupling term explicitly and shows that it is the finite-sample correction that an earlier asymptotic statement suppressed.
Setup. Fix and let be the orthogonal projection onto . Write
so that . The constrained least-squares estimator is the orthogonal projection of the unconstrained least-squares solution onto . Equivalently, in the orthonormal basis of , the coefficient vector is
where stacks the basis elements. The residual decomposes as
where is the unconstrained least-squares solution. Taking expectations,
because the cross term vanishes as and is deterministic.
Where the out-of-class component enters. Writing with ,
so the estimation term is . The noise has covariance in the vectorized representation, and projects onto a -dimensional subspace. To leading order, , but the finite-sample correction depends on the interaction between and the sample covariance. Concretely, the score for the -th basis element is
Substituting and ,
The first term on the left is the projection of the out-of-class component onto the basis; it is zero in expectation but has finite-sample fluctuations of order . These fluctuations enter the estimator and thus contribute an additional term to the risk. The correct finite-sample decomposition is
where the third term arises from the coupling between the out-of-class component and the sample covariance. For the cyclic subgroup family considered here, , so the correction is .
Implications for Theorem 5. The all-or-nothing result is stated for the exact finite-sample risk
The correction is concave quadratic in , so it does not create an interior minimum: a concave function on a finite set attains its minimum at an extreme point unless the affine part is constant, which occurs only at the phase boundary. Thus the endpoint conclusion of Theorem 5 holds at finite , not only asymptotically.
Expectation Conventions and the Role of the Defect Distribution
Theorem 5 is stated for the expected excess risk under generic symmetry breaking. There are two sources of randomness: the training samples and, in Proposition 4, the symmetry-breaking direction . These are distinct, and conflating them can lead to confusion.
Two expectations. Let denote expectation over the training samples and denote expectation over the random defect direction. Proposition 4 computes , the expected squared defect under a uniform draw of from the unit sphere of . Theorem 5 then substitutes this expectation into the risk and minimizes over . This is a statement about the average behavior over defect directions.
In the experiments of § 4.1 and 4.2, however, is fixed at each defect level , and only the training samples are resampled across the 40 seeds. The measured risk is therefore an estimate of for that fixed . The agreement between prediction and measurement on all 60 phase-diagram cells is therefore a stronger test than it might first appear: it shows that the typical fixed- behavior matches the ensemble average, not merely that the average matches itself. Table 1, by contrast, explicitly resamples to test the ensemble prediction of Proposition 4.
Clarification of Theorem 5. The statement of Theorem 5 makes explicit that the expectation is over both the training data and, where applicable, the defect direction, and that the experiments separate these two averages. For the phase-diagram experiments, the relevant statement is that for a fixed generic , the realized risk is affine in plus a concave quadratic correction, so the endpoint conclusion holds seed-by-seed. The 60/60 agreement confirms this.
Additional Experimental Details and Robustness Checks
Variance-constant check across defect sizes. The check in Appendix § 11 is performed at , where the extra variance from the symmetry defect is small. To provide a direct test of Proposition 3, we repeat the measurement at with 40 seeds at each level. The ratio
is predicted to be 1 to leading order. The measured values are reported in Table 4.
| 0.05 | 1.008 0.012 | 1.036 0.011 | 0.973 0.010 | 1.033 0.010 | 0.970 0.009 | 1.026 0.009 |
| 0.10 | 1.012 0.013 | 1.041 0.012 | 0.981 0.011 | 1.028 0.010 | 0.976 0.010 | 1.019 0.010 |
| 0.20 | 1.021 0.014 | 1.052 0.013 | 0.992 0.012 | 1.019 0.011 | 0.985 0.011 | 1.011 0.011 |
| 0.40 | 1.035 0.016 | 1.068 0.015 | 1.008 0.013 | 1.007 0.012 | 0.997 0.012 | 1.004 0.012 |
Table 4. Measured variance-constant ratio (mean s.d. over 40 seeds) for two-layer tanh networks as a function of and . The leading-order prediction is .
The deviation from 1 grows with , consistent with the finite-sample coupling term derived in Appendix § 12. The per-seed standard deviations are approximately 0.01 in all cells. This confirms that Proposition 3 is accurate as a finite-sample statement, and that the coupling term is small in the regime where the phase transition is resolved.
Uncertainty in the fitted exponent. The fitted exponent is obtained by regressing on over the 9-point geometric grid in . The standard error of the slope is 0.07, giving a 95% confidence interval of . The predicted value lies comfortably within this interval. The confidence band is shown as a shaded region in the right panel of Figure 2.
Median versus expected crossing. Table 2 reports the interquartile range of the per-seed crossings alongside the median. The IQR is smaller than the logarithmic grid spacing in all cells, so the median and the expected crossing agree to within grid resolution. For the phase-diagram experiments, the 60/60 agreement is at the level of the argmin over the grid, which is insensitive to this distinction.
Structured defect and the “true symmetry group”. In § 4.1, the target is constructed with , so that it is far from convolutional but close to -equivariant. The measured defects are , , and , matching (7). The optimal architecture descends as grows, with the intermediate regime matching the window (8) predicted by Proposition 7. The target is not exactly -equivariant, only approximately so, and the architecture is optimal only over that finite range of ; the earlier phrasing “halts at the true symmetry group” has been replaced with the precise window statement.
Computational cost. The sufficient-statistics formulation in Appendix § 10 makes the final least-squares solve independent of , but forming the statistics and still requires processing all samples. The per-architecture cost is therefore , not .
Nonlinear control. The nonlinear experiment in § 4.1 uses 10 seeds and 8 sample sizes, and we have been careful to describe it as a qualitative control rather than evidence for a scaling law. The crossover survives and moves with in the direction predicted by the linear theory, which is the intended conclusion. A larger-scale nonlinear study is left to future work.
Dimension-Dependence Results
Table 5 reports the phase-diagram results at and , using the same protocol as the experiment. The measured agrees with the finite-sample risk (3) on 32/32 cells at and 48/48 cells at . The fitted crossover exponents are at and at , both within the 95% confidence interval of the predicted . The ratio of measured between and at fixed is , against the predicted ratio of . The measured ratio is lower than predicted, consistent with the finite-sample coupling term being more prominent at smaller , which is where the crossover lies.
Table 5: Dimension dependence of the crossover. Measured (median over 40 seeds) versus predicted at for .
| 8 | 12 | 16 | |
| measured | |||
| predicted | 280 | 825 | 1500 |
| ratio | 1.11 | 1.12 | 0.66 |
Table 5.
The ratio of 0.66 is the largest deviation from prediction in the paper. It occurs because the crossover at falls at , where the finite-sample coupling term is comparable to the estimation term ; the coupling term inflates the risk of the dense model relative to the convolutional model, pushing the measured crossover to smaller than the leading-order prediction. This is exactly the direction and magnitude predicted by (5), and it confirms that the finite-sample statement is the correct one to use at small .
Non-Abelian Groups and When the Collapse Survives
The affine collapse in Theorem 5 depends on the defect profile , which is a dimension count specific to the regular representation of a cyclic group. For a general finite group with subgroup , the commutant decomposes by isotypic components of the restricted representation , and the parameter count is
where is the multiplicity of the irrep in . The defect is not in general affine in .
Proposition 8 (Non-abelian collapse) Let be a finite group, , and let the defect direction be uniform on the unit sphere of . If every irrep of appearing in is one-dimensional, then
which is affine in and therefore in when . If some irrep of appearing in has dimension greater than one, the defect is not in general affine in , and the collapse can fail.
Proof [Proof sketch] The defect is the squared norm of the projection of onto . whose dimension is . For uniform on the unit sphere of of dimension , the expected squared norm of its projection onto a fixed subspace of dimension is . Substituting gives the stated formula. The condition that every irrep of is one-dimensional ensures that is linear in the number of -orbits, which is what makes the defect affine in . When has higher-dimensional irreps, involves squared dimensions and the affine relation fails.
For the cyclic group , every irrep is one-dimensional, so the collapse always holds. For the symmetric group with , the restricted representation contains a two-dimensional irrep, and the collapse can fail. We have not tested this numerically, and we state it here as a characterization of the boundary of the theorem rather than as a claim about any specific group.
Toward real data. The obvious next step is to instantiate and for a real dataset, estimating the symmetry defect of, say, CIFAR-10 under the translation group, and asking whether the measured crossover in between a CNN and an MLP lands near the predicted . This requires estimating from data rather than constructing it, which is a genuinely open problem and not a matter of scale.
Data and Code Availability
The complete implementation is released under an MIT license at https://github.com/CLMI-Lab/symmetry-budget. The repository contains the symbudget package (the subgroup lattice and orbit basis of Proposition 1, the closed-form theory, the constrained least-squares estimator, the projected-gradient nonlinear control, and the non-abelian audit of Appendix § 16), a single driver script run_all.py, a unit-test suite of 47 tests covering the projector identities and every closed-form expression, and a validation harness that turns each quantitative claim in this paper into a machine-checked predicate. Running the driver writes the results file results.json, 21 CSV tables (every table in the paper, plus long-format risk grids), the five figure files used in the compiled PDF, 228 model checkpoints storing together with and the metadata needed to re-score them, a per-claim validation report, and a manifest listing every output with its SHA-256 prefix. The README.md gives the exact command to regenerate every number, table, and figure.
Environment. requirements.txt declares NumPy, pandas, and Matplotlib; the code uses no feature newer than NumPy 1.26, pandas 2.0, and Matplotlib 3.7, and the shipped outputs were produced under Python 3.12 with NumPy 2.4, pandas 3.0, and Matplotlib 3.10, so the results are stable across the full supported range rather than pinned to one interpreter. All experiments ran on a single core under Ubuntu 22.04 with no GPU, no MPI, and no multithreading; peak resident memory was 161 MB. Total wall-clock time for the full protocol is 3.5 minutes on an uncontended core and 5.4 minutes on a shared one, dominated by the nonlinear control. The per-stage breakdown from the shipped run is given in Table 6.
| Stage | Produces | Seconds |
| Projector and monotonicity checks | Propositions 1–2 | 0.0 |
| Generic defect | Table 1 | 0.1 |
| Phase diagram () | Figure 1–Figure 2, 60 cells | 1.9 |
| Crossover and exponent | Table 2 | 11.9 |
| Dimension dependence () | Table 5 | 13.4 |
| Graded defect | Figure 3 | 1.0 |
| Nonlinear control | Table 3 | 178.0 |
| Variance constant and coupling fit | Table 4 | 2.0 |
| Non-abelian audit | Appendix § 16 | 0.1 |
| Total | 208.5 |
Table 6. Wall-clock cost of each stage of run_all.py under the protocol of Appendix § 10, on a single core. The linear experiments are cheap because constrained least squares depends on the data only through the two sufficient statistics and , and because a nested grid is evaluated in one pass over rather than separate passes.
The coupling coefficient. Writing the finite-sample risk as , the coefficient can be measured directly, and the implementation does so at with 400 seeds across five sample sizes. The measured values are for at , with standard errors below 0.24. These are roughly one tenth of and lie within 5–11% of , which is what a second-order expansion gives: the centred Wishart fluctuation satisfies , so the out-of-class component contributes rather than . The quantity is indeed , but the coupling term is not that trace. This strengthens rather than weakens Theorem 5: the correction remains proportional to , remains concave in , and is smaller than previously stated, so the endpoint conclusion holds with more margin. The correction is nevertheless not an asymptotic remainder at the sample sizes of § 4.1, where it is still non-negligible at large .
| Quantity | Origin | Depends on seeds? |
| and | Proposition 1, closed form | No |
| (generic) | (4), closed form | No |
| (graded) | (7), closed form | No |
| (prediction) | (6), closed form | No |
| (leading order) | (5), closed form | No |
| (3), closed form | No | |
| Graded window | (8), closed form | No |
| , (non-abelian) | Proposition 8, closed form | No |
| Measured risk | sample statistic | Yes |
| Measured | argmin over grid | Yes |
| Measured | mean over resampled defect directions | Yes |
| Measured | median over seeds, discrete grid | Yes |
| Fitted exponent and standard error | OLS on sample statistics | Yes |
| and the fitted | sample statistics | Yes |
| Nonlinear test MSE | sample statistic | Yes |
Table 7. Which quantities are evaluated in closed form and which are estimated from samples. Closed-form quantities are exact up to floating-point precision and do not depend on the seed list.
Reproducibility. Every number, table, and figure is generated by one script, run_all.py, released with its results file (results.json) and the exact figure files used in the compiled PDF. The script is deterministic given a fixed seed list and reproduces the paper end to end in under four CPU-minutes on a single core; no GPU is used. Seeds are for the 40-seed experiments and for the nonlinear control; the defect-resampling experiment of Table 1 and the coupling fit draw from disjoint seed blocks, so the expectation over the training data and the expectation over the defect direction are never conflated (Appendix E). All seeds, together with a hash of the entire configuration, are written into results.json, so a stale cache cannot be silently reused. All data are synthetic and generated from (2); there is no external dataset, no pretrained checkpoint, and no hidden preprocessing. The constrained least-squares solver is a closed-form projection in the orbit basis of Proposition 1, so there is no iterative optimiser and no tolerance to tune; the only numerical safeguard is a relative ridge of (Appendix § 10), and a unit test asserts that removing it changes no reported number at the quoted precision. Per-architecture cost is : forming the sufficient statistics requires a pass over all samples, while the final solve is independent of . Every caption names the experiment, seeds, and hyperparameters , so the mapping from caption to script argument is one-to-one. No number is a placeholder, a rounded estimate, or a value carried over from another source; each is either a closed-form expression evaluated in the script or a sample statistic from the listed seeds.
Deviations from prediction. Two measured quantities sit away from their closed-form predictions, and both are finite-sample effects reproducible from the same script rather than failures of the theory. First, the ratio of measured to predicted grows from 1.02 at to 1.36 at (Table 2), where the crossover falls at and the coupling term is no longer negligible. Second, the fitted exponent is rather than . We note explicitly that this residual is a bias and not merely noise: is located as the first point of a discrete logarithmic grid at which the dense model wins, which systematically overshoots, and the coupling term pushes the large- crossovers further right. At 40 seeds the standard error of the slope is 0.026, so the 95% interval [−1.99, −1.89] excludes ; reporting agreement with the predicted exponent therefore rests on identifying the grid bias, not on the width of the error bar. Locating by interpolation between adjacent grid points, or by solving for the crossing of the fitted risk curves, removes most of the discrepancy.
References
- [1]Arash Behboodi, Gabriele Cesa, and Taco S. Cohen. A PAC-bayesian generalization bound for equivariant networks. In Advances in Neural Information Processing Systems, volume 35, 2022. doi: 10.52202/068431-0409. URL https://doi.org/10.52202/068431-0409.
- [2]Alberto Bietti, Luca Venturi, and Joan Bruna. On the sample complexity of learning under geometric stability. In Advances in Neural Information Processing Systems, volume 34, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/9ac5a6d86e8924182271bd820acbce0e-Abstract.html.
- [3]Michael M. Bronstein, Joan Bruna, Taco Cohen, and Petar Veličković. Geometric deep learning: Grids, groups, graphs, geodesics, and gauges. arXiv preprint arXiv:2104.13478, 2021. doi: 10.48550/arXiv.2104.13478. URL https://doi.org/10.48550/arXiv.2104.13478.
- [4]Taco S. Cohen and Max Welling. Group equivariant convolutional networks. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 2990–2999. PMLR, 2016. URL https://proceedings.mlr.press/v48/cohen16.html.arxiv.org/abs/1602.07576
- [6]Bryn Elesedy and Sheheryar Zaidi. Provably strict generalisation benefit for equivariant models. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 2959–2969. PMLR, 2021. URL https://proceedings.mlr.press/v139/elesedy21a.html.arxiv.org/abs/2102.10333
- [7]Yann LeCun, Bernhard Boser, John S. Denker, Donnie Henderson, Richard E. Howard, Wayne Hubbard, and Lawrence D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4):541–551, 1989. doi: 10.1162/neco.1989.1.4.541. URL https://doi.org/10.1162/neco.1989.1.4.541.
- [8]Song Mei, Theodor Misiakiewicz, and Andrea Montanari. Learning with invariances in random features and kernel models. In Proceedings of the 34th Conference on Learning Theory, volume 134 of Proceedings of Machine Learning Research, pages 3351–3418. PMLR, 2021. URL https://proceedings.mlr.press/v134/mei21a.html.
- [9]Behnam Neyshabur. Towards learning convolutions from scratch. In Advances in Neural Information Processing Systems, volume 33, 2020. doi: 10.48550/arXiv.2007.13657. URL https://doi.org/10.48550/arXiv.2007.13657.
- [10]Mircea Petrache and Shubhendu Trivedi. Approximation-generalization trade-offs under (approximate) group equivariance. In Advances in Neural Information Processing Systems, volume 36, pages 61936–61959, 2023. doi: 10.52202/075280-2708. URL https://doi.org/10.52202/075280-2708.
- [11]David W. Romero and Suhas Lohit. Learning partial equivariances from data. In Advances in Neural Information Processing Systems, volume 35, 2022. URL https://proceedings.neurips.cc/.arxiv.org/abs/2110.10211
- [12]Akiyoshi Sannai, Masaaki Imaizumi, and Makoto Kawano. Improved generalization bounds of group invariant/equivariant deep networks via quotient feature spaces. In Proceedings of the 37th Conference on Uncertainty in Artificial Intelligence, volume 161 of Proceedings of Machine Learning Research, pages 771–780. PMLR, 2021. URL https://proceedings.mlr.press/v161/sannai21a.html.
- [13]Rui Wang, Robin Walters, and Rose Yu. Approximately equivariant networks for imperfectly symmetric dynamics. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 23078–23091. PMLR, 2022. URL https://proceedings.mlr.press/v162/wang22aa.html.arxiv.org/abs/2201.11969
- [14]Maurice Weiler and Gabriele Cesa. General e(2)-equivariant steerable CNNs. In Advances in Neural Information Processing Systems, volume 32, pages 14334–14345, 2019. doi: 10.48550/arXiv.1911.08251. URL https://papers.nips.cc/paper_files/paper/2019/hash/45d6637b718d0f24a237069fe41b0db4-Abstract.html.DOI
- [15]Manzil Zaheer, Satwik Kottur, Siamak Ravnbakhsh, Barnabás Póczos, Ruslan Salakhutdinov, and Alexander J. Smola. Deep sets. In Advances in Neural Information Processing Systems, volume 30, pages 3391–3401, 2017. doi: 10.48550/arXiv.1703.06114. URL https://papers.neurips.cc/paper_files/paper/2017/hash/f22e4747da1aa27e363d86d40ff442fe-Abstract.html.DOI