Controllable Text Generation via Probability Density Estimation in the Latent Space
Yuxuan Gu, Xiaocheng Feng, Sicheng Ma, Lingyuan Zhang, Heng Gong, Weihong Zhong, Bing Qin
Abstract
Previous work on controllable text generation has explored the idea of control from the latent space, such as optimizing a representation with attribute-specific classifiers or sampling one from relevant discrete samples. However, they cannot effectively model a complex space with diverse attributes, high dimensionality, and asymmetric structure, leaving subsequent controls unsatisfying. In this work, we propose a novel control framework using probability density estimation in the latent space. Our method utilizes an invertible transformation function, the Normalizing Flow, that maps the complex distributions in the latent space to simple Gaussian distributions in the prior space. Thus, we can perform sophisticated and flexible controls in the prior space and feed the control effects back into the latent space owing to the bijection property of invertible transformations. Experiments on single-attribute and multi-attribute control reveal that our method outperforms several strong baselines on attribute relevance and text quality, achieving a new SOTA. Further analysis of control strength adjustment demonstrates the flexibility of our control strategy 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.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- QUARK: Controllable Text Generation with Reinforced Unlearning cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- FreeCtrl: Constructing Control Centers with Feedforward Layers for Learning-Free Controllable Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- FreeCtrl: Constructing Control Centers with Feedforward Layers for Learning-Free Controllable Text Generation cites GeDi: Generative Discriminator Guided Sequence Generation
- C³TG: Conflict-aware, Composite, and Collaborative Controlled Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- C³TG: Conflict-aware, Composite, and Collaborative Controlled Text Generation cites Multi-Aspect Controllable Text Generation with Disentangled Counterfactual Augmentation
- C³TG: Conflict-aware, Composite, and Collaborative Controlled Text Generation cites GeDi: Generative Discriminator Guided Sequence Generation
- Diffusion-LM Improves Controllable Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Diffusion-LM Improves Controllable Text Generation cites Denoising Diffusion Probabilistic Models
- Multi-Aspect Controllable Text Generation with Disentangled Counterfactual Augmentation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Multi-Aspect Controllable Text Generation with Disentangled Counterfactual Augmentation cites GeDi: Generative Discriminator Guided Sequence Generation
- GeDi: Generative Discriminator Guided Sequence Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- MIL-Decoding: Detoxifying Language Models at Token-Level via Multiple Instance Learning cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Cited by top-tier papers6
- Multi-Aspect Controllable Text Generation with Disentangled Counterfactual AugmentationYi Liu, Xiangyu Liu, Xiangrong Zhu, Wei HuACL 2024 · 6 citations
- FreeCtrl: Constructing Control Centers with Feedforward Layers for Learning-Free Controllable Text GenerationZijian Feng, Hanzhang Zhou, Kezhi Mao, Zixiao ZhuACL 2024 · 3 citations
- MIL-Decoding: Detoxifying Language Models at Token-Level via Multiple Instance LearningXu Zhang, Xiaojun WanACL 2023 · 3 citations
- Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic StudyYingji Zhang, Marco Valentino, Danilo S. Carvalho, André FreitasAAAI 2026 · 1 citation
- C³TG: Conflict-aware, Composite, and Collaborative Controlled Text GenerationYu Li, Zhe Yang, Yi Huang, Xin Liu et al.AAAI 2026
Builds on21
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion-LM Improves Controllable Text GenerationXiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang et al.NeurIPS 2022 · 1,546 citations
- 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
- QUARK: Controllable Text Generation with Reinforced UnlearningXiming Lu, Sean Welleck, Jack Hessel, Liwei Jiang et al.NeurIPS 2022 · 290 citations
- GeDi: Generative Discriminator Guided Sequence GenerationBen Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar et al.EMNLP Findings 2021 · 219 citations
Related papers
- Air-Decoding: Attribute Distribution Reconstruction for Decoding-Time Controllable Text GenerationTianqi Zhong, Quan Wang, Jingxuan Han, Yongdong Zhang et al.EMNLP 2023 · 7 citations
- A Causal Lens for Controllable Text GenerationZhiting Hu, Li Erran LiNeurIPS 2021 · 77 citations
- Learning Disentangled Semantic Spaces of Explanations via Invertible Neural NetworksYingji Zhang, Danilo S. Carvalho, André FreitasACL 2024
- MacLaSa: Multi-Aspect Controllable Text Generation via Efficient Sampling from Compact Latent SpaceHanxing Ding, Liang Pang, Zihao Wei, Huawei Shen et al.EMNLP Findings 2023 · 5 citations
- TARA: Token-level Attribute Relation Adaptation for Multi-Attribute Controllable Text GenerationYilin Cao, Jiahao Zhao, Ruike Zhang, Hanyi Zou et al.EMNLP Findings 2024
