paper-with-me

홈 › Papers

Can BERT eat RuCoLA? Topological Data Analysis to Explain

2023-04-04 · Irina Proskurina, Irina Piontkovskaya, Ekaterina Artemova

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.

📄 PDF Abstract BibTeX arXiv:2304.01680

Code (2)

upunaprosk/la-tda 공식 구현
upunaprosk/la-tda/blob/master/5_Head_importance.ipynb

Tasks

CoLALinguistic AcceptabilityText ClassificationTopological Data Analysis

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
COLA COLA is a self-supervised pre-training approach for learning a general-purpose representation of audio. It is based on contrastive learning: it learns a representation which…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Adam 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

RuCoLA: Russian Corpus of Linguistic Acceptability

2022-10-23 · Vladislav Mikhailov, Tatiana Shamardina, Max Ryabinin, Alena Pestova 외

Linguistic acceptability (LA) attracts the attention of the research community due to its many uses, such as testing the grammatical knowledge of language models and filtering implausible texts with acceptability classif…

Linguistic AcceptabilityText Generation

Can persistent homology whiten Transformer-based black-box models? A case study on BERT compression

2023-12-17 · Luis Balderas, Miguel Lastra, José M. Benítez

Large Language Models (LLMs) like BERT have gained significant prominence due to their remarkable performance in various natural language processing tasks. However, they come with substantial computational and memory cos…

The Topological BERT: Transforming Attention into Topology for Natural Language Processing

2022-06-30 · Ilan Perez, Raphael Reinauer

In recent years, the introduction of the Transformer models sparked a revolution in natural language processing (NLP). BERT was one of the first text encoders using only the attention mechanism without any recurrent part…

SentenceTopological Data Analysis

Data filtering methods for training language models

2026-05-28 · Egor Shevchenko, Elena Bruches arxiv

Data quality is a critical factor in the effectiveness of machine learning models. Label errors, present even in widely used benchmarks, introduce noise into training data and reduce model generalization. In this work, w…

Linguistic AcceptabilityEmotion ClassificationLabel Error DetectionText Classification

When Annotators Disagree, Topology Explains: Mapper, a Topological Tool for Exploring Text Embedding Geometry and Ambiguity

2025-10-20 · Nisrine Rair, Alban Goupil, Valeriu Vrabie, Emmanuel Chochoy arxiv

Language models are often evaluated with scalar metrics like accuracy, but such measures fail to capture how models internally represent ambiguity, especially when human annotators disagree. We propose a topological pers…