arXiv:2611.09204cs.CLNov 2026

Manuscript Offprint

arXiv:2611.09204

Representational drift in a code model: behaviour settles, which neurons carry it does not

Piotr Wilam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In neuroscience, representational drift is a change in which neurons carry a representation while behaviour stays the same; we measure its analogue in OpenCoder-1.5B during pretraining, for 169 Python constructs over two trillion tokens at a constant learning rate, with a noise unit on every change, at checkpoints as close as 1,000 training steps. For 16 of the 169, those whose grammar fixes a next token, the loss at those positions reaches its floor within the first 4% of training, while the model's reliance on the neurons carrying them grows to the end: removing them costs 0.06, 0.25 and 0.40 nats more than removing a random set, at 4 billion, 84 billion and 2 trillion tokens. Which neurons carry a construct never settles: for all 169 the carrier set is still changing at the last checkpoint, and an abrupt settling at any date from 84 billion to 1.5 trillion tokens, or a gradual one before 500 billion, would have been detected in 99% of injected cases. The set measured at 84 billion tokens, removed at the end, cannot be separated from a random set, so the function is carried by whichever neurons are current. Up close the change is a persisting pool and a changing sample: a neuron that leaves a construct's set returns at three times the rate of a matched neuron, and no set reassembles. The hypothesis we fixed in advance, that the carriers settle, is refuted; we discuss candidate causes and name the experiment that would separate them.

1. The question

A construct is one named piece of a programming language's grammar — the keyword for, the builtin len, a list comprehension. A neuron is one hidden unit of a transformer's MLP block. The carriers of a construct are the 5% of neurons that respond most to it, measured against the same

token outside its role. Once a model has learned a construct, do its carriers stay put?

On the record read here the answer is no. The model's loss at the construct's forced positions reaches its floor within the first 4% of training; the model comes to depend more on the current carriers as training goes on; which neurons they are never settles. The separation of those three timescales, and the shape of the change up close, are the result of the paper.

In neuroscience, representational drift is the observation that the neurons carrying a representation reorganise over days and weeks while the animal's behaviour is stable and the information stays readable from the changing population (Driscoll et al., 2017; Rule et al., 2019; Schoonover et al., 2021). The term is used here in that sense only: not the drift of a data distribution over time, and not the drift of a concept's meaning. For a two-layer network trained by stochastic gradient descent, an analogous drift has been derived: once a function is learned, the weights keep moving along directions that do not change the loss, faster at higher learning rates and slower for inputs seen often (Pashakhanloo & Koulakov, 2023; from implicit regularisation, Ratzon et al., 2024); §5 tests both as a candidate account of what we measure.

Whether the phenomenon exists in a language model during pretraining has been seen before at coarse checkpoint spacing and without a noise unit. For subject-verb agreement, the heads that carry it in Pythia keep changing after its accuracy has settled, and the circuit shrinks from hundreds of neurons to a few dozen (Yao et al., 2026b); for a set of facts in a dense 7-billion-parameter model, the 1% of neurons that matter most change between checkpoints tens of thousands of steps apart (Wang et al., 2026); for semantic roles, circuits become causally necessary early and keep refining for tens of thousands of steps, as edge weights more than as nodes (Aljaafari et al., 2026). Other measurements are of the opposite: universal neurons persist across seeds at coarse spacing (Nandan et al., 2025; Gurnee et al., 2024), and features consolidate over pretraining (Bayazit et al., 2026). §8 shows that these and our result are one picture.

¹University College London, London, United Kingdom. Correspondence to: Piotr Wilam piotrwilam@gmail.com.

Preprint. November 9, 2026.