Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Acceptability Judgements via Examining the Topology of Attention Maps

About

The role of the attention mechanism in encoding linguistic knowledge has received special interest in NLP. However, the ability of the attention heads to judge the grammatical acceptability of a sentence has been underexplored. This paper approaches the paradigm of acceptability judgments with topological data analysis (TDA), showing that the geometric properties of the attention graph can be efficiently exploited for two standard practices in linguistics: binary judgments and linguistic minimal pairs. Topological features enhance the BERT-based acceptability classifier scores by $8$%-$24$% on CoLA in three languages (English, Italian, and Swedish). By revealing the topological discrepancy between attention maps of minimal pairs, we achieve the human-level performance on the BLiMP benchmark, outperforming nine statistical and Transformer LM baselines. At the same time, TDA provides the foundation for analyzing the linguistic functions of attention heads and interpreting the correspondence between the graph features and grammatical phenomena.

Daniil Cherniavskii, Eduard Tulchinskii, Vladislav Mikhailov, Irina Proskurina, Laida Kushnareva, Ekaterina Artemova, Serguei Barannikov, Irina Piontkovskaya, Dmitri Piontkovski, Evgeny Burnaev• 2022

Related benchmarks

TaskDatasetResultRank
Linguistic Minimal Pair ScoringBLiMP
Overall Accuracy88.9
49
Acceptability ClassificationCoLA out-of-domain (dev test)
Accuracy82.1
24
Acceptability ClassificationCoLA in-domain (dev)
Accuracy88.6
12
Acceptability ClassificationItaCoLA (dev)
Accuracy92.8
12
Acceptability ClassificationDaLAJ (dev)
Accuracy76.9
12
Acceptability ClassificationItaCoLA (test)
Accuracy86.6
12
Acceptability ClassificationDaLAJ (test)
Accuracy73.4
12
Showing 7 of 7 rows

Other info

Code

Follow for update