# Inferring how internal brain state shapes neural responses with state-dependent diffusion models

*Kaiwen Sheng, Yiqi Jiang, Yuyang Song, Gaurav Tyagi, Haotian Ye, Fangzhao Zhang, Ruiming Du, Pengxiao Wang, Stefano Ermon, Karl Deisseroth, Anish Mitra*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149640) · [OpenReview](https://openreview.net/forum?id=oaGzFBAs66) · [Open on the map](../papers.html#p149640)

Category: [Brain Signals & Spiking Networks](../pcat/6.md) › [Brain-State and Motion Representation Learning](../pgroup/109.md) · Type: new method · Keywords: state-dependent neural modeling, conditional diffusion, brain state inference, neural response synthesis, cross-state sampling, matched-state sampling

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Neural and brain architectures › Neural Dynamics and Connectivity; [AI for Science](../areas/ai-for-science.md) › Brain Dynamics and Medical Imaging › Brain Representation Learning

## Summary
BrainStateDiff is a conditional diffusion framework that models neural activity conditioned on external stimuli and recent brain states, using cross-state and matched-state sampling to synthesize responses for unobserved state-stimulus pairings.

## Explained to a 5-year-old
Sometimes our brain is in different moods, and the same thing can make us react differently. Scientists want to understand how these moods change our reactions, but they only saw a few mood-thing pairs. They made a new computer program that can imagine what the brain might do in new mood-thing situations by mixing old examples. It also makes small changes to show how the brain can vary its response from one time to another. They tested the program on brain recordings from mice and monkeys, and it created realistic brain activity.

## Explained to a 5-year-old, longer
Our brain can be in different states, like feeling sleepy or awake. When we see something, like a picture, our brain reacts, but the reaction can change depending on the state. Scientists study this by recording brain activity while showing things, but they only have a few combinations of states and things. This means many possible brain reactions are never seen in experiments. To help, researchers created a computer model that can guess what the brain might do in those missing situations. The model works by taking known brain reactions and mixing different states with different things to make new imagined reactions. It also makes small tweaks to show how the brain can vary its response from one trial to the next. The model was trained on brain recordings from mice looking at images, from monkeys listening to sounds, and from mice watching deeper brain activity. After training, the model can generate brain activity that looks realistic and follows the patterns scientists already know. This lets researchers explore how brain states affect responses even for combinations they never measured. The new tool helps scientists understand the brain better without having to do endless experiments. It opens the door to studying brain function in many new ways.

## For a technical reader
The paper addresses the challenge of understanding how a brain's internal state influences its responses to stimuli, which is hard to study because experiments only cover limited state-stimulus pairs. They propose a conditional diffusion model that learns to generate realistic neural activity by taking both the external stimulus and recent brain state as inputs. The model includes two sampling tricks: one that recombines observed states and stimuli to create responses for unseen combinations, and another that resamples existing data to capture small trial-to-trial variations. The approach was evaluated on three different brain recording datasets-from mouse visual cortex, monkey visual area, and mouse striatum-and produced samples that preserve known patterns while extending coverage beyond the original data. This provides a practical generative framework for exploring brain-state effects in regimes not directly measured, which could be useful for neuroscientific research and related simulation tasks.

## Problem
Studying how internal brain state influences neural responses is challenging because experimental recordings only cover a limited set of state-stimulus combinations, leaving many biologically plausible pairings unobserved.

## Method
The approach uses a conditional diffusion model to generate spatiotemporal neural activity conditioned on external stimuli and recent brain states. It incorporates two sampling strategies: one that recombines observed states and stimuli to create responses for unseen pairings, and another that resamples observed data to capture trial-to-trial variability.

## Results
The approach generates biologically plausible neural activity that retains state-dependent patterns and extends coverage of neural response space beyond what was observed in the original recordings.

## Contributions
It introduces a conditional diffusion framework for state-conditioned neural activity modeling and proposes two state-aware sampling strategies to synthesize responses for unobserved state-stimulus pairings while capturing trial-to-trial variability.

## Practical relevance
It provides a practical generative modeling framework for exploring brain state effects on neural responses in regimes not directly observed experimentally.

## Research questions this paper is counted under

- [How can we model brain activity and behavior in a way that captures dynamic, multimodal, and interpretable interactions?](../q/128.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149640)
