Steering Large Language Model Activations in Sparse Spaces
Reza Bayat, Ali Rahimi-Kalahroudi, Mohammad Pezeshki, Sarath Chandar, Pascal Vincent
TL;DR
This work introduces Sparse Activation Steering (SAS), a framework that steers large language models by operating in sparse activation spaces learned via Sparse Autoencoders (SAEs). SAS uses contrastive prompt-pairing to identify behavior-specific sparse features and forms steering vectors that reinforce desired behaviors while suppressing opposing tendencies, applied during inference without weight updates. Scaling the SAE dictionary improves monosemanticity and enables compositional steering of multiple behaviors with minimal or even positive effects on standard benchmarks and targeted tasks like TruthfulQA. The approach offers flexible, context-aware control, presenting a practical path toward fine-grained alignment with robust interpretability and modularity.
Abstract
A key challenge in AI alignment is guiding large language models (LLMs) to follow desired behaviors at test time. Activation steering, which modifies internal model activations during inference, offers a potential solution. However, prior work in dense activation spaces struggles with superposition, wherein multiple features become entangled, limiting interpretability and precise control. In contrast, sparse representations provide an untapped opportunity for more interpretable behavior modulation. In this work, we introduce sparse activation steering (SAS), a method that leverages sparse autoencoders (SAEs) to steer LLM behavior in sparse spaces. By isolating behavior-specific features through a contrastive prompt-pairing approach, we define a set of features that can selectively reinforce or suppress behaviors. Experiments on Gemma 2 LLMs show that SAS vectors enable nuanced behavioral modulation and finer-grained control. Furthermore, scaling SAEs improves monosemanticity of SAS vectors, suggesting more reliable and interpretable interventions.
