Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matrices

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Kostenok, Elizaveta, Cherniavskii, Daniil, Zaytsev, Alexey
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912030812798976
author Kostenok, Elizaveta
Cherniavskii, Daniil
Zaytsev, Alexey
author_facet Kostenok, Elizaveta
Cherniavskii, Daniil
Zaytsev, Alexey
contents Transformer-based language models have set new benchmarks across a wide range of NLP tasks, yet reliably estimating the uncertainty of their predictions remains a significant challenge. Existing uncertainty estimation (UE) techniques often fall short in classification tasks, either offering minimal improvements over basic heuristics or relying on costly ensemble models. Moreover, attempts to leverage common embeddings for UE in linear probing scenarios have yielded only modest gains, indicating that alternative model components should be explored. We tackle these limitations by harnessing the geometry of attention maps across multiple heads and layers to assess model confidence. Our approach extracts topological features from attention matrices, providing a low-dimensional, interpretable representation of the model's internal dynamics. Additionally, we introduce topological features to compare attention patterns across heads and layers. Our method significantly outperforms existing UE techniques on benchmarks for acceptability judgments and artificial text detection, offering a more efficient and interpretable solution for uncertainty estimation in large-scale language models.
format Preprint
id arxiv_https___arxiv_org_abs_2308_11295
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matrices
Kostenok, Elizaveta
Cherniavskii, Daniil
Zaytsev, Alexey
Machine Learning
Transformer-based language models have set new benchmarks across a wide range of NLP tasks, yet reliably estimating the uncertainty of their predictions remains a significant challenge. Existing uncertainty estimation (UE) techniques often fall short in classification tasks, either offering minimal improvements over basic heuristics or relying on costly ensemble models. Moreover, attempts to leverage common embeddings for UE in linear probing scenarios have yielded only modest gains, indicating that alternative model components should be explored. We tackle these limitations by harnessing the geometry of attention maps across multiple heads and layers to assess model confidence. Our approach extracts topological features from attention matrices, providing a low-dimensional, interpretable representation of the model's internal dynamics. Additionally, we introduce topological features to compare attention patterns across heads and layers. Our method significantly outperforms existing UE techniques on benchmarks for acceptability judgments and artificial text detection, offering a more efficient and interpretable solution for uncertainty estimation in large-scale language models.
title Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matrices
topic Machine Learning
url https://arxiv.org/abs/2308.11295