Neural mechanisms of flexible perceptual inference
John SchwarcziD, J.M. BaueriD, Haneen Rajabi, Gabrielle MarmuriD, Robert Reiner, Eran LottemiD, Jonathan KadmoniD
Abstract
What seems obvious in one context can take on an entirely different meaning if that context shifts. While context-dependent inference has been widely studied, a fundamental question remains: how does the brain simultaneously infer both the meaning of sensory input and the underlying context itself, especially when the context is changing? Here, we study flexible perceptual inference--the ability to adapt rapidly to implicit contextual shifts without trial and error. We introduce a novel change-detection task in dynamic environments that requires tracking latent state and context. We find that mice exhibit first-trial behavioral adaptation to latent context shifts driven by inference rather than reward feedback. By deriving the Bayes-optimal policy under a partially observable Markov decision process, we show that rapid adaptation emerges from sequential updates of an internal belief state. In addition, we show that artificial neural networks trained via reinforcement learning achieve near-optimal performance, implementing Bayesian inference-like mechanisms within their recurrent dynamics. These networks develop flexible internal representations that enable real-time adjustments to the inference model. Our findings establish flexible perceptual inference as a core principle of cognitive flexibility, offering computational and neural-mechanistic insights into adaptive behavior in uncertain environments.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- FWCI
- 0.57
- Field percentile
- top 30%
- Organism
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Perceptual decisions exhibit hallmarks of dynamic Bayesian inference
Julie A. Charlton, Wiktor F. Młynarski, … Robbe L. T. Goris·PLoS Computational BiologyPeer-reviewed·Jun 8, 2023
- Hidden-state inference aligns attention and neural representational geometry during flexible behaviour
Casper Kerrén, Stephanie Theves, … Christian F. Doeller·bioRxiv·Oct 10, 2025
- The effects of probabilistic context inference on motor adaptation
Darío Cuevas Rivera, Stefan J. Kiebel·bioRxiv·Nov 30, 2021
- Recasting adaptation as strategy inference
Sami Beaumont, Mehdi Khamassi, Philippe Domenech·bioRxiv·Mar 24, 2025
- Updating contextual sensory expectations for adaptive behaviour
Ambra Ferrari, David Richter, Floris P. de Lange·Journal of NeurosciencePeer-reviewed·Oct 24, 2022
- Human Inference in Changing Environments with TemporalStructure
Arthur Prat-Carrabin, Robert C. Wilson, … Rava Azeredo da Silveira·Psychological ReviewPeer-reviewed·Sep 13, 2021