Lune

ICML2022Top-tier venue

Self-conditioning Pre-Trained Language Models

Xavier Suau Cuadros, Luca Zappella, Nicholas Apostoloff

Abstract

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 (Yang & Klein, 2021) and PPLM-BoW (Dathathri et al., 2020), 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LinEAS: End-to-end Learning of Activation Steering with a Distributional Loss cites Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models
  • PaCE: Parsimonious Concept Engineering for Large Language Models cites The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers
  • Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim et al.NeurIPS 2023 · 861 citations
  2. Whispering Experts: Neural Interventions for Toxicity Mitigation in Language ModelsXavier Suau, Pieter Delobelle, Katherine Metcalf, Armand Joulin et al.ICML 2024 · 31 citations
  3. PaCE: Parsimonious Concept Engineering for Large Language ModelsJinqi Luo, Tianjiao Ding, Kwan Ho Ryan Chan, Darshan Thaker et al.NeurIPS 2024 · 20 citations
  4. LinEAS: End-to-end Learning of Activation Steering with a Distributional LossPau Rodríguez, Michal Klein, Eleonora Gualdoni, Valentino Maiorca et al.NeurIPS 2025 · 15 citations
  5. The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in TransformersZonglin Li, Chong You, Srinadh Bhojanapalli, Daliang Li et al.ICLR 2023 · 10 citations

Builds on2

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations

Related papers

  1. Auto-Search and Refinement: An Automated Framework for Gender Bias Mitigation in Large Language ModelsYue Xu, Chengyan Fu, Li Xiong, Sibei Yang et al.NeurIPS 2025 · 3 citations
  2. Gender-tuning: Empowering Fine-tuning for Debiasing Pre-trained Language ModelsSomayeh Ghanbarzadeh, Yan Huang, Hamid Palangi, Radames Cruz Moreno et al.ACL Findings 2023 · 17 citations
  3. CoCon: A Self-Supervised Approach for Controlled Text GenerationAlvin Chan, Yew-Soon Ong, Bill Pung, Aston Zhang et al.ICLR 2021 · 16 citations
  4. How sensitive are translation systems to extra contexts? Mitigating gender bias in Neural Machine Translation models through relevant contextsShanya Sharma, Manan Dey, Koustuv SinhaEMNLP Findings 2022 · 7 citations
  5. BERTScore is Unfair: On Social Bias in Language Model-Based Metrics for Text GenerationTianxiang Sun, Junliang He, Xipeng Qiu, Xuanjing HuangEMNLP 2022 · 22 citations
Dusk over the sea between two cliffs drawn in fine vertical lines