Disentangling Hierarchical and Sequential Computations during Sentence Processing

Christos-Nikolaos Zacharopoulos, Stanislas Dehaene, Yair LakretzbioRxiv 2022

Abstract

Sentences in natural language possess a hierarchical structure that can be described as nested trees. While the human brain must link successive words into these complex structures, it is debated whether a simpler, sequential word-by-word mechanism co-exists. Behavioral errors often suggest sequential interference, but it remains unclear if these stem from memory-based interference or competing prediction signals. This study uses magnetoencephalography (MEG) to show that human sentence processing is fundamentally hierarchical and robust to sequential effects. In contrast, artificial neural networks (LSTMs) rely on a hybrid of hierarchical and sequential strategies. Our results suggest that behavioral interference in humans is likely due to memory retrieval issues rather than a shallow prediction system.

Introduction

For decades, linguists and cognitive scientists have debated how the brain processes sentences. One perspective argues for a hierarchical view, where words are mentally transformed into nested tree structures. Another suggests a sequential view, relying on statistical regularities and transition probabilities between adjacent words.

While behavioral studies show that humans often make mistakes when a local word interferes with a long-distance dependency—such as saying "The boy near the girls like climbing" instead of "likes"—it hasn't been clear if these errors stem from a competing "shallow" sequential prediction system or simply from interference in working memory. This study aimed to disentangle these mechanisms by comparing human brain activity with state-of-the-art computational models.

Methods and Experimental Design

The researchers adapted the "local-global" paradigm to linguistics, designing a 2x2 experimental matrix that independently manipulated:

  1. Structural (Global) Expectations: Does the main subject ($N_1$) agree with the verb ($V_1$)?
  2. Transition (Local) Expectations: Does the noun immediately preceding the verb ($N_2$) agree with the verb?

They tested two sentence types to decouple linear proximity from syntactic role: Prepositional Phrases (PP) and Object Relative Clauses (ObjRC).

Experimental design showing the tree structures, the contrast between structural and transition effects, and the trial timeline.

Neural activity was recorded from 22 participants using MEG and EEG during a violation-detection task. Simultaneously, hidden unit activations were extracted from a Long Short-Term Memory (LSTM) neural language model processing the same stimuli. Time-resolved multivariate decoding was then used to identify which effects (structural vs. sequential) were present in the data.

Key Insights

Humans are Structure-First

In human brain signals, only the structural effect (the relationship between the actual subject and the verb) was significantly decodable (AUC ~0.61 for ObjRC). The "transition effect" from the local, intervening noun was virtually invisible in the neural data, even though it caused behavioral errors. This suggests that once words enter the language system, computations are dominated by structure-based processing.

LSTMs are Hybrid Processors

Unlike humans, the LSTM showed strong neural signatures for both hierarchical structure and local sequential transitions, with all effects decodable at high accuracy (AUC near 1.0). This suggests that current AI models process language in a fundamentally different way than the human brain, relying more heavily on surface-level statistics.

Memory vs. Prediction

The "markedness effect" (where plural distractors cause more errors than singular ones) was found in human behavior. However, the lack of a neural "transition" signal suggests these errors aren't caused by a shallow prediction system. Instead, they likely result from interference during memory retrieval: when the brain tries to retrieve the subject to check agreement, the local noun interferes with the process.

Conclusion

This study demonstrates that the human brain is remarkably robust to local statistical "noise," favoring tree-like structural computations. The gap between human "structure-only" processing and the LSTM's "hybrid" approach suggests that current AI models do not yet mimic human linguistic intuition. Future research could explore whether more complex constructions or different languages might force the human brain to rely more heavily on sequential cues.

Summary updated

BibTeX
@misc{zacharopoulos2022disentangling,
  author = {Christos-Nikolaos Zacharopoulos and Stanislas Dehaene and Yair Lakretz},
  title = {{Disentangling Hierarchical and Sequential Computations during Sentence Processing}},
  year = {2022},
  doi = {10.1101/2022.07.08.499161},
  howpublished = {bioRxiv},
}
Figure