Test-time alignment adapts large language models (LLMs) to runtime objectives without updating model parameters. Pre-logit steering offers a lightweight approach by optimizing additive interventions to the hidden states of a frozen LLM, but excessive steering can distort output distributions and degrade generation quality. We propose Minimally Invasive Steering Vector Optimization (MISVO), which improves reward while controlling deviation from the reference policy. Rather than penalizing the Euclidean norm of steering vectors, we derive a quadratic regularizer from the local Kullback--Leibler (KL) geometry of the induced token distributions. The resulting Fisher-information penalty captures the distributional sensitivity of steering directions and admits an analytic gradient computed through matrix--vector products with the frozen language-model head. We further derive an exact decomposition of the sequence-level KL gradient and establish explicit, non-asymptotic bounds on the approximation errors, including the omitted trajectory-dependent score-function term. These results show that the frozen Fisher regularizer gradient approximates the full sequence-level KL gradient to first order in the steering magnitude. Across preference and code-generation tasks on four LLMs spanning approximately 1B--14B parameters, MISVO achieves the highest mean best-so-far reward in six of seven model--task settings, while maintaining diversity and coherence scores comparable to Best-of-$N$.
翻译:暂无翻译