Structural Similarities Between Language Models and Neural Response Measurements

Jiaang Li, Antonia Karamolegkou, Yova Kementchedjhieva, Mostafa Abdou, Sune Lehmann, Anders Søgaard

TL;DR

As Large Language Models (LLMs) scale up in parameters, their internal word representations become increasingly similar to the neural activity patterns in the human brain. By aligning high-dimensional vector spaces, researchers found that larger models allow for significantly more accurate "brain decoding," suggesting that AI is converging on human-like representational geometries.

What Problem Does This Paper Address?

Both the human brain and LLMs are often treated as "black boxes." We know they process language effectively, but the internal "geometry" of how they represent meaning is difficult to compare directly. Brain decoding—the attempt to reconstruct what a person is reading or hearing from their neural activity—has traditionally been a massive challenge due to the noisy nature of fMRI data and the lack of a direct mapping between biological and artificial signals.

The authors ask a fundamental question: Is there a structural isomorphism (a similarity in shape) between the way LLMs represent words and the way our brains do? Furthermore, does this similarity improve as models get bigger and more complex?

Methods

The researchers employed a multi-step pipeline to bridge the gap between voxels and vectors:

  1. Neural Signal Processing: They used functional Magnetic Resonance Imaging (fMRI) data. To overcome fMRI's poor temporal resolution (which struggles to capture individual words), they applied Gaussian smoothing. This technique extracts word-level signals by averaging fMRI vectors within a specific timeframe around a word's occurrence.
  2. LLM Representation: They extracted embeddings from three families of models: BERT (non-auto-regressive), GPT-2, and OPT (auto-regressive). To ensure a fair comparison, they "decontextualized" these embeddings by averaging a word's representation across many different sentences.
  3. Alignment Techniques: To compare the two high-dimensional spaces, they used three distinct mathematical approaches:
  4. Ridge Regression: Predicting LLM dimensions from fMRI voxels.
  5. Representational Similarity Analysis (RSA): Comparing the "dissimilarity matrices" of both spaces.
  6. Procrustes Analysis: A statistical shape analysis method that translates, rotates, and scales one space to best fit the other.
  7. Evaluation: They used Precision-at-k (P@k) with Cross-domain similarity local scaling (CSLS). Essentially, given a brain signal, how often is the correct word among the top k nearest neighbors in the LLM space?
Figure 1: Experimental flow and main results. We run experiments with three families of LLMs (comparing LLMs of different sizes within families), two fMRI datasets, and three projection algorithms, and results are the same across all combinations: LLMs converge toward human-like representations, enabling (P@10) retrieval rates of up to 25%, i.e., a quarter of all concepts can be decoded from the fMRI signals. The datasets, our Gaussian smoothing technique, and the projection methods are described in §3. Right side: Convergence results for three families of LLMs across two datasets, using Procrustes analysis. Convergence is consistent, and some retrieval rates are remarkably high, decoding almost half of the words correctly to a neighborhood of 30 word forms, which surpasses the random retrieval baselines represented by the dotted red lines.

Datasets

The study utilized two publicly available fMRI datasets where participants were exposed to natural language:

  • Harry Potter Dataset: 8 subjects reading "Harry Potter and the Sorcerer’s Stone."
  • Natural Stories Audio Dataset: 19 subjects listening to recorded stories.

These were compared against 14 different Transformer-based models ranging from 4.4M to 30B parameters.

Key Insights and Ideas

  • The Scaling Law of Brain-Likeness: The most striking finding is that as LLMs increase in parameter count, their representational geometry consistently converges toward the geometry of human neural responses. This suggests that the objective of predicting the next token (or masked token) naturally pushes models toward human-like conceptual structures.
  • Depth Matters: Alignment isn't uniform across a model. The researchers found that deeper layers align significantly better with the brain than earlier layers. Since inner layers typically handle syntax and outer layers handle semantics/pragmatics, this suggests that the brain-LLM similarity is primarily driven by high-level meaning rather than just sentence structure.
  • Beyond Triviality: The authors address a philosophical hurdle known as "Newman’s objection," which argues that finding some mathematical mapping between two systems is trivial. They counter this by showing that the specific "nearest neighbor" relationships are preserved across both systems, which is a non-trivial, functional similarity.
Convergence results showing that as models get larger, P@k increases.

Key Results

  • High Decoding Accuracy: For the best-performing models (around 1.5B parameters), the researchers achieved P@10 retrieval rates of ~25%. This means for a quarter of all concepts, the brain signal could be decoded to a small neighborhood of 10 possible words.
  • Surpassing Baselines: These results vastly outperformed random baselines (P@10 < 1%) and static embedding baselines like FastText (P@10 < 7%).
  • Consistent Convergence: The trend held true across all three alignment methods (Ridge, RSA, Procrustes) and both datasets, reinforcing the robustness of the discovery.
Alignment precision improves with model depth.

Limitations and Future Work

While the results are promising, the authors note several constraints:

  • Temporal Resolution: fMRI is slow. Even with Gaussian smoothing, it's a noisy proxy for the lightning-fast electrical communication of neurons.
  • Linguistic Scope: The study focused exclusively on English. It remains to be seen if these geometric similarities hold across typologically diverse languages.
  • Individual Variability: The study often relied on single-participant alignments. Future work could explore how "universal" these brain representations truly are across different people.
  • Black Box to Black Box: While we know the spaces are similar, we still don't fully understand why these specific geometries emerge. The authors suggest moving from "behaviorist" evaluations to deeper explorations of representational geometry.

Summary updated

BibTeX
@inproceedings{li2023structural,
  author = {Jiaang Li and Antonia Karamolegkou and Yova Kementchedjhieva and Mostafa Abdou and Sune Lehmann and Anders Søgaard},
  title = {{Structural Similarities Between Language Models and Neural Response Measurements}},
  booktitle = {NeurReps @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=ZobkKCTaiY},
}
Figure