Active Inference with a Self-Prior in the Mirror-Mark Task
Organizations: Laboratory for Intelligent Systems and Informatics, Graduate School of Information Science and Technology, The University of Tokyo, 7-3-1 Hongo, Bunkyo-ku, Tokyo, Japan
Abstract
The mirror self-recognition test evaluates whether a subject touches a mark on its own body that is visible only in a mirror, and is widely used as an indicator of self-awareness. In this study, we present a computational model in which this behavior emerges spontaneously through a single mechanism, the self-prior, without any external reward. The self-prior, implemented with a Transformer, learns the density of familiar multisensory experiences; when a novel mark appears, the discrepancy from this learned distribution drives mark-directed behavior through active inference. A simulated infant, relying solely on vision and proprioception without tactile input, discovered a sticker placed on its own face in the mirror and removed it in approximately 70% of cases without any explicit instruction. Expected free energy decreased significantly after sticker removal, confirming that the self-prior operates as an internal criterion for distinguishing self from non-self. Cross-modal sampling further demonstrated that the self-prior captures visual--proprioceptive associations, functioning as a probabilistic body schema. These results provide a concise computational account of the key behavior observed in the mirror test and suggest that the free energy principle can serve as a unifying hypothesis for investigating the developmental origins of self-awareness. Code is available at: https://github.com/kim135797531/self-prior-mirror
Figures & tables
| Category | Joint | Range (rad) |
|---|---|---|
| Neck | pitch | |
| yaw | ||
| Shoulder | elv_angle | |
| shoulder_elv | ||
| shoulder_rot | ||
| Elbow | elbow_flexion |
| Component | Specification |
|---|---|
| Visual encoder | 4 convolutional layers, |
| Proprioceptive encoder | 2-layer MLP (32 hidden units), |
| Observation mixer | 1 linear layer, |
| Action mixer | 1 linear layer, |
| Sequence model | GPT-like Transformer decoder, |
| Setting | Value |
|---|---|
| Hardware / software | Ubuntu 22.04.5 LTS, |
| Intel Xeon E5-2697 v4, | |
| NVIDIA RTX A6000, | |
| Python 3.13.7, PyTorch 2.7.1 | |
| Image resolution | RGB |
| Simulation time step |
Computational Cognitive Modeling
Computational cognitive modeling uses formal models and simulations to explain how people perceive, learn, remember, reason, and choose.
See all 126 papers