mlsanityData to 7 Oct 2026

Can BERT eat RuCoLA? Topological Data Analysis to Explain

arXiv 2304.01680 ↗First posted 4 Apr 2023cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

This paper investigates how Transformer language models (LMs) fine-tuned for acceptability classification capture linguistic features. Our approach uses the best practices of topological data analysis (TDA) in NLP: we construct directed attention graphs from attention matrices, derive topological features from them, and feed them to linear classifiers. We introduce two novel features, chordality, and the matching number, and show that TDA-based classifiers outperform fine-tuning baselines. We experiment with two datasets, CoLA and RuCoLA in English and Russian, typologically different languages. On top of that, we propose several black-box introspection techniques aimed at detecting changes in the attention mode of the LMs during fine-tuning, defining the LM's prediction confidences, and associating individual heads with fine-grained grammar phenomena. Our results contribute to understanding the behavior of monolingual LMs in the acceptability classification task, provide insights into the functional roles of attention heads, and highlight the advantages of TDA-based approaches for analyzing LMs. We release the code and the experimental results for further uptake.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 20 of its 40 references that are in the map. First posted on arXiv 4 Apr 2023.

Builds on

20 of 40 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  6. 2018Neural Network Acceptability Judgmentscited by 952
  7. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  8. 2019Revealing the Dark Secrets of BERTcited by 300
  9. 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
  10. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
  11. 2020When Do You Need Billions of Words of Pretraining Data?cited by 104
  12. 2021Artificial Text Detection via Examining the Topology of Attention Mapscited by 49
8 more
  1. 2021Automatic Text Evaluation through the Lens of Wasserstein Barycenterscited by 38
  2. 2021How transfer learning impacts linguistic knowledge in deep NLP models?cited by 32
  3. 2020How Furiously Can Colourless Green Ideas Sleep? Sentence Acceptability in Contextcited by 26
  4. 2022RuCoLA: Russian Corpus of Linguistic Acceptabilitycited by 26
  5. 2020Linguistic Profiling of a Neural Language Modelcited by 23
  6. 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
  7. 2021Shaking Syntactic Trees on the Sesame Street: Multilingual Probing with Controllable Perturbationscited by 10
  8. 2022BERTops: Studying BERT Representations under a Topological Lenscited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 1; 2026: 1.

5 papers.