---
title: 'Natural Ungrokking: Rule Reversal in Pretraining'
url: https://www.emergentmind.com/topics/natural-ungrokking
type: topic
---

# Natural Ungrokking: Rule Reversal in Pretraining

Searching arXiv for the primary paper and closely related grokking/ungrokking work.
arXiv search query: `Natural Ungrokking Asymmetric Control of Which Rules Survive Pretraining`
Searching arXiv for the exact title and related grokking papers.
Natural ungrokking is a within-run reversal during ordinary pretraining in which a model first learns a rule, generalizes it on held-out probes, and later ceases to apply it even though the training stream is stationary and the rule’s supporting evidence remains present in the corpus [2606.26050]. The canonical case is a pronoun-gender rule in a small decoder-only language model: given a feminine cue such as “Sue cried because,” the model prefers *she* over the corpus-default *he*, reaches held-out conflict accuracy \(0.94\) by step \(925\), and then falls to near \(0.00\) by steps \(3500\)–\(4400\) on the same probes, while the agree condition remains solved [2606.26050]. The phenomenon is presented as capability-level phase structure that is not visible in the loss curve, is predicted by corpus support frequency, and is asymmetrically controllable: targeted edits can destroy a rule on demand, but injecting support back does not restore it [2606.26050].

## 1. Definition and relation to grokking

Natural ungrokking is defined as a model’s loss of a previously generalized rule within a single uninterrupted pretraining run, with no dataset swap, no removal of examples, and no change in the stationarity of the training stream [2606.26050]. In the focal experiments, the model acquires the rule, applies it correctly on held-out conflict probes, and later regresses while training accuracy on the underlying construction remains intact in agree-condition controls. The paper therefore distinguishes loss of the rule from loss of the construction.

This usage differs from standard grokking, which denotes delayed generalization: training accuracy saturates well before test accuracy rises. It also differs from earlier “ungrokking” in the circuit-efficiency literature, where a grokked model is further trained on a smaller dataset and regresses because memorization becomes more efficient below a critical dataset size [2309.02390]. Natural ungrokking instead occurs within one run on a stationary corpus; the reversal is attributed to corpus-conditioned competition between a learned rule and a competing surface pattern rather than to a between-run change in dataset size [2606.26050].

Conceptually, the term identifies a failure mode of pretraining in which generalization is neither monotone nor terminal. A rule can emerge, dominate behavior for a period, and later be displaced without any obvious trace in the optimization objective.

## 2. Experimental regime and probe construction

The governed experiments use a fixed small decoder-only transformer with the following architecture and training protocol [2606.26050].

| Component | Specification |
|---|---|
| **Model** | 4-layer decoder-only transformer; \(d_{\text{model}} = 256\); 2 attention heads; 2048-token context; 8192 BPE vocabulary; 11.5M parameters total; 3.1M excluding embeddings |
| **Training** | 4400 steps; batch size 32; cosine warmdown over the final 30%; Muon on matrix parameters; AdamW on embeddings and scalars with \(\beta = (0.9, 0.95)\) |
| **Corpora and budgets** | TinyStories and a filtered web corpus derived from ClimbMix; \(D/N \in \{1.5, 5\}\) plus uncapped packed runs, roughly \(D/N \approx 30\) for TinyStories and \(D/N \approx 40\) for web |

Within comparisons, architecture, tokenizer, optimizer, and schedule are held fixed. Learning-rate and weight-decay settings differ by corpus: for TinyStories, matrix LR \(0.04\), embedding LR \(0.6\), weight decay \(0.2\); for web, matrix LR \(0.02\), embedding LR \(0.2\), weight decay \(0\). Each main cell uses exploratory seeds \(42, 43, 44\), and a quarantined replication set uses seeds \(1042\)–\(1044\), designated before use.

The focal capability is pronoun-gender agreement under conflict with a corpus prior. In a feminine-cue context such as “Sue cried because …,” the rule-conforming continuation is *she* while the corpus-wide prior prefers *he*. The agree control is exemplified by “Tom cried because …,” where cue and prior align. This control is central because it shows that a collapsed model can still handle the construction when rule and prior do not conflict.

The main phase grid spans two corpora and three budget regimes. On TinyStories, the focal rule survives in \(9/9\) runs across all budgets; on the web corpus, it survives in \(0/9\) runs. The loss curve does not reveal this difference in fate [2606.26050].

## 3. Corpus support frequency as the survival determinant

The paper’s principal empirical law is that the corpus decides which rules survive pretraining through support frequency: how often the training stream shows the rule winning over a competing surface pattern [2606.26050]. This is formalized by the support statistic
\[
\mathrm{support\_ratio}(F,C) = \frac{\mathrm{rule\_support}+1}{\mathrm{prior\_support}+1}.
\]

For gender families, counts are obtained in a windowed mode: the first *she/he* within 16 tokens of a single-token gendered cue, counting both space variants of cue tokens. For other families, the counter uses exact bigrams. The TinyStories girl-class support frequency for the focal rule is
\[
\delta_{\mathrm{TS}} = 1.67175 \times 10^{-3}
\]
events/token, which later serves as the unit for rescue-dose normalization.

The key claim is not merely that corpus identity matters, but that support frequency predicts the final verdict while the data-to-parameter ratio \(D/N\) only modulates collapse depth. In the authors’ formulation, support frequency decides a rule’s fate; \(D/N\) changes how deeply a doomed rule falls but does not flip survival versus collapse [2606.26050]. This is visible in the phase grid: TinyStories yields recovery across packed, \(D/N=5\), and \(D/N=1.5\), whereas web yields no surviving focal-rule cells across the same budgets.

A post-mortem descriptive counter in the appendix reinforces the corpus-statistic view. For the web text, simple bigram ratios include pronoun \(4547/9908 = 0.46\) and reflexive \(28/57 = 0.50\); these are reported as the only sub-unity ratios in either corpus. The paper uses such ratios to motivate the scale of rescue interventions.

## 4. Displacement mechanism and the contrast margin

The proposed mechanism is displacement rather than erasure [2606.26050]. Two hypotheses are contrasted. Under erasure, the model loses the construction itself. Under displacement, the construction remains available, but a competing surface-default prior out-competes the learned rule at the prediction site. The agree-condition controls favor displacement: collapsed runs continue to solve the construction when rule and prior align, indicating that the failure is specific to the rule-versus-prior conflict.

The central mechanistic observable is the contrast margin
\[
CM = \frac{1}{|\mathcal{P}|}\sum_{x \in \mathcal{P}} \left[\log p_\theta(\text{she}\mid x)-\log p_\theta(\text{he}\mid x)\right].
\]
By definition, \(CM>0\) means the rule beats the prior, and \(CM<0\) means the prior beats the rule.

Across the main phase grid, mean final \(CM\) values are positive on TinyStories and negative on web. For TinyStories they are \(+3.68 / +2.98 / +2.36\) across packed, \(D/N=5\), and \(D/N=1.5\); for web they are \(-0.52 / -0.07 / -0.85\) across the same budgets. The sign of final \(CM\) matches final conflict-accuracy status in \(18/18\) base runs. The timing is comparably sharp: in instrument-valid web seeds, the zero-crossing occurs at step \(2800\) with collapse at step \(2800\), and at step \(2900\) with collapse at step \(3000\). The paper summarizes this as behavioral collapse occurring within one 100-step checkpoint of the \(CM\) crossing.

Additional decomposition localizes the effect to contextual processing rather than static readout. In web runs, the direct embedding-path term stays near zero while the contextual term rises and later becomes negative; in surviving TinyStories runs, the direct term remains small and the contextual term ends strongly positive. The appendix further reports that gender-cue decodability in final-layer residuals is near chance in collapsed web runs and near ceiling in surviving TinyStories runs. These observations support the interpretation that the cue’s gender signal is no longer transported to the prediction site when natural ungrokking occurs.

## 5. Asymmetric control: monotone kill, failed rescue

The intervention results establish an asymmetry between destroying a rule and restoring it [2606.26050]. In the kill arm, TinyStories support is flipped in place from rule-conforming evidence to counter-evidence while preserving token counts and most other statistics. For pronoun gender, girl-name + *she* support is flipped to *he* with doses \(p \in \{0.437, 0.645, 1.0\}\). The causal effect is monotone: at \(p=0.437\) the rule is not killed, at \(p=0.645\) the cell is intervention-invalid because unrelated control families are damaged, and at \(p=1.0\) the rule is fully killed in \(3/3\) seeds. Mean \(CM\) moves from \(+3.68\) at baseline to \(+0.27\), then \(-0.38\), then \(-2.99\), and reported kill monotonicity is \(\rho_{\mathrm{kill}} = -1.00\).

A second rule family, \(a/an\) allomorphy, exhibits the same one-way controllability. With doses \(p \in \{0.5, 0.667, 0.75, 0.9, 1.0\}\), mean final held-out conflict accuracy falls monotonically:
\[
0.96 \rightarrow 0.67 \rightarrow 0.49 \rightarrow 0.29 \rightarrow 0.13 \rightarrow 0.00.
\]
The edit is reported as specific: unrelated families remain within \(0.05\) of baseline, while another probe family for the same rule co-degrades.

The rescue arm reverses the edit direction on collapsed web data by injecting matching support documents back in. Doses are \(0.01\times\delta_{\mathrm{TS}}, 0.1\times\delta_{\mathrm{TS}}, 1\times\delta_{\mathrm{TS}}, 3\times\delta_{\mathrm{TS}}\), with symmetric boy\(\rightarrow\)he documents and removal of neutral documents to preserve token counts. Post-injection support ratios reach \(37.36\), \(358\), \(3565\), and \(10{,}691\), compared with \(7.91\) in the naturally surviving TinyStories base cell. Nevertheless, no dose produces a control-valid behavioral recovery. The paper emphasizes that even when injected support is 450 times the natural sustaining level, the rule does not recover. Rescue monotonicity fails, with \(\rho = +0.70\) rather than the registered success threshold.

A timing control addresses the possibility that rescue fails only because support arrives too late. The \(1\times\) rescue dose is split into an early schedule concentrated in steps \(0\)–\(2400\) and a late schedule in steps \(2800\)–\(4400\). Both yield \(0/3\) control-valid recoveries. In the early schedule, one seed temporarily reaches conflict accuracy \(1.00\) while the dose is active and then loses the rule once the dose ends. The resulting picture is explicitly asymmetric: removing support is causally sufficient to destroy a rule, but adding support back is not sufficient to restore it. The paper further states that every confirmatory threshold and prediction was pre-registered before the governed data were read.

## 6. Position within the grokking literature and broader implications

Natural ungrokking sits at the intersection of several lines of grokking research while differing from each in a specific way. The circuit-efficiency account of grokking and ungrokking explains regression as a phase transition between memorizing and generalizing circuits, driven by dataset size and weight-decay-mediated efficiency; ungrokking in that framework occurs when continued training on a smaller dataset makes memorization more efficient than generalization [2309.02390]. Natural ungrokking departs from this regime by showing reversal within one stationary pretraining run, with no between-run shrinkage of the dataset, and with final rule survival predicted by corpus support frequency rather than by the loss curve or an explicit dataset-size threshold [2606.26050].

A thermodynamic heuristic models grokking as stochastic drift on a zero-training-loss manifold toward broader, higher-entropy structured regions, with reverse transitions interpretable through changes in free-energy ordering [2412.18624]. A global structural account treats grokking as parsimony-driven compression, redundancy collapse, spectral localization, and manifold simplification, implying that reversal would require loss of the sparse structured state [2603.29262]. Natural ungrokking does not provide a full mechanistic derivation in either language, but it supplies an empirical regime in which a learned rule is later displaced by a competing surface pattern while the loss curve remains silent [2606.26050].

This suggests that pretraining has capability-level phase structure not reducible to aggregate optimization metrics. A plausible implication is that the relevant state variable is neither loss alone nor rule evidence alone, but the corpus-conditioned balance between rule-consistent and prior-consistent continuations at the prediction site. Under that interpretation, natural ungrokking is not generic forgetting and not simple overfitting in a loose sense. It is a selective reversal in which a model retains the construction, loses the conflict-case preference, and exhibits one-way controllability under data interventions.

The broader significance is methodological as well as conceptual. The phenomenon appears in public checkpoints—Pythia \(70\)M–\(1.4\)B and OLMo-1B—with scale-ordered collapse depth and Spearman \(\rho = 0.894\) across five Pythia sizes [2606.26050]. Accordingly, natural ungrokking is presented not as an artifact of one \(11.5\)M-parameter setup, but as evidence that ordinary pretraining can both create and later eliminate specific rule-like behaviors, with the survival decision written into corpus statistics rather than exposed by the loss curve.

Source: https://www.emergentmind.com/topics/natural-ungrokking