RPE as a Homeostatic Function: A Thermodynamic Justification of Reward Prediction Error
Why the brain computes the difference between received and expected — and why an open system cannot survive without this operation. Reward prediction error (RPE) is the most widely measured signal in neuroscience: the phasic activity of dopamine neurons encodes the difference between received and expected reward (Schultz, 1998), and modern reinforcement learning theory rests on this formalism. Yet the most fundamental question — why does the system compute this difference at all, rather than the absolute magnitude of the resource received? — has no generally accepted answer. RPE has been described down to the level of receptors and projections, measured in awake animals, and formalized mathematically — yet it remains an algorithm without a justification: thirty years of data on how the brain computes this difference do not answer why it computes it. This article shows that the justification lies not in neuroscience but beneath the nervous system: the computation of prediction error is neither an invention of the brain nor a superstructure of evolution, but a thermodynamic necessity of an open system. From a single assumption — an organism must balance energy flows — the following are derived step by step: exactly two basic needs (hunger and reproduction), a physical prohibition on a single behavioral channel, the structure of any behavioral scheme, and the operation of comparing prediction with fact. Under an advance-based structure of actions and an absorbing barrier at zero reserve, a system acting without a forecast of return dies with probability tending to one — the gambler's ruin problem in its literal biological sense. Prediction error thus proves to be a condition for the existence of any homeostatic cycle: the same operation that the dopamine signal performs in animals is performed in a bacterium by chemotaxis — a mechanism billions of years older than the nervous system. The model is not merely descriptive: known facts — the hormonal gate of the food channel, the terminal regime of semelparous species, supernormal stimuli — find their place in it as consequences of a single physical foundation rather than as a list of independent observations. It yields tests that separate it from alternative approaches by experimental outcome: bidirectional blockade of the food channel by a hormonal signal (restoring the signal in a castrated animal should trigger reproductive behavior without changing access to food), and a negative dopamine signal under an unexpected increase in the cost of the path to reward — a direct test of the form in which costs enter the prediction error: the model predicts a cost input that is additive and symmetric to the inflow, distinguishable from effort discounting. A complete list of implications and the conditions for testing them is given in Section 11.
Authors
- Sergei Orlov (ORCID: https://orcid.org/0009-0001-3059-0545)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-27
- DOI
- https://doi.org/10.5281/zenodo.24575763
- Primary Topic
- Embodied and Extended Cognition
- Type
- preprint