Skip to main content
QUICK REVIEW

[Paper Review] Blackbox meets blackbox: Representational Similarity and Stability Analysis of Neural Language Models and Brains

Samira Abnar, Lisa Beinborn|arXiv (Cornell University)|Jun 4, 2019
Topic ModelingComputer Science34 references14 citations
TL;DR

This paper introduces Representational Stability Analysis (ReStA), a novel method that extends Representational Similarity Analysis (RSA) to assess how neural language model representations change under varying context lengths. It reveals that LSTM-based models (e.g., GoogleLM, ELMO) show higher representational stability and stronger alignment with human brain fMRI data than Transformer-based models, suggesting their internal dynamics better reflect deep linguistic processing observed in the brain.

ABSTRACT

In this paper, we define and apply representational stability analysis (ReStA), an intuitive way of analyzing neural language models. ReStA is a variant of the popular representational similarity analysis (RSA) in cognitive neuroscience. While RSA can be used to compare representations in models, model components, and human brains, ReStA compares instances of the same model, while systematically varying single model parameter. Using ReStA, we study four recent and successful neural language models, and evaluate how sensitive their internal representations are to the amount of prior context. Using RSA, we perform a systematic study of how similar the representational spaces in the first and second (or higher) layers of these models are to each other and to patterns of activation in the human brain. Our results reveal surprisingly strong differences between language models, and give insights into where the deep linguistic processing, that integrates information over multiple sentences, is happening in these models. The combination of ReStA and RSA on models and brains allows us to start addressing the important question of what kind of linguistic processes we can hope to observe in fMRI brain imaging data. In particular, our results suggest that the data on story reading from Wehbe et al. (2014) contains a signal of shallow linguistic processing, but show no evidence on the more interesting deep linguistic processing.

Motivation & Objective

  • To investigate how internal representations of neural language models change with varying context length.
  • To compare the representational similarity of different language models and their alignment with human brain activation patterns.
  • To assess whether fMRI data from story reading tasks contain signals of deep linguistic processing or only shallow processing.
  • To evaluate the extent to which model architectures and training objectives shape representational stability and brain-like alignment.

Proposed method

  • Proposes ReStA, a variant of RSA that compares representations of the same model under systematically varied context lengths.
  • Uses RSA to compute similarity matrices between stimulus pairs in both model activations and brain fMRI data.
  • Applies ReStA to four state-of-the-art language models: GoogleLM, ELMO, BERT, and Universal Sentence Encoder.
  • Measures representational similarity between model layers and brain regions using Pearson correlation of similarity matrices.
  • Employs fMRI data from human subjects reading stories (Wehbe et al., 2014) as a proxy for brain representations.
  • Analyzes model performance and representational stability across different layers and context conditions.

Experimental results

Research questions

  • RQ1How does the internal representation of a neural language model change when the amount of prior context is varied?
  • RQ2Which language model architectures and layers show the highest representational stability under context variation?
  • RQ3How similar are the representational spaces of different language models to each other and to human brain activation patterns during story processing?
  • RQ4To what extent does fMRI data from story reading reflect deep linguistic processing, as opposed to shallow processing?

Key findings

  • LSTM-based models (GoogleLM, ELMO) exhibit significantly higher representational stability under context variation than Transformer-based models (BERT, Universal Sentence Encoder).
  • The first layer (L0) of LSTM models shows minimal sensitivity to context length, while the second layer (L1) shows strong context-dependent representation changes, indicating L1 integrates information over time.
  • LSTM-based models achieve higher representational similarity with human brain fMRI data than word-level models (e.g., GloVe) or Transformer-based models.
  • Despite significant changes in model representations and performance with context length, these changes are not reflected in alignment with brain representations, suggesting limited representational transfer.
  • The brain data from Wehbe et al. (2014) shows a signal of shallow linguistic processing but no detectable evidence of deep linguistic integration across sentences.
  • The Left Anterior Temporal Lobe consistently shows the highest representational similarity with model representations across all models, indicating a potential neural correlate of semantic integration.

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.