Tracing Computation Density in LLMs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Kervadec, Corentin, Lysova, Iuliia, Macocco, Iuri, Baroni, Marco, Boleda, Gemma
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917536474333184
author Kervadec, Corentin
Lysova, Iuliia
Macocco, Iuri
Baroni, Marco
Boleda, Gemma
author_facet Kervadec, Corentin
Lysova, Iuliia
Macocco, Iuri
Baroni, Marco
Boleda, Gemma
contents Transformer-based large language models (LLMs) are comprised of billions of parameters arranged in deep and wide computational graphs, but it is not clear that they exploit their full capacity for all inputs. We introduce the s-Trace method to efficiently estimate the subgraph of size s that best approximates a full model output. With this method, we find the computation in a variety of LLMs to be organized in two distinct phases. A small subgraph mostly composed of early-layer nodes can reconstruct the head of the full model output distribution. Adding further nodes, mostly located in later layers and increasingly consisting of attention heads, leads to incremental refinements in approximating the full output distribution. We find moreover that the amount of necessary computation per input correlates with model uncertainty, and that sparser subgraphs encode shallow statistics, such as unigram frequency. Overall, our results suggest a consistent modular organization in effective LLM computation, with a sparse early-layer core providing a rough prediction that is further refined through denser computations in later layers.
format Preprint
id arxiv_https___arxiv_org_abs_2605_27033
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Tracing Computation Density in LLMs
Kervadec, Corentin
Lysova, Iuliia
Macocco, Iuri
Baroni, Marco
Boleda, Gemma
Computation and Language
Artificial Intelligence
Machine Learning
Transformer-based large language models (LLMs) are comprised of billions of parameters arranged in deep and wide computational graphs, but it is not clear that they exploit their full capacity for all inputs. We introduce the s-Trace method to efficiently estimate the subgraph of size s that best approximates a full model output. With this method, we find the computation in a variety of LLMs to be organized in two distinct phases. A small subgraph mostly composed of early-layer nodes can reconstruct the head of the full model output distribution. Adding further nodes, mostly located in later layers and increasingly consisting of attention heads, leads to incremental refinements in approximating the full output distribution. We find moreover that the amount of necessary computation per input correlates with model uncertainty, and that sparser subgraphs encode shallow statistics, such as unigram frequency. Overall, our results suggest a consistent modular organization in effective LLM computation, with a sparse early-layer core providing a rough prediction that is further refined through denser computations in later layers.
title Tracing Computation Density in LLMs
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2605.27033