We are pleased to announce that the paper “GRADIEND: Learning and Editing Features in Large Language Models via Gradients” by Jonathan Drechsel and Steffen Herbold has been accepted for publication at the International Conference on Learning Representations (ICLR) 2026, one of the leading international conferences in machine learning.
2 years ago, Anthropic made waves with their Sparse Autoencoder (SAE) as a feature learning method that scaled to LLMs and was able to identify neurons associated with specific features (e.g., the Golden Gate Bridge) and even change model behavior by changing the activation of the identified neurons at activation time.
Their method is really impressive and had a strong impact. But it has one major drawback: it is like a shotgun. You have to identify thousands of possible features first (the shrapnel) and later see what these features might be (did we hit something?! Is this random?!). Moreover, this approach is computationally really expensive and you still cannot apply it to all neurons in a model at once, but have to target, e.g., specific layers.
To resolve these issues, we developed GRADIEND as a feature learner that is rather like a scalpel: You have to be really precise about what you want to learn and describe that through accurate data. But if you do that, you can identify the feature in a whole LLM by directly identifying the weights associated with this, so at the lowest granularity possible. And the nature of the method even allows you to rewrite the model weights to change the behavior with respect to the feature.
Our core idea is very simple: we simply compute the difference between a feature and its counterfactual and try to learn a feature neuron for this gradient. Sounds difficult? Just look at this example:
- Factual: Jonathan is doing his PhD. He writes about research.
- Counterfactual: Jonathan is doing his PhD. She writes about research.
We just look what the model would change to make the factual or counterfactual more likely and try to learn that.
Within our work, we successfully showed that we can learn where gender information is located, use this to predict gender just based on model weights, and rewrite models to change their gender biases. This method even outperforms other gender debiasing methods that change weights and achieves state-of-the-art when combined with projection-based debiasing. Similar experiments worked for other biases like race and religion.
Links:
- arXiv: arxiv.org/abs/2502.01406
- OpenReview: openreview.net/forum