Abstract
Abstract grammatical knowledge—of parts of speech and grammatical patterns—is key to the capacity for linguistic generalization in humans. But how abstract is grammatical knowledge in large language models? In the human literature, compelling evidence for grammatical abstraction comes from structural priming. A sentence that shares the same grammatical structure as a preceding sentence is processed and produced more readily. Because confounds exist when using stimuli in a single language, evidence of abstraction is even more compelling from crosslingual structural priming, where use of a syntactic structure in one language primes an analogous structure in another language. We measure crosslingual structural priming in large language models, comparing model behavior to human experimental results from eight crosslingual experiments covering six languages, and four monolingual structural priming experiments in three non-English languages. We find evidence for abstract monolingual and crosslingual grammatical representations in the models that function similarly to those found in humans. These results demonstrate that grammatical representations in multilingual language models are not only similar across languages, but they can causally influence text produced in different languages.
Introduction
A central debate in artificial intelligence concerns whether multilingual large language models (LLMs) truly "understand" grammar as an abstract concept or if they are merely sophisticated "stochastic parrots" matching surface-level statistical patterns. While previous research has used "probing" techniques to identify grammatical information within a model's internal vector space, these methods do not prove that the model functionally utilizes that information to generate text.
This study addresses whether a multilingual model develops unified, abstract understandings of syntactic concepts—such as the passive voice—that transcend specific languages. By employing structural priming, a classic experimental paradigm from psycholinguistics, the researchers provide causal evidence that LLMs develop abstract grammatical representations shared across different languages, mirroring the behavior of human bilinguals.
Methodology
The authors utilized Structural Priming, a robust psychological phenomenon where exposure to a specific grammatical structure increases the likelihood that a speaker will use that same structure in subsequent production.
Experimental Setup
- The Prime: The model is presented with a sentence containing a specific structure (e.g., a "Double Object" dative: The cowboy shows the pirate an apple).
- The Target: The researchers measure the model's probability of producing a new sentence using either the same structure or an alternative (e.g., a "Prepositional Object" dative: The chef gives a hat to the swimmer).
- Crosslingual and Monolingual Contexts: In crosslingual trials, the prime is in Language A (e.g., Dutch) and the target is in Language B (e.g., English). Monolingual trials were also conducted in non-English languages to ensure generalizability.
The study evaluated the XGLM (up to 7.5B parameters) and PolyLM (up to 13B parameters) model families using stimuli from 12 existing human psycholinguistic studies covering English, Dutch, Spanish, German, Greek, Polish, and Mandarin.
Results
Crosslingual Priming
The models successfully replicated human priming patterns in the majority of the eight crosslingual experiments. As shown in Figure 1, seeing a specific sentence structure in one language significantly increased the probability of the model using that same structure in another language. This effect was particularly robust in larger models (e.g., XGLM 7.5B), which showed more human-like sensitivity to syntactic structures.
Monolingual Priming
Robust priming effects were also found in all tested non-English monolingual settings, including Dutch, Greek, and Mandarin. These results, visualized in Figure 2, confirm that the models' grammatical representations are not solely dependent on crosslingual transfer but are a fundamental part of their processing in individual languages.
Discussion and Conclusion
The findings provide causal evidence of grammatical abstraction: because the priming effect changes the model's output probability, it demonstrates that these abstract structures are functionally involved in text generation. The fact that a Dutch passive primes an English passive suggests a shared internal representation for "Passive Voice" that transcends language boundaries.
However, the study also noted limitations. Priming effects were often stronger when the target language was English, likely due to the models' training data distribution. Furthermore, models using sub-word tokenizers showed weaker priming in morphologically rich languages like Polish and Greek. Future work should expand these tests to typologically distant languages, such as Turkish or Finnish, to further probe the limits of this multilingual "grammar engine."
Summary updated