Abstract
Surprise is a widely used concept describing a range of phenomena from unexpected events to behavioral responses. We propose a measure of surprise, to arrive at a new framework for surprise-driven learning. There are two components to this framework: (i) a confidence-adjusted surprise measure to capture environmental statistics as well as subjective beliefs, (ii) a surprise-minimization learning rule, or SMiLe-rule, which dynamically adjusts the balance between new and old information without making prior assumptions about the temporal statistics of the environment. We apply our framework to a dynamic decision-making task and a maze exploration task to demonstrate that it is suitable for learning in complex environments, even if the environment undergoes gradual or sudden changes. Our proposed surprise-modulated belief update algorithm provides a framework to study the behavior of humans and animals encountering surprising events.
Introduction
In uncertain and dynamic environments, agents face a fundamental challenge known as the "stability-plasticity" dilemma. To learn effectively, an agent must decide how much to weight new data against existing knowledge. If an environment is stable but noisy, the agent should average observations over a long period to filter out fluctuations. However, if the environment undergoes a structural change—such as a shift in resource locations or the appearance of a threat—the agent must rapidly "forget" the past and prioritize new information.
While standard Bayesian models can theoretically solve this problem, they are often computationally intensive and require the agent to possess prior knowledge of the "hazard rate," or the frequency of environmental changes. In contrast, biological organisms demonstrate a remarkable ability to adapt to such shifts without explicit knowledge of these statistics. This paper introduces the SMiLe-rule (Surprise Minimization Learning rule), a biologically plausible mechanism that uses surprise as a dynamic trigger to balance new and old information.
The SMiLe-rule Framework
The proposed framework rests on two mathematical pillars designed to mimic the adaptive nature of biological learning.
1. Confidence-Corrected Surprise ($S_{corr}$)
Traditional models often define surprise simply as the unexpectedness of a data point. However, this paper argues that surprise is inherently subjective and must be scaled by the agent's current confidence. If an agent is highly uncertain about its environment, a deviating data point is less informative than if the agent were highly certain. The authors define $S_{corr}$ by taking the "raw surprise" (the negative log-likelihood of the data) and subtracting the entropy of the current belief. This ensures that surprise is only high when a data point strongly contradicts a confident internal model.
2. The SMiLe Learning Rule
The SMiLe-rule is derived from a constraint optimization problem: the agent seeks to minimize the surprise of future events while remaining close to its current beliefs to prevent overfitting to noise. This results in a belief update that functions as a weighted average:
$$\text{New Belief} = \gamma(\text{New Data}) + (1 - \gamma)(\text{Old Belief})$$
The critical innovation is that the learning rate, $\gamma$, is not fixed. Instead, it scales dynamically with $S_{corr}$. When surprise is high, $\gamma$ increases, allowing for rapid adaptation; when surprise is low, $\gamma$ decreases, favoring stability.
Experimental Validation
The framework was tested across two distinct simulated environments to evaluate its robustness against different types of environmental change.
Gaussian Mean Estimation
In this one-dimensional task, an agent estimated the mean of a distribution that "jumped" to new values at unpredictable intervals. The SMiLe-rule significantly outperformed traditional "delta-rules" that utilize fixed learning rates. Notably, the SMiLe-rule achieved performance levels comparable to the "Optimal Bayesian" solution, despite the fact that the Bayesian solution required explicit knowledge of the environment's hazard rate, which the SMiLe-rule did not.
Maze Exploration
To test the framework in a multi-dimensional setting, the authors utilized a 16-room maze task. The agent's goal was to learn the maze's topology, which periodically switched between two distinct configurations. The SMiLe-rule allowed agents to adapt to new layouts within approximately 100 steps. Conversely, a "Naive Bayesian" learner—one that does not account for environmental shifts—became increasingly rigid over time, eventually failing to learn new layouts as it became over-confident in its outdated model.
Discussion and Biological Significance
A key insight of this framework is the role of surprise as a pre-update signal. Unlike "Bayesian Surprise," which measures belief change after data is processed, $S_{corr}$ is calculated before the update. This aligns with biological observations where physiological markers of surprise, such as pupil dilation, occur almost instantaneously upon encountering an unexpected stimulus.
The authors further propose a neuromodulatory mapping for this framework: Noradrenaline (NE) may signal the confidence-corrected surprise, while Acetylcholine (ACh) may represent the model's internal uncertainty. By maintaining a baseline level of uncertainty, the SMiLe-rule prevents the "over-stabilization" often seen in standard Bayesian models, ensuring the agent remains alert to environmental shifts.
While the SMiLe-rule is an approximation rather than a strictly optimal mathematical solution, its computational efficiency and lack of reliance on prior hazard rate knowledge make it a compelling model for how humans and animals navigate a changing world. Future research will focus on scaling this surprise-driven approach to higher-dimensional tasks and exploring circuit-level biological implementations.
Summary updated