Language Model Circuits Use Fewer Neurons at Higher Learning Rates
Abstract
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 seed. 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 behavior. 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 smaller. 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 directions 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 reverse, 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 models, 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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
- Comments
- 26 pages, 3 figures. Code and scores: https://github.com/marcoshernanz/circuits-fewer-neurons
Related papers
Tracing Perceptual Transfer in Vision-Language Models via Model Merging
Shared title terminologycs.LGJiashu Li, Tianyu Gao, Qinglong Liu et al.
On the role of Learning Rate in a Mixture-of-Experts ResNets
Shared title terminologycs.LGMateusz Pyla, Stanisław Jastrzębski, Igor Podolak
Fewer Messages or Coarser Messages? An Equal-Bit Comparison Between Recurrent Modules
Shared title terminologycs.LGXuanyu Yang, Tong Guo
Remove, Compensate, Fold or Factorize? Benchmarking FFN Neuron Pruning in LLMs
Shared title terminologycs.LGJose I. Mestre, Alberto Fernández-Hernández, Cristian Pérez-Corral et al.
Source-Free Cross-Domain Continual Learning via Orthogonal Sharpness-Aware Vision Language Models
Shared title terminologycs.LGAmri Muhaimin, Mahardhika Pratama, Rizal Hamdan Arigusti et al.
When Does Fine-Tuning Overtake Prompting? An Accuracy and Cost Analysis of Small Language Models on Narrow Tasks
Shared title terminologycs.LGUrs Spiegelhalter, Jörg K. H. Franke, Frank Hutter