Dynamically Scaled Activation Steering
Alex Ferrando, Xavier Suau, Jordi Gonzàlez, Pau Rodriguez
TL;DR
DSAS introduces a universal framework that decouples when to apply activation steering from how to apply it, enabling context-aware, per-layer and per-token scaling of steering interventions. It learns per-layer strength regulators via PCA-regularized logistic regression on activation statistics and can be combined with existing steering methods, including end-to-end training with LinEAS using a Wasserstein-based objective and a control regularizer. Empirically, DSAS improves the toxicity-versus-utility Pareto front across large language models and steering families and generalizes to diffusion models for selective concept modulation, all with minimal runtime overhead. The work also demonstrates end-to-end variants (E2E-DSAS) and discusses robustness to noisy supervision, reproducibility, and cross-modal applicability. Overall, DSAS offers a practical, interpretable, and broadly applicable approach to fine-grained, input-aware behavioral control in generative systems.
Abstract
Activation steering has emerged as a powerful method for guiding the behavior of generative models towards desired outcomes such as toxicity mitigation. However, most existing methods apply interventions uniformly across all inputs, degrading model performance when steering is unnecessary. We introduce Dynamically Scaled Activation Steering (DSAS), a method-agnostic steering framework that decouples when to steer from how to steer. DSAS adaptively modulates the strength of existing steering transformations across layers and inputs, intervening strongly only when undesired behavior is detected. At generation time, DSAS computes context-dependent scaling factors that selectively adjust the strength of any steering method. We also show how DSAS can be jointly optimized end-to-end together with the steering function. When combined with existing steering methods, DSAS consistently improves the Pareto front with respect to steering alone, achieving a better trade-off between toxicity mitigation and utility preservation. We further demonstrate DSAS's generality by applying it to a text-to-image diffusion model, showing how adaptive steering allows the modulation of specific concepts. Finally, DSAS introduces minimal computational overhead while improving interpretability, pinpointing which tokens require steering and by how much.
