bioRxivNeurosciencePreprint
A neural mechanism for online discovery of latent contexts
Ali HummosiD, Mien Brabeeba Wang, Qihong LuiD, Kenneth A. NormaniD, Mehrdad JazayeriiD
Abstract
Experience unfolds as a stream shaped by hidden causes that change over time. Adaptive behavior requires inferring the underlying states and adjusting when they change. Yet, how neural circuits discover and track latent states remains unclear. Here we introduce NeuraGEM, a neural architecture that combines fast transient activity with slow synaptic plasticity to implement an online analogue of Expectation-Maximization. By separating timescales, NeuraGEM clusters sequential experiences, detects context changes, and stabilizes task-specific computations. The model generalizes beyond conventional recurrent networks and reproduces key features of human contextual learning, including curriculum-dependent effects. It also gives rise to population dynamics resembling those observed in brain circuits, including line-attractor structure and transient error responses at change points. Together, these findings provide a mechanistic account of how neural circuits organize experience into latent states that support rapid inference and adaptive behavior.
- Citations
- 0
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
- Adaptive learning through temporal dynamics of state representation
Niloufar Razmi, Matthew R. Nassar·Journal of NeurosciencePeer-reviewed·Feb 1, 2022
- Neural mechanisms of flexible perceptual inference
John Schwarcz, J.M. Bauer, … Jonathan Kadmon·PLoS Computational BiologyPeer-reviewed·Dec 1, 2025
- Adaptive learning via surprise gated attractor switching
Qin Shu He, Daniel N. Scott, … Matthew R. Nassar·bioRxiv·Mar 13, 2025
- 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 geometry of context-dependent biased decisions during learning
Ramon Nogueira, Saleh Esteki, … Roozbeh Kiani·bioRxiv·Jan 15, 2026
- Spontaneous emergence of context-dependent statistical learning in humans and neural networks
Fleming C. Peck, Hongjing Lu, Jesse Rissman·iSciencePeer-reviewed·Aug 1, 2026