Abstract
Steering Large Language Models (LLMs) using linear concept vectors often fails because these vectors capture dataset noise alongside the intended concept. We introduce Sparse Autoencoder-Denoised Concept Vectors (SDCV), a method that utilizes Sparse Autoencoders (SAEs) to isolate and amplify concept-specific signals while filtering out irrelevant features. Our evaluation across complex behaviors like sycophancy and political bias demonstrates a significant boost in steering success rates—between 4% and 16%—without degrading model output quality.
Introduction
"Model steering" allows researchers to nudge an LLM’s behavior at inference time by adding a concept vector—a specific direction in the model's internal activation space—to its hidden states. Traditionally, these vectors are derived from contrastive datasets (e.g., "sycophantic" vs. "non-sycophantic" prompts). However, these datasets are inherently noisy; a sycophantic prompt might be longer or use specific punctuation that is irrelevant to the core concept. Standard methods like linear probing often bake this noise into the steering vector, leading to brittle performance.
Methodology
The SDCV framework addresses this by using Sparse Autoencoders (SAEs) as a high-resolution filter to disentangle signal from noise. The process involves five key steps:
- Activation Extraction: Hidden representations are extracted from a target LLM layer for both positive and negative concept samples.
- SAE Decomposition: These dense representations are passed through a pre-trained SAE, decomposing them into thousands of sparse, interpretable "latents."
- Influential Latent Selection: An "influential score" is calculated for each latent to identify those that best differentiate between positive and negative samples while maintaining low variance.
- Denoising & Reconstruction: The activations of the top-$k$ most influential latents are scaled up, while others are treated as noise. The SAE decoder then reconstructs a "denoised" hidden representation.
- Vector Derivation: Steering vectors are calculated using standard methods (e.g., difference-in-mean) applied to these denoised representations.
Experimental Setup
We evaluated SDCV on Llama-3.1-8B and Gemma-2-2B across six diverse concepts, including high-level behaviors (Sycophancy, Corrigibility, Myopic Reward) and public sentiment datasets (Amazon reviews, Political speech, Twitter sentiments). Success was measured using 50 open-ended questions per concept, with results adjudicated by a GPT-4o-mini model.
Key Results
SDCV consistently outperformed baseline steering methods across all tested concepts. For Llama-3.1-8B, the success rate (SR) improved by 4% to 16%. Notably, denoised "difference-in-mean" vectors generally outperformed denoised "linear probing" vectors, likely due to the inherent instability and overfitting tendencies of logistic regression on noisy features.
Crucially, the "Topic Relevance" scores remained stable, indicating that the denoising process does not interfere with the model's ability to generate coherent and contextually appropriate responses. Counterfactual experiments confirmed that amplifying "noisy" latents (those not in the top-$k$) led to a sharp drop in performance, validating the efficacy of the influence score.
Discussion and Future Work
While SDCV provides a robust path forward for model steering, it currently depends on the availability of high-quality, pre-trained SAEs for specific model layers. Furthermore, finding the optimal number of latents ($k$) and scaling factors ($m$) requires empirical tuning. Future research may explore automated hyperparameter optimization and the application of denoising across multiple layers simultaneously to further enhance steering precision.
Summary updated