InTraVisTo: Inside Transformer Visualisation Tool

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Brunello, Nicolò, Rigamonti, Davide, Sassella, Andrea, Scotti, Vincenzo, Carman, Mark James
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916849894031360
author Brunello, Nicolò
Rigamonti, Davide
Sassella, Andrea
Scotti, Vincenzo
Carman, Mark James
author_facet Brunello, Nicolò
Rigamonti, Davide
Sassella, Andrea
Scotti, Vincenzo
Carman, Mark James
contents The reasoning capabilities of Large Language Models (LLMs) have increased greatly over the last few years, as have their size and complexity. Nonetheless, the use of LLMs in production remains challenging due to their unpredictable nature and discrepancies that can exist between their desired behavior and their actual model output. In this paper, we introduce a new tool, InTraVisTo (Inside Transformer Visualisation Tool), designed to enable researchers to investigate and trace the computational process that generates each token in a Transformer-based LLM. InTraVisTo provides a visualization of both the internal state of the Transformer model (by decoding token embeddings at each layer of the model) and the information flow between the various components across the different layers of the model (using a Sankey diagram). With InTraVisTo, we aim to help researchers and practitioners better understand the computations being performed within the Transformer model and thus to shed some light on internal patterns and reasoning processes employed by LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2507_13858
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle InTraVisTo: Inside Transformer Visualisation Tool
Brunello, Nicolò
Rigamonti, Davide
Sassella, Andrea
Scotti, Vincenzo
Carman, Mark James
Computation and Language
The reasoning capabilities of Large Language Models (LLMs) have increased greatly over the last few years, as have their size and complexity. Nonetheless, the use of LLMs in production remains challenging due to their unpredictable nature and discrepancies that can exist between their desired behavior and their actual model output. In this paper, we introduce a new tool, InTraVisTo (Inside Transformer Visualisation Tool), designed to enable researchers to investigate and trace the computational process that generates each token in a Transformer-based LLM. InTraVisTo provides a visualization of both the internal state of the Transformer model (by decoding token embeddings at each layer of the model) and the information flow between the various components across the different layers of the model (using a Sankey diagram). With InTraVisTo, we aim to help researchers and practitioners better understand the computations being performed within the Transformer model and thus to shed some light on internal patterns and reasoning processes employed by LLMs.
title InTraVisTo: Inside Transformer Visualisation Tool
topic Computation and Language
url https://arxiv.org/abs/2507.13858