DLink: Distilling Layer-wise and Dominant Knowledge from EEG Foundation Models

Jingyuan Wang, Zhihao Jia, Chenyu Liu, Xinliang Zhou, Haoran Luo, Ziyu Jia, Yong Li, Fang Li, Junfeng Yao, Yi DingarXiv 2026

TL;DR

DLink is a novel knowledge distillation framework designed to compress massive EEG Foundation Models (EFMs) into lightweight student models for efficient deployment. By dynamically routing task-relevant knowledge from intermediate teacher layers and enforcing spectral consistency in the frequency domain, DLink significantly improves student accuracy while achieving a 5.3× CPU inference speedup.

What Problem Does This Paper Address?

EEG foundation models (EFMs) have revolutionized brain-computer interfaces (BCIs) and neural decoding by pretraining on massive, heterogeneous datasets. However, their high-capacity backbones incur substantial computational overhead, making them impractical for real-time, resource-constrained applications like wearable BCI devices or clinical point-of-care systems.

Traditional knowledge distillation (KD) compresses large models by forcing a compact student network to mimic the teacher's final output layer or final hidden representations. The authors identify two major flaws when applying this strategy to EFMs:

  1. Distributed Knowledge: The most task-discriminative features in an EFM often reside in intermediate layers rather than the final layer.
  2. Spectral Distortion: Aggressively downsampling high-dimensional teacher features into a compact student distorts the temporal-latent structure of the representations, leading to a severe loss of discriminative information.
Figure 1: Motivation and overview. DLink is motivated by two observations. Compared with traditional final-layer distillation, DLink automatically aggregates layer-wise teacher knowledge and transfers it to a compact student through representation-level spectral consistency.

Methods

The authors introduce DLink (Distilling Layer-wise and Dominant Knowledge), a spectrally guided distillation framework that tackles these challenges through three core components:

  • Dominant Intermediate Layer Aggregation: Instead of relying on a fixed teacher layer, DLink uses a lightweight router to dynamically assign soft weights to different EFM layers based on input-conditioned cues. This routing process is stabilized by a representation-level spectral-concentration prior.
  • Representation-Spectrum Consistency: To combat compression-induced transfer loss, DLink transforms the features into the frequency domain using a 1D Fast Fourier Transform (FFT) along the temporal-latent axis. It then minimizes the discrepancy between both the magnitude and phase spectra of the teacher and student features.
  • Project-then-Compress Student: The student architecture separates feature alignment from task prediction. A CNN-Transformer projection block first maps the input into a high-dimensional space matching the teacher's dimensions to absorb the routed knowledge. A subsequent CNN block compresses it down via spatio-temporal downsampling for a compact MLP classifier.

Crucially, the teacher EFM and the layer router are used only during training and are completely discarded afterward, leaving a lightweight, standalone student for inference.

Figure 2: Overview of the DLink pipeline. DLink transfers knowledge from a frozen EEG foundation-model teacher to a compact student. During training, an input-conditioned layer router softly aggregates dominant teacher-layer representations, and spectral distillation aligns the resulting routed teacher representation with the student feature in learned representation spectra. After distillation, both the teacher and router are discarded, leaving only the compact student for inference.

Datasets

DLink was evaluated across four diverse public EEG benchmarks following standard downstream protocols:

  • FACED: A 9-class emotion recognition dataset containing video-evoked EEG signals from 123 subjects.
  • Mumtaz2016: A binary classification dataset for depression diagnosis using resting-state EEG.
  • PhysioNet-MI: A 4-class motor imagery dataset (imaging left/right hand or foot movements).
  • SHU-MI: A binary motor imagery dataset across multiple sessions per subject.

Key Insights and Ideas

  • The Last Layer Isn't Always Best: Layer-wise linear probing verified that intermediate layers frequently provide stronger discriminative features for downstream EEG decoding than the final layer.
  • Continuous Phase Encoding: Directly matching raw phase values in the frequency domain is notoriously unstable due to $2\pi$ periodicity. DLink bypasses this by encoding phase into continuous sine and cosine components, enabling stable mathematical alignment.
  • Frequency Domain as a Regularizer: Aligning features in the frequency domain acts as an anti-aliasing mechanism. It ensures that the student retains smooth, structured temporal-latent representations even after aggressive spatial and temporal downsampling.

Key Results

  • Superior Accuracy: DLink consistently outperformed standard feature-level (FitNets) and logit-level (Logit-std) distillation baselines across all four benchmarks. For example, on the 9-class FACED dataset, DLink-M achieved a Balanced Accuracy (ACC-B) of 52.20%, outperforming the standard supervised student baseline (50.38%) and narrowing the gap to fully fine-tuned EFMs.
  • Substantial Efficiency Boost: On the Mumtaz2016 dataset, the compact student achieved a 5.30× speedup in CPU-only inference latency (3.653 ms per sample vs. 19.345 ms for the teacher EFM).
  • Fewer Parameters & FLOPs: DLink successfully transferred high-capacity EFM knowledge into models requiring drastically fewer parameters and FLOPs, significantly optimizing the accuracy-efficiency trade-off for deployment.

Limitations and Future Work

  • Lack of Real-Hardware Validation: The evaluation was performed via controlled CPU/GPU profiling simulations rather than deployment on physical, commercial BCI hardware.
  • Inference Pipeline Boundaries: The reported latency profiles do not account for real-world end-to-end overheads, such as physical EEG signal acquisition, online preprocessing, wireless communication, or operating system scheduling.
  • Future Directions: The authors suggest extending future work to validate DLink in online EEG streaming experiments, testing on larger subject populations, and conducting explicit energy and memory profiling for edge-device hardware.

Summary updated

BibTeX
@misc{wang2026dlink,
  author = {Jingyuan Wang and Zhihao Jia and Chenyu Liu and Xinliang Zhou and Haoran Luo and Ziyu Jia and Yong Li and Fang Li and Junfeng Yao and Yi Ding},
  title = {{DLink: Distilling Layer-wise and Dominant Knowledge from EEG Foundation Models}},
  year = {2026},
  eprint = {2604.15016},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.15016},
}
Figure