mlsanityData to 7 Oct 2026

Self-conditioning pre-trained language models

arXiv 2110.02802 ↗First posted 30 Sep 2021cs.CLcited by 16

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  5. 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
  6. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  7. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
  8. 2017Network Dissection: Quantifying Interpretability of Deep Visual Representationscited by 703
  9. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  10. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
  11. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
  12. 2017Toward Controlled Generation of Textcited by 271
7 more
  1. 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 183
  2. 2017Learning to Generate Reviews and Discovering Sentimentcited by 147
  3. 2018Net2Vec: Quantifying and Explaining how Concepts are Encoded by Filters in Deep Neural Networkscited by 128
  4. 2020Aspect-Controlled Neural Argument Generationcited by 43
  5. 2019A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representationscited by 37
  6. 2018Adversarial Decomposition of Text Representationcited by 18
  7. 2020Technical Report: Auxiliary Tuning and its Application to Conditional Text Generationcited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 2; 2024: 5; 2025: 7; 2026: 1.

16 papers.

Sort:

By area: