B[FM]$^2$: Brain Foundation Model via Flow Matching with SplitUNet
Jaedong Hwang, Kathleen Zhang, Wei Dai, Konstantinos Kontras, Maarten De Vos, Ila R Fiete, Paul Pu Liang
TL;DR. B[FM]² is pretrained directly on the EEG waveform via flow matching with a (1+1)D-factorized UNet (SplitUNet), achieving SOTA on multiple downstream tasks with ~3.3% of the pretraining data used by prior models.
Abstract. EEG foundation models can learn generalizable representations from large-scale EEG corpora to enable single-backbone transfer across diverse clinical and brain-computer interface tasks. Existing models typically discretize the continuous multi-channel EEG waveform into patches or codebook tokens and train a transformer with masked self-supervision. Recognizing that this discretization fragments continuous brain rhythms and obscures fine-grained temporal dynamics, we present B[FM] (Brain Foundation Model via Flow Matching), whose inductive bias aligns with the data by pretraining directly on the raw signal using continuous-time flow matching without patches, tokenization, or masking. However, multi-channel EEG signals pose an architectural challenge for flow matching: time is densely sampled and highly autocorrelated (thousands of timepoints), while the electrode axis is short (tens of channels) at distinct scalp positions. To address this time-electrode asymmetry, we introduce SplitUNet, a velocity network that factorizes each block into separate 1D temporal and 1D electrode convolutions and downsamples only along time, preserving electrode topology throughout the hierarchy. B[FM] sets a new state of the art on 7 of 9 standard downstream EEG classification tasks, using a pretraining budget of only 36,895 segments ( 307 h), 1-2 orders of magnitude () less than required by existing EEG foundation models. Further, it generates synthetic EEGs that two board-certified neurologists cannot distinguish from brain data (Cohen's ). https://jd730.github.io/projects/BFM2
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:50 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes an EEG foundation model that replaces masked-token pretraining with continuous-time flow matching directly on raw EEG data. The key architecture factorizes temporal and electrode convolutions to better model the asymmetry of EEG signals.
The paper explores an interesting area beyond the prevailing masked-token paradigm for EEG foundation models. The empirical evaluation is extensive, including multiple downstream benchmarks, architectural ablations, and a generative evaluation. The primary concern across multiple reviewers is that several central claims are not sufficiently supported by the current experimental evidence. In particular, the claimed superiority of flow matching over masked-token pretraining is difficult to attribute solely to the proposed objective because differences in architecture, model size, pretraining data, and optimization budgets are all confounded. Similarly, the claim of superior sample efficiency lacks direct comparisons against baseline methods pretrained under the same reduced-data setting. The reviewer is also concerned about the novelty of the architecture (SplitUNet largely adapts existing factorized convolution and UNet designs to EEG). The quality of generated EEG is also relatively poor, and some reported results require clarification, such as unusually strong performance on certain datasets.
The current version of this work is learning towards borderline rejection and authors can improve in the areas below during the rebuttal period to convince reviewers: (1) controlled experiments disentangling the contributions of flow matching, continuous waveform modeling, and the SplitUNet architecture; (2) direct comparisons with baseline foundation models pretrained on the same reduced pretraining data, thereby validating the sample-efficiency claim; (3) additional baselines without pretraining to isolate the value of the proposed pretraining objective; (4) stronger quantitative evaluations of generated EEG beyond the neurologist study; and (5) clarification of the reported anomalies in the experimental results together with a more complete discussion of related work and limitations.
Final justification
The authors addressed the major concerns through additional controlled experiments that disentangle the contribution of the flow-matching objective, matched-data baseline comparisons, and from-scratch ablations. Two reviewers confirmed that these new results resolved their primary concerns and updated their recommendations accordingly. While the architectural novelty remains modest, the empirical evidence now provides convincing support for the claimed benefits of the proposed pretraining framework. After considering the reviews, rebuttal, and reviewer discussion, I recommend acceptance.
Read meta-review
Meta-review
The paper proposes an EEG foundation model that replaces masked-token pretraining with continuous-time flow matching directly on raw EEG data. The key architecture factorizes temporal and electrode convolutions to better model the asymmetry of EEG signals.
The paper explores an interesting area beyond the prevailing masked-token paradigm for EEG foundation models. The empirical evaluation is extensive, including multiple downstream benchmarks, architectural ablations, and a generative evaluation. The primary concern across multiple reviewers is that several central claims are not sufficiently supported by the current experimental evidence. In particular, the claimed superiority of flow matching over masked-token pretraining is difficult to attribute solely to the proposed objective because differences in architecture, model size, pretraining data, and optimization budgets are all confounded. Similarly, the claim of superior sample efficiency lacks direct comparisons against baseline methods pretrained under the same reduced-data setting. The reviewer is also concerned about the novelty of the architecture (SplitUNet largely adapts existing factorized convolution and UNet designs to EEG). The quality of generated EEG is also relatively poor, and some reported results require clarification, such as unusually strong performance on certain datasets.
The current version of this work is learning towards borderline rejection and authors can improve in the areas below during the rebuttal period to convince reviewers: (1) controlled experiments disentangling the contributions of flow matching, continuous waveform modeling, and the SplitUNet architecture; (2) direct comparisons with baseline foundation models pretrained on the same reduced pretraining data, thereby validating the sample-efficiency claim; (3) additional baselines without pretraining to isolate the value of the proposed pretraining objective; (4) stronger quantitative evaluations of generated EEG beyond the neurologist study; and (5) clarification of the reported anomalies in the experimental results together with a more complete discussion of related work and limitations.
Final justification
The authors addressed the major concerns through additional controlled experiments that disentangle the contribution of the flow-matching objective, matched-data baseline comparisons, and from-scratch ablations. Two reviewers confirmed that these new results resolved their primary concerns and updated their recommendations accordingly. While the architectural novelty remains modest, the empirical evidence now provides convincing support for the claimed benefits of the proposed pretraining framework. After considering the reviews, rebuttal, and reviewer discussion, I recommend acceptance.
1 comment
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This Paper proposed an EEG foundation model, named B[FM]^2. The novelty lies in flow matching on raw multi-channel waveforms rather than the patch and mask method. The key architectural contribution is SplitUnet, which is developed based on the Unet encoder-decoder architecture. It serves as a velocity network that separates temporal and electrode convolutions and downsamples only along the time axis. The model achieves strong downstream classification results using less pretraining data than prior work.
Strengths and weaknesses
The idea of applying flow matching to EEG pretraining is the most interesting part of this work in my opinion. However, the main architecture still relies on UNet. The manuscript reads more like a combination of existing components rather than a novel architectural contribution.
Quality. I have two main concerns about the reported results. First, the dataset (Mumtaz) result shows a balanced accuracy of 1.000 with std = 0.000 across five seeds. This dataset has around 7k samples. A perfect score with 0 variance is unusual and raises the question of whether data leakage exists in the train and test split. An explanation from the authors would be helpful. Second, in Table 2 and its appendix table (Table 13), almost all baseline methods on TUAB show higher AUC-PR than balanced accuracy. For example REVE: 0.832 (balanced acc) vs. 0.928 (AUC-PR), CBraMod: 0.829 vs. 0.926, while B[FM]^2 is the only model where AUC-PR (0.741) falls well below balanced accuracy (0.819). This reversal is unexplained and raises questions.
Originality. The (1+1)D factorization reads as if it is taken directly from R(2+1)D video convolutions (Tran et al. 2018). Applying flow matching to a UNet backbone is also not new in generative modeling. The overall contribution reads more as a combination of existing components applied to a new domain rather than a novel architectural advance.
Significance. The downstream results are adequate on most tasks, and the clinical indistinguishability experiment is a good addition.
Clarity. The paper is generally well-written, and the experimental setup is clearly described.
Questions
Q1. For Mumtaz: A balanced accuracy of 1.000 with zero variance across five seeds on a small dataset is unusual. An explanation of why perfect classification is achievable here would help clarify this result.
Q2. For TUAB: the gap between balanced accuracy (0.819) and AUC-PR (0.741) is the opposite of other baselines in Table 13. This inconsistency is unexplained and affects my confidence in the metric choice.
Q3. The electrode conv slides along the standard 10-20 system order. This order is not based on anatomical proximity. Did you test other orders? This seems like a design choice that needs justification.
Q4. Feature extraction is done at the 0 time point. Did you try other timestep values?
Limitations
The main architecture still relies on UNet, and the (1+1)D factorization is directly borrowed from R(2+1)D video convolutions (Tran et al. 2018). The manuscript reads more like a combination of existing components rather than a novel architectural contribution. The manuscript would benefit from a clearer discussion of what is new and what is adapted from existing work. Additionally, the perfect score on Mumtaz and the AUC-PR anomaly on TUAB are not fully discussed, which raises further concerns.
Formatting concerns
No major formatting or anonymity concerns.
1 comment
Rebuttal
We appreciate the reviewer for their valuable feedback.
Novelty and Originality: the main architecture still relies on UNet / Applying flow matching to a UNet backbone is also not new in generative modeling
We agree that applying flow matching to a UNet backbone is established in general generative modeling, as we note at L101–104. Our contribution lies in demonstrating its viability as a pretraining paradigm for a brain foundation model handling continuous, multi-channel time series (EEG).
Existing foundation models rely on discrete-token masked modeling, which inherently fragments continuous brain rhythms. The novelty we claim is what our continuous-time pretraining paradigm enables. By transitioning to continuous-time flow matching directly on raw waveforms, B[FM]² introduces two capabilities that have no counterpart in the discrete-token approach:
- Generating clinically realistic raw EEG.
Masked-token backbones reconstruct in a discrete latent space and are not designed to synthesize waveforms; thus, they cannot be probed for what they have learned about brain dynamics. In contrast, B[FM]² generates raw EEG at a band-power Wasserstein distance of W₁ = 0.195 (against a 0.156 real-vs-real floor). Furthermore, two board-certified neurologists could not classify individual segments as real or synthetic ( = −0.096). As shown in Section 3.4, the model recovers sharp-wave transients, δ-dominant slow-wave activity, and posterior α rhythms from unconditional samples without any labels — an analysis with no analogue in the masked-token literature.
- Reaching state-of-the-art performance using 3.3% of the pretraining data.
B[FM]² sets a new state of the art on 7 of 9 downstream tasks (Table 2) while pretraining on only 36,895 segments (≈307 h), 1–2 orders of magnitude less than recent baselines. To confirm this reflects the objective rather than the data, we pretrained CBraMod on the exact same 36,895 segments: it reaches 0.786 ± 0.014 (TUAB) and 0.771 ± 0.010 (ISRUC), against 0.819 ± 0.004 and 0.806 ± 0.001 for B[FM]². The latter exceeds CBraMod's full-corpus ISRUC result (0.786, trained on 9,000 hours). Training our identical architecture from scratch loses a mean of 0.096 BAcc across nine tasks, indicating the gain is driven by the flow-matching objective rather than the backbone.
Table R1. Balanced accuracy of CBraMod on two downstream datasets with different pretraining settings.
| Dataset | Scratch | Matched-Scale | Full Data |
|---|---|---|---|
| TUAB | 0.802 ± 0.010 | 0.786 ± 0.014 | 0.829 ± 0.002 |
| ISRUC | 0.768 ± 0.012 | 0.771 ± 0.01 | 0.786 ± 0.011 |
100% in Mumtaz
This follows from the task design and the small number of test subjects. Following the CBraMod protocol, the Mumtaz splits are strictly subject-disjoint: the 841 test segments come from only 8 subjects (3 HC, 5 MDD). The result means all 841 segments were classified correctly across all five seeds. CBraMod reaches 0.956 and REVE 0.964 on this split, leaving roughly one or two subjects' worth of segments misclassified. Our model closes that remaining gap, and the zero variance reflects seed-to-seed stability on a task where the decision is effectively subject-level. We will report the test subject count in Appendix C so the number is interpretable.
AUC-PR and AUROC
We sincerely thank the reviewer for their careful inspection, which helped us identify a calculation bug in our evaluation script for AUC-PR and AUROC. The discrepancy was indeed an error on our end, and the previously reported B[FM] metrics were incorrect. Below are the corrected AUC-PR and AUROC scores for B[FM] across the four relevant benchmarks:
Table R2. Corrected AUC-PR and AUROC of B[FM] in downstream datasets.
| Benchmark | SoTA AUC-PR | B[FM] AUC-PR | SoTA AUROC | B[FM] AUROC |
|---|---|---|---|---|
| Mumtaz | 0.996 ± 0.002 (REVE) | 1.000 ± 0.000 | 0.996 ± 0.001 (REVE) | 1.000 ± 0.000 |
| MAT | 0.747 ± 0.081(REVE) | 0.806 ± 0.038 | 0.848 ± 0.030 (REVE) | 0.912 ± 0.022 |
| Siena | 0.487 ± 0.034 (CSBrain) | 0.383 ± 0.036 | 0.908 ± 0.012 (CSBrain) | 0.883 ± 0.012 |
| TUAB | 0.928 ± 0.001 (REVE) | 0.896 ± 0.006 | 0.924 ± 0.001 (REVE) | 0.892 ± 0.008 |
With this correction, the B[FM] model on TUAB achieves an AUC-PR of 0.8955, which is correctly higher than its balanced accuracy of 0.819. This resolves the unexplained reversal and restores the expected metric trend seen across the baseline methods. We will update Tables in Appendix G with these corrected values in the revision.
The electrode conv slides along the standard 10-20 system order. This order is not based on anatomical proximity. Did you test other orders? This seems like a design choice that needs justification.
We use the 10-20 order to keep preprocessing identical to the established baselines (BIOT, CBraMod, REVE), so that Table 2 remains directly comparable.
To test an anatomically motivated alternative, we evaluated a locality-preserving Hilbert-curve mapping (Hilbert, 1891). Within the rebuttal window we could apply the permutation only at fine-tuning, on SEED-V (62 channels, the largest montage in our suite), leaving the backbone pretrained in 10-20 order:
D. Hilbert: Über die stetige Abbildung einer Linie auf ein Flächenstück. Mathematische Annalen 38 (1891), 459–460.
Table R3. Ablation of channel ordering on SEED-V with B[FM]
| Ordering (SEED-V, 62 ch) | BAcc |
|---|---|
| Identity (10-20, paper) | 0.492 |
| Hilbert (anatomical) | 0.434 ± 0.025 |
The pretrained weights encode the 10-20 layout, so permuting at fine-tune time forces the model to relearn the spatial mapping from limited downstream data. Even under that mismatch, the Hilbert-ordered model remains competitive with the prior state of the art (CSBrain, 0.420). Pretraining directly in an anatomical order is a cleaner test and one we intend to run, but it is beyond the rebuttal window. We will state the ordering as a design choice with this caveat in the revision.
Feature extraction is done at the 0 time point. Did you try other timestep values?
To evaluate sensitivity to the feature extraction timestep, we are conducting sweeps on TUAB (). The completed 5-seed results for TUAB are below:
Table R4. Ablation of various on TUAB
| t | BAcc | AUROC | AUC-PR |
|---|---|---|---|
| 0 (ours) | 0.826 ± 0.004 | 0.892 ± 0.006 | 0.896 ± 0.006 |
| 250 | 0.804 ± 0.012 | 0.882 ± 0.0124 | 0.889 ± 0.012 |
| 500 | 0.807 ± 0.007 | 0.887 ± 0.0084 | 0.892 ± 0.011 |
| 750 | 0.802 ± 0.005 | 0.882 ± 0.0066 | 0.890 ± 0.010 |
| 1000 | 0.807 ± 0.007 | 0.889 ± 0.0028 | 0.896 ± 0.004 |
Performance is highly stable across all timesteps. BAcc remains virtually flat (0.80–0.82, within standard seed noise), and AUROC stays steady near ~0.88.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes B[FM]², a brain foundation model that replaces the discrete masked-token pretraining recipe with continuous-time flow matching applied directly to the raw multi-channel EEG waveform. To accommodate the time–electrode asymmetry of EEG, the authors introduce SplitUNet, a velocity network that factorizes each spatiotemporal convolution into separate 1D temporal and 1D electrode convolutions and downsamples only along time. The model reports state-of-the-art results on 7 of 9 downstream tasks using ~3.3% of the preprocessed pretraining pool, and the authors include a blinded neurologist evaluation of generated samples.
Strengths and weaknesses
Strengths
The continuous-time, tokenization-free framing is a clean and well-motivated departure from the dominant masked-token paradigm, and the sample-efficiency result (competitive performance from a small fraction of the data) is potentially of broad interest. The factorized SplitUNet design is well argued against the alternatives, and the ablations directly support the architectural choices.
Weaknesses
1. Clinical-indistinguishability premise The central evidence for Q2 rests on neurologists being unable to distinguish generated from real EEG. However, distinguishing two EEG signals is arguably an intrinsically hard task even for experts, so a negative discrimination result may reflect the baseline difficulty of the task rather than the fidelity of the generated signals. I am not convinced this operation is informative as framed, and I would like the authors to justify why the result supports the fidelity claim rather than merely confirming task difficulty.
2. Pretraining subset size The decision to pretrain on only ~3.3% of the preprocessed pool is asserted but not justified. The natural expectation is that more pretraining data would further improve performance, which makes the restriction puzzling rather than a clear strength. I would expect this choice to be motivated explicitly and supported by a scaling analysis (performance vs. pretraining data volume); without it, the sample-efficiency claim is hard to interpret, it is unclear whether 3.3% is a deliberate efficiency demonstration or simply the budget that was run.
3. Figure 3 (real vs. generated correspondence). It is unclear whether the right-hand traces are meant to be reconstructions of the real signals on the left; if so, they appear visually quite different. The fidelity claim relies on visual inspection alone. Quantitative metrics (e.g., Pearson correlation, MSE) should be reported to substantiate any claimed correspondence between real and generated signals.
4. Attention placement (lines 125–127). It is not clear what the attention operates on. The text distinguishes per-stage linear attention from the bottleneck full self-attention but does not specify which axis or axes (time, electrode, or both) each attention block mixes over. Please clarify the operand at each location.
Minor comments
The presentation could be improved in several places. Section 2.1 is dense and difficult to follow; the OT-CFM formulation should be built up more gradually, with terms defined before use, so that a non-specialist ML reader can follow the derivation (clarity should be measured against a general ML audience rather than assuming sub-field expertise). Relatedly, the endpoints and at line 83 are used before being defined, and it should be stated explicitly when they first appear that is the noise endpoint (from prior ) and the data endpoint. Finally, Figure 1 is hard to parse and not self-contained; adding panel labels (e.g., (a)–(c) or numbered callouts) would let each component be referenced and understood from the figure and caption alone, without reconstructing the pipeline from the main text, since a good figure should be interpretable on its own.
Questions
- Why was pretraining restricted to ~3.3% of the preprocessed pool? Can you provide a scaling curve showing how downstream performance varies with pretraining data volume?
- Are the Figure 3 right-hand traces reconstructions of the left-hand signals, or independently generated samples? If reconstructions, what are the Pearson correlation / MSE against the originals?
- Given the intrinsic difficulty of distinguishing EEG signals, what evidence indicates the neurologist result reflects sample fidelity rather than baseline task difficulty?
- For each attention block, which axis or axes does the attention mix over?
Limitations
Yes, the paper discusses limitations, though it omits the ones most relevant to its central claims, such as the absence of a data-scaling analysis and the weakness of the fidelity evaluation.
Final justification
The rebuttal adequately addresses my main concerns through additional clinical and distributional evidence, the matched-scale CBraMod comparison, and clarifications regarding Figure 3 and the attention mechanism. The proposed revisions to Section 2.1 and Figure 1 also resolve my presentation-related comments. These additions strengthen the paper, and I have no remaining questions. I therefore decided to increase my original score to 5.
Formatting concerns
No formatting concerns. The submission appears to follow the NeurIPS template, and the page limit, anonymization, and checklist requirements are satisfied.
3 comments
Rebuttal
We sincerely thank the reviewer for their constructive feedback. We hope we have addressed all of your concerns; please let us know if any questions remain.
Clinical-indistinguishability premise
We appreciate the reviewer's scrutiny on this point. However, we respectfully disagree with the premise that visual discrimination of EEG is intrinsically difficult for this population of readers.
Board-certified neurologists discriminate EEG morphology as their clinical function: separating epileptiform transients from artifact, identifying eye-movement and muscle contamination, scoring sleep architecture, and judging whether a background rhythm is physiologically plausible for a given state.
EEG signals have neurophysiological structure in time and space — ocular and myogenic artifacts, inter-electrode coherence, amplitude envelopes, spectral content per region — and a generative model that violates any of them produces a recording that reads as wrong to a trained eye (e.g., incompatible topographic distributions, specific patterns like alpha not having a posterior distribution). A trained reader can detect this anomaly while statistical comparison methods can overlook. Our protocol was designed to give readers those cues: segments were presented in the longitudinal bipolar ("double banana") montage at standard clinical display settings (10 mm/s, 7 µV/mm, 0.3–70 Hz, 60 Hz notch), i.e. the conditions under which they habitually read (Appendix D).
That the paradigm is not at ceiling is also visible internally: our UNet-1D (indep.) ablation generates samples at W₁ = 1.90 against a 0.156 real-vs-real floor — recordings no reader would mistake for clinical EEG. The task discriminates when there is something to discriminate.
Second, the fidelity evidence is not solely the reading. Appendix F reports the Wasserstein-1 distance between log-band-power distributions of generated and held-out real segments (n = 5,000).
Third, on the reading's statistics: as stated in Appendix D, we do not infer indistinguishability from a failure to reject equality of means — which would not establish equivalence — but from segment-level discriminability. Cohen's κ between each reader's binarized rating and the true label is −0.096, and inter-reader Spearman ρ = 0.052: neither reader could classify individual segments, and their per-segment judgments were uncorrelated with one another, indicating the cues they relied on were not tracking provenance.
Figure 3: reconstructions or independent samples?
The right-hand traces are independent samples generated from random noise, not reconstructions of the left-hand signals. No correspondence is claimed, so paired metrics (Pearson correlation, MSE) do not apply — there is no matched real segment to compare against. Fidelity is assessed distributionally instead, via the band-power W₁ distances in Table 6 (above). We will update the Figure 3 caption to state this explicitly and direct readers to Table 6.
Why 3.3%? /Baselines with the same size of pretraining
By construction, sample efficiency is a joint statement about how much data a method uses and how well it performs. B[FM]² pretrains on 2,500 subjects—roughly an order of magnitude smaller than REVE's 25,000 (Ouahidi et al., 2025) and substantially smaller than the pretraining pools of CBraMod, LaBraM, and BIOT—while remaining competitive with or exceeding them on 7 of 9 downstream tasks in the CBraMod suite.
We can, however, substantiate the efficiency claim by the complementary route of holding data fixed and varying the method. We pretrained CBraMod on the same 36,895 segments and fine-tuned with five seeds:
| Dataset | Scratch | Matched-Scale | Full Data |
|---|---|---|---|
| TUAB | 0.802 ± 0.010 | 0.786 ± 0.014 | 0.829 ± 0.002 |
| ISRUC | 0.768 ± 0.012 | 0.771 ± 0.01 | 0.786 ± 0.011 |
At matched pretraining data, B[FM]² leads by +0.030 (TUAB) and +0.035 (ISRUC), and exceeds CBraMod's full-corpus ISRUC result using 3.3% of the data. CBraMod's matched-scale TUAB result falls below its own from-scratch result (0.786 vs 0.802), indicating its recipe is undertrained at this scale — the sample-efficiency gap we claim, but we state it rather than leave it to inference.
Attention placement (lines 125–127)
We adopt the DDPM U-Net backbone (Ho et al., 2020; L112) and inherit both the per-stage linear-attention blocks and the bottleneck full-self-attention block unchanged. In both, the (E, T) feature map is flattened to a sequence of length E·T, so attention mixes over all electrode and time positions jointly, with no axis prior. We will add this to Appendix A.
Figure 1
Thank you for your comment. We agree that Figure 1 must be self-contained. We will add panel labels (a)–(c) alongside each title and expand the caption so each component is interpretable from the figure alone.
Section 2.1 is dense and difficult to follow
We agree that Section 2.1 was dense. To make the formulation accessible to a general ML audience, we have restructured the opening of the Conditional Flow Matching paragraph to build the concepts sequentially, explicitly defining the endpoints and before using them in the coupling. The revised opening reads:
Flow matching (Lipman et al., 2023) learns a velocity field whose induced flow transports an isotropic Gaussian noise prior into the data distribution . Following the two-endpoint formulation of Tong et al. (2024), we first define as the noise endpoint and as the data endpoint. Using these endpoints, we specify a coupling —a joint distribution over that pairs noise with data samples—and form the straight interpolant . Training then regresses onto the displacement (Eq.~1); sampling integrates from to .
Thank you for the detailed rebuttal. The additional clinical and distributional evidence, the matched-scale CBraMod comparison, and the clarifications regarding Figure 3 and the attention mechanism address my main concerns. The proposed revisions to Section 2.1 and Figure 1 also resolve my presentation-related comments. I encourage the authors to incorporate these clarifications and new results into the revised manuscript. I have no further questions.
We thank the reviewer for the thorough review and are glad that all concerns have been resolved. All clarifications and new results will be incorporated into the camera-ready version, including the clinical and distributional analyses and matched-scale CBraMod comparison, the revised Figure 3 caption, the expanded attention mechanism description in Section 2.1, and the updated Figure 1.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces a new EEG foundation model that is based on a modified UNet architecture and trained via flow matching. The authors motivate this approach with a limitation of the currently most popular EEG foundation models, which are based on transformer architectures and masked token reconstruction: they argue that splitting EEG into patches is problematic given the continuous nature of the signal and the importance of fine-grained temporal resolution in downstream tasks. Besides benchmarks of the new model's downstream performance, the paper also features evaluations of the quality of EEG segments generated with the flow matching model. Notably, the results indicate that two clinicians were unable to distinguish real from generated EEG segments.
Strengths and weaknesses
Strengths:
- useful topic exploring an alternative EEG pre-training approach to the ubiquitously used masked token reconstruction
- well motivated with a plausible shortcoming of current approaches
- well written and structured
- interesting results supporting that (1) flow matching can be a useful pre-training objective for EEG foundation models, (2) the architectural adjustment of the UNet is useful, (3) B[FM]2 achieves good benchmark results against strong foundation model baselines, and (4) the EEG flow matching model can generate plausible data that clinicians cannot distinguish from true EEG
Weaknesses:
- key claims are not sufficiently supported by the results (see questions for details)
- limitations and related work should be more carefully discussed
Questions
High priority:
-
It appears that two aspects are entangled: tokenisation (i.e. patching) of the input and the training objective (reconstruction vs flow matching). The method is motivated to address the issue of patching, but a reconstruction loss could also be used on the "pixel" level. Disentangling the relevance of these aspects and/or further motivation of why flow matching might be a better objective than reconstruction would be valuable.
-
Key claims are not sufficiently supported by the results:
- A key claim of the paper is that using flow matching for pre-training improves over masked token frameworks. However, while the results show good performance of the proposed model, it cannot be confidently attributed to the use of a flow matching objective. Several likely alternative explanations cannot be excluded: (1) baseline models were pre-trained on different data, (2) differences in model architecture and size and connected data requirements (e.g. a smaller model may perform better when the amount of data is very limited), (3) differences in fine-tuning budget / hyperparameter optimisations.
- The paper claims superior pre-training sample efficiency. However, results for baseline models pre-trained on the same (subsampled) pre-training data are missing and would be required to support this claim. Prior work has shown quick saturation of the value of additional segments from the same recording/participant, such that the performance of baseline methods might also not be impacted much if pre-training data is subsampled.
I would change my score if the authors can convincingly argue or provide further evidence to exclude such alternative explanations with high certainty. Alternatively, these claims could be removed and the caveats of alternative explanations that preclude these conclusions discussed. I think the results still support valuable conclusions (see strengths) that could be sufficient for a good paper.
-
Error in the reported results: all the tables in appendix G show exactly the same values for balanced accuracy and AUROC for B[FM]. Can the authors check and correct these results?
-
It would be useful to have B[FM] without pre-training as another baseline to assess the impact of pre-training (with flow matching) vs model architecture.
Lower priority / suggestions:
- Related work section is missing some very closely related work
- EEGDM: https://arxiv.org/abs/2508.14086
- there is a lot of prior work on the decoupling of the time and spatial dimensions in convolutions for EEG data (e.g. EEGNet, ShallowNet)
- If I understand correctly, the model was pre-trained on data with a different channel count and reference than the downstream data (e.g. 19 chans avg ref for TUEG, but using bipolar montage with only 16 chans for TUAB downstream). It would be interesting to see how the model performs when the same data format is used in the downstream task. It might allow for better transfer of what the model learned during pre-training and better downstream results.
- Would it make sense to set t=1 for downstream tasks, i.e. corresponding to clean data instead of pure noise? Was the effect of this choice studied?
- Line 91: Be more specific about which ODE solver was used.
- Line 185: UNet-1D was not introduced at this point; might be useful to reference the upcoming ablation section to avoid confusion.
- I wonder if the sample size (in particular in terms of number of participants) is an important factor for how B[FM] performs compared to baselines or the 2D ablation version. The UNet architecture and relatively small model size could be advantageous when data is limited and would be consistent with B[FM] underperforming on the largest dataset (TUAB). Understanding this would be useful – there are plenty of (BCI) tasks where fine-tuning data is very limited and B[FM] might thus be preferable to other foundation models.
- Pre-trained weights should be made available if possible.
Limitations
Limitations should be discussed more carefully. The authors point to section 4 (conclusions) in the corresponding checklist item, which does not discuss any limitations.
Final justification
The authors have provided additional results during the rebuttal that have addressed my concerns. The additional experiments demonstrate the effectiveness of the approach and justify the attribution of observed improvements to both the flow matching objective and the architecture.
Formatting concerns
None
5 comments
Rebuttal
We thank the reviewer for these thoughtful and detailed comments.
We address each of the three alternative explanations the reviewer raises, then report a control that isolates the pretraining objective itself.
Baselines with the same size of pretraining
We agree that evaluating baselines pretrained on our exact TUEG subset is necessary to substantiate the sample-efficiency claim definitively. We pretrained CBraMod on the same 36,895 segments to ensure a consistent pretraining scale, then fine-tuned with five random seeds.
Balanced acc. of CBraMod on two downstream datasets with different pretraining settings.
| Dataset | Scratch | Matched-Scale | Full Data |
|---|---|---|---|
| TUAB | 0.802 ± 0.010 | 0.786 ± 0.014 | 0.829 ± 0.002 |
| ISRUC | 0.768 ± 0.012 | 0.771 ± 0.01 | 0.786 ± 0.011 |
At matched pretraining data, B[FM]² outperforms CBraMod by +0.030 on TUAB and +0.035 on ISRUC, and exceeds CBraMod's full-corpus ISRUC result (0.786) using 3.3% of the data. We note that CBraMod's matched-scale TUAB result falls below its own from-scratch result (0.786 vs. 0.802), indicating its recipe is undertrained at this data scale — which is the sample-efficiency gap we claim, but we state it explicitly rather than leave it to inference.
A reconstruction loss could also be used on the "pixel" level.
We isolate the flow-matching objective from the continuous-waveform architecture with a masked-pixel-reconstruction control: the identical (1+1)D 6M-parameter backbone and identical pretraining shard, replacing only the loss with a 75% random per-sample mask and MSE on the raw waveform (MAE-style, no patch tokenization). Because architecture, data, and step budget are held fixed, any downstream difference is attributable to the objective alone. Given time and compute constraints, we report interim results on TUAB and ISRUC. OT-CFM leads on both datasets. We also note that pixel-recon on our backbone (0.810) already exceeds matched-scale CBraMod on the same shard (0.786), indicating that the continuous-waveform backbone contributes independently of the pretext.
| Objective | TUAB | ISRUC |
|---|---|---|
| Flow matching | 0.819 ± 0.004 | 0.806 ± 0.001 |
| Pixel-recon (masked-MSE on raw signals) | 0.810 ± 0.01 | 0.783 ± 0.01 |
differences in model architecture and size and connected data requirements
Our SplitUNet has 6 M parameters (L482) while CBraMod (4M) and REVE (Base, 69M). We also conducted architectural ablation in Tables 4 and 5, comparing with UNet-1D and UNet-2D.
differences in fine-tuning budget/hyperparameter opt.
We adopt CBraMod's fine-tuning setting (AdamW, 40 epochs, and feature-aggregation strategy). Please refer to Appendix B for details.
B[FM] without pre-training
We thank the reviewer for suggesting this baseline. Pretraining yields a consistent gain across eight of nine tasks and is essentially neutral on the largest dataset, TUAB. As the reviewer anticipates below, the transfer benefit scales inversely with downstream data volume: the largest gains fall on the small-scale tasks (Mumtaz 7k, MAT 1.7k, Siena ~10k, BCIC-IV-2a 5k), while TUAB (409k samples) shows none. Across all nine tasks, the mean gain is +0.096 BAcc (balanced accuracy) at fixed architecture, isolating the value of the generative pretraining prior from the architecture itself.
| Dataset | From-scratch | Paper (with pretrain) | Δ (pretrain benefit) |
|---|---|---|---|
| MAT | 0.669 ± 0.059 | 0.840 | +0.171 |
| Mumtaz | 0.863 ± 0.042 | 1.000 | +0.137 |
| BCIC-IV-2a | 0.253 ± 0.003 | 0.368 | +0.116 |
| Siena | 0.595 ± 0.140 | 0.777 | +0.182 |
| ISRUC | 0.762 ± 0.063 | 0.806 | +0.044 |
| HMC | 0.736 ± 0.012 | 0.764 | +0.028 |
| TUEV | 0.593 ± 0.030 | 0.715 | +0.122 |
| SEED-V | 0.419 ± 0.023 | 0.492 | +0.073 |
| TUAB | 0.824 ± 0.005 | 0.819 | −0.008 |
AUC-PR, AUROC
We sincerely thank the reviewer for their careful inspection, which helped us identify a calculation bug in our evaluation script for AUC-PR and AUROC.
The discrepancy was indeed an error on our end, and the previously reported B[FM] metrics were incorrect. Below are the corrected AUC-PR and AUROC scores for B[FM] across the four relevant benchmarks:
| Benchmark | AUC-PR | AUROC |
|---|---|---|
| MAT | 0.806 ± 0.038 | 0.912 ± 0.022 |
| Mumtaz | 1.000 ± 0.000 | 1.000 ± 0.000 |
| Siena | 0.383 ± 0.036 | 0.883 ± 0.012 |
| TUAB | 0.896 ± 0.006 | 0.892 ± 0.008 |
With this correction, the B[FM] model on TUAB achieves an AUC-PR of 0.8955, which is correctly higher than its balanced accuracy of 0.819. This resolves the unexplained reversal and restores the expected metric trend seen across the baseline methods. We will update Tables in Appendix G with these corrected values in the revision.
Downstream channel/reference mismatch.
We thank the reviewer for this observation. We followed the 16-channel bipolar protocol for TUAB because it is the established benchmark standard introduced by BIOT and maintained by LaBraM, CBraMod, and REVE; adhering to it keeps our Table 2 results strictly comparable to prior work.
Re-preprocessing the downstream data to match our 19-channel pretraining format would break that comparability, though we agree it would likely yield stronger downstream results. We view the model's reaching state-of-the-art performance despite this montage mismatch as evidence for the robustness of the learned representations, and we will discuss both the benchmarking constraint and the potential for format-aligned transfer in the revision.
if the sample size (in particular in terms of number of participants) is an important factor for how B[FM]² performs compared to baselines or the 2D ablation version.
We appreciate this suggestion and agree it points to a useful takeaway. Two observations, one on each comparison the reviewer raises.
Against baselines. The pattern tracks subject count rather than window count. B[FM]²'s largest margins fall on the tasks with fewest participants — MAT (36 subjects), Mumtaz (34), BCIC-IV-2a (9), SEED-V (16) — while TUAB (~2,993 patients) shows the narrowest gap, with all foundation models clustering at 0.80–0.83 BAcc. Our from-scratch comparison above shows the same pattern from the other direction: the pretraining benefit is concentrated on the low-subject tasks and is neutral on TUAB. We read this as saturation on TUAB rather than underperformance — with that many participants, data volume substitutes for strong priors. Against the 2D ablation, and on whether this is simply a small-model effect. Table 5 indicates the advantage comes from the (1+1)D inductive bias rather than parameter count: UNet-(1+1)D (6M) outperforms both the larger UNet-2D (9M) and the smaller UNet-1D (4M). If low capacity alone were the driver, the 4M model would dominate, which it does not. We will add these parameter counts to Appendix B.
Would it make sense to set t=1 for downstream tasks, i.e. corresponding to clean data instead of pure noise? Was the effect of this choice studied?
To evaluate sensitivity to the feature extraction timestep, we are conducting sweeps on TUAB (). The completed 5-seed results for TUAB are below:
| t | BAcc | AUROC | AUC-PR |
|---|---|---|---|
| 0 (ours) | 0.826 ± 0.004 | 0.892 ± 0.006 | 0.896 ± 0.006 |
| 250 | 0.804 ± 0.012 | 0.882 ± 0.0124 | 0.889 ± 0.012 |
| 500 | 0.807 ± 0.007 | 0.887 ± 0.0084 | 0.892 ± 0.011 |
| 750 | 0.802 ± 0.005 | 0.882 ± 0.0066 | 0.890 ± 0.010 |
| 1000 | 0.807 ± 0.007 | 0.889 ± 0.0028 | 0.896 ± 0.004 |
Performance is highly stable across all timesteps. BAcc remains virtually flat (0.80–0.82, within standard seed noise), and AUROC stays steady near ~0.88.
Related work
We thank the reviewer for highlighting this highly relevant concurrent work and prior works regarding decoupling time and space for EEG data. We will add the paragraphs below in the Related Work section.
Concurrently, EEGDM (Puah et al., 2025) explores continuous-time pretraining via a DDPM pretext. \model improves upon this by employing an OT-CFM objective, which provides a simpler regression target, eliminates noise schedule tuning, and enables efficient few-step sampling via straighter marginal drift. Furthermore, while EEGDM requires a heavy Latent Fusion Transformer for downstream adaptation and is evaluated solely on two clinical datasets (TUEV and CHB-MIT), \model extracts robust representations without complex fusion overhead and is validated across a comprehensive, foundation-scale suite.
Decoupling temporal and spatial dimensions is a well-established principle in EEG architectures, pioneered by models like EEGNet and ShallowNet/Deep4 (Schirrmeister et al., 2017). This temporal-then-spatial factorization also mirrors video processing techniques like R(2+1)D convolutions. We position our (1+1)D block as the natural extension of this principle within a modern UNet backbone, effectively capturing both temporal dynamics and spatial electrode relationships directly from raw waveforms.
Puah et al. "EEGDM: EEG representation learning via generative diffusion model." arXiv preprint arXiv:2508.14086 (2025).
Line 91 / Line 185
We used 50-step first-order Euler. We will clarify it in the appendix. UNet-1D was introduced in L104, but good point; will add the reference there too for readers.
Limitations
We thank the reviewer for catching this omission. We will add a dedicated Limitations paragraph to Section 4 addressing two specific points: (1) We evaluate our pretraining on a small-scale dataset, leaving the scaling behavior of this continuous-time framework on massive clinical corpora for future work. (2) Our human expert evaluation relies on two board-certified doctors. While their qualitative feedback is highly informative, this sample size reflects the significant logistical difficulty of recruiting specialized medical professionals.
Thank you for the detailed reply, I appreciate the clarifications and additional results.
I think the additional experiments isolating the effect of the flow matching objective and comparing against from-scratch training significantly strengthen the evidence for the effectiveness of flow matching-based pre-training. The comparison between the pixel-recon version and CBraMod (trained on the same data) is also valuable to attribute parts of the improvement to the architecture.
The pixel reconstruction experiments could be further improved with a comparison to a different masking strategy where larger contiguous blocks are masked rather than random pixels. This could make the reconstruction task more difficult and improve the learned representation.
We sincerely thank the reviewer for the thoughtful follow-up and the excellent suggestion.
The pixel reconstruction experiments could be further improved with a comparison to a different masking strategy where larger contiguous blocks are masked rather than random pixels. This could make the reconstruction task more difficult and improve the learned representation.
We entirely agree with your intuition that a different contiguous masking task could force the model to learn stronger representations.
In fact, we conducted this exact experiment shortly after submitting our initial rebuttal. We implemented a contiguous whole-patch masking strategy (patch size 200, 50% mask ratio, mirroring the CBraMod/REVE/CSBrain style) using the identical (1+1)D backbone and data split.
The model achieves 0.814 ± 0.01 on TUAB and 0.781 ± 0.02 on ISRUC, which are 0.004 better and 0.002 worse than pixel-level patching.
Most importantly, this completes the picture for our core claim: even when the reconstruction baseline is upgraded to this more difficult contiguous masking strategy, our continuous flow-matching (OT-CFM) objective (TUAB: 0.816; ISRUC: 0.806) still retains the highest performance across both datasets. We will include this contiguous-patch ablation alongside the pixel-recon baseline in the final revision.
Please do not hesitate to let us know if you have any further questions. We would be more than happy to address them.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the AC for the clear statement of what the paper needed, and address all five points with experiments run during the rebuttal period.
Reviewer q2Aq confirmed in follow-up that these controls significantly strengthen the evidence for flow-matching pretraining. We believe each of the AC's five points is now supported by direct measurement, and we would welcome reconsideration.
(1) Disentangling flow matching, continuous waveform modeling, and SplitUNet.
To isolate the objective, we held the 6M-parameter (1+1)D backbone, the pretraining shard, and the step budget fixed, and replaced only the loss. Reviewer q2Aq then suggested a harder contiguous-masking variant, which we ran under the same conditions.
Table. Pretraining objective at fixed backbone, data, and step budget (BAcc).
Because everything but the loss is held constant, the remaining difference is attributable to the objective. Architecture is isolated separately in Tables 4–5, where UNet-(1+1)D (6M) outperforms both the larger UNet-2D (9M) and the smaller UNet-1D (4M), so low capacity is not the driver. The backbone also contributes independently of the pretext, since pixel-recon on it reaches 0.810 against 0.786 for matched-scale CBraMod on the same shard.
(2) Baselines pretrained on the same reduced data.
We pretrained CBraMod on our exact 36,895 segments and fine-tuned with five seeds.
Table. Balanced accuracy of CBraMod under three pretraining settings.
At matched data B[FM]² leads by 0.030 on TUAB and 0.035 on ISRUC, and exceeds CBraMod's full-corpus ISRUC result while using 3.3% of the data. CBraMod's matched-scale TUAB result falls below its own from-scratch result, indicating its recipe is undertrained at this scale; this is the sample-efficiency gap we claim, now measured rather than inferred. The control removes the pretraining-data confound, parameter count is addressed by the ablation above, and our fine-tuning follows CBraMod's published setting (Appendix B).
(3) Baselines without pretraining.
To separate the generative prior from the architecture, we trained the identical model from scratch on all nine downstream tasks.
Table. Effect of pretraining at fixed architecture (BAcc).
Pretraining yields a mean gain of 0.096 BAcc, largest on the tasks with fewest subjects and neutral on TUAB, which has 409k samples from roughly 2,993 patients. We read TUAB as saturation rather than underperformance, since at that many participants data volume substitutes for a strong prior.
(4) Quantitative evaluation of generated EEG.
We kindly argue that the fidelity claim does not rest on the neurologist study alone. Appendix F reports the band-power Wasserstein-1 distance to held-out real segments (n = 5,000), where B[FM]² reaches 0.195 against a real-vs-real floor of 0.156. That the measure discriminates is visible from our UNet-1D (indep.) ablation at 1.90, which no reader would mistake for clinical EEG. The reader study is analyzed at segment level rather than as a failure to reject equality of means, with Cohen's κ of −0.096 against the true label and inter-reader Spearman ρ of 0.052.
(5) Reported anomalies, related work, and limitations.
The TUAB metric reversal was a bug in our evaluation script, which Reviewer yJdQ's inspection helped us find; the corrected AUC-PR is 0.896 ± 0.006 and AUROC 0.892 ± 0.008, restoring the trend seen across baselines (Appendix G updated). The perfect Mumtaz score follows from subject-disjoint splits in which the 841 test segments come from only 8 subjects, making the decision effectively subject-level; CBraMod (0.956) and REVE (0.964) already misclassify about one subject's worth, and our model closes that gap. We will report the test-subject count in Appendix C. Related work will add EEGDM (Puah et al., 2025) as concurrent continuous-time pretraining and the EEGNet, ShallowNet, and R(2+1)D lineage on temporal-spatial factorization, with our position relative to each stated explicitly. Section 4 will carry a dedicated Limitations paragraph on pretraining scale and the two-reader panel.