Stochastic Optimal Control for Continuous-Time fMRI Representation Learning

Joonhyeong Park, Byoungwoo Park, Chang-Bae Bang, Jungwon Choi, Hyungjin Chung, Byung-Hoon Kim, Juho Lee

Abstract & TL;DR

Researchers have developed BDO (Brain Dynamics with Optimal control), a novel framework that treats fMRI representation learning as a Stochastic Optimal Control (SOC) problem. By modeling brain activity as continuous-time latent dynamics rather than discrete "patches," BDO achieves state-of-the-art performance across clinical tasks while being significantly more computationally efficient than existing models.

The Challenge of Temporal Irregularity in fMRI

Functional Magnetic Resonance Imaging (fMRI) captures the brain's Blood-Oxygen-Level-Dependent (BOLD) signals—proxies for neural activity—as they evolve over time. However, learning robust representations from this data is notoriously difficult due to inherent noise and temporal irregularities.

A major hurdle is that different studies use different Repetition Times (TR), which is the interval between consecutive measurements. Most current Self-Supervised Learning (SSL) methods handle this by "patchifying" the data—chopping time-series into fixed-size windows. This approach is problematic: if Dataset A has a TR of 0.7s and Dataset B has 2.0s, a "10-step patch" represents vastly different physical durations. This temporal mismatch forces models to learn inconsistent dynamics and often requires clunky preprocessing like resampling, which can destroy fine-grained details.

Illustration of varying Repetition Times (TR) across different fMRI datasets.

Continuous-Time Modeling with BDO

To address these limitations, the authors introduce BDO, shifting the paradigm from discrete patches to continuous-time modeling. The framework is built on three core pillars:

  1. Stochastic Optimal Control (SOC): The model represents brain activity using a Stochastic Differential Equation (SDE). In this framework, the "encoder" acts as a control policy. If the latent state of the brain is visualized as a particle moving through space, the encoder provides the "steering" (control signals) required to align that particle's path with the observed fMRI data.
  2. Unifying MAE and JEPA: BDO elegantly combines two popular SSL strategies. It utilizes Masked Autoencoding (MAE) to reconstruct missing time points and a Joint-Embedding Prediction Architecture (JEPA) to predict future latent states. The SOC formulation provides a single mathematical objective that naturally satisfies both paradigms.
  3. Simulation-Free Inference: Typically, solving SDEs requires expensive numerical solvers that scale poorly. BDO circumvents this using a "simulation-free" strategy by assuming the brain's dynamics are piecewise locally linear. This allows the equations to be solved in closed form, making the model incredibly fast and scalable to massive datasets.

Datasets and Evaluation

The model was pre-trained on a massive scale using the UK Biobank (UKB), featuring resting-state fMRI from 41,072 participants. It was then evaluated across several diverse clinical cohorts:

  • HCP-A: Age regression and trait prediction.
  • ABIDE: Autism diagnosis classification.
  • ADHD200: ADHD diagnosis.
  • HCP-EP: Early psychosis diagnosis.

Key Insights

  • The Control Signal is the Feature: A critical insight of this work is that the optimal control policy—the "steering" required to match the data—serves as a robust, universal representation of the brain's state.
  • TR-Agnosticism: Because the model operates in continuous time, it is agnostic to the sampling rate. It maps everything onto a shared, real-time axis, naturally handling the heterogeneity of multi-site clinical data without destructive resampling.

Results: High Performance, Low Cost

BDO demonstrates a compelling "best of both worlds" scenario, achieving higher accuracy at a fraction of the computational cost.

BDO achieves state-of-the-art Pearson correlation in age regression while requiring orders of magnitude fewer GPU hours than baselines.
  • State-of-the-Art Performance: BDO achieved top results in age regression (Pearson correlation of 0.851 on HCP-A) and psychiatric diagnosis, outperforming specialized models like BrainNetTF and other SSL baselines like Brain-JEPA and BrainLM.
  • Unmatched Efficiency: The 86M parameter BDO model required only 15 GPU hours for pre-training. For comparison, BrainLM (85M) took 496 hours, and BrainMass (90M) took 244 hours.
  • Zero-Shot Transfer: Representations learned from resting-state data successfully transferred to task-based fMRI, proving that the features capture fundamental, generalizable neural dynamics.

Limitations and Future Directions

While the locally linear approximation enables massive speedups, it may introduce a "variational gap"—a slight loss in mathematical precision compared to more complex, non-linear solvers. Furthermore, while the extracted control features are highly predictive, mapping these abstract latent dynamics back to specific, interpretable neurobiological functions remains a challenge. Future work will likely explore more flexible inference approximations and deeper interpretability tools to uncover exactly which brain circuits the control policy prioritizes during different clinical states.

Summary updated

BibTeX
@inproceedings{park2026stochastic,
  author = {Joonhyeong Park and Byoungwoo Park and Chang-Bae Bang and Jungwon Choi and Hyungjin Chung and Byung-Hoon Kim and Juho Lee},
  title = {{Stochastic Optimal Control for Continuous-Time fMRI Representation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=N51nP3TBwR},
}
Figure