# Grokking Can Be Steered: Selecting Desirable Solutions By Choice Of Learning Rule

Credit equalization lets a learning rule spread the grokked circuit across neurons

Pascal Sager, Benjamin Grewe, Pau Vilimelis Aceituno, Thilo Stadelmann · arXiv · 2026-11-14

- **Problem** Grokked circuits were reported as small and concentrated, but earlier studies used similar backpropagation rules. So it was unclear whether the task or the training procedure caused that concentration.
- **Method** The authors rescale each neuron's credit before Adam, so every neuron gets a gradient of similar magnitude. Unlike standard optimizers, this keeps the learned Fourier algorithm while spreading the computation across more neurons.
- **Results** Full credit equalization raised the effective circuit size from 60% to 99% of the layer's neurons. Test accuracy fell only about two percentage points.

![Figure 1: The learning rule selects whether a network groks, how many neurons implement the grokked algorithm, and the resulting robustness and adaptation.(a)A…](https://refivu.com/papers/c2cecef6-64a9-4f62-b058-cf2f77f21362/figures/figure-a200297501f2ac3d19fd40d83cf008bf.png?thumb=512)

**Figure 1** : The learning rule selects whether a network groks, how many neurons implement the grokked algorithm, and the resulting robustness and adaptation.(a)All runs fit the training set, and only some then generalize to the held-out pairs. Each dot is one seed and shows the null-space weight normqat the end of training (Section 4.3).(b)First hidden layer of two networks that share data and initialization. The credit of a neuron is the gradient of its incoming weights. Under backpropagation with Adam the credit is unequal (top row, relative to the layer mean and averaged over training), and neurons that receive little credit end with small outgoing weights. Credit equalization makes the magnitudes equal before the gradient enters the optimizer (Adam) and keeps every gradient’s direction (middle row, schematic). Dots show the256neurons in the order of the top row, with area proportional to the outgoing norm. Effective counts are for this seed, and the three-seed means are154and254.(c)Tolerance is the normalized area under the curve of test accuracy against the fraction of randomly deleted neurons. Adaptation is the number of epochs to test accuracy0.9on subtraction, starting from the addition network or from scratch (without pretraining). The network drawings are schematic,µ±σare over ten seeds (Table 22 and Appendix E.1).

[Original paper](https://arxiv.org/abs/2611.19477v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Pascal Sager, Benjamin Grewe, Pau Vilimelis Aceituno, Thilo Stadelmann · Grokking Can Be Steered: Selecting Desirable Solutions By Choice Of Learning Rule · Original paper figure · Extracted the figure area from page 2 of the original PDF.

## Why circuit size is left open

Grokking is delayed generalization, where a network fits its training set long before its test accuracy rises abruptly. Circuits for this task have been reported as concentrated, with a small number of neurons carrying the computation. These studies leave open whether the task requires that concentration or whether the training procedure produces it.

That makes the learning rule a plausible cause of circuit size, which is the question this study pursues. Yet the networks in these circuit studies were all trained with similar learning rules based on backpropagation. Effective circuit size varies across learning rules in the authors' modular addition experiments but varies little across random seeds.

The authors define the learning rule as the combination of a credit assignment algorithm and an optimizer. They call the learning signal received by a hidden neuron its credit, so the question becomes how credit is spread across neurons.

Earlier circuit studies used backpropagation with similar rules, so the role of the rule itself went untested. The authors vary the credit assignment algorithm and the optimizer in turn, and they hold the task fixed. The learning rules under test include backpropagation with Adam, LARS, LAMB, RMSProp, Lion, Muon, Shampoo and Nero. Among the open questions, the paper leaves unexplained why the concentrated circuit forms under the reference rule.

## The key idea: equal credit per neuron

Credit equalization gives every neuron a credit of the same magnitude while keeping the direction of its gradient. Here credit is the gradient of a neuron's incoming weights, so a neuron with small credit receives a weak learning signal. The learning rule has two parts: the credit assignment algorithm computes each neuron's signal, and the optimizer rescales it.

The intervention moves each neuron's gradient norm toward the layer mean, with strength β between 0 and 1. At β equal to 0 the gradient is unchanged, and at β equal to 1 all nonzero incoming-weight gradients share one norm. Because the direction of each gradient is preserved, the rescaled gradient stays a descent direction for the loss before Adam sees it.

The authors use this intervention to isolate the effect of credit from other differences between runs. The coupled weight decay, Adam's epsilon and the decay of a normalization gain all fit this condition, which explains why they produce unused neurons.

The authors' limitation is that the theory uses a simplified linear model without adaptive normalization, so the non-linear results are empirical.

## How equalization rescales the gradient

Credit equalization rescales each first-hidden-layer neuron's incoming-weight gradient so that its magnitude moves toward the layer mean. The credit magnitude of neuron j is the norm of its gradient g\_j, and the layer mean of these norms serves as the common target. The strength beta in \[0,1\] sets how far each magnitude moves toward that mean.

Each gradient is divided by its own norm and multiplied by a target that mixes its current norm with the mean. Because the direction of each gradient is kept, the rescaled gradient remains a descent direction before Adam acts. At beta = 0 the gradient is unchanged and training is ordinary backpropagation with Adam, while at beta = 1 all nonzero gradients share one norm.

For n neurons with outgoing norms a\_j, the participation ratio is the squared sum of the norms divided by n times the sum of their squares. The ratio equals 1 when all norms are equal and 1/n when only one neuron carries weight. Multiplying the ratio by n gives the effective neuron count, so a value of 154 means the layer behaves like 154 equally used neurons.

The authors also call a neuron nearly unused when its outgoing norm falls below a tenth of the layer mean. The activation-weighted measure stays invariant to compensating rescalings of a ReLU neuron's weights.

## Equalization changes circuit size

The training loss stays within a few percent of the reference, and test accuracy drops by about two percentage points.

The concentration forms during the grokking delay, not afterwards.

The authors also measure circuit size with two functional measures that use neuron activity or effect on the output. Participation weighted by mean absolute activation rises from 0.34 to 0.81 over eight seeds. Per-neuron equalization acts on the same circuit that the rule-level comparisons show, so the increase is not an artifact of the outgoing norm.

Equalization keeps the algorithm and only the size of the circuit changes. The redistribution also holds on other operations and architectures, and changes little where the reference is already distributed.

## Redistributing a learned circuit after grokking

The authors ask whether changing the credit rule after grokking can reorganize a circuit that has already formed. They let the reference network grok with backpropagation and Adam, then switched it to full credit equalization on the same task. Applied after grokking, the intervention redistributes the outgoing weights of the learned circuit at unchanged test accuracy.

The authors also rescaled only the non-gradient term of each neuron's update instead of the gradient. For coupled decay, rescaling the decay term alone gave 0.993, close to full equalization. Holding each neuron's ratio of credit to decay fixed gave 0.574, so the ratio carries most of the effect under coupled decay. For Adam's epsilon, holding the ratio fixed removes about half of the effect, and for the decay of the gain it keeps the circuit concentrated.

In both cases the circuit is governed by the credit relative to the non-gradient term, as the single per-neuron condition predicts.

![Table 2: Rescaling only the non-gradient term of each neuron’s update reproduces credit equaliza- tion in all three cases. Equalizing the gradients while holdi…](https://refivu.com/papers/c2cecef6-64a9-4f62-b058-cf2f77f21362/figures/figure-7d9d2c35196a13f9b75350a8c662ab0f.png?thumb=512)

**Table 2** : Rescaling only the non-gradient term of each neuron’s update reproduces credit equaliza- tion in all three cases. Equalizing the gradients while holding each neuron’s ratio of credit to that term fixed keeps the circuit concentrated for the decay and the gain and removes about half of the effect forϵ(circuit participation, five seeds per cell). For the gain, equalization and rescaling act on the gain and the outgoing weights as well as the incoming rows; equalizing the incoming rows alone gives0.364. Update equations and details in Appendices C.6, F.5 and F.7.

[Original paper](https://arxiv.org/abs/2611.19477v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The redistribution after grokking matches the result from training from scratch, which the authors measured at each equalization strength. Equalizing credit raises circuit participation while the algorithm and training fit stay the same. Concentration forms during the grokking delay, so the switch acts on a circuit that is already concentrated.

They didn't test whether the switched circuit matches one trained with equalization from the start on every metric.

## Robustness and adaptation trade-off

Distributed circuits keep their test accuracy better when neurons are deleted, so they tolerate deletion more gracefully. Tolerance is the normalized area under the test-accuracy curve as randomly chosen neurons are deleted. Under equal credit, tolerance reaches 0.77, compared to 0.67 under unequal credit. Concentrated circuits, by contrast, can be pruned further before their behavior changes.

Pruning profits from the nearly unused neurons, which can be removed at no cost.

Starting from unequal credit takes 640 epochs, against 1540 under equal credit and 1410 from scratch. On (b−a) mod p, they account for about half of the gap.

Adaptation therefore follows the circuit, not the rule that produced it. The robustness advantage concerns only the deletion of neurons, and the adaptation advantage needs targets with new hidden combinations.

The learned algorithm stays the same on both sides of this trade.

## Limitations of the theory and the results

The theory covers a narrow setting, and the authors state its boundary directly. That model also covers only rescalings that preserve update directions. Results on nonlinear networks and on optimizers are empirical, so they don't come with a proof.

The algorithm checks behind the shared Fourier computation cover modular addition only. It doesn't appear for targets that change only the readout.

Some effects shrink under other settings, and the condition doesn't explain every one of them. That remaining effect isn't explained by the per-neuron condition.

## Paper info

- **Authors**: Pascal Sager, Benjamin Grewe, Pau Vilimelis Aceituno, Thilo Stadelmann
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-14
- **Added**: 2026-11-17
- **Updated**: 2026-11-14
- **Version**: v1
- **arXiv**: 2611.19477
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.19477v1) · [PDF ↗](https://arxiv.org/pdf/2611.19477v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

During grokking, a network transitions from memorization to generalization, yet what shapes the neural implementation (circuit) of the generalizing solution and specifically the number of participating neurons (its size) remains unclear. We find that the learning rule, the combination of credit assignment algorithm and optimizer, controls this: On modular addition, every learning rule we study that groks recovers the same Fourier-based algorithm, yet implemented by circuits that differ in size. Why? A neuron stays in use when its credit is large relative to the non-gradient term of its own update, and this single condition unifies three routes to unused neurons: the coupled weight decay, Adam's $ε$ and the decay of a trainable per-neuron gain. Equalizing the magnitude of credit assigned to each neuron, or scaling each neuron's weight decay by its credit, expands the effective circuit size, measured from the outgoing weights, from 60% to 99% of the layer's neurons at similar training and test accuracy. We vary which neurons share one equalization factor, from the whole layer to individual neurons, and find that the circuit stays concentrated for groups of eight or more and fully distributes only when every neuron has its own factor. Credit magnitudes are usually set by the normalization of standard optimizers: Nero, which normalizes per neuron, distributes the computation, whereas Adam and seven others, including RMSProp, Muon, and Shampoo, use other normalization schemes and retain small, concentrated circuits. Distributed circuits tolerate neuron deletion better, while concentrated circuits can be pruned further and transfer about twice as fast to a task that recombines the same features, largely by recruiting their unused neurons. Learning rule choice thus steers circuit size, trading robustness against compressibility and transfer speed without changing the learned algorithm.

## Quote from the paper

Pascal Sager, Benjamin Grewe, Pau Vilimelis Aceituno, Thilo Stadelmann (2026). Grokking Can Be Steered: Selecting Desirable Solutions By Choice Of Learning Rule. arXiv:2611.19477v1. https://arxiv.org/abs/2611.19477v1

**BibTeX**

```
@misc{sager2026grokking,
  title = {{Grokking Can Be Steered: Selecting Desirable Solutions By Choice Of Learning Rule}},
  author = {Pascal Sager and Benjamin Grewe and Pau Vilimelis Aceituno and Thilo Stadelmann},
  year = {2026},
  eprint = {2611.19477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19477v1}
}
```

## Other paper commentary

- [Predicting, Fast and Slow: SSD Already Knows Which Guess Is Wrong](https://refivu.com/en/papers/2072ed08-6618-4ac5-bbf3-169d7b94921f-predicting-fast-and-slow-ssd-already-knows-which.md)
- [ANCHOR: A Port-Hamiltonian Model for Forecasting Team Dynamics in Human-in-the-Loop Systems](https://refivu.com/en/papers/85bcf8f5-5825-4f59-88e9-06fc575cc54f-anchor-a-port-hamiltonian-model-for-forecasting-team.md)
- [A predictive, per-engine energy roofline of the Apple Neural Engine](https://refivu.com/en/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249-a-predictive-per-engine-energy-roofline-of-the.md)
- [Instructor-designed AI improves learning in a randomized trial across 19 universities](https://refivu.com/en/papers/ff326c36-4b69-42d2-b4ff-ab7febe76bb4-instructor-designed-ai-improves-learning-in-a-randomized.md)
- [Probabilities of Causation in Nondeterministic Causal Models](https://refivu.com/en/papers/4a41c475-9406-46f0-81a1-d08a8eb59ede-probabilities-of-causation-in-nondeterministic-causal-models.md)
- [On the Limits of Sufficient Explanations](https://refivu.com/en/papers/5d229b65-8e92-4bdb-a2c0-ba1f553e51c1-on-the-limits-of-sufficient-explanations.md)
- [ResWAM: Learning What Changes, Not What Stays, for World-Action Models](https://refivu.com/en/papers/8ff204e6-02d0-446a-b10f-79536a9345b6-reswam-learning-what-changes-not-what-stays-for.md)
- [Beyond the Training Cameras: Coverage-Controlled Probes of Viewing Direction in Frozen Vision Models](https://refivu.com/en/papers/50ed3d4c-1e23-42d6-938a-a847aa231fe1-beyond-the-training-cameras-coverage-controlled-probes-of.md)
- [Efficient and Accurate Causal Validation of Training Data Attribution](https://refivu.com/en/papers/8ce5b1c4-f393-440f-bda0-e4e2dc49c9c7-efficient-and-accurate-causal-validation-of-training-data.md)
- [Cache or Denoise Less? Residual Reuse in a Flow-Matching World Action Model](https://refivu.com/en/papers/e5ef50c6-fcfb-4a84-b276-a9185f280e48-cache-or-denoise-less-residual-reuse-in-a.md)
- [Where Should LLM Agents Adapt at Test Time? In Context, in Weights, or Both](https://refivu.com/en/papers/39fae58e-bc8b-4dc6-bf76-acf24f94a299-where-should-llm-agents-adapt-at-test-time.md)
- [ROUNDS: Source-Framed Diagnostic Revision after Multi-Turn Clinical Evidence](https://refivu.com/en/papers/70f56aaf-6635-4760-874c-f2838c87a8ac-rounds-source-framed-diagnostic-revision-after-multi-turn.md)

## Terms in this paper

- [Adam](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [participation ratio](https://refivu.com/en/terms/bb2236c7e126-participation-ratio)
- [credit](https://refivu.com/en/terms/5c5a2d897f4c-credit)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c2cecef6-64a9-4f62-b058-cf2f77f21362-grokking-can-be-steered-selecting-desirable-solutions-by)
