Blackbird Language Matrices: A Framework to Investigate the Linguistic Competence of Language Models
Organizations: Idiap Research Institute · University of Geneva
Abstract
This article describes a novel language task, the Blackbird Language Matrices (BLM) task, inspired by intelligence tests, and illustrates the BLM datasets, their construction and benchmarking, and targeted experiments on chunking and systematicity. BLMs are multiple-choice problems, structured at multiple levels: within each sentence, across the input sequence, within each candidate answer. Because of their rich structure, these curated, but naturalistic datasets are key to answer some core questions about current large language models abilities: do LLMs detect linguistic objects and their properties? Do they detect and use systematic patterns across sentences? Are they more prone to linguistic or reasoning errors, and how do these interact? We show that BLMs, while challenging, can be solved at good levels of performance, in more than one language, with simple baseline models or, at better performance levels, with more tailored models. We show that their representations contain the grammatical objects and attributes relevant to solve a linguistic task. We also show that these solutions are reached by detecting systematic patterns across sentences. The paper supports the point of view that curated, structured datasets support multi-faceted investigations of properties of language and large language models. Because they present a curated, articulated structure, because they comprise both learning contexts and expected answers, and because they are partly built by hand, BLMs fall in the category of datasets that can support explainability investigations, and be useful to ask why large language models behave the way they do.
Figures & tables
| Context | ||||
|---|---|---|---|---|
| 1 | NP-sg | PP1-sg | VP-sg | |
| 2 | NP-pl | PP1-sg | VP-pl | |
| 3 | NP-sg | PP1-pl | VP-sg | |
| 4 | NP-pl | PP1-pl | VP-pl | |
| 5 | NP-sg | PP1-sg | PP2-sg | VP-sg |
| 6 | NP-pl | PP1-sg | PP2-sg | VP-pl |
| Construction | Lexical Type | BLM Type | Languages | |||||||||||
| M | R | C | I | II | III | 1 | 2+ | E | F | I | R | T | H | |
| Caus-CoS | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
| Caus-Roll | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||||
| Object Drop | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||
| Spray/load | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||||
| Agr | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| Spray/load | |
|---|---|
| LP Components | Objects= phrases (NP, PPs); |
| Features = semantic roles (Agent, Theme, Loc); position (subject, compl). | |
| Rules | (E) If voice is active, agent is an NP in subject position ( AgentAct ); |
| (E) When PPs, arguments are introduced by given prepositions ( LexPrep ); | |
| (I) The PP following the NP is not embedded in it ( NoEmb ); | |
| (I) The order of the constituents and their role is fixed ( SSM ); | |
| Context | ||||
|---|---|---|---|---|
| 1 | NP- Agent | Verb | NP- Loc | PP- Theme |
| 2 | NP- Theme | VerbPass | PP- Agent | |
| 3 | NP- Theme | VerbPass | PP- Loc | PP- Agent |
| 4 | NP- Theme | VerbPass | PP- Loc | |
| 5 | NP- Loc | VerbPass | PP- Agent | |
| 6 | NP- Loc | VerbPass | PP- Theme | PP- Agent |
| Context | ||||
|---|---|---|---|---|
| 1 | NP- Agent | Verb | NP- Theme | PP- Loc |
| 2 | NP- Theme | VerbPass | PP- Agent | |
| 3 | NP- Theme | VerbPass | PP- Loc | PP- Agent |
| 4 | NP- Theme | VerbPass | PP- Loc | |
| 5 | NP- Loc | VerbPass | PP- Agent | |
| 6 | NP- Loc | VerbPass | PP- Theme | PP- Agent |
| Context | |
|---|---|
| 1 | I pumped the pipes with regular air |
| 2 | The grain was sown by the monks |
| 3 | Regular air was pumped into the stove by me |
| 4 | The contents were stuck in a box |
| 5 | The suitcase was loaded by the buyer |
| 6 | The dragon world was scattered with monsters by the wizard |
| CoS context | ||||
|---|---|---|---|---|
| 1 | NP-Agent | ActiveV | NP-Theme | P -NP |
| 2 | NP-Agent | ActiveV | NP-Theme | by -NP |
| 3 | NP-Theme | PassiveV | by - NP-Agent | P -NP |
| 4 | NP-Theme | PassiveV | by - NP-Agent | by -NP |
| 5 | NP-Theme | PassiveV | P -NP | |
| 6 | NP-Theme | PassiveV | by -NP | |
| EnCoS - Context | |
|---|---|
| 1 | The witch breaks an oath within seconds |
| 2 | The witch breaks an oath by chance |
| 3 | An oath is broken by the witch within seconds |
| 4 | An oath is broken by the witch by chance |
| 5 | An oath is broken within seconds |
| 6 | An oath is broken by chance |
| Context | |||
|---|---|---|---|
| 1 | NP-Agent | rollVerb | NP-Theme |
| 2 | NP-Agent | did | NP-Theme |
| 3 | NP-Theme | was | NP-Loc |
| 4 | NP-Theme | rollVerb | NP-Loc |
| 5 | NP-Agent | rollVerb | NP-Theme |
| 6 | NP-Agent | did | NP-Theme |
| OD context | ||||
|---|---|---|---|---|
| 1 | NP-Agent | ActiveV | NP-Theme | P -NP |
| 2 | NP-Agent | ActiveV | NP-Theme | by -NP |
| 3 | NP-Theme | PassiveV | by - NP-Agent | P -NP |
| 4 | NP-Theme | PassiveV | by - NP-Agent | by -NP |
| 5 | NP-Theme | PassiveV | P -NP | |
| 6 | NP-Theme | PassiveV | by -NP | |
| OD Context 1 La zia mangia una bistecca nella sala grande 2 La presidente può mangiare una bistecca da programma 3 La specialità della casa deve essere mangiata dalla turista nella sala grande 4 Una bistecca fu mangiata dalla presidente da sola 5 La specialità della casa deve essere mangiata in un secondo 6 Una bistecca deve poter essere mangiata da sola 7 La turista deve mangiare con fame 8 ??? | OD Answers 1 La specialità della casa può mangiare da sola 2 La squadra di calcio deve mangiare da mezz’ora 3 Una bistecca è mangiata dalla turista 4 La squadra di calcio può essere mangiata da una carbonara 5 La pasta col pomodoro può mangiare la squadra di calcio 6 La squadra di calcio mangia una bistecca 7 La specialità della casa deve poter mangiare dalla turista 8 La presidente mangia da una bistecca |
| Model | Structure | Grammatical plausibility | Semantic plausibility | ||
|---|---|---|---|---|---|
| human_a | human_b | human_a | human_b | ||
| GPT-4 | intrans | ||||
| trans | |||||
| RoBERTa | intrans | ||||
| trans | |||||
| Model | Sentence | GP | SP | ||
| h a | h b | h a | h b | ||
| Sentences with unanimously high ratings | |||||
| GPT-4 | The gambler dropped the dice. | 5 | 5 | 5 | 5 |
| The handle turned to the left. | 5 | 5 | 5 | 5 | |
| RoBERTa | The worker moved the machine. | 5 | 5 | 5 | 5 |
| The phone dropped into the water. | 5 | 5 | 5 | 5 | |
| Verb Alternations | Agreement | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CoS | OD | Spray-load | ||||||||
| En | It | En | It | (ALT-ATL) | (ATL-ALT) | English | French | Italian | Romanian | |
| Type I | 300 | 300 | 300 | 300 | 230 | 252 | 256 | 256 | 256 | 256 |
| Type II | 300 | 300 | 300 | 300 | 1500 | 1500 | 4780 | 4060 | 4830 | 4580 |
| Type III | 300 | 300 | 300 | 300 | 1500 | 1500 | 4700 | 4060 | 4830 | 4580 |
| Verb Alternations | Agreement | |||||||||
| Spray-load | CoS | OD | ||||||||
| (ALT-ATL) | (ATL-ALT) | En | It | En | It | English | French | Italian | Romanian | |
| F1 | 0.951 | 0.952 | 0.909 | 0.960 | 0.951 | 0.975 | 0.959 | 0.951 | 0.917 | 0.896 |
| SD | (0.006) | (0.005) | (0.015) | (0.002) | (0.033) | (0.004) | (0.010) | (0.011) | (0.007) | (0.003) |
LLM Evaluation
Large language model evaluation measures what models can do, how reliably they do it, and whether benchmark scores predict real-world performance.
See all 2,408 papers