Coverage versus within-epoch repetition at matched dose in transformer grokking

How much of a neural network’s generalization comes from unique training data, and how much from seeing the same data again? We separate the two levers in a controlled grokking setup. A two-layer transformer (1.04 × 10 5 parameters) learns modular addition (p = 23; 529 unique problems), with training-set coverage (25–85% of all problems), within-epoch repetition (R ∈ {1, 2, 4, 8}), and the arrangement of repeated copies (blocked versus interleaved) manipulated in a partially crossed design (27 conditions, 5 seeds each, 135 runs), while a continuous batching scheme holds the expected per-example dose identical across R. Coverage dominates: median GrokTime, the first step at which test accuracy reaches 95%, falls from 8,400 steps at 45% coverage to 1,800 at 85% (rank-biserial r = +1.0, Holm-adjusted p = 0.016; permutation log-rank p = 0.008); at 35% coverage only three of thirty-five runs generalize, and at 25% none do within the 20,000-step budget. Repetition shows no detectable effect on Grok-Time at matched per-example dose, with every confidence interval including zero, but it is not without effect: it delays memorization (MemTime, the first step at which training accuracy reaches 95%, rises from 100 to 300 steps at 55% coverage between R = 1 and R = 8), raises sub-critical final accuracy at 25% coverage (13.4% to 21.7% between R = 1 and R = 4), and sustains larger final weight norms there. In this regime, under a fixed optimization budget and at matched per-example dose, unique coverage rather than repeated exposure governs the transition from memorization to generalization.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-27
DOI
https://doi.org/10.21203/rs.3.rs-11384218/v1
Primary Topic
Domain Adaptation and Few-Shot Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Coverage versus within-epoch repetition at matched dose in transformer grokking

Chang Tan
Research Square
Domain Adaptation and Few-Shot Learning
preprint

Coverage versus within-epoch repetition at matched dose in transformer grokking

Chang Tan
preprint en

Abstract

How much of a neural network’s generalization comes from unique training data, and how much from seeing the same data again? We separate the two levers in a controlled grokking setup. A two-layer transformer (1.04 × 10 5 parameters) learns modular addition (p = 23; 529 unique problems), with training-set coverage (25–85% of all problems), within-epoch repetition (R ∈ {1, 2, 4, 8}), and the arrangement of repeated copies (blocked versus interleaved) manipulated in a partially crossed design (27 conditions, 5 seeds each, 135 runs), while a continuous batching scheme holds the expected per-example dose identical across R. Coverage dominates: median GrokTime, the first step at which test accuracy reaches 95%, falls from 8,400 steps at 45% coverage to 1,800 at 85% (rank-biserial r = +1.0, Holm-adjusted p = 0.016; permutation log-rank p = 0.008); at 35% coverage only three of thirty-five runs generalize, and at 25% none do within the 20,000-step budget. Repetition shows no detectable effect on Grok-Time at matched per-example dose, with every confidence interval including zero, but it is not without effect: it delays memorization (MemTime, the first step at which training accuracy reaches 95%, rises from 100 to 300 steps at 55% coverage between R = 1 and R = 8), raises sub-critical final accuracy at 25% coverage (13.4% to 21.7% between R = 1 and R = 4), and sustains larger final weight norms there. In this regime, under a fixed optimization budget and at matched per-example dose, unique coverage rather than repeated exposure governs the transition from memorization to generalization.

Research Square
Dalian University of Technology (CN)
Domain Adaptation and Few-Shot Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon