arXiv:2608.25813cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25813

Canalization Before Generalization: Grokking as a Dynamical Probe

Yiming Lin

ABSTRACT

For overparameterized neural networks, many solutions can fit the training data equally well while behaving very differently on unseen samples. Grokking separates training fit from visible generalization, providing a window for studying how this selection develops during training. We sweep short, fixed-duration weight-decay (WD) perturbations across the pre-generalization plateau and measure how they shift later generalization time. Across three grokking tasks, these shifts are unordered early in the plateau but later form a stable dose ordering, with stronger WD increases leading to earlier generalization and stronger WD decreases leading to later generalization. This ordering emerges before visible generalization in all three tasks. Meanwhile, test-loss barriers between perturbed and baseline generalization checkpoints collapse toward zero while the ordered timing effects persist. Drawing on Waddington's developmental landscape as an analogy, we call this combination of increasingly constrained solution selection and persistent dose-ordered shifts in generalization timing the canalization of grokking solution selection.

1 Introduction

How neural networks learn generalizable patterns from limited training samples is a foundational question in understanding deep learning [1, 2]. For overparameterized neural networks, the training data usually allow for many solutions that fit the training set equally well but behave very differently on unseen samples. The training objective alone does not determine the final solution; which solution is reached depends on the implicit bias of the optimization process [3]. In standard supervised learning, this process usually happens alongside fitting the training set and improving test performance, which makes it hard to study on its own. Grokking describes a form of delayed generalization. A model can first fit the training set, then remain on a long plateau of low test performance, and only generalize rapidly after further training [4, 5]. This temporal separation between training fit and visible generalization provides a clear window for observing and perturbing the optimization process before generalization appears.

Previous work has repeatedly found that neural network training proceeds through distinct dynamical stages. In grokking, this can include a transition from lazy to feature-learning dynamics [6]. Studies of loss geometry and neural tangent kernel evolution suggest that training begins with a short, highly sensitive phase and later enters a more stable and constrained regime [7, 8]. Perturbation studies have similarly found that very small parameter changes early in training can send trajectories in very different directions, while the same perturbations have much smaller effects later in training [9–11].

These results suggest that the downstream effects of local perturbations can reveal how training dynamics change over time. Weight decay (WD) provides a natural intervention target for this purpose. Its effect depends strongly on when it is applied [12], and WD is also known to strongly influence whether and when generalization occurs in grokking [4, 13–15].

Building on this, we introduce an intervention-based framework that uses the timing of generalization in grokking as a dynamical probe of how the training state responds to local perturbations over the course of optimization. We slide a fixed-duration intervention window across the entire pre-generalization plateau (after training-fit, before test accuracy exceeds chance), temporarily increasing or decreasing WD before restoring it to its baseline value and continuing training. We call this short local intervention a WD pulse. By scanning the entire pre-generalization plateau, we examine how short WD pulses applied at different stages of training affect outcomes much later in training. After the pulse ends, the model returns to the original training conditions, but the effect of the pulse can persist and later appear as earlier or later generalization, together with differences in the functions selected later in training. Recent work has intervened on grokking by persistently modifying training conditions [16–19]. In contrast, our WD pulses are temporary and are swept across the pre-generalization plateau to probe how the training state responds to a transient local perturbation.

We apply this framework to three algorithmic grokking tasks with clear chance-level plateaus. By scanning both when the WD pulse is applied and how strong it is, we record the resulting shift in generalization time. These measurements form a WD-response map, which reveals a dynamical reorganization before any visible generalization. Early in the plateau, generalization-time shifts show no stable ordering across pulse magnitudes. Later, the responses reorganize into a stable dose-dependent structure, with stronger positive WD pulses leading to earlier generalization and stronger negative WD pulses leading to later generalization. This structure emerges while test accuracy is still near chance level, and reproduces across random initializations and tasks. Linear mode connectivity analysis [9, 20] further shows that, as the pulse is applied later in training, test-loss barriers between the perturbed branches and the baseline at their matched generalization checkpoints collapse toward zero, while the ordered shifts in generalization time persist. In these grokking tasks, local WD perturbations can still systematically speed up or delay generalization during the pre-generalization plateau, but it becomes increasingly difficult to steer the model toward a generalization checkpoint that is linearly separated from the baseline. Borrowing Waddington's concept of canalization [21], we refer to this reorganization—increasing constraint on function selection across solution space together with increasingly ordered responses along the time axis—as the canalization of grokking solution selection.

References (33)