potentialpaper

Flow Matching with In-Context Priors for Out-of-Distribution Brain Dynamics

Sam Gijsen, Michał Łukomski, Marc-Andre Schulz, Kerstin Ritter

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Flow matching and diffusion models enable conditional generation across domains ranging from images to proteins, with recent extensions to out-of-distribution contexts. Yet generative models of neural time series have largely remained restricted to categorical conditioning, precluding compositional and zero-shot generalization. In this work, we propose PINC-Flow, a per-timestep conditioned diffusion transformer for generating realistic fMRI brain dynamics during unseen cognitive tasks by injecting both compositional language and optional spatial priors in-context. Such zero-shot generation could enable counterfactual neuroscience by supporting in-silico design and evaluation of novel cognitive experiments before empirical validation. Leveraging this model, we evaluate across hundreds of held-out task conditions and characterize predictive performance in relation to the training manifold. From language alone, the model recovers region-specific recruitment across tasks and held-out spatial activation patterns. Spatial priors, when available, complement the text pathway by anchoring generation in regions of task space where language alone degrades, while retaining the compositional structure needed for counterfactual task specification. To our knowledge this is the first generative model of whole-cortex fMRI dynamics for unseen cognitive tasks, advancing counterfactual neuroscience and data-driven experimental design.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper takes recent successes of conditional flow matching for out of distribution sample generation int a different kind of data domain, specifically that of brain activity measured via fMRI. The goal is to generate veridical brain response time series for new (related) cognitive tasks, based on language conditioning with optional spatial priors. The method is validated on a couple of large frmri databases, and seems to work reasonably well, in that they preserve time-series and subject-specific properties. The models may be useful for generated simulated data to validate analysis pipelines before expensive brain data collection.

While the description of the models seems clear, and the results compelling, there were several key issues emerging across reviews, that need clarification to facilitate the final paper discussion:

  1. clarify the relationship to other technical related work including, but not limited to, Tribe vs2 and the references mentioned by reviewer sMcp.

  2. further justification for evaluation choices; additional baseline evaluation for performance metrics, in particular the baselines mentioned by reviewer PaGq

  3. a more detailed justification for the role of the counterfactual segment-splicing augmentation

Since the work builds heavily on technical developments already successful in other data domains, I would personally appreciate more clarity about the concrete ways in which these methods are relevant to the practice of brain science, beyond the generic statement of the type "we can generate some reasonable simulated data before we get the real thing." How does the quality of the generated data depend on the task structure and how well similar tasks are represented in the database? could one expect good generation in tasks that are genuinely novel or just for those that are variations on a well understood theme?

Area Chair 2tpo · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper takes recent successes of conditional flow matching for out of distribution sample generation int a different kind of data domain, specifically that of brain activity measured via fMRI. The goal is to generate veridical brain response time series for new (related) cognitive tasks, based on language conditioning with optional spatial priors. The method is validated on a couple of large frmri databases, and seems to work reasonably well, in that they preserve time-series and subject-specific properties. The models may be useful for generated simulated data to validate analysis pipelines before expensive brain data collection.

While the description of the models seems clear, and the results compelling, there were several key issues emerging across reviews, that need clarification to facilitate the final paper discussion:

  1. clarify the relationship to other technical related work including, but not limited to, Tribe vs2 and the references mentioned by reviewer sMcp.

  2. further justification for evaluation choices; additional baseline evaluation for performance metrics, in particular the baselines mentioned by reviewer PaGq

  3. a more detailed justification for the role of the counterfactual segment-splicing augmentation

Since the work builds heavily on technical developments already successful in other data domains, I would personally appreciate more clarity about the concrete ways in which these methods are relevant to the practice of brain science, beyond the generic statement of the type "we can generate some reasonable simulated data before we get the real thing." How does the quality of the generated data depend on the task structure and how well similar tasks are represented in the database? could one expect good generation in tasks that are genuinely novel or just for those that are variations on a well understood theme?

3 comments
Authors · CommentOpenReview ↗

Rebuttal 1/2

We thank the Area Chair for a metareview that identified clarifications the work needed. We address the three listed items compactly below, with the primary results included so they can be assessed here, and then answer the fourth question in more depth here, since it is not covered in the individual reviewer responses.

 

1. Relationship to related work.

TRIBE v2 is concurrent work which predicts BOLD activity and generalizes to novel stimuli; we will correct a sentence in our introduction that could imply otherwise. The distinction is what is specified at inference. TRIBE v2 is a stimulus-encoding model: it maps a supplied video, audio, or text stream to a deterministic BOLD trajectory, targeting the group response by default. Instructions and motor responses are not available inputs to the model, as a task rule presented as text is encoded as a linguistic stimulus rather than as the operation the participant performs, and responses have no input channel at all. This matters for active paradigms in which matched sensory input is paired with different operations, such as working-memory load or alternative judgment rules, which constitute a substantial share of our evaluated items.

However, because TRIBE receives a lower-level stimulus representation, it should better preserve fine perceptual detail that our language-level descriptions omit. We therefore treat the approaches as complementary: stimulus-faithful encoding versus factorized control over an experimental design. A second distinction is the predicted object: TRIBE is trained with an MSE objective and returns one trajectory, whereas we sample a conditional distribution over recordings, which is what makes the acquisition-design analysis in item 4 possible.

The works cited by Reviewer sMcp use conditional generation in the "opposite direction": BrainDiVE guides image generation toward stimuli predicted to activate a target visual region, and BeNeDiff conditions video diffusion on behavior-relevant neural latents to generate the corresponding behavior. Both generate observable content constrained by neural quantities, whereas we generate neural trajectories constrained by an experimental specification. We will make these distinctions explicit in the Introduction and Related Work and add a structural comparison figure covering generation direction, output modality, conditioning interface, and generalization axis.

 

2. Evaluation choices and additional baselines.

First, we add a factorized HRF–VAR simulator: a spatial map instantiated under the target event schedule through a canonical HRF, plus a training-only PCA/VAR(1) residual process. We use this model with four map sources: our Direct model, k-NN retrieval, an independent cross-run map, a same-recording empirical oracle. Second, we add a deterministic Text-FIR linear temporal encoder over the text captions. Both generate complete 400-parcel recordings for held-out tasks and are evaluated under our windowing and GLM setup. Together they instantiate the HRF-plus-noise, autoregressive, retrieval, and deterministic temporal controls requested by Reviewer PaGq.

We highlight two results here:

  1. In the zero-resource setting (no neural data from the held-out task) these baselines reach r=.273r = .273–.381.381 on HCP (with the strongest being the deterministic caption-to-BOLD FIR model), against .490.490 for our text-conditioned model. The advantage of our flow model is therefore not attributable to constructing GLM-compatible signals from a predicted map, nor to interpolation among neighbouring training tasks. We find instead that our model exceeds its prior in every regime (+.156+.156 predicted, +.079+.079 cross-run, +.113+.113 oracle).

  2. On trajectory similarity our model exceeds both the deterministic FIR encoder given the same captions (.500.500 vs .354.354) and the simulator given an identical prior, context, and event schedule (.620.620 vs .571.571).

In sum, our model exceeds the new strongest zero-resource baseline (Text-FIR) on both spatial map recovery (.490 vs .381), trajectory similarity (.500 vs .354), and additionally provides two properties the deterministic encoder does not: a distribution over plausible recordings rather than a point estimate, as well as subject-conditioned dynamics at inference.

 

3. Role of the segment-splicing augmentation.

Here our provided rationale was insufficiently justified in the paper. fMRI runs often contain fixed condition orderings, so some transitions are observed only in one order; we were concerned the model could learn an "A followed by B" shortcut instead of adhering to its conditioning, which would undermine compositional generalization. We retrained without splicing and tested two hypotheses.

Authors · CommentOpenReview ↗

Rebuttal 2/2

For in-distribution compositions, we created counterfactual transitions across HCP motor blocks: the context is filled with block A, and block C is requested instead of the observed successor B. The model trained without splicing already produces the requested condition well (r=.74r = .74), which is improved moderately with splicing (r=.81r = .81; Δ=+.069\Delta = +.069 [.052,.085][.052, .085]). More importantly, splicing prevents reversion to the condition implied by the context (r=−.02r = -.02 with, r=.17r = .17 without; Δ=−.191\Delta = -.191 [−.212,−.171][-.212, -.171]).

However, for held-out (OOD) tasks, across all seven folds, we find no meaningful difference in map recovery (.01.01 in favour of splicing).

Therefore, our new results suggest that the augmentation supports novel task orderings, which is the compositional use case the model is intended for, but our training data (possibly in combination with conditioning dropout) is already diverse enough that it does not aid generalization to entirely unseen tasks. We will state this scope and present both analyses.

 

4. Relevance to brain science

We thank the Area Chair for the suggestion to expand on scientific use cases. We have tested a specific decision researchers face: given a candidate (here, spatial response) hypothesis, do generated recordings indicate where the marginal benefit of additional scanning is concentrated, when analyzed with the exact GLM planned for the real study?

On held-out HCP Language task, fspatf_\mathrm{spat} supplied with a cross-run prior reproduces the allocation of benefit across one to four task blocks. In observed data, the second block accounts for 79.1%79.1\% of the total one-to-four-block error reduction. For our generated data, it is similar at 78.4%78.4\%. By three blocks, the cumulative shares are 95.4%95.4\% and 94.0%94.0\% (real/generated). Across paired resamples the 1→21 \rightarrow 2 increment is the largest in 97.0%97.0\% of observed datasets and 99.0%99.0\% of generations, and this holds when temporal derivatives are added to the GLM.

We note this is possible because the model generates complete recordings rather than activation maps. Each generated acquisition can be passed repeatedly through the intended analysis pipeline, yielding a distribution of recovered effects rather than a single expected map. We note that the quantity of interest here (spread of achievable estimates under a given design) is not represented by a static map or a conditional mean at all.

We also quantify when this use is justified, to address the Area Chair's second question. As reported in Fig. 3b, sensitivity to task-space distance (i.e., distance of the OOD task to tasks in training set) is lower under spatial conditioning than text conditioning. We now decompose distance by conditioning component, which identifies which kind of novelty is limiting: for text-only generation, sensory distance is the dominant stable predictor (β=−0.159 [−0.230,−0.051]), while response distance shows no stable association. Under spatial conditioning this changes, with instruction distance being most predictive (−0.082, [−0.150,−0.014]).

Concretely, generation is reliable for novel combinations and nearby variants of represented sensory and cognitive components, and unreliable when a central cognitive component is itself weakly represented. To provide concrete examples, we take the median item in each distance-to-training-support tertile, and find a well-supported recombination involving human non-speech sounds is recovered well from text alone (rβ=.749r_\beta = .749), whereas a distant mental-time-travel condition is recovered poorly (rβ=.234r_\beta = .234). But we note that distance can function only as a risk indicator rather than a threshold, as for an example outside the tertile-median selection: a relatively distant Enumeration condition is nevertheless recovered at rβ=.702r_\beta = .702.

In sum, text-only generation is most credible for recombinations and local variants. When an instruction or sensory component is weakly represented, an independent spatial hypothesis from pilot data, previous cohort, or a meta-analysis can improve accuracy, while the generative model can help evaluate how analysis choices affect recoverability. We thereby suggest a use case of (relative) estimability screening.

   

Closing note. We kindly provide a closing note on the metareview's framing. We agree the generative methods are established, but the problem formulation and task-held-out protocol are not imported, and per-timestep in-context conditioning is a deliberate adjustment from the global conditioning used by prior fMRI generative models. Importantly, it is what makes interventions on event timing and composition possible. The self-supervised spatial-prior pathway likewise transfers to other event-driven physiological time series rather than being borrowed from them. We expand on each of these in our response to Reviewer BVkd.

Authors · CommentOpenReview ↗

Final author comments

Dear Area Chair,

A brief note as this period ends. Both engaged reviewers have since confirmed their concerns were addressed: Reviewer PaGq states the rebuttal "addressed my concerns mostly," and Reviewer BVkd that it "addresses my technical concerns." We have additionally answered follow-up questions from both on brain digital twins and novelty.

Thank you again from all authors for the helpful meta-review.

Reviewer BVkdOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a per-timestep conditioned diffusion transformer trained with flow matching to generate whole-cortex task-fMRI dynamics for unseen cognitive tasks. The model conditions on compositional language descriptions of sensory input, instructions, and responses (cttxtc_t^{txt}), with optional GLM-derived spatial priors (ctspatc_t^{spat}). The paper then applies the proposed method to large-scale task-fMRI datasets, including HCP, IBC, Nakai, and UK Biobank, and evaluates held-out-task generation by comparing GLM activation maps recovered from generated trajectories with real held-out task maps.

Strengths and weaknesses

Strengths

  1. The problem is well defined and practical important for neural time series. Most models condition on fixed task labels, while this work uses per-timestep compositional conditioning through sensory, instruction, and response descriptions.
  2. The spatial-prior pathway is a useful design choice. It provides a clear way to anchor generated dynamics when reliable activation maps are available, and the paper appropriately separates text-only and spatially anchored generation in the experiments.

Weaknesses

  1. The improvement is smaller when the spatial prior is predicted from text. This makes the practical value of the spatial-prior pathway less clear when empirical activation maps are unavailable.
  2. The “counterfactual training” strategy may not be fully convincing. The paper splices two non-adjacent fMRI segments to create a new task transition, but the second segment still contains brain-response history from the events that originally came before it (although downweighted). An ablation without this splicing trick would help.
  3. The flow-matching implementation is non-standard. The model predicts the clean endpoint z^1\hat z_1 and then converts it to a velocity, instead of directly predicting the velocity. It would be helpful if the paper can justify this choice or compare it with standard velocity prediction.
  4. Some notation is confusing. In particular, the spatial prior section introduces yp(t)y_p(t) without clearly linking it to the previously defined fMRI signal xthx_t^h.
Questions
  1. In what practical setting would ctspatc_t^{spat} be available for unseen tasks? The oracle empirical prior gives strong results, while the predicted-prior setting appears much weaker.
  2. Why does the model predict the endpoint z^1\hat z_1 and then convert it to a velocity, instead of directly predicting the flow-matching velocity?
  3. How important is the counterfactual segment-splicing augmentation?
Limitations

Mostly yes. Discussing limitations about the spliced “counterfactual” training samples and the dependence of the spatial-prior pathway on reliable activation maps for unseen tasks would be helpful.

Final justification

change the Contribution Type to General.

Formatting concerns

no

4 comments
Authors · CommentOpenReview ↗

Rebuttal 1/2

We sincerely thank the reviewer for their evaluation of our manuscript. We are pleased to hear that the problem was considered both well defined and important, as well as that our dual-path design choice was appreciated. We would like to address the remaining questions one-by-one.

 

Q1: When is an empirical spatial prior available, and when does it help?

We propose as realistic sources another run of the same task, a pilot or localizer, a group map from prior participants, or a published study. We now evaluate the first of these directly: HCP provides two runs per task, so we estimate the prior on one run and evaluate against the other, removing the target recording. With that independent prior our model reaches r=.733r=.733 on the 30 HCP items, against .490.490 for text-only conditioning.

This also explains the result the reviewer identified. Prior quality determines whether the pathway helps. Given q=corr(prior,target)q=\mathrm{corr}(\mathrm{prior},\mathrm{target}), with Direct's predicted map (q=.274q=.274) our model reaches .430.430, below text-only .490.490; with the independent cross-run map (q=.654q=.654) it reaches .733.733, well above. In both cases the model improves on the map it was given (+.156 and +.079 respectively), but a weak prior still costs relative to language alone. We will therefore present the spatial pathway as an interface for external evidence, which is useful when the supplied map carries accuracy beyond what the task description already implies, rather than as a component that improves the text pathway unconditionally. The predicted-prior row ends up functioning as a sort of stress-test of this.

 

Q2: Why does the model not directly predict the flow-matching velocity?

We thank the reviewer for raising this. Our model uses endpoint prediction ("x-prediction"), which is an exact reparameterization of velocity prediction. With linear path zτ=(1−τ)z0+τz1z_\tau = (1-\tau) z_0 + \tau z_1, the velocity is v=(z1−zτ)/(1−τ)v = (z_1 - z_\tau)/(1-\tau). Substituting this gives $∥z^1−z1∥2=(1−τ)2 ∥v^−v∥2.\|\hat{z}_1 - z_1\|^2 = (1-\tau)^2 \, \|\hat{v} - v\|^2 .$ Therefore, training on the endpoint loss is the same as training on the velocity loss with the weight w(τ)=(1−τ)2w(\tau) = (1-\tau)^2, yielding the same optimum but differing in the contribution of each point along the path. While x-pred is common in the diffusion literature it is less common in flow matching, and we should have stated this equivalence in the paper. We will add it to section 3.

Our motivation was that the endpoint target is a clean data sample at a fixed scale. At high τ\tau, zτz_\tau nearly determines z1z_1 but carries little information about z0z_0, so the velocity target z1−z0z_1 - z_0 retains irreducible conditional variance where the endpoint target does not. We had not, however, compared the two empirically. We have now retrained all seven folds with velocity prediction and find minimal degradation, v-pred minus x-pred:

Metric Item-weighted Δ Task-macro Δ
Contrasts −.020 ~0.000
Single conditions −.041 −.029

We propose to include this result in the revision, but do not interpret this as evidence for superiority of x-pred in this setting. Noting the exact reparameterization is the primary suggested edit for the revision.

Authors · CommentOpenReview ↗

Rebuttal 2/2

Q3: How important is the counterfactual segment-splicing augmentation?

We appreciate the question as we agree this was insufficiently justified in the paper. Concretely, fMRI experiments often feature identical transitions across subjects, such as a right-hand-movement block (B) following a tongue-movement block (A). Although we expose the model to a large number of conditions, some of these are observed only in a limited and fixed order. We suspected this to be problematic given our goal of compositional generalisation: instead of adhering to conditioning, an "A -> B" shortcut could be learned. We thus hypothesized two beneficial effects:

H1) for conditions in (or similar to) the training set, splicing "A -> C" transitions introduces pressure against the shortcut, and

H2) a general data-diversity/regularisation effect.

We have now ran two additional analyses to test these hypotheses, for which we re-trained the model without any transition splicing.

To test H1, we construct counterfactual transitions for all blocks in the HCP motor task when it was in-distribution: the model's (f_text) context is filled with block A and we then request block C instead of the seen block B. We observe that the model trained without splicing already produces the requested C well (mean r=0.74), but that this is modestly improved with splicing (r=0.81) with a delta of +.069 [.052,.085]. Importantly, training with splicing additionally prevents the model from reverting to the condition implied by its context (r=-0.02 compared to r=.17) with a delta of -.191 [−.212,−.171]).

To test H2, we compare on OOD map recovery across all seven folds. Here we observe no meaningful difference (mean r=0.01 in favour of splicing).

Our new results therefore indicate that splicing is a useful augmentation for novel task orderings, which is appropriate for the compositional use cases of the model. However, our training data appears sufficiently diverse (possibly in combination with random conditioning dropout) where this augmentation is not beneficial for completely unseen tasks. We propose to more clearly describe our rationale in the revision and present these new analyses and their results.

 

Q4: Confusing notation

We thank the reviewer for pointing this out. The notation yp(t)y_p(t) refers to the same observed parcellated fMRI signal previously denoted by xth\mathbf{x}_t^h, but written for an individual parcel pp. Introducing a new symbol was unnecessary and it obscured this connection. We will use xt\mathbf{x}_t consistently throughout, define xt,px_{t,p} as its pp-th parcel value, and explicitly distinguish the observed time-varying signal from the static GLM coefficient map used as the spatial prior.

We thank the reviewer for their help in improving our manuscript.

Reviewer BVkd · CommentOpenReview ↗

The detailed rebuttal addresses my technical concerns. The method mainly combines established components in a strong application, which raises some concerns about novelty. However, the application is useful and significant, so I keep my score at 4, borderline accept.

Authors · CommentOpenReview ↗

We are sincerely thankful for the reviewer's engagement and are pleased to know that the technical concerns are addressed.

 

We would like to briefly and kindly point to three things beyond the components, and take this to be the kind of contribution the guidelines describe, where the reasoning behind a combination is articulated.

  • First, the problem framing and protocol. To our knowledge no prior work generates whole-cortex fMRI for cognitive tasks absent from training, and our task-held-out evaluation (281 conditions across seven folds, each retrained from scratch) differs from the subject-held-out splits standard in this literature.

  • Second, the conditioning interface is a deliberate choice against the existing default. Prior models condition globally, which cannot express per-timestep content. These per-timestep in-context tokens are what make interventions on event timing and composition possible at all, supported by our new transition analysis. Specifically, generation follows the requested condition rather than reverting to the one implied by its context (r = -.02 with splicing, .17 without).

  • Third, on the self-supervised spatial-prior pathway. Because the GLM coefficients supplied as conditioning are estimated from the same recording the model generates, learning to use an in-context spatial hypothesis requires no external labels or paired data. It needs only an approximately known response kernel and event timing, so the setup in principle transfers to other event-driven physiological time series (e.g. photoplethysmography, continuous glucose monitoring, pupillometry, event-related electrophysiolog) as a general route to making a generative model steerable by a hypothesis at inference.

We do not introduce a new backbone or generative objective, and agree the diffusion-transformer and flow-matching machinery are established. We would distinguish those from the conditioning scheme, and hope the framing, protocol, and prior pathway prove useful.

Reviewer PaGqOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a generative framework of whole-cortex fMRI dynamics for unseen cognitive tasks. It is based on a per-timestep–conditioned DiT (flow-matching as objective), conditioned on compositional language captions and optional spatial-prior maps injected as in-context tokens.

Strengths and weaknesses

Strengths:

The paper provides clean justification of their model design. For example, injecting conditioning as per-timestep in-context tokens instead of through global mechanisms like adaptive layernorm is well-motivated.

Certain designs in the method are reasonable. For example, the self-supervised spatial prior leads to a well-posed objective.

The evaluations are comprehensive and solid.

Thorough hyperparameter tables, compute budget etc are provided as well.

Weakness:

The oracle spatial-prior evaluation is effectively target-conditioned: the prior is derived from the same held-out recordings used to construct the evaluation target. Thus, its strong performance does not independently establish OOD prediction or learned temporal dynamics.

Authors are suggested to differentiate this work with TRIBE v2 in a deeper way. It seems that TRIBE v2 could also generalize to new stimuli.

Could any HRF-plus-noise, autoregressive, or retrieval-based generative baseline be provided? It is unclear whether flow matching contributes beyond simple construction of GLM-compatible signals.

Questions

See weakness.

Limitations

yes.

Final justification

Concerns have been addressed, therefore I raised my score.

Formatting concerns

NA

4 comments
Authors · CommentOpenReview ↗

Rebuttal 1/2

We sincerely thank the reviewer for their evaluation of our manuscript. We are pleased to hear that the evaluations were considered thorough and the model design well-justified. We would like to address the remaining questions one-by-one.

 

W1: The oracle spatial prior is target-conditioned.

We appreciate this being highlighted, as it made us realize there are important additional evaluations to perform. Across seven held-out HCP tasks (30 items, as Table 1), we let q=corr(prior,target)q=\mathrm{corr}(\mathrm{prior},\mathrm{target}) and r=corr(output,target)r=\mathrm{corr}(\mathrm{output},\mathrm{target}). A factorized HRF-VAR simulator (defined under W3) supplied with the same-recording oracle map reaches r=.698r=.698 against q=.712q=.712. Therefore, a model containing no learned temporal dynamics nearly reproduces the map it was given. A high oracle β\beta score is indeed therefore not by itself evidence of temporal modeling, and in the revision we will state this explicitly.

Two further results address the concern directly.

First, we add an independent cross-run prior: HCP provides two runs per task, so we estimate the prior on one run and evaluate against the other. This removes the target recording while modelling a realistic pilot, localizer, or repeat-session scenario. While this prior naturally reduces performance (.825 →\rightarrow .733), it is still considerably higher than for text-only (+.243) or a predicted map from our Direct model (+.303). Please see the following two tables.

 

Spatial r: Zero-resource (No neural data from the held-out task)

Model Spatial map used rr
Direct predicts the map directly .274
Sim–Direct Direct's map, q=.274q=.274 .273
Sim–kNN retrieved map, q=.318q=.318 .287
Text-FIR none .381
DiT–Spat, predicted prior Direct's map, q=.274q=.274 .430
DiT–Text (ours) none .490

 

Spatial r: supplied independent or same-recording prior:

Prior source qq HRF–VAR rr DiT–Spat rr
Independent cross-run .654 .644 (−.010) .733 (+.079)
Same-recording oracle .712 .698 (−.014) .825 (+.113)

 

Second, the two models behave differently given the same prior map: HRF-VAR output falls close to its prior (indicated via qq), which we interpret as it effectively passing the map through. Meanwhile, our model exceeds its prior in every regime (+.156 predicted, +.079 cross-run, +.113 oracle), so the spatial pathway does not reproduce the map it is given. This gain is larger for single conditions (+.13 to +.26) than for contrasts (+.01 to +.07), consistent with part of the model's contribution being spatial structure that partly cancels in a difference of two maps.

 

W2: Differentiation from TRIBE v2.

We thank the reviewer for raising this important comparison. The concurrent TRIBE v2 predicts BOLD activity and indeed generalizes to novel stimuli. A first distinction however is what is specified at inference and what can be manipulated independently. TRIBE v2 is a stimulus-encoding model: it maps a supplied video, audio, and/or text stream to a deterministic BOLD trajectory By default, it targets the group response, while subject-specific predictions can be obtained through fine-tuning. Our model instead conditions on a factorized experimental specification (sensory content, task instructions, behavioral response, and their timing) together with subject context and an optional spatial prior, and is evaluated on complete task identities withheld during training.

Concretely, instructions and responses are not inputs to TRIBE: a task rule presented as text would be encoded as a linguistic stimulus rather than as the operation the participant performs, and motor responses have no input channel at all.This distinction matters for active paradigms in which similar sensory inputs are paired with different operations or responses, such as working-memory load or alternative judgment rules. However, because TRIBE receives a lower-level representation of the stimulus stream, it should be better positioned to preserve fine-grained perceptual information that our language-level descriptions may fail to capture. We therefore view the approaches as complementary: TRIBE emphasizes stimulus-faithful encoding, while our method emphasizes factorized control over an experimental design.

A second distinction concerns the predicted object. TRIBE v2 is trained with an MSE objective and returns one point prediction of the BOLD trajectory, whereas our flow model samples a conditional distribution over recordings. This is what makes acquisition-design questions addressable at all: in our response to the Area Chair we show that on a held-out task, generated data recover where the marginal benefit of additional scanning is concentrated.

Authors · CommentOpenReview ↗

Rebuttal 2/2

Namely, the second of four blocks accounts for 78.4% of the total reduction in map-recovery error, against 79.1% observed, and is ranked the largest increment in 99.0% of resampled generations. Such questions concern the spread of achievable estimates under a design, which a conditional mean does not represent.

We will make these distinctions explicit in the Introduction and Related Work and add a structural comparison figure showing the shared capabilities and complementary nature. This figure will also include the references mentioned by reviewer sMcp.

 

W3: Additional baselines

We add two baselines, with all parameters fit exclusively on training-fold subjects and seen tasks. First, the HRF–VAR simulator generates

x~t=∑kβ^k(h∗sk)t+Wzt+ϵt,zt=Azt−1+ηt,\tilde{x}_t=\sum_k\hat{\beta}_k(h*s_k)_t+Wz_t+\epsilon_t,\qquad z_t=Az_{t-1}+\eta_t,

where hh is the canonical HRF, sks_k is the held-out task schedule, and (W,A)(W,A) are a training-only PCA/VAR(1) residual model. We vary the source of β^k\hat{\beta}_k using Direct from our paper, kNN retrieval, an independent cross-run map, or a target-inclusive subject/task empirical oracle.

Text-FIR is a deterministic linear temporal encoder over the caption sequence:

x^t=∑ℓ=0LWℓct−ℓ.\hat{x}_t=\sum_{\ell=0}^{L}W_\ell c_{t-\ell}.

with L≈15sL \approx 15s. Both produce complete 400-parcel time series and are evaluated with the same windowing and GLM as our model on unseen tasks. Together they instantiate the requested HRF-plus-noise, autoregressive, retrieval, and deterministic temporal controls.

Spatial. We kindly refer to the tables under W1. In the zero-resource setting (no neural data from the held-out task) these baselines reach r=.273r = .273–.381.381 on HCP (with the strongest being the deterministic caption-to-BOLD FIR model), against .490.490 for our text-conditioned model. The advantage is therefore not attributable to constructing GLM-compatible signals from a predicted map, nor to interpolation among neighbouring training tasks.

Temporal. We next compare amplitude-normalized, onset-locked, network trajectories, across 200 random 50/50 splits of the 100 held-out subjects. We use onset-locked trajectories rather than per-lag deconvolution because HCP is largely block-designed, making per-lag responses non-identifiable for several tasks.

 

Trajectory similarity Paired difference
Real split-half reference .942 [.935, .950] —
Text-FIR .354 [.344, .364] —
DiT–Text .500 [.476, .519] +.145 [.123, .162]
Sim–EmpiricalOracle .571 [.550, .590] —
DiT–Text+EmpiricalOracle .620 [.602, .643] +.050 [.027, .074]

 

Unlike the deterministic baselines, the DiT also samples subject-conditioned trajectories, supporting estimates of variability across plausible recordings. We also kindly here refer back to the existing results: conditioning on a subject's preceding volumes moves generation toward that subject's dynamics, with functional-connectivity agreement ordered as "correct context > same-subject misaligned context > different-subject context > no context", and subject identity recoverable from generated data. A deterministic encoder conditioned on task description alone has no mechanism for this ordering to arise. As for amplitudes, Text-FIR retains .54×.54\times real trajectory variance, whereas DiT–Text produces 1.26×1.26\times. Thus, Text-FIR is substantially attenuated, while the DiT is moderately over-dispersed.

Summary. A canonical construction supplied with a good activation map nearly saturates β\beta recovery relative to that map's own quality, which is why we will no longer present oracle β\beta recovery as evidence of temporal modeling. Results indicate our model differs as follows: 1) it exceeds the supplied prior rather than passing it through in every prior regime and 2) it better reproduces onset-locked temporal trajectories, both against a deterministic encoder given the same captions and against the simulator given an identical prior, context and schedule. However, substantial room for improvements remains (given the real split-half reference), and we will state in the revision.

 

We thank the reviewer for their help in improving our manuscript.

Reviewer PaGq · CommentOpenReview ↗

Thanks for the author's rebuttal, it has addressed my concerns mostly.

Just curious, how would authors position this work in relation to emerging topics such as brain digital twins etc?

Authors · CommentOpenReview ↗

We thank the reviewer for their response and we're pleased to hear the concerns have been mostly addressed. We would be more than happy to address any that might remain.

On brain digital twins: this interesting connection is indeed relevant. We believe there are both important links as well as distinctions resulting from our focus. The strongest overlap with our framework is our context mechanism: in-context brain volumes allow individualisation without needing per-subject fine-tuning which means one model serves any subject and can update with new data without retraining. While our focus is on in-silico science, the perturbation capability is also highly useful for digital twins. Pure reconstruction has limited utility, but our framework lets you ask what happens under interventions you have not run yet.

Meanwhile, digital twins classically imply a persistent, individualised model. While persistence perhaps may not be necessary going forward given in-context learning capabilities, individualisation requires long-horizon states and accumulation of a subject's history over time/sessions. These are currently not part of our framework, which conditions on short context windows of cortical activity. However, such extensions are feasible given the general, in-context interface. Similarly to our self-supervised learning to train the model to use spatial priors, extensions could include (learned embeddings of) prior sessions, other tasks, other modalities, and subject-specific embeddings. This is in our view the most likely bridge from a flexible conditional generator towards a more individualised model.

We are happy to include a brief version on this connection in the discussion if the reviewer feels it would strengthen our manuscript.

Reviewer sMcpOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this work, the authors focuses on bridging the limitation of current generative models for fMRI, which typically rely on categorical task conditioning and suffer to generalize to unseen experimental designs. To enable zero-shot generalization, the authors propose a diffusion transformer trained via flow matching. This language-model awaredd approach permits counterfactual learning of task timing and composition, while optional spatial activation priors help stabilize the learned model when generating out-of-distribution dynamics. Experiments across large-scale datasets, including HCP and UK Biobank shows that the proposed framework infers neural dynamics that preserve time-series statistics and subject-specific structures.

Strengths and weaknesses

Strengths:

  1. The problem targeting of this work on generating whole-cortex fMRI dynamics is crucial in the field of computational neuroscience.
  2. The proposed algorithm designed is well-motivated, including per-timestep language conditioning of the task variables and flow-matching.
  3. The empirical experiment section is abundent and solid. The model is eval across multiple large-scale and wide-adopoted fMRI datasets. The paper investigates not only GLM-derived activation recovery, but also time-series statistics and counterfactual temporal interventions.

Weaknesses:

  1. Is there more theoretical anlysis of the proposed framework, like its connection to counterfactual inferece?
  2. Are there any more baselines for comparsion in this work in Section 4?
  3. The proposed framework seems does not have a title.
Questions
  1. What's the comparison of these work and other works [1, 2] using conditioned diffusion models to explain the neural activities and their related dynamics.
  2. Other questions please refer to the Weaknesses section to see my questions.

[1] Brain Diffusion for Visual Exploration: Cortical Discovery using Large Scale Generative Models. NeurIPS 2023, Andrew Luo, et al.

[2] Exploring Behavior-Relevant and Disentangled Neural Dynamics with Generative Diffusion Models. NeurIPS 2024, Wang, et al.

Limitations

yes.

Final justification

I thank the authors for the additional and detailed derivations and experiments, which both make sense to me for the significance of this work. I will maintain my previous positive overall rating.

Formatting concerns

N/a

3 comments
Authors · CommentOpenReview ↗

Rebuttal 1/2

We sincerely thank the reviewer for their evaluation of our manuscript. We are pleased to hear that the proposed method was considered to be well-motivated and the experiments to be abundant and solid. We would like to address the remaining questions one-by-one.

 

Q1: Connection to counterfactual inference

We thank the reviewer for this suggestion and we propose to explicitly clarify the scope w.r.t. counterfactual inference via a concise scope paragraph near the first introduction of counterfactual interventions, together with a brief formal analysis in the appendix.

We use counterfactual to mean a model-implied response under an alternative task timing, composition, or transition not observed for the source recording. For task manipulations that are controlled by the experimenter and well represented in the training data, the generated distribution can be interpreted, under consistency, no interference, and positivity, as the interventional distribution of responses under that condition. For completely held-out tasks, no examples of the full intervention are available. Generation therefore relies on extrapolating from related sensory, instruction, response, and timing components rather than on directly identifying the causal effect of the unseen task.

We also formalize the approximation underlying the splicing augmentation. If an event segment BB, originally observed after CC, is placed after AA, the difference between the reused segment and the unobserved response to BB after AA can be decomposed into two terms. Let XB∣H(u)=MB(H,u)+RH(u)+ϵ(u)X^{B\mid H}(u)=M_B(H,u)+R_H(u)+\epsilon(u) denote the response to BB at time uu after preceding history HH, where MB(H,u)M_B(H,u) is the event-related response to BB, RH(u)R_H(u) is residual activity carried over from HH, and ϵ(u)\epsilon(u) is noise. Then

XB∣C(u)−XB∣A(u)=[MB(C,u)−MB(A,u)]+[RC(u)−RA(u)].X^{B\mid C}(u)-X^{B\mid A}(u)=\bigl[M_B(C,u)-M_B(A,u)\bigr]+\bigl[R_C(u)-R_A(u)\bigr].

up to a difference in noise realizations. The first term captures history-dependent modulation of BB, while the second captures carryover from the original preceding event. At the activation-map level, the splice is therefore an approximate counterfactual target when (B)'s spatial response is locally stable across preceding conditions. At the time-series level, predecessor carryover remains near the boundary, motivating the HRF-weighted loss.

Finally, conditional flows do not uniquely identify how an individual response under one task should be paired with that same individual's response under another task. Different latent parameterizations can reproduce the same task-specific response distributions while yielding different paired trajectories. We therefore claim model-implied counterfactual task simulation, rather than uniquely identified individual potential outcomes.

 

Q2: Additional baselines

We add two baselines, with all parameters fit exclusively on training-fold subjects and seen tasks. First, the HRF–VAR simulator generates

x~t=∑kβ^k(h∗sk)t+Wzt+ϵt,zt=Azt−1+ηt,\tilde{x}_t=\sum_k\hat{\beta}_k(h*s_k)_t+Wz_t+\epsilon_t,\qquad z_t=Az_{t-1}+\eta_t,

where hh is the canonical HRF, sks_k is the held-out task schedule, and (W,A)(W,A) are a training-only PCA/VAR(1) residual model. We vary the source of β^k\hat{\beta}_k using Direct from our paper, kNN retrieval, an independent cross-run map, or a same recording empirical oracle. Second, Text-FIR is a deterministic linear temporal encoder over the caption sequence:

x^t=∑ℓ=0LWℓct−ℓ.\hat{x}_t=\sum_{\ell=0}^{L}W_\ell c_{t-\ell}.

with L≈15sL\approx 15s. Both produce complete 400-parcel time series and are evaluated with the same windowing and GLM as our model on unseen tasks. Together they instantiate HRF-plus-noise, autoregressive, retrieval, and deterministic temporal controls.

 

Spatial r: Zero-resource (No neural data from the held-out task)

Model Spatial map used rr
Direct predicts the map directly .274
Sim–Direct Direct's map, q=.274q=.274 .273
Sim–kNN retrieved map, q=.318q=.318 .287
Text-FIR none .381
DiT–Spat, predicted prior Direct's map, q=.274q=.274 .430
DiT–Text (ours) none .490

 

Spatial r: supplied independent or same-recording prior:

Prior source qq HRF–VAR rr DiT–Spat rr
Independent cross-run .654 .644 (−.010) .733 (+.079)
Same-recording oracle .712 .698 (−.014) .825 (+.113)

 

With q=corr(prior,target)q=\mathrm{corr}(\mathrm{prior},\mathrm{target}). In the zero-resource setting (no neural data from the held-out task) these baselines reach r=.273r = .273–.381.381 on HCP (with the strongest being the deterministic caption-to-BOLD FIR model), against .490.490 for our text-conditioned model. The advantage is therefore not attributable to constructing GLM-compatible signals from a predicted map, nor to interpolation among neighbouring training tasks. We find instead that our model exceeds its prior in every regime.

Authors · CommentOpenReview ↗

Rebuttal 2/2

Temporal. We next compare amplitude-normalized, onset-locked, network trajectories, across 200 random 50/50 splits of the 100 held-out subjects. We use onset-locked trajectories rather than per-lag deconvolution because HCP is largely block-designed, making per-lag responses non-identifiable for several tasks.

Trajectory similarity Paired difference
Real split-half reference .942 [.935, .950] —
Text-FIR .354 [.344, .364] —
DiT–Text .500 [.476, .519] +.145 [.123, .162]
Sim–Same-recording oracle .571 [.550, .590] —
DiT–Text+Same-recording oracle .620 [.602, .643] +.050 [.027, .074]

On trajectory similarity our model exceeds both the deterministic FIR encoder given the same captions and the simulator given an identical prior, context, and event schedule.

In sum, our model exceeds the new strongest zero-resource baseline (Text-FIR) on both spatial map recovery (.490 vs .381), trajectory similarity (.500 vs .354), and additionally provides two properties the deterministic encoder does not: a distribution over plausible recordings rather than a point estimate, as well as subject-conditioned dynamics at inference.

 

Q3: Title for framework

We appreciate this suggestion from the reviewer. We propose to name the framework PINC-Flow (Priors-IN-Context), and will refer to our framework as such in the revision.

 

Q4: Comparison to related work

Relation to BrainDiVE and BeNeDiff. These works use diffusion models primarily to interpret neural representations by generating their associated observable content. BrainDiVE uses a brain-response model to guide image generation toward stimuli predicted to activate a specific region in visual cortex. BeNeDiff first identifies behavior-relevant latent neural dynamics and then conditions video diffusion on these factors to generate (a video of) the corresponding behaviors. Thus, neural regions or latent dynamics constrain the generation of images or behavior videos.

Our model addresses the complementary forward-simulation problem: an experimental specification (sensory content, instruction, response, and timing) conditions the generation of neural fMRI trajectories, including for complete task identities withheld during training. In concise terms, we propose that BrainDiVE and BeNeDiff ask “what stimulus or behavior is represented by this neural factor?”, whereas we ask “what neural dynamics follow from this specified experiment?” The methods are therefore closely related in their use of conditional generation for neuroscience, but differ in generation direction, output modality, and scientific objective.

 

We thank the reviewer for their help in improving our manuscript.

Authors · CommentOpenReview ↗

Dear reviewer,

We hope our rebuttal has addressed your concerns. To summarize, we have added additional baselines, propose a brief theoretical connection to counterfactual inference, named our framework, and expanded our discussions of relevant work. Please let us know if you have any further questions, in which case we would be happy to try to address them.

Kind regards, Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…