Manuscript Offprint

arXiv:2609.10142

Active Adaptation, Not Static Defense: Temporal Dynamics of Preventative Steering in Adversarial Fine-Tuning

Jing Guan, Yachao Yang, Zhaoliang Liu, Yuyao Zhang, Fanyu Meng, Junlan Feng

Abstract

Large language models remain fragile against malicious fine-tuning, motivating training-time defenses against harmful persona drift. Preventative Steering injects undesirable-trait persona vectors during fine-tuning and removes them at evaluation time, yet the mechanism behind its lasting protection remains unclear. Analyzing its temporal optimization dynamics, we find that the defense emerges from an early compensatory adaptation phase followed by a steady-state phase where the corrective signal decays; in parameter space, attention output projections emerge as the dominant residual-write route for defensive updates. Through Intervention Delta Preservation (IDP) and IDP Continuation experiments, we further show that preserving or reinjecting the weight offset fails to maintain protection, indicating that preventative steering relies on active adaptation rather than a static defense. Motivated by this finding, we propose Progressive Intensity Scheduling (PIS), which starts with a moderate injection strength and increases it after static-strength alignment begins to decay. Across the evaluated Qwen2.5 and Gemma-3 models, PIS improves safety robustness over static-strength steering while reducing harmful trait expression.

1 Introduction

Large language models (LLMs) are commonly deployed through conversational interfaces that encourage an "Assistant" persona: helpful, harmless, and honest (Askell et al., 2021; Bai et al., 2022a,b). Yet this persona can drift toward undesirable behaviors during deployment (xAI, 2025; Lynch et al., 2025; Meinke et al., 2024) or after additional training (Betley et al., 2025; OpenAI, 2025; Lermen et al., 2023). In particular, malicious fine-tuning can weaken safety refusals and amplify harmful

traits through parameter updates, making reactive inference-time defenses insufficient. This motivates training-time defenses that improve resistance to harmful persona drift (Jain et al., 2023; Zhou et al., 2024; Barua et al., 2025).

Among training-time interventions, Preventative Steering takes a counterintuitive approach (Chen et al., 2025). During fine-tuning, it injects activation vectors corresponding to undesirable traits into the residual stream at intermediate layers; at evaluation time, the injection is removed. Despite this harmful-direction exposure, the procedure makes the resulting model less susceptible to persona drift under subsequent malicious fine-tuning. This raises a central question: does the injected vector simply act as a temporary shift in the intermediate representations, or does it change the model's optimization trajectory during fine-tuning? The distinction matters: the former implies a transient activation shift, whereas the latter suggests active adaptation in the model parameters.

Analyzing Preventative Steering in both residual-stream activation space and parameter space sheds light on this question and reveals a two-stage dynamic. Early in training, the injection induces excess activation of harmful features, producing compensatory gradients that push the model's parameters in the opposite direction. Later, this compensatory mechanism approaches a direction-specific steady state as the projection of the gradient onto the injected vector decays, effectively neutralizing its net effect. When the intervention is withdrawn, the latent state rapidly reverts toward the malicious feature subspace. Together, these results support the conclusion that the observed protection relies on continuous vector injection. In parameter space, compensatory updates induced by steering are more concentrated in attention output projections than in MLP down-projections, suggesting the attention pathway serves as the dominant channel for writing defensive signals back into the residual

Code:https://github.com/summer0517/PIS

Figure

Figure 1: Mechanistic dynamics of gradient drift and the Progressive Intensity Scheduling (PIS) defense. Phase I (Left): In the backward pass, the injected +vm+v_m induces adversarial tension, which the optimizer absorbs via structural −vm-v_m shifts (Mechanism A). This adaptation is structurally asymmetric: the output projection (WoW_o) shifts unrestrictedly, while the down projection (WdownW_{down}) is constrained by SiLU activation sparsity. These strictly process-dependent static offsets provide no standalone defense (Mechanism B). Phase II (Right): Over optimization steps, the adversarial gradient (∇Ladv\nabla L_{adv}) drifts from its initial vmv_m-alignment via optimizer adaptation (Mechanism C), dismantling the gradient-absorbing equilibrium. To counteract this decay, PIS temporally scales injection strength (α\alpha) to restore compensatory pressure against malicious fine-tuning.

stream.

We next tested the early compensatory update as a standalone defense using two decoupling strategies: preserving the induced parametric offset and reinjecting an activation-space estimate of its compensatory effect. However, both Intervention Delta Preservation (IDP) and IDP Continuation fail to maintain protection and can even amplify harmful traits. These failures indicate that Preventative Steering relies on continuous vector injection during optimization, rather than on a reusable adaptation encoded in the weights.

Motivated by this mechanism, we propose Progressive Intensity Scheduling (PIS), a dynamic training-time schedule for steering strength. PIS begins with a moderate injection strength to allow stable early adaptation, then increases the strength as static-strength steering loses alignment with the optimization trajectory. Across Qwen2.5-7B-Instruct, Qwen2.5-32B-Instruct, and Gemma-3-12B-IT, PIS improves safety robustness over static-strength steering while reducing harmful trait expression. Figure 1 summarizes the observed mechanism and the proposed PIS framework.

In summary, the main contributions are three-fold:

  • Preventative Steering exhibits a two-stage dy-

namic: early compensatory updates are followed by a direction-specific steady state as the projection of the gradient onto the injected vector decays. In parameter space, these defensive updates are concentrated primarily in attention output projections.

  • IDP and IDP Continuation experiments show that fixed parametric shifts cannot sustain protection independently, indicating the need for continuous vector injection during optimization.

  • Motivated by these findings, we propose PIS to sustain steering effectiveness over time, substantially improving safety robustness over static-strength steering across Qwen2.5-7B-Instruct, Qwen2.5-32B-Instruct, and Gemma-3-12B-IT.

References (36)