Gradients for Interventions and Activation Values for Detection: Targeted Feature Learning in Language Models
Abstract
Model-internal features can be studied through both their ability to identify a specified concept and their causal effect when manipulated, e.g., through steering or weight editing. A prominent approach to feature learning is Sparse Autoencoders (SAEs), which learn broad feature dictionaries whose relation to particular concepts is typically identified post hoc. However, many interpretability questions are instead hypothesis-driven and concern a concept specified in advance. We study this setting as targeted feature learning, where a single feature is constructed for such a predefined concept. We present a controlled comparison across three model signals (activation values, activation gradients, and parameter gradients) and two estimators (contrastive mean and a learned one-dimensional encoder-decoder), yielding six targeted methods, with CAA and GRADIEND as existing instances and four new methods covering the remaining combinations. We compare these methods against pretrained SAEs across 15 tasks and ten language models, evaluating both detection and causal intervention. Across models, the strongest detection performance is achieved by contrastive activation value methods, whereas the strongest intervention performance is achieved by gradient signals, most strongly with a contrastive mean. Notably, within the contrastive mean family, activation gradients substantially improve intervention over activation values without requiring parameter space interventions. Overall, our results show that targeted feature quality depends jointly on the model signal and estimator, with detection and intervention capturing complementary properties.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
Related papers
Evaluating Large Language Models on conversational African American English: Feature classification and next-turn generation
Shared title terminologycs.CLRomeo De Timmerman, Thomas Demeester, Els Lefever
NLPG: Natural-Language Policy Gradients for Self-Evolving Language Agents
Shared title terminologycs.CLXu Liu, WenZhang Wei, Jun Cao et al.
The Detectability Gap: Hidden Heterogeneity in Hallucination Detection Across Language Models
Shared title terminologycs.CLPranav Darshan, Pranav A, Sravan Karthick T et al.
LocUS: Head Selection and Subspace Projection for Targeted Activation Steering
Shared title terminologycs.CLIrene Tallini, Lorenzo Basile, Valentino Maiorca et al.
Estimating and Orthogonalizing Unknown Pre-training Gradients for Continual Fine-tuning of Large Language Models
Shared title terminologycs.CLBing Wang, Changchun Li, Xin-Qiang Cai et al.
Disciplined Anthropomorphism: How to Extend Cognitive Language to Artificial Intelligence
Shared title terminologycs.CLMatthieu Queloz