arXiv:2610.41743cs.LGOct 2026

Manuscript Offprint

arXiv:2610.41743

Task Vectors Can Be Linearly Decomposed into Interpretable and Controllable Components

Yukiya Horiba, Hakaze Cho, Takahiro Yakoh

Abstract

Task Vectors (TVs) provide a compact way to steer large language models, but they are typically treated as atomized directions merely extracted from hidden states, leaving their internal functional structure poorly understood. Motivated by prior work that decomposes in-context learning into Task Recognition (TR) and Task Learning (TL), we ask whether a single TV can likewise be decomposed into functionally meaningful components. We formulate a TR/TL-based decomposition from candidate-label unembeddings, separating each TV into TR, TL, and residual components, and try to optimize the TR and TL coefficients using Bayesian optimization for more effective intervention. We evaluate this formulation across multiple model families, classification tasks, and both instruction- and demonstration-based TVs. Across these settings, TR/TL-based optimization identifies intervention directions that outperform the original TVs. Although optimization over random directions can also improve performance, TR/TL-based search yields more reliable gains, particularly for instruction-based TVs. Moreover, isolated interventions on the decomposed components produce distinct logit-level effects that are consistent with their intended functional roles. Together, these results suggest that TVs are not monolithic steering directions, but can be decomposed into functionally meaningful components that support both interpretation and control.

1 Introduction

Task Vectors (TVs) provide a compact representation of task information that can be reused to steer model behavior without updating model parameters (Hendel et al., 2023). Despite their effectiveness, TVs are typically treated as merely atomized blackbox vectors extracted from hidden states, which leaves a basic question open: how is task information functionally organized within

a TV? Understanding this structure would make TVs not only more interpretable, but also effective. Existing work has composed multiple steering directions into a low-dimensional intervention space (Han et al., 2026), but still little is known about whether a single TV itself can be decomposed into functionally meaningful components.

Conceptually, task execution in LLMs, exemplified by In-context Learning (ICL), is not necessarily functionally monolithic. As shown in Fig. 1-a, prior work distinguishes Task Recognition (TR), which identifies the task and leverages pretrained knowledge, from Task Learning (TL), which learns input-label mappings from demonstrations (Pan et al., 2023). Recent mechanistic analyses further associate these functions with distinct internal computations (Yang et al., 2026b). If these functional roles contribute to the task information encoded by a TV, they may provide a meaningful basis for exposing its internal structure.

We therefore ask whether the conceptual decomposition of ICL into TR and TL can be extended to geometry decomposition of TVs: can a TV be decomposed into functionally distinct TR- and TL-related components, and can these components provide meaningful control over the TV? As illustrated in Fig. 1-b, we construct TR/TL-oriented axes from candidate-label geometry and decompose each TV into TR, TL, and residual components. We parameterize intervention directions using the TR and TL magnitudes while keeping the residual fixed, which defines a two-dimensional, functionally structured intervention space anchored by the original TV, with each point in this space represents a distinct weighted combination of the TR and TL components. Additionally, as shown in Fig. 1-c, in this space, we conduct Bayesian optimization to find TV with better performance than original TV.

We evaluate the performance of the optimized TVs across multiple models and tasks, and find that Bayesian optimized TVs within the TR/TL-based a Task Recognition & Task Learning

Figure

b Task Vector Decomposition

c Task Relevant Subspace Search

Search based on TR & TL efficiently identifies high performing TVs

Figure 1: Overview of our approach. (a) TR and TL capture complementary aspects of in-context learning. In a narrow sense, TR processing finds the label candidates like “Positive” and “Negative”, and TL find which label should be output in the candidates. (b) We decompose a TV into TR, TL, and residual components. (c) Optimizing the TR/TL coefficients improves task performance.

space largely outperform the original TVs across a broad range of settings. At the same time, optimization over random directions can occasionally yield substantial improvements, showing that high-performing directions are not unique to the TR/TL directions. But TR/TL-based optimization tends to yield larger and more reliable gains, suggesting that the decomposition provides useful functional structure for guiding the search rather than uniquely determining an optimal direction. These results suggest that conceptual decomposition of ICL mechanisms can provide an interpretable geometry basis for analyzing and controlling TVs.

Our contributions are threefold. First, we formulate a decomposition of a single TV into TR, TL, and residual components, linking its structure to the roles of TR and TL with supporting empirical analysis. Second, we show that this decomposition provides an interpretable parameterization for controlling the TV, in which optimizing the TR and TL coefficients improves task performance across multiple models and tasks. Third, we draw on these findings to offer theoretical insights into how TR and TL jointly contribute to task execution.

References (16)