Stanford researchers found dopamine neurons inside LLMs.
They published a paper called "Sparse Reward Subsystem in Large Language Models”
And what they found buried inside the hidden layers changes how we understand AI.
By probing models across Llama, Gemma, Qwen, and Phi, the researchers discovered that LLMs spontaneously developed a tiny, specialized reward system.
Less than 1% of the model's neurons run the entire thing.
They found two distinct types of neurons:
- Value neurons: They constantly track the model's internal expectation of whether its current chain of thought will actually reach the right answer.
- Dopamine neurons: They encode "reward prediction error." The exact moment the AI hits a key breakthrough, they spike. The exact moment it makes a logical flaw, they crash into a trough.
But here is the craziest part.
Researchers tested what happens when you shut these neurons off on a hard math benchmark (MATH500).
The model's baseline accuracy was 75.2%.
When they wiped out a random 1% of neurons in a single layer, accuracy barely budged, 74.6%.
When they wiped out just 1% of the value neurons in a single layer?
Accuracy collapsed to 20.3%.
Without that tiny 1% reward circuit, the AI's ability to reason completely falls apart.
And the practical upside is massive.
By reading these neurons in real time, you can gauge a model's true confidence before it even finishes generating, and use its own dopamine neurons to guide its reasoning step by step.
Nobody ever programmed a dopamine system into these models.
We just trained them to predict text, and they evolved the exact same reward circuitry that runs the human brain.