Self-conditioning pre-trained language models
Not on the map. Why?
Abstract (arXiv)
In this paper we aim to investigate the mechanisms that guide text generation with pre-trained Transformer-based Language Models (TLMs). Grounded on the Product of Experts formulation by Hinton (1999), we describe a generative mechanism that exploits expert units which naturally exist in TLMs. Such units are responsible for detecting concepts in the input and conditioning text generation on such concepts. We describe how to identify expert units and how to activate them during inference in order to induce any desired concept in the generated output. We find that the activation of a surprisingly small amount of units is sufficient to steer text generation (as little as 3 units in a model with 345M parameters). While the objective of this work is to learn more about how TLMs work, we show that our method is effective for conditioning without fine-tuning or using extra parameters, even on fine-grained homograph concepts. Additionally, we show that our method can be used to correct gender bias present in the output of TLMs and achieves gender parity for all evaluated contexts. We compare our method with FUDGE and PPLM-BoW, and show that our approach is able to achieve gender parity at a lower perplexity. The proposed method is accessible to a wide audience thanks to its simplicity and minimal compute needs. The findings in this paper are a step forward in understanding the generative mechanisms of TLMs.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 19 of its 32 references that are in the map. First posted on arXiv 30 Sep 2021.
Builds on
19 of 32 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2017Network Dissection: Quantifying Interpretability of Deep Visual Representationscited by 703
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
- 2017Toward Controlled Generation of Textcited by 271
7 more
- 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 183
- 2017Learning to Generate Reviews and Discovering Sentimentcited by 147
- 2018Net2Vec: Quantifying and Explaining how Concepts are Encoded by Filters in Deep Neural Networkscited by 128
- 2020Aspect-Controlled Neural Argument Generationcited by 43
- 2019A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representationscited by 37
- 2018Adversarial Decomposition of Text Representationcited by 18
- 2020Technical Report: Auxiliary Tuning and its Application to Conditional Text Generationcited by 17
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 5; 2025: 7; 2026: 1.
16 papers.
Sort:
By area:
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Controlling Language and Diffusion Models by Transporting Activationscited by 59
- 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Modelscited by 31
- 2024Sparsing Law: Towards Large Language Models with Greater Activation Sparsitycited by 22
- 2024PaCE: Parsimonious Concept Engineering for Large Language Modelscited by 19
- 2025LinEAS: End-to-end Learning of Activation Steering with a Distributional Losscited by 12
- 2023Interpreting CLIP: Insights on the Robustness to ImageNet Distribution Shiftscited by 6
- 2025Neurons Speak in Ranges: Breaking Free from Discrete Neuronal Attributioncited by 5
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2025Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigationcited by 3
4 more
- 2025Graph Your Own Promptcited by 2
- 2025SGM: Safety Glasses for Multimodal Large Language Models via Neuron-Level Detoxificationcited by 1
- 2025ExpertLens: Activation steering features are highly interpretablecited by 0
- 2026Generation-Step-Aware Framework for Cross-Modal Representation and Control in Multilingual Speech-Text Modelscited by 0
- 2026Generation-Step-Aware Framework for Cross-Modal Representation and Control in Multilingual Speech-Text Models24 Jan 2026
- 2025SGM: Safety Glasses for Multimodal Large Language Models via Neuron-Level Detoxification17 Dec 2025
- 2025Graph Your Own Prompt27 Sep 2025
- 2025Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigation20 Sep 2025
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attention7 Jun 2025
- 2025LinEAS: End-to-end Learning of Activation Steering with a Distributional Loss11 Mar 2025
- 2025ExpertLens: Activation steering features are highly interpretable20 Feb 2025
- 2025Neurons Speak in Ranges: Breaking Free from Discrete Neuronal Attribution4 Feb 2025
- 2024Sparsing Law: Towards Large Language Models with Greater Activation Sparsity4 Nov 2024
- 2024Controlling Language and Diffusion Models by Transporting Activations30 Oct 2024
- 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models2 Jul 2024
- 2024PaCE: Parsimonious Concept Engineering for Large Language Models6 Jun 2024
4 more
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2023Interpreting CLIP: Insights on the Robustness to ImageNet Distribution Shifts19 Oct 2023
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretability28 Apr 2023
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers12 Oct 2022
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Modelscited by 31
- 2024Sparsing Law: Towards Large Language Models with Greater Activation Sparsitycited by 22
- 2024PaCE: Parsimonious Concept Engineering for Large Language Modelscited by 19
- 2025LinEAS: End-to-end Learning of Activation Steering with a Distributional Losscited by 12
- 2023Interpreting CLIP: Insights on the Robustness to ImageNet Distribution Shiftscited by 6
- 2025Neurons Speak in Ranges: Breaking Free from Discrete Neuronal Attributioncited by 5
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2025Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigationcited by 3
- 2025Graph Your Own Promptcited by 2
12 most cited of 14 All 14 (JSON)
- 2026Generation-Step-Aware Framework for Cross-Modal Representation and Control in Multilingual Speech-Text Models24 Jan 2026
- 2025Graph Your Own Prompt27 Sep 2025
- 2025Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigation20 Sep 2025
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attention7 Jun 2025
- 2025LinEAS: End-to-end Learning of Activation Steering with a Distributional Loss11 Mar 2025
- 2025ExpertLens: Activation steering features are highly interpretable20 Feb 2025
- 2025Neurons Speak in Ranges: Breaking Free from Discrete Neuronal Attribution4 Feb 2025
- 2024Sparsing Law: Towards Large Language Models with Greater Activation Sparsity4 Nov 2024
- 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models2 Jul 2024
- 2024PaCE: Parsimonious Concept Engineering for Large Language Models6 Jun 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2023Interpreting CLIP: Insights on the Robustness to ImageNet Distribution Shifts19 Oct 2023
12 newest of 14 All 14 (JSON)