Read the paper
Language Model Circuits Use Fewer Neurons at Higher Learning Rates
on GitHub
In 35 small language models trained alike except for learning rate, the neurons a grammar rule needs fall about in inverse proportion to the learning rate. So circuit sizes compared across models partly measure the training recipe.
Going deeper
| Peak learning rate | ||||||
|---|---|---|---|---|---|---|
| Ranking | 0.0006 | 0.0012 | 0.0024 | 0.0048 | 0.0096 | Slope |
| Attribution | 157 | 77 | 50 | 19 | 6.1 | ( to ) |
| Single-neuron | 102 | 65 | 51 | 19 | 7.4 | ( to ) |
| Mask | 73 | 46 | 36 | 14 | 5.3 | ( to ) |
Imagine measuring how big a team a company needs to handle one job, say answering a certain kind of letter. People compare team sizes between companies and draw conclusions about which company is more efficient.
This paper notices the companies were also run under different managers. Train the same company under a hasty manager and a careful one, and the hasty one ends up with the letters handled by a handful of specialists, while the careful one spreads the work over dozens of staff. Same letters, same quality of answers.
Count not the people but the distinct tasks in the job, and both companies need about three. So the job did not get simpler; it was just packed into fewer desks. Comparing team sizes without saying who managed each company can mislead.
The abstract, word for word, with the six densest phrases unpacked.
Circuit sizes are often compared across models of different scales and families. These models also differ in how they were trained, and it is not known how much the training recipe alone changes a circuit’s measured size. We train 35 Llama-style models at three sizes, from 90M to 371M parameters, which differ within a size only in the peak learning rate and the seed1. For three grammatical rules, we count the fewest attribution-ranked MLP neurons at the deciding token that are both necessary and sufficient for half of the behavior2. This neuron count falls roughly in inverse proportion to the learning rate, and faster in our largest models than in our smallest. At 153M parameters, a 16-fold rise in the learning rate cuts it 25-fold, from an average of 154 neurons per rule to 6. There, two learning rates reach the same loss, and the higher one gives a count 2.7 times smaller3. When a learned mask ranks the neurons instead, the count still falls 14-fold. Yet at every learning rate, the rules at 153M need about three of the directions4 that the MLPs write to the residual stream. This suggests that a higher learning rate does not simplify a rule but writes it in fewer neurons. A comparison between sizes can even reverse5, since on average, our largest models need more neurons than our smallest at a low learning rate and fewer at a high one. In public models6, the count also varies with training length and, in an OLMo-2 grid, with weight decay, whose effect reverses as the learning rate rises. A neuron count compared across models reflects the recipe as well as the behavior, so recipes should be matched or at least reported.
Two lines meet here: counting circuits, and what large steps do to networks.
Read four parts, in this order.
Skip Section 2 if you know the circuit-discovery literature.
If the effect is smaller than it looks, look here first.
Three choices in the scoring could bias the counts. First, the measuring pairs are not held out from the ranking pairs (Section 3.1), so a ranking is partly tested on the pairs on which it was made, and the learned mask is partly tested on the pairs on which it was trained. All our models are scored on the same prompt sets, so the overlap is the same at every learning rate, but a ranking could still fit its pairs more closely in some models than in others. For gender, the overlap is nearly complete. For the determiner, it is 2% to 3%, and on the two prompt sets of the stronger rankings, the determiner alone falls with a slope of -0.86 under attribution and -0.70 (-0.86 to -0.55) under the mask, so the fall does not need the overlap. We have not rescored gender and the bracket with disjoint pairs, so how much of their steeper fall depends on the overlap is open. Second, the attribution gradient leaves out the paths through later MLPs (Section 3.2), which can make the attribution ranking worse in some models than in others. The mask is trained with the full gradient, and the effect holds under it (Section 5.3). Third, the count is set almost entirely by necessity, and so by ablation to the mean. In 414 of the 420 curves of the three rules in our runs, necessity is the smaller of the two measures where the curve first reaches one half. A count to one half of sufficiency alone, whose intervention uses no mean, falls with slopes of -0.96, -1.15, and -1.56 at the three sizes, so the fall does not come from ablating to the mean. We computed this check after seeing the results.
The ranking does explain part of the effect. Compared with attribution, the mask finds sets 0.46 times as large at the lowest learning rate and 0.86 times as large at the highest. Attribution therefore overstates the fall. With the best ranking, the count falls 14-fold over the range, compared with 26-fold with attribution on the same prompt sets.
Which of our three model sizes has the largest neuron count depends on the learning rate. At a learning rate of 0.0006, the neuron count grows with size, from 110 at 90M to 154 at 153M and 254 at 371M. At 0.0048, it shrinks with size, from 29 to 18 to 11. The reversal is in the number of neurons. As a share of the neurons at the position, which are four times as many at 371M as at 90M, the largest model needs the smallest share at both learning rates. At the low learning rate, the largest model has 2.31 times the count of the smallest (1.56 to 3.40), and at the high one, 0.37 times (0.27 to 0.52). Both ratios rest on two seeds of each size, and the comparison is post hoc. The reversal is also not in every rule. The determiner has the larger count at 371M at both learning rates, although neither ratio is resolved, and without gender, the two sizes have about the same count at 0.0048, with a ratio of 1.10 (0.63 to 1.89).
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all