Identifying and Evaluating Inactive Heads in Pretrained LLMs

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Sandoval-Segura, Pedro, Wang, Xijun, Panda, Ashwinee, Goldblum, Micah, Basri, Ronen, Goldstein, Tom, Jacobs, David
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912933027512320
author Sandoval-Segura, Pedro
Wang, Xijun
Panda, Ashwinee
Goldblum, Micah
Basri, Ronen
Goldstein, Tom
Jacobs, David
author_facet Sandoval-Segura, Pedro
Wang, Xijun
Panda, Ashwinee
Goldblum, Micah
Basri, Ronen
Goldstein, Tom
Jacobs, David
contents Attention is foundational to large language models (LLMs), enabling different heads to have diverse focus on relevant input tokens. However, learned behaviors like attention sinks, where the first token receives the most attention despite limited semantic importance, suggest some heads may be inactive, and point to a significant source of computational redundancy. To analyze this phenomenon, we evaluate 12 score functions that measure different ways a head can be inactive. Thresholding these scores allows us to analyze different sets of potentially inactive attention heads. We evaluate whether identified heads are inactive through model interventions, finding that more than 12% of attention heads are inactive on average, and can be ablated in specific contexts while maintaining MMLU accuracy to within 1% of the pretrained LLM. Across 3 model families, our score functions that measure the average norm of a head's output consistently identify inactive heads that would not have been found by score functions that rely solely on attention weights. We establish that relying on a score function that measures a first token attention sink would underestimate the prevalence of inactive heads, failing to identify more than 7% of inactive heads on average. We also show how measuring score distributions can provide insights into attention behavior. For instance, we find evidence that finetuning causes little to no change in attention behavior, and that even within the same model family, large model scales present different attention behaviors.
format Preprint
id arxiv_https___arxiv_org_abs_2504_03889
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Identifying and Evaluating Inactive Heads in Pretrained LLMs
Sandoval-Segura, Pedro
Wang, Xijun
Panda, Ashwinee
Goldblum, Micah
Basri, Ronen
Goldstein, Tom
Jacobs, David
Machine Learning
Attention is foundational to large language models (LLMs), enabling different heads to have diverse focus on relevant input tokens. However, learned behaviors like attention sinks, where the first token receives the most attention despite limited semantic importance, suggest some heads may be inactive, and point to a significant source of computational redundancy. To analyze this phenomenon, we evaluate 12 score functions that measure different ways a head can be inactive. Thresholding these scores allows us to analyze different sets of potentially inactive attention heads. We evaluate whether identified heads are inactive through model interventions, finding that more than 12% of attention heads are inactive on average, and can be ablated in specific contexts while maintaining MMLU accuracy to within 1% of the pretrained LLM. Across 3 model families, our score functions that measure the average norm of a head's output consistently identify inactive heads that would not have been found by score functions that rely solely on attention weights. We establish that relying on a score function that measures a first token attention sink would underestimate the prevalence of inactive heads, failing to identify more than 7% of inactive heads on average. We also show how measuring score distributions can provide insights into attention behavior. For instance, we find evidence that finetuning causes little to no change in attention behavior, and that even within the same model family, large model scales present different attention behaviors.
title Identifying and Evaluating Inactive Heads in Pretrained LLMs
topic Machine Learning
url https://arxiv.org/abs/2504.03889