TL;DR
This paper investigates how animals and artificial neural networks adapt their behavior in dynamic environments where the rules of sensory interpretation change. They introduce a novel task where mice and recurrent neural networks learn to infer both the current state and the reliability of sensory cues, demonstrating that this "flexible perceptual inference" is learned through recurrent dynamics rather than simple stimulus-response or reward-based learning.
What Problem Does This Paper Address?
The world is constantly changing, and our ability to make sense of sensory information depends not only on what we perceive but also on the context in which we perceive it. For example, a rustling sound might be a harmless breeze or a predator, and our interpretation depends on the broader environmental context. The fundamental challenge is how the brain simultaneously infers both the meaning of sensory input and the underlying context itself, especially when that context is shifting. This is known as "flexible perceptual inference." While previous work has explored context-dependent integration and inference, the mechanisms by which agents infer an implicit context and dynamically adapt their evidence accumulation remain poorly understood. This paper aims to bridge this gap by developing a computational framework and testing it in both animal models and artificial neural networks.
Methods
The authors designed a novel change-detection task where agents (mice and recurrent neural networks) must infer a latent binary state (safe/unsafe) and a latent context parameter that dictates the reliability of sensory cues. This is framed as a partially observable Markov decision process (POMDP).
Key methodological contributions include:
- Bayesian-optimal policy derivation: They derived the theoretically optimal strategy for an agent to maximize reward in this dynamic environment, which involves continuously updating a belief state about both the latent state and the context.
- Recurrent Neural Network (RNN) training: They trained deep Long Short-Term Memory (LSTM) networks using a reinforcement learning (actor-critic) approach. Crucially, they trained the recurrent connectivity of the networks, not just the output layers.
- Comparison with simpler models: They compared the RNNs' performance and internal dynamics to simpler models like linear integrators and a "naive" random RNN model to isolate the contribution of learned recurrent dynamics.
- Analysis of neural dynamics: They used Principal Component Analysis (PCA) to analyze the internal representations within the trained RNNs and compared these dynamics to the theoretically derived Bayesian estimators and linear integrators.
Datasets
The study utilized a newly introduced custom-designed change-detection task implemented in a behavioral setup for mice. This task served as the benchmark for both training and evaluating the performance of the mice and the artificial neural networks. No pre-existing datasets were used.
Key Insights and Ideas
- First-trial adaptation: Mice demonstrated rapid adaptation to new contexts within the very first trial after a context switch, even before receiving any reward feedback. This strongly suggests inference-driven adaptation rather than trial-and-error learning.
- Learned recurrent dynamics are crucial: Untrained RNNs with random weights, even when provided with explicit context information, failed to achieve near-optimal performance. This highlights that learning the recurrent connectivity is essential for implementing flexible perceptual inference.
- RNNs approximate Bayesian inference: Trained RNNs achieved near-Bayesian performance and exhibited internal dynamics that closely mirrored the theoretically optimal Bayesian strategy, including selective evidence gating and context-dependent updates.
- Neural signatures of flexible inference: The study identified potential neural correlates of flexible inference: low-dimensional dynamics with separable state and context representations, nonlinear updates, and selective gating of information.
- Beyond simple integration: The learned RNN dynamics were fundamentally different from simple linear integration, demonstrating a more sophisticated computational strategy for handling uncertainty.
Key Results
- Mice: Showed significant adaptation in waiting times within the first trial after context switches, with expert mice exhibiting more pronounced context sensitivity.
- Bayes-optimal agent: Achieved near-perfect performance, serving as a benchmark.
- Trained RNNs: Achieved near-optimal reward rates, outperforming simpler linear integrator models and untrained RNNs. They also showed rapid context adaptation within the first test trial after a block switch.
- Internal dynamics: PCA revealed that the first principal component in trained RNNs encoded the decision variable, while the second encoded the context. These dynamics mirrored Bayesian estimators, particularly in how they handled nogo signals (paradoxically increasing context uncertainty).
- Untrained RNNs: Performed poorly, showing maladaptive behavior and failing to differentiate contexts near decision boundaries, despite showing some ability to decode latent variables on average.
Limitations and Future Work
- Computational Intractability of Exact Bayesian Inference: The paper acknowledges that exact Bayesian inference is computationally intractable for neural systems, especially with continuous variables. This motivates the search for efficient approximations.
- Artificial vs. Biological Neurons: The LSTM networks used are not direct biological analogues but serve as a powerful tool to study computational principles. Future work could explore more biologically plausible network architectures.
- Future Directions: The authors suggest investigating how these inference mechanisms are implemented at the circuit level in brain regions like the orbitofrontal cortex and how they interact with reinforcement learning to shape behavior in dynamic environments. They also propose future experiments to test the identified neural signatures of flexible perceptual inference.
Summary updated