TL;DR
Researchers have introduced FORGE, a neural architecture that accelerates "grokking" (delayed generalization) by over 10x. Unlike standard models that rely on sparse Fourier features to solve modular math, FORGE uses a "non-Fourier" mechanism to explicitly discover algebraic axioms like associativity, allowing it to master complex non-abelian groups where traditional MLPs fail entirely.
What Problem Does This Paper Address?
In the world of deep learning, "grokking" is a fascinating phenomenon where a model suddenly shifts from memorizing training data to perfect generalization, often long after it appeared to have overfit. Previous research suggested that models grok modular arithmetic by discovering sparse Fourier representations—essentially "finding the circle" in the numbers.
However, this explanation is limited to cyclic groups (like a clock). The authors of this paper ask: Can we build a model that discovers algebraic structure more generally? Can it handle non-abelian groups (where $a \times b \neq b \times a$) and accelerate the grokking process across different domains like physics and chemistry?
Methods
The core innovation is the Differentiable Algebra Discovery (DAD) module. Instead of a standard linear layer, the DAD module implements a low-rank bilinear product: $$\mu(a, b) = \sum_{r=1}^R W_r(U_ra \odot V_rb)$$ This structure is mathematically equivalent to a CP factorization of a group multiplication tensor.
To guide the model, the authors introduce three "structural losses" that penalize deviations from algebraic axioms:
- Associativity: $(a \cdot b) \cdot c = a \cdot (b \cdot c)$
- Identity: $e \cdot a = a \cdot e = a$
- Inverse: $a \cdot a^{-1} = e$
They also introduce split weight decay to prevent "un-grokking"—a phenomenon where uniform weight decay eventually erases the learned algebraic structure.
Datasets
The authors evaluate FORGE across three distinct domains:
- Group Theory: Cayley tables for 20 different finite groups, including abelian (cyclic), dihedral, alternating, symmetric, and quaternionic families, ranging in size from order 6 to 2,520 ($A_7$).
- Physics: Three Hamiltonian systems (Simple Harmonic Oscillator, Pendulum, and Kepler 2D) to test conservation of energy.
- Chemistry: The QM9 molecular property dataset, specifically targeting $U_0$ (internal energy at 0K).
Key Insights and Ideas
- The Non-Fourier Route: Mechanistic analysis shows that FORGE does not converge to the sparse Fourier solutions found in standard MLPs. Instead, it distributes computation across more harmonic modes, reaching a correct algebraic solution through a more direct, architectural path.
- Universal Scaling Law: The time it takes for FORGE to grok follows a sub-linear power law: $732 \cdot |G|^{0.170}$. This means a 168x increase in group size only results in a 2.4x increase in training steps—a massive efficiency gain over data-hungry MLPs.
- Causal Axiom Emergence: The model internalizes the "identity" axiom before it achieves high validation accuracy. This proves that the model is learning the rules of the algebra to solve the task, rather than just memorizing the table and happening to satisfy the axioms as a byproduct.
- Wedderburn Recovery: Remarkably, the trained weights of the DAD module actually recover the Wedderburn-Artin decomposition (a fundamental structure in representation theory) of the group it is learning, without being explicitly told the group's structure.
Key Results
- Speedup: On $\mathbb{Z}/97$ modular addition, FORGE achieves a 10.20x speedup in grokking time compared to a matched MLP baseline.
- Solving the "Unsolvable": Standard MLPs and even specialized "Grokfast" optimizers fail completely on non-abelian groups like $S_3, D_4,$ and $A_4$. FORGE groks all of them in roughly 1,000 steps.
- Physics & Chemistry: FORGE reduces energy drift in Hamiltonian systems by 20 to 150,000x and improves prediction accuracy on the QM9 dataset by 15.3%, showing that "algebraic discovery" is a powerful inductive bias for scientific data.
Limitations and Future Work
While FORGE is highly effective, the authors note several areas for further exploration:
- Capacity Constraints: As group size $|G|$ grows, the required model capacity ($R \cdot d$) increases, which could become computationally expensive for very large groups.
- Continuous Groups: The current work focuses on finite groups. Extending this to compact Lie groups (like $SO(3)$ rotations) remains an open challenge.
- Transfer Learning: While the model shows some ability to reuse learned tensors across different groups, reliable cross-group transfer is still hit-or-miss and requires more research.
Summary updated