Towards Isolated Interventions via Almost Orthogonal Features in Language Models
https://github.com/mrtzmllr/sae-icm.Organizations: Faculty of Computer Science and Mathematics University of Passau Passau, Germany
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 three 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-based methods. Overall, our results show that targeted feature quality depends jointly on the model signal and estimator, with detection and intervention capturing complementary properties.
| Signal | Contrastive mean | Interpretable ENcoder Decoder (IEND) |
|---|---|---|
| Activation value | Contrastive Activation Addition (CAA) ( Rimsky et al., 2024 ) | ACTivation IEND (ACTIEND) † (new) |
| Activation gradient | Contrastive Activation Gradient Addition (CAGA) (new) | Activation Gradient IEND (AGIEND) (new) |
| Parameter gradient | Contrastive Gradient Addition (CGA) (new) | GRADient IEND (GRADIEND) * ( Drechsel and Herbold, 2026a ) |
| Family | Eval. | Tasks (classes) |
|---|---|---|
| Semantic | / | Gender (male/female); Emotion (positive/negative); Race (Asian/Black/White); Religion (Christian/Muslim/Jewish) |
| Factual | / | RavelCont (Asia/Europe/Africa); RavelCntry (United States/China/Russia); RavelLang (English/Portuguese/Spanish) |
| Language | / | LangID (English/French/German) |
| Grammatical | / | PronNum (singular/plural); PronPers (first/second/third) |
| Algorithmic | IOI (IO/subject); KeyValue (value/other value); Induction (match/distractor); Repetition (yes/no); FuncComp (result/distractor) |
Supplementary material from the paper’s appendix.
| Task | Feature classes | Reg. | Train/val/test | Source and Hugging Face ID |
|---|---|---|---|---|
| Gender | male (M), female (F) | P | 73,860/2,110/8,440 | aieng-lab/genter-ajibawa-name-filled ( Drechsel and Herbold, 2026a ) subset n1 |
| Emotion | positive, negative | P | 600/200/200 | aieng-lab/en-sentiment-nrc ( Drechsel and Herbold, 2026b ) vocabulary-held-out split |
| Race | Asian, Black, White | P | 33,602/9,603/4,799 | aieng-lab/gradiend_race_data ( Drechsel and Herbold, 2026a ) |
| Religion | Christian, Muslim, Jewish | P | 20,048/5,730/2,863 | aieng-lab/gradiend_religion_data ( Drechsel and Herbold, 2026a ) |
| RavelCont | Asia, Europe, Africa | P | 1,344/168/168 | Source: hij/ravel ( Huang et al., 2024 ) ; Processed aieng-lab/gradiend-ravel-continent (new) |
| RavelCntry | United States, China, Russia | P | 408/51/51 | Source: hij/ravel ( Huang et al., 2024 ) ; Processed aieng-lab/gradiend-ravel-country (new) |
| Task | Masked context | Target / class |
|---|---|---|
| Gender | Carl looked around the room, noticing tired expressions and disheartened faces. [MASK] realized then that something needed to change. | he / M |
| Emotion | I am so unbelievably [MASK] for tomorrow. | excited / positive |
| Race | Lutron alleged that products were made in Mexico and [MASK] and then imported into the United States. | China / Asian |
| Religion | The inscription should, from a [MASK] point of view, pinpoint where Jumne was located. | Christian / Christian |
| RavelCont | Toronto is a city in the continent of North America. Pilibhit is a city in the continent of [MASK] . | Asia / Asia |
| RavelCntry | St. Petersburg is in Russia. Johnstown is in [MASK] . | United States / United States |
| Task | Size | Source and Hugging Face ID |
|---|---|---|
| Gender , Race , Religion , IOI , KeyValue , Induction , Repetition , FuncComp | 4,593,588 | aieng-lab/biasneutral-ajibawa ( Drechsel and Herbold, 2026a ) |
| Emotion | 1,000 | aieng-lab/en-sentiment-nrc-neutral ( Drechsel and Herbold, 2026b ) |
| PronNum , PronPers | 10,000 | aieng-lab/en-pronoun-neutral ( Drechsel and Herbold, 2026b ) |
| RavelCont | 5,000 | Source: hij/ravel ; Processed: aieng-lab/gradiend-ravel-continent-neutral (new) |
| RavelCntry | 5,000 | Source: hij/ravel ; Processed: aieng-lab/gradiend-ravel-country-neutral (new) |
| RavelLang | 5,000 | Source: hij/ravel ; Processed: aieng-lab/gradiend-ravel-language-neutral (new) |
| Model | HF checkpoint | SAELens release | SAE ID / hook |
|---|---|---|---|
| Pythia-70M | EleutherAI/pythia-70m-deduped | pythia-70m-deduped-res-sm | blocks.{L}.hook_resid_post |
| GPT-2 | gpt2 | gpt2-small-resid-post-v5-32k | blocks.{L}.hook_resid_post |
| Llama-3.1-8B | meta-llama/Llama-3.1-8B | llama_scope_lxr_32x | l{L}r_32x |
| Setting | Value |
|---|---|
| IEND optimization | |
| GRADIEND learning rate | ( GPT-2 ), ( Pythia-70M ), ( Llama-3.1-8B ) |
| ACTIEND encoder learning rate | ( Pythia-70M , GPT-2 ), ( Llama-3.1-8B ) |
| ACTIEND decoder learning rate | |
| AGIEND learning rate | ( Pythia-70M , GPT-2 , Llama-3.1-8B ) |
| Training steps | 500 ( GRADIEND , AGIEND ); 100 ( ACTIEND ) |
| Selected | Detection | Intervention | |||
|---|---|---|---|---|---|
| Method | Single layer | Win | Mean | Win | Mean |
| SAE | 96.9% | 49.0% | 27.3% | ||
| CAA | 87.9% | 82.5% | 45.0% | ||
| CGA | 95.4% | 85.0% | 34.8% | ||
| CAGA | 94.2% | 86.3% | 38.3% | ||
| Overall | 93.0% | 80.4% | 38.1% | ||
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
See all 781 papershttps://github.com/mrtzmllr/sae-icm.