CLAILGATMay 19, 2022

Acceptability Judgements via Examining the Topology of Attention Maps

arXiv:2205.09630v2296 citationsh-index: 36
Originality Highly original
AI Analysis

This work addresses the challenge of interpreting and leveraging attention heads for linguistic tasks, offering a novel method for acceptability judgments in NLP.

The paper tackles the problem of using attention mechanisms in NLP for grammatical acceptability judgments by applying topological data analysis to attention maps, achieving 8%-24% improvement on CoLA and human-level performance on BLiMP.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes