NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DEFT: Disentanglement-Enhanced Fine-Tuning for EEG Foundation Models

Yuqiu Deng, Muyun Jiang, Zongpeng Zhang, Mingqing Xiao, Yansen Wang, Peiliang Gong, Xinliang Zhou, Yi Ding, Ziyu Jia, Cuntai Guan, Chenyu Liu

TL;DR

DEFT (Disentangled EFM Fine-Tuning) is a plug-and-play adapter that improves how we fine-tune EEG foundation models by separating task-relevant "content" from subject-specific "style." By filtering out individual biological noise before classification, DEFT significantly boosts the accuracy and generalizability of neural decoding across different people.

What Problem Does This Paper Address?

Electroencephalography (EEG) data is notoriously "noisy" because every person’s brain signals are influenced by unique factors like anatomy, electrode placement, and even skin impedance. While recent EEG Foundation Models (EFMs) are great at learning general representations from massive datasets, they have a hidden flaw: they often amplify these subject-specific traits more than the actual task signals (like emotion or motor intent).

When researchers fine-tune these models for a specific task, the downstream classifier inherits a "mixed" representation. It has to work extra hard to ignore the subject-specific "noise" while trying to find the task-relevant "signal." This "burden" makes it difficult for models to generalize to new subjects, a critical requirement for practical applications like brain-computer interfaces (BCIs) or clinical diagnostics.

Figure 1: Pretrained EFM embeddings amplify subject information. Frozen CBraMod embed- dings improve linear subject probing over raw EEG and form subject-dependent clusters. Task probes use subject-disjoint splits; subject probes use held-out trials from known subjects.

Methods

The authors propose a "factorize-before-classify" approach called DEFT. Instead of feeding mixed tokens directly into a classifier, DEFT inserts an adapter that splits the representation into two distinct branches: a Content Branch (for the task) and a Style Branch (for subject-specific traits).

The core of this system is the Recursive Gaussian Disentangler (RGD). Inspired by Kalman filtering, it iteratively refines the content and style estimates by subtracting one from the other. To ensure the branches actually learn what they are supposed to, the authors apply several clever constraints:

  • Temporal-Variance Regularization: Based on the intuition that task-related brain activity changes over time while subject traits remain stable, they encourage the Content branch to have high variance and the Style branch to have low variance within a single trial.
  • Subject-Aware Contrastive Learning: This pulls together "style" representations from the same person across different samples, anchoring the Style branch to individual identity.
  • Reconstruction Loss: A lightweight module tries to reconstruct the original signal using both branches, ensuring that no important information is lost during the split.
The DEFT framework uses recursive refinement and multiple loss functions to organize tokens into task-content and subject-style branches.

Datasets

The researchers evaluated DEFT across a massive suite of 12 EEG datasets, focusing on six primary ones for their main results:

  • BCIC-IV-2a: Motor imagery (imagining moving hands/feet).
  • FACED: Emotion recognition.
  • ISRUC-S1: Sleep staging.
  • MentalArith.: Workload assessment during mental math.
  • BCIC-Speech: Imagined speech decoding.
  • Mumtaz2016: Major Depressive Disorder (MDD) classification.

They tested DEFT on four different state-of-the-art EFM backbones: CodeBrain, CBraMod, LaBraM, and CSBrain, proving it is model-agnostic.

Key Insights and Ideas

  • The "Subject-Info Amplifier" Effect: One of the most surprising findings is that pretraining an EFM actually makes it easier to identify a subject than using the raw EEG data. This confirms that current foundation models are inadvertently focusing on individual "fingerprints" rather than universal brain patterns.
  • Disentanglement as a "Burden" Reducer: By explicitly modeling subject-consistent information in a separate branch, DEFT provides the classifier with a "cleaner" representation focused solely on the task.
  • Content vs. Style Specialization: Probing experiments confirmed that the Content branch is significantly better at task prediction, while the Style branch is far superior at identifying the subject. This proves the disentanglement isn't just mathematical—it's functional.
Figure 2: Overview: motivation and empirical effect of DEFT. Left: standard EFM fine-tuning leaves the classifier to suppress subject-related variation inside mixed pretrained tokens, while DEFT models subject-consistent information before classification. Right: an illustrative Balanced Accuracy snapshot across representative datasets and foundation models, showing that DEFT improves over vanilla fine-tuning in most displayed comparisons.

Key Results

DEFT consistently outperformed standard fine-tuning across all 24 tested combinations of models and datasets.

  • Mean Accuracy Gain: Across all benchmarks, DEFT improved Balanced Accuracy (B-ACC) by an average of 4.6%.
  • Significant Peaks: On the BCIC-IV-2a motor imagery dataset using the CBraMod backbone, DEFT achieved a massive +9.49% absolute improvement in B-ACC.
  • Efficiency: Despite the performance boost, the adapter only adds about 2.07M parameters, which is a small overhead (1.5% to 10.8% depending on the backbone size).
  • Faster Convergence: Training loss curves show that DEFT reaches a lower final loss faster than vanilla fine-tuning, suggesting the auxiliary constraints provide better guidance during learning.

Limitations and Future Work

  • Subject IDs Required: Currently, DEFT requires subject identifiers during the training phase to power the contrastive loss. While these aren't needed at inference time, a fully unsupervised version would be even more flexible.
  • Hyperparameter Tuning: The method introduces additional loss weights (like the strength of the temporal-variance prior) that need to be tuned for different tasks.
  • Future Directions: The authors suggest exploring fully unsupervised disentanglement and applying similar "factorize-before-classify" logic to other time-series foundation models outside of the EEG domain.

Summary updated

BibTeX
@inproceedings{deng2026deft,
  author = {Yuqiu Deng and Muyun Jiang and Zongpeng Zhang and Mingqing Xiao and Yansen Wang and Peiliang Gong and Xinliang Zhou and Yi Ding and Ziyu Jia and Cuntai Guan and Chenyu Liu},
  title = {{DEFT: Disentanglement-Enhanced Fine-Tuning for EEG Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=raum5BFSpu},
}
Figure