atlas

Research map / Architectures and efficiency / RNNs and normalization

Is Grokking a Computational Glass Relaxation?

NeurIPS 2025 · Architectures and efficiency › RNNs and normalization · approach: Representation geometry and collapse · 1 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.

Frames grokking as computational glass relaxation by sampling the Boltzmann entropy landscape of one-layer transformers on modular arithmetic with Wang-Landau molecular dynamics, finds no entropy barrier, and proposes the WanD optimizer that eliminates grokking.

Problem

Grokking—delayed sudden generalization long after memorization—lacks a clear mechanistic explanation; prior theories (first-order phase transition, weight-norm Goldilocks zone) conflict on whether an entropy/free-energy barrier exists and what drives generalization.

Approach

Treats the network as a physical system with train loss as energy and uses Wang-Landau molecular dynamics to sample the Boltzmann entropy as a function of log training loss and smoothed test accuracy, interpreting memorization as a non-equilibrium glass and grokking as slow relaxation; a physics-inspired optimizer WanD built on the same dynamics avoids grokking.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use WanD instead of AdamWOne-layer Transformer · Modular addition x+y mod 67running time per 1K steps: about 50 seconds vs roughly 72 secondsHelped
Use WanD instead of AdamWOne-layer Transformer · Modular addition x+y mod 67optimization steps to generalization: ∼ 2,000 optimization steps for both methodsNo clear effect
Use WanD instead of AdamWOne-layer Transformer · Modular addition x+y mod 67grokkingHelped
Use WanD instead of AdamWOne-layer Transformer · Modular addition x+y mod 67weight norm at generalization: about 175Helped
Constrain weight norm to 30AdamW-trained Transformers · Modular addition x+y mod 67grokkingHelped
Constrain weight norm to 30AdamW-trained Transformers · Modular addition x+y mod 67high-entropy advantageHurt
Increase the training dataset fractionAdamW and WanD · Modular addition x+y mod 67grokkingHelped
Use WanD instead of AdamWOne-layer Transformer · Modular arithmetic tasks with different dataset fractionstraining efficiency: nearly three times the efficiency of AdamWHelped
Use WanD instead of AdamWOne-layer Transformer · Modular addition and x²+y mod 67, 50%–80% training fractionstraining efficiencyHelped
Sample the entropy landscape using cross-entropy test loss instead of smoothed test accuracy (ablation)WLMD entropy sampling · Modular arithmetic tasksentropy barrier between memorization and generalizationNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: modular arithmetic (x+y mod 67) modular arithmetic (x^2+y mod 67) modular arithmetic (x^3+xy^2+y mod 67)

Metrics: test accuracy training loss weight norm wall-clock time per 1K steps

Baselines: AdamW Entropy-SGD

Builds on: Wang-Landau molecular dynamics Entropy-SGD Yang et al. high-entropy advantage framework Nanda et al. grokking setup AdamW

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