Manuscript Offprint

arXiv:2609.09054

Training-Free Task Vectors for LLM Behavioral Control

Gabriel J. Perin, Lucas Boscaini, André Araujo, Nina S. T. Hirata

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Task vectors enable post-training model editing by identifying semantically meaningful directions in weight space, typically computed as the difference between a fine-tuned model and its pretrained initialization. However, this reliance on fine-tuning makes discovering such directions costly and limits the practicality of post-training model editing. To address this limitation, we introduce Training-Free Task Vectors (TFTVs), a novel method to compute task-vector-like directions without requiring fine-tuning. Our method maps activation steering vectors to rank-one weight-space edits using only forward-pass statistics, while satisfying arithmetic properties that directly support learning via addition, forgetting via subtraction, and the composition of multiple edits. Empirically, we evaluate TFTVs on large language model behavioral control tasks and show that they consistently amplify, suppress, and compose target behaviors while preserving general knowledge and problem-solving skills. We also validate our method against other editing and steering baselines, experimentally demonstrating that TFTVs achieve stronger trait control with better or competitive utility preservation. We hope our work opens new directions for the community in post-training model editing and broader training-free model control. Code is available on the project website: tftv-llm.github.io.

1 INTRODUCTION

Large language models (LLMs) have demonstrated remarkable capabilities on complex tasks such as reasoning (Achiam et al., 2023), code generation (Chen et al., 2021; Li et al., 2022), and instruction-following (Wei et al., 2021). As these models become increasingly capable and widely deployed, post-training control has become a central problem: practitioners may need to suppress undesirable behaviors, amplify desired traits, or impose multiple behavioral constraints after a model has already been trained (Turner et al., 2023; Li et al., 2023; Rimsky et al., 2024; Chen et al., 2025). Ideally, such edits should not interfere with inference dynamics or model architecture, allowing users to modify behavior while preserving the standard forward pass expected by optimized deployment and fine-tuning pipelines (Sun et al., 2026).

A prominent approach to post-training model editing is to operate directly in parameter space through task vectors (Ilharco et al., 2022). Given a model fine-tuned from a shared pretrained initialization, a task vector is defined as the difference between the fine-tuned and pretrained weights, and has been shown to encode semantically meaningful directions that transfer across related models and tasks (Ilharco et al., 2022; Yadav et al., 2023; Yu et al., 2024). Remarkably, these directions exhibit a simple arithmetic structure: they can be added to induce new behaviors, negated to remove or suppress behaviors, and composed to combine multiple edits (Ilharco et al., 2022; Bhardwaj et al., 2024; Sun et al., 2025; Fierro & Roger, 2025). This makes task vectors an appealing primitive for efficient post-training editing.

Figure

Figure 1: Training-Free Task Vectors enable arithmetic model editing without any training. Unlike classical task vectors ΔθT\Delta\theta_T (Ilharco et al., 2022) (left), which are computed from the difference between fine-tuned and base model weights, TFTVs ΔθT\Delta\theta_T (right) are derived directly from forward-pass statistics, using contrastive prompts. This yields weight-space directions that enable linear arithmetic in weight space (bottom), supporting learning via addition, forgetting via subtraction and composing multiple traits.

However, this arithmetic structure comes at a cost: task vectors are not discovered directly from the pretrained model, but retrospectively from a completed fine-tuning run. Thus, before one can edit a model with a task vector, one must already possess a second checkpoint that expresses the desired behavior (Ilharco et al., 2022). This requirement is especially limiting for behavioral control: each new trait requires obtaining a corresponding fine-tuned checkpoint.

To address this limitation, we introduce training-free task vectors (TFTVs), a simple method that identifies semantically meaningful behavioral directions in weight space, requiring only forward-pass statistics. Our approach is motivated by the observation that steering vectors already encode directional behavioral information, but only in activation space (Li et al., 2023; Turner et al., 2023; Chen et al., 2025; Rimsky et al., 2024). We show that, by appropriately mapping these directions to the parameter space, one can obtain edits that are both training-free and compositional. An overview of TFTV is given in Figure 1.

Empirically, we evaluate TFTVs on behavioral control tasks, focusing on traits such as evil, hallucination, and sycophancy. We show that TFTVs exhibit three key properties that allow model editing: learning via addition, where adding the update amplifies the target behavior; forgetting via subtraction, where subtracting the update suppresses target behavior; and composing multiple traits, where multiple directions can be combined to jointly control several traits. Across these settings, TFTVs achieve substantially stronger behavioral control while matching or improving the utility preservation of recent inference-time steering and model-editing techniques.

In summary, our contributions are as follows:

  • We introduce Training-Free Task Vectors (TFTVs), a simple method for identifying semantically meaningful behavioral weight-space directions, without auxiliary fine-tuning or additional optimization. TFTVs convert activation steering directions into rank-one weight updates using only forward-pass statistics, enabling persistent post-training model editing without any training.

  • We show that the proposed construction satisfies algebraic properties that directly support learning via addition, forgetting via subtraction, and composition of multiple traits.

  • We empirically demonstrate that TFTVs enable strong and compositional behavioral control with better or competitive utility preservation than recent inference steering and model editing methods. Across the main paper and appendix, our evaluation spans four recent instruction-tuned models, five target traits, including both single-trait and composed edit settings.

References (42)