Search bioRxiv⌕ Search

Biology subjects

Jazayeri, M.

Publications and source records attributed to Jazayeri, M..

At least 19 recordsLinked to original sources

A Relational Code for Objects in Primate Frontal Cortex

When we remember a scene, we recall both the locations of individual objects and their spatial arrangement. Yet, how neurons encode this arrangement alongside individual locations is unknown. In this work, we recorded large-scale neural activity from the frontal and supplementary eye fields of monkeys performing a two-object spatial working-memory task. Using a continuum of two object configurations, we tested whether neurons encoded individual object locations or the spatial relationship between them. Many neurons had well-defined position tuning when a single object was presented. With two objects, responses spanned a continuum from retinotopic to relational tuning. Surprisingly, most units were better explained by relational tuning than retinotopic tuning. Relational and retinotopic units encoded complementary dimensions of the stimulus, and their observed mixture supported near-optimal population decoding of object locations. Relational tuning was systematically aligned with single-object receptive fields, enabling a readout that produced repulsive biases resembling those observed in behavior. Standard multi-object models such as averaging and normalization failed to reproduce the observed continuum, whereas a model integrating receptive fields over potential saccades captured it. These findings show that the frontal oculomotor cortex represents not only where objects are, but also how they are arranged with respect to one another.

neuroscience↗

Adaptive problem solving in the primate frontal cortex

Humans solve problems adaptively by selecting strategies suited to the situation. For example, when missing the bus to an appointment, we may wait for the next bus, call a taxi, cancel, or reschedule depending on the circumstances. Yet the neural and computational principles that support such flexible problem solving remain poorly understood. To address this question, we designed a moderately complex decision task for monkeys that allows multiple plausible solution strategies. Animals learned the task rapidly, generalized to novel maze geometries, and their choices were inconsistent with any single fixed strategy. We then recorded large-scale neural activity from the frontal cortex and found that population dynamics varied systematically with maze geometry. Neural responses clustered into two distinct dynamical regimes with separable initial states, consistent with hierarchical and sequential strategies. A decoder trained on population activity revealed time-resolved decision dynamics that aligned with these regimes, and an unsupervised latent-space analysis provided convergent evidence that strategy use varied across trials. A behavioral model grounded in neurally inferred strategies accounted for choices better than fixed-strategy alternatives and captured trial-by-trial variability. Together, these results provide a neural and computational account of how the brain selects and implements distinct strategies during adaptive problem solving.

neuroscience↗

A neural mechanism for online discovery of latent contexts

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.

neuroscience↗

Working Memory of Multi-Object Scenes in Primate Frontal Cortex

Working memory allows primates to reason about complex scenes, yet how the brain maintains multiple objects in memory simultaneously remains unclear. Competing theories propose that objects are stored in discrete slots1,2, represented dynamically through switching3-6, or encoded by weighted combinations of single-object representations7-11. We formalized these hypotheses in terms of their quantitative predictions at the level of single neurons and tested them against densely recorded neural data from the dorsomedial frontal cortex and frontal eye field of monkeys trained to perform a novel multi-object working-memory task. Across cross-validated neural data, a Gain model, where population activity reflects weighted compositions of individual object responses, consistently outperformed Slot and Switching models. Trial-specific gain estimates predicted behavioral errors and reaction times, indicating that these latent weights capture meaningful fluctuations in memory fidelity. All results replicated in an independent dataset with different spatial configurations. Together, our work provides a rigorous framework to adjudicate a longstanding debate about how the frontal cortex retains multiple objects, identifying a weighted-sum representation as the format that best explains the neural data.

neuroscience↗

Evidence accumulation from experience and observation in the cingulate cortex

We use our experiences to form and update beliefs about the hidden states of the world. When possible, we also gather evidence by observing others. However, how the brain integrates experiential and observational evidence is not understood. We studied the dynamics of evidence integration in a two-player game with volatile hidden states. Both humans and monkeys successfully updated their beliefs while playing the game and observing their partner, though less effectively when observing. Electrophysiological recordings in animals revealed that the anterior cingulate cortex (ACC) integrates independent sources of experiential and observational evidence into a coherent neural representation of dynamic belief about the environments state. The geometry of population activity revealed the computational architecture of this integration and provided a neural account of the behavioral asymmetry between experiential and observational evidence accumulation. This work lays the groundwork for understanding the neural mechanisms underlying evidence accumulation in social contexts within the primate brain.

neuroscience↗

Sensory History Drives Adaptive Neural Geometry in LP/Pulvinar-Prefrontal Cortex Circuits

Prior expectations guide attention and support perceptual filtering for efficient processing during decision-making. Here we show that during a visual discrimination task, mice use prior stimulus history to guide ongoing choices by estimating differences in evidence between consecutive trials (|{Delta}Dir|). The thalamic lateral posterior (LP)/pulvinar nucleus provides robust inputs to the Anterior Cingulate Cortex (ACC), which has been implicated in selective attention and predictive processing, but the function of the LP-ACC projection is unknown. We found that optogenetic manipulations of LP-ACC axons disrupted animals ability to effectively estimate and use information across stimulus history, leading to |{Delta}Dir|-dependent biases. Two-photon calcium imaging of LP-ACC axons revealed an engagement-dependent low-dimensional organization of stimuli along a curved manifold. This representation was scaled by |{Delta}Dir| in a manner that emphasized greater deviations from prior evidence. Thus, our work identifies the LP-ACC pathway as essential for selecting and evaluating stimuli relative to prior evidence to guide decisions.

neuroscience↗

MEDiCINe: Motion Correction for Neural Electrophysiology Recordings

Electrophysiology recordings from the brain using laminar multielectrode arrays allow researchers to measure the activity of many neurons simultaneously. However, laminar microelectrode arrays move relative to their surrounding neural tissue for a variety of reasons, such as pulsation, changes in intracranial pressure, and decompression of neural tissue after insertion. Inferring and correcting for this motion stabilizes the recording and is critical to identify and track single neurons across time. Such motion correction is a preprocessing step of standard spike sorting methods. However, estimating motion robustly and accurately in electrophysiology recordings is challenging due to the stochasticity of the neural data. To tackle this problem, we introduce MEDiCINe (Motion Estimation by Distributional Contrastive Inference for Neurophysiology), a novel motion estimation method. We show that MEDiCINe outperforms existing motion estimation methods on an extensive suite of simulated neurophysiology recordings and leads to more accurate spike sorting. We also show that MEDiCINe correctly estimates the motion in primate electrophysiology recordings with a variety of motion and stability statistics. We open-source MEDiCINe, usage instructions, examples integrating MEDiCINe with common tools for spike-sorting, and data and code for reproducing our results. This open software will enable other researchers to use MEDiCINe to improve spike sorting results and get the most out of their electrophysiology datasets.

neuroscience↗

Computational basis of hierarchical and counterfactual information processing

Cognitive theories attribute humans unparalleled capacity in solving complex multistage decision problems to distinctive hierarchical and counterfactual reasoning strategies. Here, we used a combination of human psychophysics and behaviorally-constrained neural network modeling to understand the computational basis of these cognitive strategies. We first developed a multi-stage decision-making task that humans solve using a combination of hierarchical and counterfactual processing. We then used a series of hypothesis-driven behavioral experiments to systematically dissect the potential computational constraints that underlie these strategies. One experiment revealed that humans have limited capacity for parallel processing. Another indicated that counterfactuals do not fully compensate for this limitation because of working memory limits. A third experiment revealed that the degree to which humans use counterfactuals depends on the fidelity of their working memory. Next, we asked whether the strategies humans adopt are computationally rational; i.e., optimal under these constraints. To do so, we analyzed the behavior of a battery of task-optimized recurrent neural networks (RNNs) that were subjected to one or more of these constraints. Remarkably, only RNNs that were subjected to all these constraints behaved similarly to humans. Further analysis of the RNNs revealed that what cognitive theories posit as distinctive strategies such as hierarchical and counterfactual are subdivisions in a continuum of computationally rational solutions that includes optimal, counterfactual, postdictive, and hierarchical.

neuroscience↗

Vector production via mental navigation in the entorhinal cortex

A cognitive map is a suitably structured representation that enables an agent to perform novel computations using prior experience, for instance planning a new route in a familiar space1,2. Recent work in mammals has found direct evidence for such structured representations in the presence of exogenous sensory inputs in both spatial3,4 and non-spatial domains5-15. Here, we test a foundational postulate of the original cognitive map theory1,16 that cognitive maps are recruited endogenously during mental navigation without external input. We recorded from the entorhinal cortex of monkeys in a mental navigation task that required animals to use a joystick to produce one-dimensional vectors between pairs of visual landmarks without sensory feedback about the intermediate landmarks. Animals ability to perform the task and generalize to new pairs indicated that they relied on a structured representation of the landmarks. Task-modulated neurons exhibited periodicity and ramping that matched the temporal structure of the landmarks. Neuron pairs with high periodicity scores had invariant cross-correlation structure, a signature of grid cell continuous attractor states17- 19. A basic continuous attractor network model of path integration20 augmented with a Hebbian learning mechanism provided an explanation of how the system endogenously recalls landmarks. The model also made an unexpected prediction that endogenous landmarks transiently slow down path integration, reset the dynamics, and thereby, reduce variability. Remarkably, this prediction was borne out of a reanalysis of behavior. Together, our findings connect the structured activity patterns in the entorhinal cortex to the endogenous recruitment of a cognitive map during mental navigation.

neuroscience↗

Dynamic tracking of objects in the macaque dorsomedial frontal cortex

Cognitive neuroscience posits that humans perform physical inferences using mental simulations. Here, we test this hypothesis by analyzing neural activity in the monkeys frontal cortex in a ball interception task. We find a low-dimensional neural embedding of the ball position that tracks the ball both when it is visible and invisible. This embedding may serve as a neural substrate for mental simulation.

neuroscience↗

Mixture of Learning Strategies Underlies Rodent Behavior in Dynamic Foraging

In volatile foraging environments, animals need to adapt their learning in accordance with the uncertainty of the environment and knowledge of the hidden structure of the world. In these contexts, previous studies have distinguished between two types of strategies, model-free learning, where reward values are updated locally based on external feedback signals, and inference-based learning, where an internal model of the world is used to make optimal inferences about the current state of the environment. Distinguishing between these strategies during the dynamic foraging behavioral paradigm has been a challenging problem for studies of reward-guided decisions, due to the diversity in behavior of model-free and inference-based agents, as well as the complexities that arise when animals mix between these types of strategies. Here, we developed two solutions that jointly tackle these problems. First, we identified four key behavioral features that together benchmark the switching dynamics of agents in response to a change in reward contingency. We performed computational simulations to systematically measure these features for a large ensemble of model-free and inference-based agents, uncovering an organized structure of behavioral choices where observed behavior can be reliably classified into one of six distinct regimes in the two respective parameter spaces. Second, to address the challenge that arises when animals use multiple strategies within single sessions, we developed a novel state-space method, block Hidden Markov Model (blockHMM), to infer switches in discrete latent states that govern the choice sequences across blocks of trials. Our results revealed a remarkable degree of mixing between different strategies even in expert animals, such that model-free and inference-based learning modes often co-existed within single sessions. Together, these results invite a re-evaluation of the stationarity of behavior during dynamic foraging, provide a comprehensive set of tools to characterize the evolution of learning strategies, and form the basis of understanding neural circuits involved in different modes of behavior within this domain.

neuroscience↗

Synaptic basis of a sub-second representation of time

Temporal sequences of neural activity are essential for driving well-timed behaviors, but the underlying cellular and circuit mechanisms remain elusive. We leveraged the well-defined architecture of the cerebellum, a brain region known to support temporally precise actions, to explore theoretically whether the experimentally observed diversity of short-term synaptic plasticity (STP) at the input layer could generate neural dynamics sufficient for subsecond temporal learning. Simulated synaptic input generated a diverse set of transient, firing patterns in granule cells (GCs) that provided a temporal basis set for learning precisely timed pauses of Purkinje cell activity associated with delayed eyelid conditioning and Bayesian interval estimation. The learning performance across time intervals was influenced by the temporal bandwidth of the GC basis, which was determined by the input layer synaptic properties. The ubiquity of STP throughout the brain positions it as a general, tunable cellular mechanism for sculpting neural dynamics and fine-tuning behavior.

neuroscience↗

Keeping time and rhythm by replaying a sensory-motor engram

Imagine practicing a piece of music, or a speech, solely within the mind, without any sensory input or motor output. Our ability to implement dynamic internal representations is key for successful behavior, yet how the brain achieves this is not fully understood1-4. Here we trained primates to perceive, and internally maintain, rhythms of different tempos and performed large-scale recordings of neuronal activity across multiple areas spanning the sensory-motor processing hierarchy. Results show that perceiving and maintaining rhythms engage multiple brain areas, including visual, parietal, premotor, prefrontal, and hippocampal regions. Each area displayed oscillatory activity that reflected the temporal and spatial characteristics of an internal metronome which flexibly encoded fast, medium, and slow tempos on a trial-by-trial basis. The presence of widespread metronome-related activity across the brain, in the absence of stimuli and overt actions, is consistent with the idea that time and rhythm are maintained by a mechanism that internally replays the stimuli and actions that define well-timed behavior.

neuroscience↗

Parametric control of flexible timing through low-dimensional neural manifolds

Biological brains possess an unparalleled ability to adapt behavioral responses to changing stimuli and environments. How neural processes enable this capacity is a fundamental open question. Previous works have identified two candidate mechanisms: a low-dimensional organization of neural activity and a modulation by contextual inputs. We hypothesized that combining the two might facilitate generalization and adaptation in complex tasks. We tested this hypothesis in the framework of flexible timing tasks where dynamics play a key role. Examining trained recurrent neural networks, we found that confining the dynamics to a low-dimensional subspace allowed tonic inputs to parametrically control the overall input-output transform, enabling generalization to novel inputs and adaptation to changing conditions. Reverse-engineering and theoretical analyses demonstrated that this parametric control relies on a mechanism where tonic inputs modulate the dynamics along non-linear manifolds in activity space while preserving their geometry. Comparisons with data from behaving monkeys confirmed the behavioral and neural signatures of this mechanism.

neuroscience↗

A precise and adaptive neural mechanism for predictive temporal processing in the frontal cortex

The theory of predictive processing posits that the nervous system uses expectations to process information predictively. Direct empirical evidence in support of this theory however has been scarce and largely limited to sensory areas. Here, we report a precise and adaptive neural mechanism in the frontal cortex of non-human primates consistent with predictive processing of temporal events. We found that the speed at which neural states evolve over time is inversely proportional to the statistical mean of the temporal distribution of an expected stimulus. This lawful relationship was evident across multiple experiments and held true during learning: when temporal statistics underwent covert changes, neural responses underwent predictable changes that reflected the new mean. Together, these results highlight a precise mathematical relationship between temporal statistics in the environment and neural activity in the frontal cortex that could serve as a mechanistic foundation for predictive temporal processing.

neuroscience↗

The role of mental simulation in primate physical inference abilities

Primates can richly parse sensory inputs to infer latent information, and adjust their behavior accordingly. It has been hypothesized that such flexible inferences are aided by simulations of internal models of the external world. However, evidence supporting this hypothesis has been based on behavioral models that do not emulate neural computations. Here, we test this hypothesis by directly comparing the behavior of humans and monkeys in a ball interception task to that of recurrent neural network (RNN) models with or without the capacity to "simulate" the underlying latent variables. Humans and monkeys had strikingly similar behavioral patterns suggesting common underlying neural computations. Comparison between primates and a large class of RNNs revealed that only RNNs that were optimized to simulate the position of the ball were able to accurately capture key features of the behavior such as systematic biases in the inference process. These results are consistent with the hypothesis that primates use mental simulation to make flexible inferences. Moreover, our work highlights a general strategy for using model neural systems to test computational hypotheses of higher brain function.

neuroscience↗

A large-scale neural network training framework for generalized estimation of single-trial population dynamics

Recent technical advances have enabled recording of increasingly large populations of neural activity, even during natural, unstructured behavior. Deep sequential autoencoders are the current state-of-the-art for uncovering dynamics from these datasets. However, these highly complex models include many non-trainable hyperparameters (HPs) that are typically hand tuned with reference to supervisory information (e.g., behavioral data). This process is cumbersome and time consuming and biases model selection toward models with good representations of individual supervisory variables. Additionally, it cannot be applied to cognitive areas or unstructured tasks for which supervisory information is unavailable. Here we demonstrate AutoLFADS, an automated model-tuning framework that can characterize dynamics using only neural data, without the need for supervisory information. This enables inference of dynamics out-of-the-box in diverse brain areas and behaviors, which we demonstrate on several datasets: motor cortex during free-paced reaching, somatosensory cortex during reaching with perturbations, and dorsomedial frontal cortex during cognitive timing tasks. We also provide a cloud software package and comprehensive tutorials that enable new users to apply the method without dedicated computing resources.

neuroscience↗

Metamers of Bayesian computation

There are two sharply debated views on how humans make decisions under uncertainty. Bayesian decision theory posits that humans optimize their behavior by establishing and integrating internal models of past sensory experiences (priors) and decision outcomes (cost functions). An alternative model-free hypothesis posits that decisions are optimized through trial and error without explicit internal models for priors and cost functions. To distinguish between these possibilities, we introduce a novel paradigm that probes sensitivity of humans to transitions between prior-cost pairs that demand the same optimal policy (metamers) but distinct internal models. We demonstrate the utility of our approach in two experiments that were classically explained by model-based Bayesian theory. Our approach validates the model-based strategy in an interval timing task but not in a visuomotor rotation task. More generally, our work provides a domain-general approach for testing the circumstances under which humans implement model-based Bayesian computations.

neuroscience↗