Steered Generation via Gradient Descent on Sparse Features
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) encode a diverse range of linguistic features within their latent representations, which can be harnessed to steer their output toward specific target characteristics. In this paper, we modify the internal structure of LLMs by training sparse autoencoders to learn a sparse representation of the query embedding, allowing precise control over the model's attention distribution. We demonstrate that manipulating this sparse representation effectively transforms the output toward different stylistic and cognitive targets. Specifically, in an educational setting, we show that the cognitive complexity of LLM-generated feedback can be systematically adjusted by modifying the encoded query representation at a specific layer. To achieve this, we guide the learned sparse embedding toward the representation of samples from the desired cognitive complexity level, using gradient-based optimization in the latent space.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 37 of its 65 references that are in the map. First posted on arXiv 25 Feb 2025.
Builds on
37 of 65 references.
References · 37
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2022Toy Models of Superpositioncited by 928
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2015Sequence Level Training with Recurrent Neural Networkscited by 568
25 more
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2015Autoencoding beyond pixels using a learned similarity metriccited by 407
- 2024Jumping Ahead: Improving Reconstruction Fidelity with JumpReLU Sparse Autoencoderscited by 283
- 2020Understanding the Role of Individual Units in a Deep Neural Networkcited by 254
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
- 2013k-Sparse Autoencoderscited by 209
- 2020Compositional Explanations of Neuronscited by 172
- 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 171
- 2022The Unreliability of Explanations in Few-shot Prompting for Textual Reasoningcited by 169
- 2019Adaptively Sparse Transformerscited by 154
- 2023Inspecting and Editing Knowledge Representations in Language Modelscited by 140
- 2023Machine Learning for Synthetic Data Generation: A Reviewcited by 118
- 2020A Distributional Approach to Controlled Text Generationcited by 117
- 2021Transformer visualization via dictionary learning: contextualized embedding as a linear superposition of transformer factorscited by 106
- 2024The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performancecited by 97
- 2024Improving Steering Vectors by Targeting Sparse Autoencoder Featurescited by 86
- 2023Word Embeddings Are Steers for Language Modelscited by 70
- 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66
- 2021Prompt Waywardness: The Curious Case of Discretized Interpretation of Continuous Promptscited by 64
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 60
- 2024Controllable Text Generation for Large Language Models: A Surveycited by 55
- 2017Trainable Greedy Decoding for Neural Machine Translationcited by 23
- 2014Zero-bias autoencoders and the benefits of co-adapting featurescited by 15
- 2021Syntax Matters! Syntax-Controlled in Text Style Transfercited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.