Lune

ACL2024Top-tier venue

FreeCtrl: Constructing Control Centers with Feedforward Layers for Learning-Free Controllable Text Generation

Zijian Feng, Hanzhang Zhou, Kezhi Mao, Zixiao Zhu

Abstract

Controllable text generation (CTG) seeks to craft texts adhering to specific attributes, traditionally employing learning-based techniques such as training, fine-tuning, or prefix-tuning with attribute-specific datasets. These approaches, while effective, demand extensive computational and data resources. In contrast, some proposed learning-free alternatives circumvent learning but often yield inferior results, exemplifying the fundamental machine learning trade-off between computational expense and model efficacy. To overcome these limitations, we propose FreeCtrl, a learningfree approach that dynamically adjusts the weights of selected feedforward neural network (FFN) vectors to steer the outputs of large language models (LLMs). FreeCtrl hinges on the principle that the weights of different FFN vectors influence the likelihood of different tokens appearing in the output. By identifying and adaptively adjusting the weights of attributerelated FFN vectors, FreeCtrl can control the output likelihood of attribute keywords in the generated content. Extensive experiments on single-and multi-attribute control reveal that the learning-free FreeCtrl outperforms other learning-free and learning-based methods, successfully resolving the dilemma between learning costs and model performance 1 .

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.

4 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

  • A Distributional Approach to Controlled Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Causal-Steer: Disentangled Continuous Style Control without Parallel Corpora cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • GeDi: Generative Discriminator Guided Sequence Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • GeDi: Generative Discriminator Guided Sequence Generation cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • From Chaos to Cure: A Prefix Heuristics Guided Model-Agnostic Adaptive Detoxification Framework cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • From Chaos to Cure: A Prefix Heuristics Guided Model-Agnostic Adaptive Detoxification Framework cites GeDi: Generative Discriminator Guided Sequence Generation
  • From Chaos to Cure: A Prefix Heuristics Guided Model-Agnostic Adaptive Detoxification Framework cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Don't Let It Fade: Preserving Edits in Diffusion Language Models via Token Timestep Allocation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Don't Let It Fade: Preserving Edits in Diffusion Language Models via Token Timestep Allocation cites The Power of Scale for Parameter-Efficient Prompt Tuning
  • Don't Let It Fade: Preserving Edits in Diffusion Language Models via Token Timestep Allocation cites GeDi: Generative Discriminator Guided Sequence Generation
  • Don't Let It Fade: Preserving Edits in Diffusion Language Models via Token Timestep Allocation cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Don't Let It Fade: Preserving Edits in Diffusion Language Models via Token Timestep AllocationWoojin Kim, Jaeyoung DoNeurIPS 2025 · 2 citations
  2. Causal-Steer: Disentangled Continuous Style Control without Parallel CorporaQingsong Wang, Chang Yao, Jingyuan ChenICLR 2026
  3. From Chaos to Cure: A Prefix Heuristics Guided Model-Agnostic Adaptive Detoxification FrameworkYuhu Shang, Xiang Cheng, Yimeng Ren, Huijia Wu et al.AAAI 2026
  4. Heads up! Large Language Models Can Perform Tasks Without Your Instruction via Selective Attention Head MaskingSenyu Han, Hongchuan Zeng, Kai Yu, Lu ChenICML 2025

Builds on19

  1. 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
  2. RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi et al.EMNLP Findings 2020 · 692 citations
  3. GeDi: Generative Discriminator Guided Sequence GenerationBen Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar et al.EMNLP Findings 2021 · 219 citations
  4. A Distributional Approach to Controlled Text GenerationMuhammad Khalifa, Hady Elsahar, Marc DymetmanICLR 2021 · 135 citations
  5. The Power of Scale for Parameter-Efficient Prompt TuningBrian Lester, Rami Al-Rfou, Noah ConstantEMNLP 2021 · 94 citations

Related papers

  1. DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text GenerationHanqing Zhang, Dawei SongEMNLP 2022 · 21 citations
  2. Air-Decoding: Attribute Distribution Reconstruction for Decoding-Time Controllable Text GenerationTianqi Zhong, Quan Wang, Jingxuan Han, Yongdong Zhang et al.EMNLP 2023 · 7 citations
  3. RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation FrameworkYifan Wang, Vera DembergEMNLP 2024 · 2 citations
  4. Controllable Natural Language Generation with Contrastive PrefixesJing Qian, Li Dong, Yelong Shen, Furu Wei et al.ACL Findings 2022 · 74 citations
  5. TARA: Token-level Attribute Relation Adaptation for Multi-Attribute Controllable Text GenerationYilin Cao, Jiahao Zhao, Ruike Zhang, Hanyi Zou et al.EMNLP Findings 2024
Dusk over the sea between two cliffs drawn in fine vertical lines