Manuscript Offprint

arXiv:2610.35530

CANS: Capability-Preserving Neuron Steering for Large Language Models

Yucheng Wu, Chengyi Xie, Chenpeng Wang, Liangming Pan

ABSTRACT

Activation steering offers training-free and dynamic control of target behaviors in large language models, but existing methods can impair general capabilities and require domain-specific intervention designs. We introduce Capability-Preserving Neuron Steering (CANS), a unified framework that balances target-behavior control with capability preservation. To make target-behavior improvement and general-capability preservation tractable, we introduce two proxies: log-probabilities of target tokens in model generated responses, and output-distribution KL divergence on general-purpose inputs. Combining the local approximation of the two proxies yields a closed-form solution, enabling lightweight steering without iterative model training or additional inference-time computation. The resulting neuron-wise scaling coefficients achieve effective steering while limiting general-capability loss. A shared data-construction and intervention procedure supports adaptation across domains using sampled responses with target-behavior filtering and target-span annotations. Across safety, toxicity, and hallucination control on Qwen and Llama models, CANS achieves comparable or better steering while better preserving MMLU, BBH, and IFEval performance than SFT, CAA, and neuron-level baselines. On Qwen3-4B, CANS reduces Harm-Bench attack success from 15.50% to 1.75% with a 1.11-point decrease in average capability. These results support CANS as a practical approach to behavioral control across domains.

https://github.com/Eric-Arya/CANS-Steer

1 INTRODUCTION

Large language models (LLMs) are increasingly deployed in high-stakes applications (OpenAI, 2023; Grattafori et al., 2024; Yang et al., 2025). Despite their broad capabilities, they can produce unsafe or toxic content (Gehman et al., 2020; Wei et al., 2023; Zou et al., 2023) and hallucinate factually incorrect statements (Ji et al., 2023; Manakul et al., 2023). The predominant countermeasure is training to control target behavior, including supervised fine-tuning (SFT) (Bianchi et al., 2024), reinforcement learning from human feedback (RLHF) (Ouyang et al., 2022), and direct preference optimization (DPO) (Rafailov et al., 2023). However, these approaches require additional training cost, and do not inherently support dynamic, continuously adjustable control. These limitations motivate lightweight methods that control specific behaviors at inference time.

A prominent family of such methods is activation steering, which modifies model behavior through activation interventions. These include two widely adopted intervention levels: the vector level, targeting residual-stream hidden states (Rimsky et al., 2024; Arditi et al., 2024) or attention-head outputs (Li et al., 2023), and the neuron level, which modifies individual activations (Suau et al., 2024; Dai et al., 2022). We focus on feed-forward network (FFN) neurons, defined as coordinates of the FFN's intermediate activations. Prior work demonstrates their causal role in behavioral control: neuron interventions can control human value-related behaviors (Yang et al., 2026), restore safety.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

Figure 1: Overview of CANS. CANS uses target-token log-probabilities for target-behavior control (left) and output-distribution KL on general-purpose inputs for general-capability preservation (right). Local approximations of these two proxies yield closed-form adaptive scaling across all neurons under a shared preservation budget (center), enabling the same steering effect with minimal general-capability loss.

behavior (Chen et al., 2025), and regulate over-compliance with false premises and harmful instructions (Gao et al., 2025). These findings motivate neuron-level steering as a fine-grained mechanism for controlling model behavior.

However, these methods face two central challenges. First, improvements in target-behavior control can compromise general capability. This loss of capability can partly be attributed to the polysemanticity of LLM neurons: a single neuron can encode information relevant to both the target behavior and general-purpose tasks (Olah et al., 2020; Elhage et al., 2022; Gurnee et al., 2023; Bricken et al., 2023). Rescaling neurons associated with a target behavior can disrupt shared functions needed for general tasks (Suau et al., 2024; Haider et al., 2026). Second, cross-domain generalizability is limited by domain-specific intervention designs (Suau et al., 2024; Gao et al., 2025; Zhao et al., 2025; Chen et al., 2025), so applying them to a new target behavior can require redefining how neurons' contribution to a target behavior is scored, which neurons to intervene on, and by what magnitude. Empirically, we find that transferring these procedures across domains often yields limited steering gains and/or substantial capability loss.

To this end, we propose Capability-Preserving Neuron Steering (CANS), as illustrated in Figure 1. The central idea is to assign each neuron a coefficient that accounts for both its contribution to the target behavior and its impact on general capabilities. CANS applies this adaptive scaling across all FFN neurons, favoring changes that support the target behavior with less disruption to other capabilities. To make this objective computationally tractable, we introduce two practical proxies. For target-behavior control, we estimate how each neuron affects the likelihood of target word spans in model responses associated with the behavior we want to promote or suppress. For capability preservation, we measure how much an intervention changes the model's output distribution on general-purpose reference text. This provides a label-free signal of disruption without requiring separate evaluations of every capability. We derive a closed-form optimal solution to the resulting optimization problem, yielding a steering coefficient for each neuron. These coefficients balance estimated target-behavior gains against output-distribution disruption, supporting effective steering with limited general-capability loss. CANS also supports cross-domain generalizability through a shared data-construction protocol and steering procedure: adapting to a new domain requires only sampling responses from the unmodified model, filtering them, and annotating target spans.

We evaluate CANS on safety, toxicity, and hallucination control using Qwen3-4B and models from the Llama family. Across the evaluated settings, CANS achieves a more favorable steering-capability trade-off than the compared neuron-level steering baselines, with low computational overhead. For example, on the safety benchmark HarmBench (Mazeika et al., 2024), CANS reduces Qwen3-4B's attack success rate from 15.50% to 1.75% with a 1.11-point decrease in average capability. For toxicity, it reduces the same model's toxic-prompt rate on RealToxicityPrompts (Gehman et al., 2020) from 19.17% to 1.00% with no loss in average capability. For hallucination, it reduces Llama-3.1-8B-Instruct's hallucination rate on TruthfulQA (Lin et al., 2022) from 17.75% to 0.75% with only a 0.06-point decrease in average capability.

2 RELATED WORK

Activation steering for behavioral control. Activation steering controls LLM behavior by modifying internal activations at inference time, with representative methods including intervention at vector and neuron levels. At the vector level, methods modify residual-stream hidden states or attention-head outputs. Fixed-direction approaches use steering vectors precomputed from reference examples (Rimsky et al., 2024; Li et al., 2023). However, a single direction may not capture complex patterns in behavior-related activation distributions, limiting the expressiveness of fixed-direction steering (Zhao et al., 2026). Adaptive methods vary steering directions with hidden states with additional training or inference cost (Kong et al., 2024; Pham & Nguyen, 2024; Zhao et al., 2026), whereas CANS steers each activation in a single step by the closed-form coefficients, avoiding training or iterative activation updates. At the neuron level, methods modify the scalar activations of individual neurons. Such interventions have been used to reduce hallucinations (Gao et al., 2025), mitigate toxicity (Suau et al., 2024), improve safety (Zhao et al., 2025; Chen et al., 2025) and steer responses toward specified human values (Yang et al., 2026). Although these methods evaluate capability retention, they do not explicitly incorporate a capability-preservation criterion into their steering objectives. CANS instead optimizes neuron-wise strengths under a preservation budget on general-purpose reference inputs. These methods also rely on domain-specific criteria for locating and modifying neurons, whereas CANS provides a generalizable framework for steering target behaviors across domains.

Capability preservation during model behavior control. Improving a target behavior can impair the model's general capability. For example, RLHF can reduce performance on other language tasks (Ouyang et al., 2022), while safety-oriented activation patching can improve safety at the expense of helpfulness (Chen et al., 2025). Training-based safeguards include KL regularization against a reference model (Ziegler et al., 2019; Stiennon et al., 2020; Ouyang et al., 2022; Bai et al., 2022a;b; Rafailov et al., 2023) and representation-retention losses (Zou et al., 2024), but require iterative model fine-tuning. CANS instead optimizes neuron-wise strengths under a preservation budget on general-purpose reference inputs, with an optimal closed-form solution to the local proxy and no iterative model fine-tuning.

References (46)