Compositional Generalization Certificates via the Van Kampen Theorem
Karen Sargsyan
Abstract. A neural network trained on the multiplication table of the quaternion group can achieve perfect accuracy within each of two overlapping cyclic subgroups and predict every cross-region product wrong. In the quaternion example, exact local representations that agree on the shared subgroup but differ there from a fixed faithful target have matrix loss four in complex dimension two. We align local representations on their finite overlap by a chosen unitary basis change. The van Kampen universal property then extends the aligned pair uniquely to the amalgamated free product. This gluing is described by a homotopy pullback of representation groupoids. The resulting certificate bounds cross-region matrix error using local approximation errors, agreement with the target, overlap structure, and how faithfully the model composes its operators. For central cyclic overlap, we show the lower bound under uniform sampling on complete overlap orbits, where counts matching overlap eigenvalues. This provides a quantitative framework for assessing generalization to unseen compositions, showing what locally consistent operators guarantee and what additional conditions are needed for accurate prediction.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Reviewers agree this paper offers a novel perspective on compositional generalization failures. However, all three reviewers share a core concern: the bridge between this abstract setting and the real-world is insufficiently established.
As a theory submission, extensive new experiments or proofs of SGD learning dynamics are explicitly de-prioritized. To be strongly considered for acceptance, please focus your rebuttal on clarifying your theoretical scope and answering the prioritized questions below.
-
How does your framework distinguish a genuine topological obstruction from simple information-theoretic limitations in the training data?
-
When could standard neural networks be regarded as satisfying your quasi-representation assumptions? In what situations might this be testable?
-
What is the theoretical justification for the operator-trace probe? How do you distinguish probe failure from a genuine mixed stratum in the full-rank regime?
New experiments are not required. However, if you already have preliminary data, sharing it would strengthen the submission. Otherwise, briefly outline how future experiments could validate the probe.
Final justification
All reviewers agree this work provides an original and interesting theoretical investigation; the primary concern was that the presentation of the work was misleading with respect to the actual claims made, particularly the fact that the learned representation requires post-hoc verification rather than any a priori guarantees regarding grokking.
Reviewers feel the submissions is substantially strengthened after the author's rebuttal/revisions to clarify the scope and avoid misleading claims. While actual scores lean towards borderline reject, after discussion I believe the general sentiment seems to slightly favor acceptance (indeed, one reviewer explicitly says so and I believe their score is a mistake).
With the clarified focus from the rebuttal and hopefully further focus in future edits I believe this work offers useful insights into understanding compositional generalization.
Read meta-review
Meta-review
Reviewers agree this paper offers a novel perspective on compositional generalization failures. However, all three reviewers share a core concern: the bridge between this abstract setting and the real-world is insufficiently established.
As a theory submission, extensive new experiments or proofs of SGD learning dynamics are explicitly de-prioritized. To be strongly considered for acceptance, please focus your rebuttal on clarifying your theoretical scope and answering the prioritized questions below.
-
How does your framework distinguish a genuine topological obstruction from simple information-theoretic limitations in the training data?
-
When could standard neural networks be regarded as satisfying your quasi-representation assumptions? In what situations might this be testable?
-
What is the theoretical justification for the operator-trace probe? How do you distinguish probe failure from a genuine mixed stratum in the full-rank regime?
New experiments are not required. However, if you already have preliminary data, sharing it would strengthen the submission. Otherwise, briefly outline how future experiments could validate the probe.
Final justification
All reviewers agree this work provides an original and interesting theoretical investigation; the primary concern was that the presentation of the work was misleading with respect to the actual claims made, particularly the fact that the learned representation requires post-hoc verification rather than any a priori guarantees regarding grokking.
Reviewers feel the submissions is substantially strengthened after the author's rebuttal/revisions to clarify the scope and avoid misleading claims. While actual scores lean towards borderline reject, after discussion I believe the general sentiment seems to slightly favor acceptance (indeed, one reviewer explicitly says so and I believe their score is a mistake).
With the clarified focus from the rebuttal and hopefully further focus in future edits I believe this work offers useful insights into understanding compositional generalization.
1 comment
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies compositional generalization in group multiplication tasks, using the quaternion group as the main example. The central question is whether a model that learns multiplication within two overlapping subgroups can correctly predict products across the two subgroups. The paper uses Van Kampen-type gluing construction, together with finite group representation theory, to define a certificate from the representation type on the overlap. The main result is that if the learned representation lies in the correct overlap component, cross-region predictions are close to the target, while if it lies in a wrong component, the cross-region error has a positive lower bound. For in dimension , this lower bound gives an exact plateau height of . The significance is that the paper gives a concrete mathematical mechanism for a certain kind of compositional generalization failure, tying the failure to a discrete topological and algebraic choice rather than statistical noise.
Strengths and weaknesses
Strengths:
i) The paper provides an original perspective on compositional generalization through representation theory. Instead of treating cross-region failure as generic extrapolation error, it identifies a discrete stratum of the overlap representation as the key obstruction and uses this invariant to separate successful and failed generalization cases.
ii) The analysis of the example is clean and quantitatively precise. The paper derives an exact separation formula for the cross-region loss and obtains the plateau height in dimension , rather than only giving a qualitative explanation of the failure mode. The paper also attempts to go beyond by giving a structural classification of when this type of plateau can occur. In particular, it connects the existence of such failures to whether the overlap representation space has multiple connected components, although the strongest quantitative results are currently limited to central cyclic overlaps.
Weaknesses:
i) The scope of the claimed “neural network generalization certificate” is not fully specified. The main theorem applies to a model that assigns a unitary matrix to each group element and approximately preserves group multiplication, while standard supervised grokking networks usually output logits rather than unitary representations. The paper provides a post-hoc operator probe from embeddings, but it remains unclear for which architectures, objectives, or training regimes this abstraction is guaranteed to faithfully capture the learned neural representation.
ii) A more fundamental concern is that the multiplication data used for training do not uniquely determine the intended cross-region algebraic structure. In the example, knowing the multiplication tables of and , together with their agreement on the {}, still leaves multiple algebraic extensions compatible with the training data. Therefore, the wrong-stratum failure may partly reflect missing information about the cross-region relations, rather than a specifically neural-network generalization failure.
iii) The paper does not explain the learning dynamics, i.e., how a network would move from a wrong stratum to the correct one during training, but only provides an endpoint certificate. In the zero-shot split studied here, the training data contain no cross-region relations, so the training loss provides no signal to fix this error. Therefore, as a theory of neural network generalization, the result is incomplete: it only characterizes the error of a fixed learned representation but does not explain why or when a grokking transition should happen.
Questions
Q1: The main theorem is stated for a model that assigns unitary matrices to group elements and approximately preserves multiplication. Could the authors clarify for which neural architectures, losses, or training regimes a standard supervised grokking model is expected to satisfy this assumption, rather than only after a post-hoc embedding probe?
Q2: In the example, the subgroup multiplication of and , together with their agreement on {}, do not uniquely determine the intended cross-region relations. How should one distinguish the proposed wrong-stratum obstruction from the simpler issue that the training data do not sufficiently specify the full target group structure?
Q3: The paper describes grokking transitions as jumps between strata, but in the zero-shot split studied here the training loss has no cross-region signal. Could the authors clarify what learning dynamics or training conditions would cause a network to move from a wrong stratum to the correct one?
Limitations
The main limitation is that the connection between the proposed mathematical certificate and standard neural network learning remains somewhat indirect. The theory is stated for models that assign unitary matrices to group elements and approximately preserve multiplication, while standard supervised grokking models usually output logits. The bridge relies on an additional probe applied to learned embeddings after training. Moreover, in the setting, the within-subgroup multiplication data do not fully specify the cross-region relations, so the failure may partly reflect missing information in the training data rather than a specifically neural-network generalization failure. Finally, the paper characterizes fixed learned representations but does not explain the learning dynamics that would move a network from a wrong stratum to the correct one, and the strongest quantitative results are mainly established for central cyclic overlaps, which is a rather restricted class.
Final justification
For Q1, the proposed measurable certificate is useful, but it still makes the result conditional on a post-hoc verification of the learned representation rather than giving a general guarantee for standard supervised grokking architectures or training regimes. This helps clarify how to diagnose a trained model, but it does not fully bridge the gap between the theorem and ordinary neural-network learning.
For Q3, I appreciate the explicit clarification that the result is an endpoint diagnostic rather than a mechanism for learning dynamics. This is a helpful scoping correction, but it also confirms one of my main concerns: in the strict zero-shot setting, the training loss has no cross-region signal, so the theory does not explain why or when a network should move to the correct stratum during training. Therefore, while the rebuttal improves the presentation and addresses some ambiguity, I still view the contribution as a clean but limited theoretical diagnostic rather than a full theory of grokking or neural compositional generalization.
Based on the above, I have decided to maintain my original score.
Formatting concerns
I did not notice any major concerns about formatting, anonymity, or related compliance issues.
3 comments
Rebuttal
We thank the reviewer for a careful review. Q2 identifies something the submission should have addressed directly, and doing so produced two results we did not have at submission. Revisions are localized: one lemma, two remarks, one subsection, and scoping edits. No theorem, proposition or lemma changes.
Q1. Which architectures, losses or training regimes satisfy the assumption?
We convert the hypothesis into a measurement. A lemma we will add shows two quantities computable from the trained weights of any architecture with an embedding layer certify the quasi-representation parameter. With V the embedding row span and s_min(E) the smallest nonzero singular value, let ε' be the probe residual and ε'' the unitarity defect restricted to V and measured after Weyl whitening. Assuming ε'' < 1, the orthogonal polar factors of the fitted operators satisfy
ε ≤ (2+√2)(√|G| · ε'/s_min(E) + ε'').
The argument is a three-term decomposition of (L_gh − L_g L_h)E_k using the label identity (gh)k = g(hk), which invokes no property of the network but only that the same group element indexes the same row, followed by a column-to-operator-norm conversion. Restricting the chaining index to one region shows within-region residuals suffice, with one additional observable, the overlap discrepancy on C, and subject to |A| > rank(E_A), without which the region fit is exactly determined and the residual carries no information.
The certificate is thus conditional and verified per model, rather than a claim about a class of architectures. Where the embedding is too degenerate to certify, small s_min makes that visible. We will not claim standard training lands in the small-ε regime; the mechanistic literature documents that post-grokking networks empirically do [16, 3], and we cite it as precedent with the limitation stated.
We validated the readout against known representations on Q8 and Q16, recovering χ = +1.000000, −1.000000 and −0.500000 for the unfaithful, faithful and mixed strata with residuals at machine precision, and applied it to trained networks in the two-arm experiment of our reply to Reviewer 46z1 (Q3), where the measured residual stays at 1e-7.
Q2. Obstruction versus underdetermined training data
The reviewer is right that within-region data do not determine G, and the framework is better presented as the quantification of that underdetermination than as a denial of it. A subsection will make three points.
First, the data-compatible extensions are exactly Hom(G̃,U(d)) with G̃ = A ∗_C B; underdetermination is present whenever G̃ ≠ G, the generic case.
Second, the topological obstruction is strictly stronger, requiring in addition that Hom(C,U(d)) be disconnected. The two come apart, and we will give an example under Proposition 14, which covers C ≅ Z. Take G = Z with A = 2Z, B = 3Z, C = 6Z. The generator 6 is a³ for a = 2 and b² for b = 3, so G̃ = ⟨a,b | a³ = b²⟩, the trefoil knot group. Underdetermination is as large as it could be, yet C ≅ Z has connected representation space, so no stratum obstruction exists and the only barrier is the continuous alignment cost. Here A, B and C are all amenable, so the Ulam hypothesis holds, unlike the torus example where A = F₂ is non-amenable; the example isolates the absence of the discrete obstruction without a confounding failure of local correction.
Third, and operationally: underdetermination is a property of the data, whereas the stratum is a property of a particular trained model. We now demonstrate this. In a two-arm experiment at d = 4, two networks are trained on identical within-region data, with the embedding frozen at one of two representations and only the readout trained: the faithful real Q8 representation, or a representation W of G̃ with ρ_W(i) = R ⊕ I₂ and ρ_W(j) = R ⊕ diag(−1,1), R the 90-degree rotation. Both generators have order 4, so W is injective on A and B and assigns distinct matrices to all six elements of A ∪ B; its generators commute, so W does not descend to Q8. Both networks reach 100% within-region accuracy, the probe reads χ = −1.0000 and +0.0000 across three seeds, and the cross-region Frobenius error against the faithful target is 0 and 8. The value 8 = 2d is provable rather than fitted: ρ_W(i)ρ_W(j) and its product with ρ_W(−1) are symmetric, while ρ_F(k)² = −I makes ρ_F(k) antisymmetric, so the two are Frobenius-orthogonal and the average over the four cross pairs is 2d, invariant under conjugation. Identical data, identical local accuracy, different strata, different cross-region error; a data-level account cannot make this distinction. The stratum was set by initialisation and held fixed rather than emerging from training, and we will state as open whether SGD selects a wrong stratum.
The related concern, that the failure may reflect missing information rather than a genuine obstruction, is further sharpened by a result the review prompted. Under label supervision the readout must separate A's elements, so ρ|_A is injective. With C = {e,c}, c of order 2 and c ∈ A, this gives ρ(c) ≠ I while ρ(c)² = I forces eigenvalues into {±1}, hence a −1 eigenvalue and m ≥ 1: the fully unfaithful stratum is unreachable. The obstruction is therefore not an artifact of a configuration training data could never produce. At d = 2 the permitted stratum m = 1 gives the same value 4 against the faithful target, by a distinct mechanism: ρ(−1) has distinct eigenvalues, so any square root commutes with it and the predictor is forced abelian, while ρ_t(k)² = −I makes the target anti-Hermitian; the two are Frobenius-orthogonal and the error is exactly 2d. Verified by brute force over 48,000 sampled predictors per stratum.
One consequence: the measured values, 4 at d = 2 and 8 at d = 4, exceed c = 2(d−r_max), which gives 2 and 4. In both cases Proposition 11 is a valid but conservative bound, since c takes an infimum over Hom(G̃,U(d)) for the target as well, attained by a diagonal G̃-representation rather than a genuine Q8 one.
Q3. Learning dynamics of escaping a wrong stratum
We concede that the result is a diagnostic, not a mechanism. In the strict zero-shot split the plateau is permanent, since the training loss carries no cross-region signal, and any transition observed in classical grokking experiments is driven by the cross-region samples present in random splits. We will state in the introduction that the paper characterizes endpoints, so that if a transition occurs it is diagnosable as a stratum jump, and that we claim nothing about when or why SGD moves.
We can be specific about how the certificate meets existing dynamics results. The usage-weighted order parameter is a linear functional of the irrep power spectrum, χ_w(t) = Σ_ρ w_ρ(t)·χ_ρ(c)/d_ρ, where χ_ρ(c)/d_ρ = ±1 because c is central of order 2 and Schur gives ρ(c) = ±I per irrep. Marchetti et al. [15] prove two-layer networks acquire irreps one at a time in an order determined by the Fourier statistics of the encoding, producing a staircase in the loss, and measure w_ρ(t) directly. Their result supplies the timing of acquisition and ours the resulting cross-region gap. Their task is sequential cumulative composition within a single group rather than a subgroup decomposition with cross-region pairs held out, so bridging the two is future work.
On clarity. The additions supply signposting where the main body was thinnest: the underdetermination subsection answering Q2, an early endpoint-versus-dynamics scope statement, and an explicit remark on what is merely π₀ versus genuinely homotopy-theoretic, detailed in our reply to Reviewer E9jZ. We will also harmonize three notational variants of the overlap character, in §3.6, one sentence of the Discussion, and Appendix H. We hope this addresses the clarity criterion for theoretical contributions, which asks that the type of contribution be signposted early. If specific passages were unclear beyond these, we would value pointers and will address them in this thread.
Proposed revisions. Underdetermination subsection with the trefoil example; measurability lemma with its within-region variant and overdetermination condition; m ≥ 1 scope result and the abelian-forcing remark; the relation between χ_w and the power spectrum; scoping edits to abstract, introduction and limitations; harmonization of the overlap-character notation across §3.6, the Discussion and Appendix H.
Thank you for the detailed rebuttal. I appreciate that the response directly addresses the underdetermination issue raised in Q2. The proposed subsection distinguishing data-level underdetermination from model-level stratum choice, together with the proposed two-arm experiment, would make the scope of the result clearer and would improve the paper.
However, my main concerns are only partially resolved. For Q1, the proposed measurable certificate is useful, but it still makes the result conditional on a post-hoc verification of the learned representation rather than giving a general guarantee for standard supervised grokking architectures or training regimes. This helps clarify how to diagnose a trained model, but it does not fully bridge the gap between the theorem and ordinary neural-network learning.
For Q3, I appreciate the explicit clarification that the result is an endpoint diagnostic rather than a mechanism for learning dynamics. This is a helpful scoping correction, but it also confirms one of my main concerns: in the strict zero-shot setting, the training loss has no cross-region signal, so the theory does not explain why or when a network should move to the correct stratum during training. Therefore, while the rebuttal improves the presentation and addresses some ambiguity, I still view the contribution as a clean but limited theoretical diagnostic rather than a full theory of grokking or neural compositional generalization.
Based on the above, I have decided to maintain my original score.
We thank the reviewer for engaging with the rebuttal and for the clear statement of what remains. We accept the characterisation — an endpoint diagnostic, conditional on a measurement made on the trained model, not a theory of learning dynamics — and the revisions will scope the paper accordingly, including the abstract. The review produced two results the submission did not contain, and we are grateful for it.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies whether compositional generalization failures can be explained from a topological perspective. The authors formulate the problem in a representation-theoretic setting where a group (G=A *_C B) is decomposed into local regions glued over an overlap (C), and argue that disconnected components of the overlap representation space may induce persistent cross-region errors. Based on this perspective, the paper derives compositional generalization certificates and proposes an interpretation of grokking plateaus as optimization trajectories trapped in incorrect topological strata.
Strengths and weaknesses
I found the main perspective of the paper novel and interesting. Relating compositional failures to the topology of overlap representation spaces, and interpreting connected components as different compositional strata, is a creative idea. The paper develops a coherent theoretical framework around this perspective and derives nontrivial guarantees on cross-region generalization.
My main reservation is the gap between the abstract representation-theoretic setting studied in the paper and modern neural networks trained by SGD. The theory is established under assumptions such as quasi-representations, Ulam stability and overlap alignment, but the paper does not provide sufficient evidence that modern neural networks actually operate in this regime. In particular, I am not yet convinced that grokking in neural networks is caused by the topological obstruction identified here.
The paper shows that if a learned model admits the proposed representation structure, topological obstructions may arise and induce persistent cross-region errors. However, it remains unclear why neural networks trained by SGD should satisfy these assumptions, or why optimization trajectories should correspond to transitions between different strata.
Overall, I believe the paper establishes an interesting theorem and proposes a compelling structural hypothesis about compositional failure. I believe the theorem more than I believe the story, but I think the theorem itself is interesting enough that the work is worth discussing by the community.
Questions
-
The paper interprets grokking plateaus as optimization trajectories trapped in incorrect strata. Is there any empirical evidence supporting this interpretation? For example, are there observable quantities that undergo discrete changes during training?
-
The current theory relies on quasi-representations, Ulam stability and overlap alignment. Under what circumstances do the authors expect these assumptions to hold for modern neural networks?
-
I am curious about the necessity of the homotopy-theoretic machinery. Could the main conclusions already be obtained by studying connected components of the overlap representation space alone?
Limitations
Yes
Final justification
The rebuttal substantially improves my assessment of the paper. The authors clarified that the main contribution is an endpoint diagnostic under a quasi-representation abstraction rather than a complete theory of neural network grokking dynamics. The additional discussion distinguishing data underdetermination from model-level stratum selection addresses an important conceptual concern, and the proposed measurability results strengthen the connection between the abstract framework and learned models.
However, an important limitation remains: the framework does not explain why SGD-trained neural networks enter particular strata or how transitions between strata occur during optimization. The quasi-representation condition is currently verified post hoc rather than derived from training dynamics, leaving the connection to practical neural network grokking incomplete.
Overall, I view this work as an original and technically interesting theoretical contribution. While the missing learning-dynamics explanation limits the scope of its claims, the mathematical framework provides valuable insights into compositional generalization failures. I therefore maintain my borderline accept recommendation.
Formatting concerns
None
1 comment
Rebuttal
We thank the reviewer for a clarifying review. "I believe the theorem more than I believe the story" is a fair summary of the submission as written, and our revisions aim to make the story exactly as strong as the theorem and no stronger.
Q1. Observable quantities that change discretely
Two, both computable from weights with no held-out data. First, the overlap character χ = (r−2m)/r. It is canonical rather than heuristic: by Definition 3 the stratum is a unitary conjugacy class of ρ|_C, and for finite C the character is a complete invariant of that class, the fact invoked in Lemma 17. It is injective in m at fixed rank, so it must be reported with r. Second, the embedding rank. Where the embedding stays full rank and concentrates mass rather than losing rank, the unweighted trace is forced to zero, and we will add a usage-weighted χ_w: for a cyclic region the isotypic decomposition is the DFT of the embedding along the group index, giving χ_w = Σ_k w_k(−1)^k with w_k the Fourier mass, which needs no rank collapse.
We validated this against known representations. On Q8 and Q16, with E_h = ρ(h)v₀, the probe recovers χ = +1.000000 (unfaithful), −1.000000 (faithful), −0.500000 (mixed), residuals at machine precision.
We also applied it to trained networks; see our reply to Reviewer 46z1 (Q3). Two networks are trained on identical within-region data, with the embedding frozen at one of two representations and only the readout trained: the faithful real Q8 representation, or a representation of G̃ = Z/4 ∗_{Z/2} Z/4 injective on both regions but not descending to Q8. Both reach 100% within-region accuracy; the probe reads χ = −1.0000 and +0.0000 across seeds; the cross-region Frobenius error against the faithful target is 0 and 8, the latter provable by a symmetry argument and confirmed numerically. The invariant is thus discriminating as well as measurable: it separates two networks indistinguishable on their training data. The stratum was set by initialisation and held fixed rather than emerging from training, and we will state as open whether SGD selects a wrong stratum.
On dynamics, χ_w is a linear functional of the irrep power spectrum, χ_w(t) = Σ_ρ w_ρ(t)·χ_ρ(c)/d_ρ, with χ_ρ(c)/d_ρ = ±1 because c is central of order 2 and Schur gives ρ(c) = ±I per irrep. Marchetti et al. [15] prove two-layer networks acquire irreps one at a time in Fourier-statistic order, producing a staircase, and measure w_ρ(t) directly. Their result supplies the timing and ours the gap, so a movement in χ_w should coincide with acquisition of the first irrep faithful on the overlap element. Their setting is sequential composition within a single group rather than a subgroup decomposition, so bridging the two is future work. The prediction that χ_w moves discretely rather than drifting remains untested, and we will label it a prediction.
Q2. When do the assumptions hold?
We reframe the assumption as a measurement. A lemma we will add shows the probe residual ε' and the unitarity defect ε'', restricted to the embedding row span and measured after Weyl whitening, certify the quasi-representation parameter via
ε ≤ (2+√2)(√|G| · ε'/s_min(E) + ε''),
with s_min(E) the smallest nonzero singular value, also observable. The proof is a three-term decomposition of (L_gh − L_g L_h)E_k using only the label identity (gh)k = g(hk), which invokes no property of the network, then a column-to-operator-norm conversion. A within-region variant suffices, subject to |A| > rank(E_A), so no cross-region labels are needed. In the two-arm experiment the measured residual stays at 1e-7, so the hypothesis holds there by measurement rather than assumption.
The honest statement is not that SGD produces quasi-representations, but that whether a given network is one can be checked, and the certificate applies when the check passes. Where the embedding is too degenerate to certify, small s_min makes that visible rather than silent. We prove nothing about why SGD enters or leaves a stratum, and will rescope the abstract accordingly.
We will also add a scope result. Under label supervision the readout must separate A's elements, so ρ|_A is injective; with C = {e,c}, c of order 2, this forces ρ(c) ≠ I with ρ(c)² = I, hence a −1 eigenvalue and m ≥ 1. The fully unfaithful stratum is unreachable by a label-supervised network with a representation-factoring readout. This does not weaken the result: at d = 2 the permitted stratum m = 1 gives the same value 4 against the faithful target, because ρ(−1) has distinct eigenvalues there, forcing the predictor abelian, and an abelian predictor is Frobenius-orthogonal to the non-abelian target. Verified by brute force over 48,000 sampled predictors.
Q3. Is the homotopy-theoretic machinery necessary?
The division of labour is three-way rather than a choice between topology and none.
Character theory alone yields the gap c = 2(d−r_max). A reader interested only in the plateau's size can obtain it from character orthogonality with no topology.
The classical van Kampen theorem, as the pushout property of the amalgamated free product, is load-bearing for both halves, including the obstruction. Part (B) is not a statement about arbitrary matrices; it concerns the distance from the target to the compositional predictor, and the universal property is what makes that predictor exist and be unique. Without it the predictor would be a non-canonical selection among data-compatible extensions, the lower bound would need a worst-case argument over that selection, and the perturbation estimate would not close.
The ∞-categorical upgrade replaces exact matrix equality on the overlap by agreement up to conjugation. A point of the homotopy pullback is a triple (ρ_A, ρ_B, u) with u a conjugating unitary and ℓ = ‖u − I‖ the alignment cost. This is the right condition for independently trained modules using different internal coordinates, and it supports §4.1; the strict pullback would impose a condition no pair of separately trained modules satisfies.
Components give the numerology, the pushout gives the certificate, the homotopy refinement gives soft agreement. We will state this division explicitly in the introduction.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a theoretical framework for explaining failures of compositional generalization in group multiplication tasks using finite-group representation theory and algebraic topology. The core setting is as follows: given a group , where and are two subgroups, the model is trained only on multiplication examples within or within , and is tested on cross-region multiplication between and .
The main example is the quaternion group , with , , and overlap . The authors abstract the locally learned structure as an approximate unitary representation , and use the van Kampen theorem / homotopy-pullback viewpoint to construct a compositional predictor from the local representations of and .
The main theorem provides a stratified generalization certificate: if the two local representations can be corrected and aligned on the overlap, they induce a compositional predictor defined on . If the predictor's overlap stratum matches the target stratum, then cross-region prediction is close to the target; if the stratum is wrong, then the target loss is bounded away from zero by a positive gap.
For with , the paper computes a wrong-stratum separation of . More generally, for central cyclic overlap, it derives the gap formula .
Overall, I view the paper as a theory contribution about approximate group representations and topological obstructions to compositional extension, rather than a complete explanation of neural-network training dynamics.
Strengths and weaknesses
Strengths
-
The paper has a clear theoretical structure and demonstrates strong mathematical sophistication. It builds a relatively complete framework around group representations, amalgamated free products, homotopy pullbacks, and overlap representation strata to describe the discrete obstruction that may arise when locally correct modules are composed globally.
-
The paper offers a novel representation-theoretic and topological perspective. It explains “local correctness but global compositional failure” as the overlap representation landing in the wrong connected component, rather than as a consequence of continuous error, insufficient training, or optimization failure. This is conceptually insightful.
-
The example is concrete and helps illustrate the core mechanism. The paper provides not only intuition but also an explicit wrong-stratum gap calculation. In particular, for , the paper obtains a plateau height of and explains the origin of this gap through the difference between a constant sign pattern and the alternating sign pattern required by the faithful target.
-
The theorem and proof structure are relatively complete. The main theorem, the gap calculation, the extension to central cyclic overlaps, and the task-family dichotomy form a coherent theoretical chain.
-
The paper is original. Using the van Kampen / homotopy-pullback viewpoint and overlap strata to characterize compositional generalization failure is uncommon in the existing grokking and mechanistic interpretability literature. The main contribution lies in its mathematical abstraction and theoretical modeling.
Weaknesses
-
The connection between the paper and ordinary neural networks remains insufficiently established. The formal object in the main theorem is a local approximate unitary representation , so the results apply to systems that can already be interpreted as quasi-representations. However, standard supervised neural networks typically output logits or class probabilities, rather than unitary matrices. Although the paper proposes fitting an operator from learned embeddings to connect ordinary networks to the theoretical framework, it does not experimentally validate whether this probe can stably recover an approximate group representation from trained networks, nor does it prove that the fitted satisfies quasi-representation conditions such as . In addition, the plateau height is computed under a Frobenius squared loss in matrix representation space, rather than under cross-entropy, accuracy, or error, which are standard in group-multiplication classification tasks. Thus, the paper has not yet established the key bridge from ordinary neural-network outputs to the quasi-representation abstraction and then to actual grokking loss curves. This makes the theoretical result clear as a mathematical certificate, but its explanatory power for real neural-network grokking plateaus remains insufficiently supported.
-
A limitation is that the link between the theory and actual neural-network grokking dynamics is not empirically validated. While this is a theoretical paper, its motivation concerns grokking plateaus in neural networks. A small experiment on the proposed split, checking the quasi-representation assumption, the stratum probe, the change in , and the predicted plateau height, would make the applicability of the theory to standard networks much clearer. Without this, the mathematical results remain less directly connected to practical training dynamics.
-
The paper also does not analyze learning dynamics. It does not explain why SGD would enter a wrong stratum, why it would remain there, or when it would jump to the right stratum. The paper itself acknowledges that, in the strict zero-shot compositional split, the wrong stratum receives no training signal that would drive the model away from it, so the plateau would be permanent. Therefore, the claim that “the grokking transition is the discrete jump between strata” is currently more of a diagnostic interpretation than a proven learning-dynamics mechanism. This phrasing may lead readers to believe that the paper explains the actual grokking dynamics of neural-network training, so the authors should more clearly and earlier distinguish a conditional representation-theoretic certificate from a theory of neural-network training.
-
The neural-network language in the abstract and introduction is rather strong, and may give readers the impression that the paper explains actual neural-network grokking dynamics. However, what the paper proves concerns endpoint properties of approximate unitary representations. As a mathematical framework, the paper has originality and potential value; as an explanation of neural grokking, however, it currently lacks a theoretical or experimental bridge from ordinary neural networks to the quasi-representation setting, and it does not validate whether the embedding probe can reliably read out the relevant stratum. Its empirical support is therefore still insufficient.
Overall, the paper is mathematically clear and original, with concrete results for and central cyclic overlaps. The main limitation is the insufficiently justified bridge from the mathematical certificate to ordinary neural-network training. The paper would be stronger if the authors could make this bridge more explicit, either by giving a clearer theoretical argument for when trained networks induce quasi-representations and reliable stratum probes, by providing supporting evidence, or by reframing the contribution more narrowly as a conditional certificate for representation-like systems rather than as a direct account of neural-network grokking dynamics.
Questions
-
The formal object in the main theorem is a local approximate unitary representation , whereas standard supervised neural networks usually output logits or class probabilities. Could the authors clarify under what conditions a standard MLP or Transformer trained on this task can be regarded as inducing an object satisfying the quasi-representation assumptions? In particular, can the authors provide theoretical or empirical evidence that the fitted operator satisfies ?
-
In Section 3.6, the paper proposes a probe that fits an operator from the learned embedding and uses it to read out the stratum. Could the authors clarify the reliability of this probe? In trained networks, is stable, approximately unitary, and able to reliably distinguish the wrong stratum from the faithful stratum? Moreover, when the embedding is in the full-rank regime and the trace probe degenerates, how can one distinguish probe degeneracy from a genuine mixed stratum?
-
The paper does not provide experimental results. Could the authors add a minimal experiment, for example by training a standard MLP or Transformer on the within-region split and testing whether: within-region accuracy approaches ; cross-region loss exhibits the predicted plateau; undergoes a discrete jump; and the wrong-stratum loss is close to the theoretical prediction ? Such experiments would directly test whether the theory applies to ordinary neural networks.
-
The plateau height is derived under a Frobenius squared loss in matrix representation space, whereas standard group-multiplication classification tasks typically use cross-entropy, accuracy, or error. Could the authors explain the relationship between this matrix loss and the training or test loss of ordinary neural networks? If there is no direct correspondence, I suggest weakening the claim that the “plateau height is exactly ” for actual neural-network loss curves.
-
The paper describes the grokking transition as a discrete jump from the wrong stratum to the correct stratum, but it does not analyze SGD dynamics. Could the authors clarify whether this is a proven learning-dynamics mechanism or a post-hoc diagnostic under the quasi-representation assumption? If it is the latter, I suggest weakening the statement to something like: “if such a transition occurs, it can be diagnosed as a stratum jump.”
-
Since , within-region relations alone do not uniquely determine the cross-region relations of . Could the authors more clearly distinguish two issues: whether the local data are sufficient to identify the target group structure, and whether the neural network’s inductive bias selects the correct quotient relation? This distinction is not sufficiently clear in the current version.
Limitations
The authors do discuss several limitations, such as the fact that the exact gap formula is mainly restricted to central cyclic overlaps and that the paper does not analyze learning dynamics. However, I think the limitations section should more explicitly acknowledge the central machine-learning limitation: the paper does not prove that ordinary neural networks satisfy the quasi-representation assumption after training, nor does it validate that the proposed embedding probe can reliably recover the relevant stratum.
In addition, the paper should clearly state that the plateau height is a result under the quasi-representation abstraction and the matrix-valued Frobenius loss, rather than a quantity that directly corresponds to standard cross-entropy or classification loss.
Formatting concerns
no
1 comment
Rebuttal
We thank the reviewer for a precise review. The six questions identify where the argument from the certificate to trained networks needs strengthening, and produced two results we did not have at submission, under Q3 and Q4. Changes are localized: one lemma, two remarks, one subsection, plus scoping edits. No theorem, proposition or lemma changes.
Meta-review orientation. The three prioritized questions are answered here: obstruction versus underdetermination in Q6, conditions for the quasi-representation hypothesis in Q1, probe justification and the full-rank regime in Q2. Q3 reports data, which the meta-review invited but did not require.
Q1. When is a network a quasi-representation?
The hypothesis is a measurable quantity, not an assumption. New lemma: let E have rows E(h), V its row span, r = dim V, s_min(E) the smallest nonzero singular value. Define from weights ε' := max ‖E_gh − L_g E_h‖, the probe residual, and ε'' := max ‖(L_g* L_g − I)|_V‖, the unitarity defect on V measured after Weyl whitening. The restriction to V is needed because the minimal-norm fit annihilates its complement; the whitening because the defect is not conjugation-invariant.
Assume ε'' < 1. Each L_g|_V has orthogonal polar factor U_g with ‖L_g|_V − U_g‖ ≤ ε''. For g,h in one region and any k,
(L_gh − L_g L_h)E_k = (L_gh E_k − E_(gh)k) + (E_g(hk) − L_g E_hk) + L_g(E_hk − L_h E_k),
where E_(gh)k = E_g(hk) is an identity of group labels, invoking no property of the network. Each term is at most ε' up to ‖L_g|_V‖ ≤ √(1+ε''). Summing over columns, inverting on V via s_min(E), and transferring to the polar factors gives an ε-quasi-representation with
ε ≤ (2+√2)(√|G| · ε'/s_min(E) + ε'').
Also L_e|_V = I_V exactly, so Definition 5's identity condition is free; and restricting the chaining index to one region shows within-region residuals suffice, given one further observable ε₀, the overlap discrepancy between region probes, and the condition |A| > rank(E_A), without which the fit is exactly determined and the residual uninformative. No cross-region labels are needed.
We do not claim SGD produces this regime. The precedent is irrep-aligned post-grokking networks [16, 3].
Q2. Probe justification, reliability, and full rank
The probe is a trace because the stratum is, by Definition 3, a unitary conjugacy class of ρ|_C, and for finite C the character is a complete invariant of that class — the fact invoked in Lemma 17. The operator-trace probe is therefore the canonical and complete stratum readout: basis-free, hence insensitive to a network's internal coordinates, and quantitative via Lemma 17, which bounds the character difference by d times the pointwise deviation.
On full rank, Remark 20 is mis-framed. With χ = (r−2m)/r as in §3.6, χ is injective in m at fixed r, so the probe never conflates strata at a given rank; across ranks it does, since χ = 0 arises at (r=2,m=1) and (r=6,m=3), so χ must be reported with r. At full rank L_(−1) carries the regular representation of the involution and χ = 0 is that stratum's correct character, not a failed readout. We will correct Remark 20 and note the degeneracy sits at r = the number of embedded elements, which in the within-region split is 6, not |G| = 8, since k and −k never appear.
What full rank obscures is which subrepresentation carries the prediction: attribution, not degeneracy. We will define a usage-weighted χ_w. For a cyclic region the isotypic decomposition is the DFT of the embedding along the group index, so χ_w = Σ_k w_k(−1)^k with w_k the Fourier mass. This needs no rank collapse. We present it as a diagnostic refinement, with full perturbation analysis left to future work.
Q3. Minimal experiment
Part (B) is conditional, so we set the antecedent rather than searching for it.
Validation: with E_h = ρ(h)v₀ the probe should recover ρ exactly. On Q8 and Q16 it returns χ = +1.000000 (unfaithful), −1.000000 (faithful), −0.500000 (mixed), with residuals of order 1e-16.
Two-arm experiment, d = 4. Arm F uses the faithful real Q8 representation. Arm W uses a representation of G̃ = Z/4 ∗_{Z/2} Z/4 with ρ_W(i) = R ⊕ I₂ and ρ_W(j) = R ⊕ diag(−1,1), R the 90-degree rotation. Both generators have order 4, so both arms are injective on A and B; all six elements of A ∪ B receive distinct matrices; ρ_W(−1) = diag(−1,−1,1,1) has m = 2. W's generators commute, so W does not descend to Q8, whereas ‖[ρ_F(i),ρ_F(j)]‖ = 4.
The cross-region error of W against the faithful target is exactly 2d = 8, and this is elementary rather than numerical: P = ρ_W(i)ρ_W(j) = diag(−1,−1,−1,1) and MP are symmetric, while Q = ρ_F(k) satisfies Q² = −I hence Qᵀ = −Q. For real symmetric P and antisymmetric Q, tr(PQ) = 0, so ‖P−Q‖²_F = ‖MP+Q‖²_F = 8 and the average over the four cross pairs is 8, invariant under conjugation. Numerical minimisation over O(4) returns 8.0000 for W and 0.0000 for F.
Training both arms on identical within-region data, with the embedding frozen at each representation and only the readout trained, both reach 100% within-region accuracy, the probe residual stays at 1e-7, and χ = −1.0000 for F versus +0.0000 for W across three seeds.
Identical data, identical within-region accuracy, different strata, cross-region error 0 versus 8. The stratum was set by initialisation and held fixed, not emergent; we have not exhibited a network in which SGD selects a wrong stratum, and will state this in the limitations. Code will be released with the paper.
Q4. Frobenius loss versus cross-entropy and accuracy
Agreed, and we will scope it. This question produced a second result.
Under label supervision the readout must separate A's elements, so ρ|_A is injective. With C = {e,c}, c of order 2 and c ∈ A, this gives ρ(c) ≠ I while ρ(c)² = I forces eigenvalues into {±1}, so ρ(c) has a −1 eigenvalue and m ≥ 1. The m = 0 stratum is unreachable by a label-supervised network whose readout factors through the representation.
This does not weaken the result. At d = 2 the permitted stratum m = 1 gives the same value 4 against the true faithful target: ρ(−1) has distinct eigenvalues, so any X with X² = ρ(−1) commutes with it and X, Y are simultaneously diagonal, forcing the predictor abelian; its cross value is Hermitian while ρ_t(k)² = −I makes the target anti-Hermitian, so the two are Frobenius-orthogonal and the error is 2d. Brute force over 48,000 sampled predictors gives 4.0000 at m = 0 and m = 1, and 0 at m = 2.
Consequently the measured 4 at d = 2 exceeds c = 2(d−r_max) = 2, and the measured 8 at d = 4 exceeds c = 4. In both cases Proposition 11 is valid but conservative, because c takes an infimum over Hom(G̃,U(d)) for the target too, attained by a diagonal G̃-representation rather than a genuine Q8 one.
We will scope "height exactly 4" to Frobenius loss under the abstraction, and note that classification-level consequences require the readout to factor through the predicted representation. We do not establish a correspondence with measured cross-entropy or accuracy curves; that is outside what the certificate provides.
Q5. Mechanism or diagnostic
A diagnostic. We adopt the reviewer's phrasing: if such a transition occurs, it can be diagnosed as a stratum jump. The abstract sentence will be rewritten and the endpoint-versus-dynamics distinction moved into the introduction.
χ_w is a linear functional of the irrep power spectrum, χ_w(t) = Σ_ρ w_ρ(t)·χ_ρ(c)/d_ρ, with χ_ρ(c)/d_ρ = ±1 since c is central of order 2 and Schur gives ρ(c) = ±I per irrep. Marchetti et al. [15] prove two-layer networks acquire irreps one at a time in Fourier-statistic order, producing a staircase, and measure w_ρ(t) directly. Their result supplies the timing, ours the gap. Their task is sequential composition within a single group rather than a subgroup decomposition, so bridging the two is future work.
Q6. Identifiability versus inductive bias
Distinct; a subsection will separate them. Data underdetermine G whenever G̃ ≠ G, with compatible extensions exactly Hom(G̃,U(d)); which extension a network implements is its stratum, readable from weights. The Q3 experiment is a direct instance.
They also come apart formally. Under Proposition 14, which covers C ≅ Z, take G = Z with A = 2Z, B = 3Z, C = 6Z. The generator 6 is a³ for a = 2 and b² for b = 3, so G̃ = ⟨a,b | a³ = b²⟩, the trefoil knot group: underdetermination is maximal, yet Hom(Z,U(d)) is connected, so no stratum obstruction arises. Here A, B and C are all amenable, so the Ulam hypothesis holds, unlike the torus example where A = F₂ is non-amenable.
A prediction on untested ground. Proposition 14 predicts the obstruction can occur for D_n with n even, where the centre is {e, r^{n/2}}, and cannot for n odd, where the centre is trivial. The representation-theoretic study of group composition in [3] covers C113, C118, D59, D61, S5, S6 and A5, and its treatment of dihedral groups explicitly restricts to odd n. The regime our dichotomy identifies as the one where plateaus are possible has therefore not been tested. We will state this as a concrete prediction the framework makes and existing work has not probed.
Limitations. We will add: that we do not prove networks satisfy the hypothesis after training, only that it is measurable via the lemma; that "height 4" is a Frobenius quantity under the abstraction; the m ≥ 1 scope statement; and that Q3 sets the stratum by initialisation, so whether SGD selects a wrong stratum is open.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for the clear prioritization. Answers below; full detail in the reviewer threads.
Q1. Obstruction versus underdetermination. The two are distinguished by what they are properties of: underdetermination is a property of the data, the stratum a property of a particular trained model, readable from its weights — two networks trained on identical data can occupy different strata, exhibited below, which a data-level account cannot predict. They are also provably inequivalent. Underdetermination holds whenever G̃ = A ∗_C B ≠ G; the obstruction requires in addition that Hom(C, U(d)) be disconnected. Separating example, to be added under Proposition 14: G = Z with A = 2Z, B = 3Z, C = 6Z gives the trefoil group G̃ = ⟨a, b | a³ = b²⟩ — underdetermination maximal, Hom(Z, U(d)) connected, no obstruction — and A, B, C are all amenable, so the Ulam hypothesis holds, unlike the torus example where A = F₂ is non-amenable. (f1Bj Q2; 46z1 Q6.)
Q2. When the hypothesis holds, and testability. We replace the assumption by a measurement: from weights, the probe residual ε' and the unitarity defect ε'' (restricted to the embedding row span V, Weyl-whitened) give, for ε'' < 1, ε ≤ (2+√2)(√|G| · ε'/s_min(E) + ε''). The proof uses only the label identity (gh)k = g(hk), no property of the network; a within-region variant needs no cross-region labels given |A| > rank(E_A). The certificate is thus conditional on a check, and small s_min(E) makes an uncertifiable embedding visible rather than silent. (46z1 Q1; f1Bj Q1.)
Q3. Probe justification and full rank. The stratum is a unitary conjugacy class of ρ|_C (Definition 3), and for finite C the character is a complete invariant of that class (Lemma 17) — so the trace is the canonical and complete readout, basis-free and quantitative. On the second half, Remark 20 is mis-framed: with χ = (r − 2m)/r, χ is injective in m at fixed r, and at full rank χ = 0 is the correct character of that stratum rather than a failed readout. We will correct it. What full rank obscures is which subrepresentation carries the prediction — attribution, not degeneracy — for which we define a usage-weighted χ_w = Σ_k w_k(−1)^k requiring no rank collapse. (46z1 Q2.)
Data. The probe recovers χ = +1.0, −1.0, −0.5 on constructed Q8 and Q16 representations (residuals 1e-16). In a two-arm experiment at d = 4, two networks train on identical within-region data with embeddings frozen at the faithful real Q8 representation and at a G̃-representation injective on both regions but not descending to Q8: both reach 100% within-region accuracy, probe residual 1e-7, χ = −1.0 versus +0.0 across three seeds, cross-region Frobenius error 0 versus 8, the latter provable by a symmetry argument rather than fitted. The stratum was set by initialisation; we have not exhibited SGD selecting a wrong stratum and will state this as open. (46z1 Q3.)
Scope. We accept the framing did not signpost scope clearly enough. We will state "height 4" as a Frobenius quantity under the quasi-representation abstraction, move the endpoint-versus-dynamics distinction into the introduction, and add that label supervision forces m ≥ 1, bounding which strata a trained network can occupy.