atlas

Research map / Optimization / Implicit bias and generalization

Emergence in non-neural models: grokking modular arithmetic via average gradient outer product

ICML 2025 · Optimization › Implicit bias and generalization · approach: Neural tangent kernel analysis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that grokking of modular arithmetic occurs in Recursive Feature Machines (kernel machines with AGOP-based feature learning), not only in neural networks, and links the learned block-circulant features to the Fourier Multiplication Algorithm.

Problem

Grokking of modular arithmetic is often cited as an emergent phenomenon in neural networks trained by gradient descent; it is unclear whether the sharp test-accuracy transition depends on neural architectures or gradient-based optimization, and whether standard progress measures predict it.

Approach

Grokking arises from task-specific feature learning via the AGOP: iterating RFM (kernel ridgeless regression plus AGOP feature update) gives a sharp accuracy transition despite zero training loss and constant early test loss, with feature matrices that become block-circulant; such circulant features let kernel machines implement the Fourier Multiplication Algorithm.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use iterative AGOP feature learning with a kernel machineRFM · Modular arithmetic, p = 61test accuracy: near-zero -> 100%Helped
Transform neural-network inputs with a random block-circulant matrixOne-hidden-layer fully connected network · Modular addition and multiplication, training fraction 17.5%epochs to 100% test accuracy: within several hundred epochs; standard inputs do not achieve 100% within 3000 epochsHelped
Use standard one-hot inputs instead of random block-circulant transformed inputsOne-hidden-layer fully connected network · Modular addition and multiplication, training fraction 17.5%test accuracy: do not achieve 100% test accuracy even within 3000 epochsHurt
Enforce block-circulant structure in RFM feature matrices at every iterationRFM · Modular arithmetic, including additiontest lossHelped
Use random circulant features instead of learning features through AGOPStandard Gaussian kernel machine · Modular addition and multiplication, p = 61generalizationHelped
Use no regularization instead of weight decay or AGOP regularization (ablation)One-hidden-layer neural network · Modular addition, p = 61test accuracy: does not go to 100%Hurt
Add weight decay (ablation)One-hidden-layer neural network · Modular addition, p = 61test accuracy: 100%Helped
Add trace-of-AGOP regularization (ablation)One-hidden-layer neural network · Modular addition, p = 61test accuracy: 100%Helped
Use no regularization instead of weight decay or AGOP regularization (ablation)One-hidden-layer neural network · Modular addition, p = 61grokkingHurt
Increase RFM iterations while training loss remains zeroRFM · Modular arithmetic, p = 61training loss: identically zeroNo clear effect
Use AGOP alignment and circulant deviation to track training progressRFM · Modular arithmetic, p = 61feature progress before test-loss improvement: first 10 iterationsHelped
Train RFM on two modular tasks simultaneouslyRFM · x + y mod p and x^2 + y^2 mod p, p = 61task-wise grokking timingMixed

Surprising findings

Limitations

Experimental setup

Datasets: synthetic modular arithmetic (addition, subtraction, multiplication, division) mod p=61 modular addition mod 97 x^2+y^2 mod 61

Benchmarks: modular arithmetic tasks (add, sub, mul, div) mod 61

Metrics: test accuracy test loss (MSE) circulant deviation AGOP alignment

Baselines: one-hot standard kernel machine standard neural network training (one-hidden-layer quadratic network)

Builds on: Recursive Feature Machines Neural Feature Ansatz Fourier Multiplication Algorithm grokking

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy