Skip to main content
QUICK REVIEW

[Paper Review] Large Transformers are Better EEG Learners

Bingxin Wang, Xiaowen Fu|arXiv (Cornell University)|Aug 20, 2023
EEG and Brain-Computer InterfacesNeuroscience4 citations
TL;DR

This paper proposes AdaCE, a plug-and-play adapter framework that converts multi-channel EEG signals into image or text formats to enable direct fine-tuning of large pre-trained vision and language transformers for EEG-based prediction tasks. By leveraging pre-trained models like Swin-Transformer and GPT-2 without additional trainable parameters, AdaCE achieves state-of-the-art performance, including a 99.6% accuracy on the UCI HAR dataset—9.2% higher than prior methods—demonstrating that larger pre-trained models yield improved performance when fine-tuned with AdaCE.

ABSTRACT

Pre-trained large transformer models have achieved remarkable performance in the fields of natural language processing and computer vision. However, the limited availability of public electroencephalogram (EEG) data presents a unique challenge for extending the success of these models to EEG-based tasks. To address this gap, we propose AdaCT, plug-and-play Adapters designed for Converting Time series data into spatio-temporal 2D pseudo-images or text forms. Essentially, AdaCT-I transforms multi-channel or lengthy single-channel time series data into spatio-temporal 2D pseudo-images for fine-tuning pre-trained vision transformers, while AdaCT-T converts short single-channel data into text for fine-tuning pre-trained language transformers. The proposed approach allows for seamless integration of pre-trained vision models and language models in time series decoding tasks, particularly in EEG data analysis. Experimental results on diverse benchmark datasets, including Epileptic Seizure Recognition, Sleep-EDF, and UCI HAR, demonstrate the superiority of AdaCT over baseline methods. Overall, we provide a promising transfer learning framework for leveraging the capabilities of pre-trained vision and language models in EEG-based tasks, thereby advancing the field of time series decoding and enhancing interpretability in EEG data analysis. Our code will be available at https://github.com/wangbxj1234/AdaCE.

Motivation & Objective

  • To address the challenge of limited labeled EEG data by leveraging large pre-trained transformers from vision and NLP for EEG decoding.
  • To preserve full spatial and temporal information in EEG signals during adaptation to pre-trained models without introducing additional trainable parameters.
  • To demonstrate that fine-tuning larger pre-trained models with AdaCE leads to improved performance on EEG prediction tasks.
  • To provide a plug-and-play solution applicable to other multi-channel time-series data beyond EEG.

Proposed method

  • Design of AdaCE-to-Image adapter to convert 2D multi-channel EEG data into image-like tensors for input into pre-trained vision transformers.
  • Design of AdaCE-to-Text adapter to convert moderate single-channel EEG into tokenized text sequences, solving the input length overflow issue for LLMs.
  • Use of pre-trained vision and language models (e.g., Swin-Transformer, GPT-2) without architectural modification, fine-tuned only via the adapter modules.
  • Application of the adapters in a plug-and-play manner, enabling direct input of raw EEG data into pre-trained models without additional feature extraction networks.
  • Adoption of consistent training settings across models to ensure fair comparison of performance scaling with model size.
  • Use of image resolution 224×224 with RGB pattern for EEG-to-image conversion to match vision transformer input requirements.
Figure 1: Framework: Adapters to convert EEG into images and text for fine-tuning pre-trained large transformers.
Figure 1: Framework: Adapters to convert EEG into images and text for fine-tuning pre-trained large transformers.

Experimental results

Research questions

  • RQ1Can pre-trained vision and language transformers be effectively fine-tuned for EEG decoding without architectural modification or additional trainable parameters?
  • RQ2Does converting EEG data into image or text form via adapters preserve sufficient information for state-of-the-art performance on EEG prediction tasks?
  • RQ3Does scaling up the size of pre-trained models while using AdaCE lead to improved performance on EEG tasks?
  • RQ4Can the proposed AdaCE framework be generalized to other multi-channel time-series data such as ECG and EMG?

Key findings

  • AdaCE-to-Image achieves 99.6% accuracy on the UCI HAR dataset, an absolute improvement of 9.2% over prior methods.
  • Fine-tuning larger pre-trained vision transformers (e.g., Swin-Transformer with 87M parameters) with AdaCE yields higher accuracy (99.6%) than smaller variants (98.2% for 28M parameters).
  • AdaCE-to-Text outperforms previous EEG-to-text methods on the Sleep-EDF dataset, though it underperforms AdaCE-to-Image on multi-channel EEG tasks.
  • The performance gap between AdaCE-to-Image and AdaCE-to-Text is most pronounced on the UCI HAR dataset, highlighting the superiority of image-based representation for multi-channel EEG.
  • Pre-trained models of similar parameter count but different architectures (e.g., DeiT, ViT, Swin) achieve comparable performance when fine-tuned with AdaCE, indicating robustness to architectural differences.
  • The results empirically confirm that larger pre-trained models fine-tuned with AdaCE yield better performance, suggesting strong potential for scaling to even larger models.
Figure 2: AdaCE-to-Image: Adapter for Converting EEG into images to maintain the complete feature information.
Figure 2: AdaCE-to-Image: Adapter for Converting EEG into images to maintain the complete feature information.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.