Skip to content

Task Context Shapes Component Roles in Language Models

Oct 2026 · 0 citations · 29 references
Computer Science

TL;DR

These findings show that task context changes both which graph facts the shared components respond to and how their outputs affect later computation, which may help explain how models use shared parameters to perform different computations.

Abstract

Large language models reuse the same attention heads across tasks, but identifying these shared heads does not explain what they do differently in each task. A natural source of inspiration is task-dependent interactions among shared brain regions, which motivate a network view of language-model computation. Here, we compare fixed model components across tasks using identical graph facts, statements specifying which directed connections are present. We measure how interventions affect attention heads and the activation state in later layers (influence), as well as the answer (importance). Task changes redistribute the influence in five open-weight models spanning four families and 1.5-14 billion parameters. In Gemma-2-9B and Qwen3-14B, an activation edit changes an early internal activation vector and switches which fact the model reads while the written instruction stays fixed. The same heads then respond to different graph facts and influence later components differently. For each prompt, we construct two linear response maps, one before the edit and one after it. Each map predicts a later head's response from a measured change in an earlier head. For a separate factual intervention, the map for the corresponding condition reduces mean squared prediction error by 53.6% in Gemma and 5.0% in Qwen compared with the average of the two maps. These findings show that task context changes both which graph facts the shared components respond to and how their outputs affect later computation. A network account may help explain how models use shared parameters to perform different computations. Measurements of task-dependent influence could also guide interventions intended to alter one behavior while preserving others.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

A mechanistic study of language model introspection

Across three model families, two small groups of attention heads are identified with distinct roles in introspective reporting supporting introspective detection and localization of large language models.

Jia-Hong Zou, Xiang-Kun Sun, Ling-Kai Kong et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Causal and Interpretable Structures in LLM Compositional Tasks

This work studies activations from ensembles of prompts that require inferring relationships between three tokens corresponding to a cyclic concept to correctly predict the next token and finds a consistent layerwise progression in how the joint dependence among the tokens is geometrically organized and causally used.

Gurbir Arora, To-Ni J. B. Liu, Jiajun Bao et al. · 0 citations
#machine learning Preprint Sep 2026

How Language Models Differ in Redistributing Attention-Head Activity Under Serial Demand

The way a model distributes activity over each layer's attention heads offers a coarse view of how it routes information through depth; how this changes with the task is part of what a mechanistic account must explain. Holding prompt length fixed, we vary how many serial steps a task demands and measure, in every layer...

Johnny Jingze Li, Abdulla Kuleib, Kalyan S. Basu et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Models

This work investigates how fine-tuning alters internal representations in LLMs, including attention patterns and layer-wise activations, and examines whether these changes are linked to task-relevant components identified by EAP that drive task performance.

Ling-Fang Li, Procheta Sen, Shubham Das et al. · 0 citations
#machine learning Preprint Sep 2026

How Do Language Models Choose Between Context and Memory?

The results suggest that authority computations may be task-dependent, rather than reusable across tasks, and suggest that authority computations may be task-dependent, rather than reusable across tasks.

Benjamin Shih, John Winnicki, Arianna Cao · 0 citations
#natural language process... Preprint Oct 2026

Emergent Structure in the Marginal Attention Space of Language Models

While representation similarity across independently trained language models is well-documented, how internal mechanics such as attention behave across models remains far less characterized. Inspired by this gap, we examine the structure of post-softmax attention weights by marginalizing over query positions, mapping t...

Valentino Maiorca, Walter Nelson, Francesco Locatello · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.