研究:更高学习率让语言模型电路使用更少神经元
Language Model Circuits Use Fewer Neurons at Higher Learning Rates
机制可解释性研究里少见的控制变量实验:35 个模型只变学习率,发现电路大小差 25 倍。做 interpretability 或跨模型对比的人应该看看,结论可能推翻不少已有比较。
arXiv 新论文训练了 35 个 Llama 风格模型,参数量覆盖 90M 到 371M 三档,同尺寸内只改变峰值学习率和随机种子。
作者用归因排序统计语法规则在判定 token 上必要且充分的 MLP 神经元数量:在 153M 参数下,学习率提高 16 倍会让该数量下降 25 倍,从平均每条规则 154 个神经元降到 6 个;即使改用可学习掩码排序神经元,降幅仍达 14 倍。
同一损失水平下,更高学习率的模型神经元数量小 2.7 倍,且模型越大降幅越明显。
论文进一步在公开模型中验证,神经元计数还随训练时长变化,在 OLMo-2 网格中随权重衰减变化且该效应随学习率升高而反转。这说明跨模型比较电路大小实际上反映的是训练配方差异,作者建议匹配或至少报告训练配方。
Language Model Circuits Use Fewer Neurons at Higher Learning Rates
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.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include interpretability, Llama, OLMo-2, learning rate.
Source attribution: curated from arXiv cs.LG (@Marcos Hernanz).