TL;DR
This paper investigates whether explicitly injecting linguistic structure (like syntax and semantics) into language models can improve their alignment with human brain activity during language comprehension. The authors found that this "guided attention" approach significantly improved brain alignment on one dataset, suggesting that symbolic linguistic theories might still be relevant for understanding how brains process language, especially when models are explicitly guided.
What Problem Does This Paper Address?
Neuroscientists are increasingly using deep neural networks (DNNs) for natural language processing (NLP) as models for how the human brain processes language. These models, like BERT, are often trained without explicit linguistic supervision and have shown an ability to learn linguistic structures implicitly. This has led some to question the necessity of traditional symbolic linguistic theories. However, it's unclear if explicitly guiding these models with linguistic structures can lead to even better alignment with brain recordings. This paper aims to bridge this gap by exploring whether injecting syntactic and semantic information into language models enhances their ability to predict brain activity patterns.
Methods
The core of the approach involves modifying the BERT model's attention mechanism. The authors use a "structurally guided attention" method to inject linguistic bias. This involves training BERT with an additional objective that encourages its attention heads to align with structural annotations from formalisms like Universal Dependencies (UD), DELPH-IN MRS (DM), and Universal Cognitive Conceptual Annotation (UCCA).
They then employ a "brain decoding" framework. Here, a linear decoder is trained to predict the language model's representations (either sentence or word level) from fMRI brain activity recordings. The performance is measured by the correlation between the predicted and actual representations. This allows them to compare the alignment of structurally-biased models against baseline models (pretrained BERT and BERT fine-tuned on domain-specific text without structural guidance).
Datasets
The study uses two fMRI datasets:
- Pereira2018: This dataset contains fMRI recordings of 8 subjects reading Wikipedia passages. Each brain image corresponds to an entire sentence, making it suitable for sentence-level analysis.
- Wehbe2014: This dataset consists of fMRI recordings of 8 subjects reading a chapter from Harry Potter. Each brain image corresponds to 4 words, allowing for a more fine-grained word-level analysis.
The linguistic structure annotations come from publicly available datasets associated with the UD, DM, and UCCA formalisms.
Key Insights and Ideas
- Explicit structure can help: Injecting linguistic structure into language models can indeed improve their alignment with brain activity, especially when using fine-grained (word-level) brain data.
- Domain matters: Simply fine-tuning a language model on text from a specific domain can sometimes decrease its alignment with brain data, highlighting the importance of considering domain match in such experiments.
- Not all structures are equal: Different linguistic formalisms (UD, DM, UCCA) have varying impacts on brain alignment, suggesting that the way linguistic information is encoded matters.
- Word-level vs. Sentence-level: The benefits of structural injection are more pronounced at the word level than at the sentence level, possibly due to information loss during sentence-level aggregation.
- Syntactic tasks are key: Models that show better brain alignment also tend to perform better on targeted syntactic evaluation tasks, suggesting a shared underlying linguistic processing mechanism.
Key Results
- For the Wehbe2014 dataset (word-level analysis), guided attention models consistently outperformed both the pretrained and domain-finetuned baselines, with improvements being statistically significant.
- For the Pereira2018 dataset (sentence-level analysis), the results were more mixed. While guided attention models generally outperformed their domain-finetuned counterparts, their advantage over the pretrained baseline was less pronounced and sometimes non-existent.
- The DM and UD formalisms generally led to better brain alignment than UCCA across both datasets.
- Guided attention models showed significant improvements on various syntactic probing tasks, particularly for subject-verb agreement, aligning with their brain decoding performance.
- Semantic tagging tasks also showed improvements for guided attention models, indicating better encoding of semantic distinctions.
Limitations and Future Work
- Domain confound: The study highlights that differences in the training data domains for the formalisms might be a significant confound, making it difficult to definitively conclude which formalism is inherently "better" for brain alignment. Future work should ideally use a common corpus annotated for all formalisms.
- Sentence-level aggregation: The loss of information when aggregating word representations to sentence-level representations might explain the less impressive results on the sentence-level Pereira2018 dataset.
- Task dependency: The fMRI data was collected while participants passively read text. Future work could investigate if similar results hold for datasets recorded during active, task-based language comprehension.
- Continuous listening data: Analyzing data from continuous, naturalistic listening fMRI experiments could provide further insights.
- Controlling for corpus size and dependency length: These factors, which vary across formalisms, could also influence results and warrant further investigation.
Summary updated