Abstract
Modern Natural Language Processing (NLP) models rely on attention mechanisms to weigh the importance of specific words within a sentence. However, these mathematical weights often diverge from human cognitive processing. This paper presents a framework that utilizes electroencephalography (EEG) data to supervise and regularize machine attention. By extracting informative features from noisy brain signals, the researchers demonstrate that injecting human cognitive bias into neural networks significantly improves performance on tasks such as relation extraction and named entity recognition.
Introduction
While attention mechanisms have revolutionized NLP, ensuring they align with human linguistic processing remains a challenge. Previous attempts to bridge this gap have utilized eye-tracking (ET) data, which serves as an indirect proxy for cognitive load. In contrast, EEG provides a direct measure of electrical activity from the scalp, offering a "gold standard" for human language processing. However, EEG data is high-dimensional and contains significant noise from non-linguistic sources. This research addresses the challenge of cleaning these signals and effectively integrating them into deep learning architectures.
Methodology
The proposed pipeline transforms raw EEG signals into a supervision signal for machine attention through several key steps:
Dimensionality Reduction and Feature Selection
Starting with 4,200 features per word, the researchers focused on biologically relevant frequency bands: $\theta$ (4-8 Hz), $\alpha$ (8.5-13 Hz), and $\beta$ (13.5-30 Hz). Random Forest classifiers were employed to identify the most informative electrodes for language processing across these bands.
The "Total Reading Time" (TRT) from eye-tracking alignment was used as an anchor to extract EEG features corresponding to individual words, ensuring precise temporal mapping.
Model Architecture
The core model uses a bi-directional Long Short-Term Memory (biLSTM) network trained via multi-task learning. The network simultaneously performs a main sequence classification task (e.g., relation extraction) and an auxiliary task of predicting human EEG attention scores for each word. During training, the model's internal attention weights are regularized to minimize deviation from the max-pooled EEG activity recorded from human subjects.
Key Insights
Frequency and Task Specificity
The study found that $\theta$ and $\alpha$ frequency bands provided the most effective signals for guiding machine attention, likely due to their biological links to cognitive control. Furthermore, the type of reading task significantly influenced the utility of the data. EEG recorded during "Annotation Reading"—where subjects actively searched for relations—was most beneficial for Relation Extraction, whereas "Normal Reading" data was better suited for general tasks like Named Entity Recognition.
Brain Activity Dynamics
The researchers observed that brain activity transitions are smoother during normal reading. In contrast, annotation tasks elicit sharp activations for "decisive" words that trigger specific semantic relations.
Experimental Results
The EEG-augmented models consistently outperformed baselines across multiple benchmarks:
- Relation Detection (Wikipedia): The model achieved a 60.74% F1 score, compared to a 54.67% baseline.
- Relation Detection (SemEval 2010): Utilizing $\theta$ waves from annotation tasks, the model reached 71.34% F1.
- Named Entity Recognition (Ontonotes): The best model achieved 77.63% F1, surpassing the 74.72% baseline.
A sanity check confirmed the efficacy of the feature extraction: an LSTM could distinguish between "Normal Reading" and "Annotation Reading" tasks with nearly 100% accuracy based on the reduced EEG features.
Conclusion and Future Work
This work demonstrates that even small amounts of EEG data (300-400 sentences) can serve as a powerful regularizer for NLP models. While EEG processing remains complex compared to eye-tracking, its directness provides superior cognitive signals. Future research will focus on scaling these methods with larger datasets and exploring the spatial dimensions of brain activity to further refine "brain-pretrained" language models.
Summary updated