LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tufanov, Igor, Hambardzumyan, Karen, Ferrando, Javier, Voita, Elena
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914747855667200
author Tufanov, Igor
Hambardzumyan, Karen
Ferrando, Javier
Voita, Elena
author_facet Tufanov, Igor
Hambardzumyan, Karen
Ferrando, Javier
Voita, Elena
contents We present the LM Transparency Tool (LM-TT), an open-source interactive toolkit for analyzing the internal workings of Transformer-based language models. Differently from previously existing tools that focus on isolated parts of the decision-making process, our framework is designed to make the entire prediction process transparent, and allows tracing back model behavior from the top-layer representation to very fine-grained parts of the model. Specifically, it (1) shows the important part of the whole input-to-output information flow, (2) allows attributing any changes done by a model block to individual attention heads and feed-forward neurons, (3) allows interpreting the functions of those heads or neurons. A crucial part of this pipeline is showing the importance of specific model components at each step. As a result, we are able to look at the roles of model components only in cases where they are important for a prediction. Since knowing which components should be inspected is key for analyzing large models where the number of these components is extremely high, we believe our tool will greatly support the interpretability community both in research settings and in practical applications.
format Preprint
id arxiv_https___arxiv_org_abs_2404_07004
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Models
Tufanov, Igor
Hambardzumyan, Karen
Ferrando, Javier
Voita, Elena
Computation and Language
We present the LM Transparency Tool (LM-TT), an open-source interactive toolkit for analyzing the internal workings of Transformer-based language models. Differently from previously existing tools that focus on isolated parts of the decision-making process, our framework is designed to make the entire prediction process transparent, and allows tracing back model behavior from the top-layer representation to very fine-grained parts of the model. Specifically, it (1) shows the important part of the whole input-to-output information flow, (2) allows attributing any changes done by a model block to individual attention heads and feed-forward neurons, (3) allows interpreting the functions of those heads or neurons. A crucial part of this pipeline is showing the importance of specific model components at each step. As a result, we are able to look at the roles of model components only in cases where they are important for a prediction. Since knowing which components should be inspected is key for analyzing large models where the number of these components is extremely high, we believe our tool will greatly support the interpretability community both in research settings and in practical applications.
title LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Models
topic Computation and Language
url https://arxiv.org/abs/2404.07004