arXiv AI

What Does the Weight Norm Control in Grokking? Logit-Scale Mediation under Cross-Entropy

arXiv:2606. 18465v1 Announce Type: cross Abstract: Grokking, the delayed jump from memorization to generalization, is usually tied to the weight norm: a smaller norm generalizes sooner.

arXiv Machine Learning
Sep 11

Quantifying the Memorization-to-Generalization Transition: Scaling Laws and Phase Structure in Grokking

The study investigates the delayed transition from memorization to generalization—known as grokking—in two‑hidden‑layer MLPs trained on modular arithmetic. By exploring 384 hyperparameter configurations, the authors derive a power‑law scaling relation for the onset time of generalization, showing that data complexity dominates over model capacity. A clear phase boundary at weight decay around 1.0 separates grokking from non‑grokking regimes, and weight norm trajectories indicate implicit regularization during the transition.

By Anish Kataria
arXiv Machine Learning
Oct 28

ScaleRLT: Exact Log-Probabilities and Fast Deferred Rollouts for Reinforcement Learning on Looped Transformers

ScaleRLT introduces a hybrid learner log‑probability method that reconciles differences between dense and deferred rollout computations in looped language models like Ouro. By using a stop‑gradient replay of the rollout schedule, the approach achieves bit‑for‑bit reproducibility across FP32 and bf16 real‑weight cells while maintaining the same gradient accuracy as dense implementations. The technique boosts rollout throughput by up to 1.56× on a single GPU and significantly speeds up multi‑node GRPO updates, leading to substantial accuracy gains on GSM8K in short training runs.

By Dezhen Lu, Zixiang Ni, Runguo Li
arXiv Machine Learning
Oct 23

A Fix for Softmax and Cross-Entropy

The paper identifies two numerical bugs in standard softmax, log‑softmax, and cross‑entropy implementations: Softmax Collapse, where a dominant logit causes its gradient to be rounded to zero, and Softmax Cancellation, where student and teacher logits that are equal still produce non‑zero gradients. The authors provide straightforward implementations that correct both issues. Their fix removes the previously observed "Slingshot" phenomenon, accelerates grokking with weight decay, prevents accuracy collapse without weight decay, keeps student networks aligned with teachers during distillation, and demonstrates that post‑memorization logit growth is bounded by an equilibrium between weight decay and Adam’s epsilon hyperparameter.

By Jonathan T. Barron, Dan Gnanapragasam, Michael Tschannen
arXiv Machine Learning
Nov 16

Deep Neural Networks Training Efficiency: Does Grokking Modify its Dynamics?

The paper investigates whether grokking—delayed out‑of‑distribution generalization after overfitting—affects training efficiency, defined as accuracy per unit energy, in deep neural networks. Using modular arithmetic and MNIST tasks, two network models, and 16‑, 32‑, and 64‑bit precision, the authors employ Orthograd to probe training dynamics over short (≤500 epochs) and long (≤20,000 epochs) runs. They find that while grokking manifests as a sharp test‑accuracy improvement after a sustained train‑test gap, it does not produce noticeable deviations from the typically decreasing efficiency curves, even when Orthograd induces grokking in long‑horizon experiments.

By Eduardo Cueto-Mendoza, John D. Kelleher