Composable Text Controls in Latent Space with ODEs
Guangyi Liu, Zeyu Feng, Yuan Gao, Zichao Yang, Xiaodan Liang, Junwei Bao, Xiaodong He, Shuguang Cui, Zhen Li, Zhiting Hu
Abstract
Real-world text applications often involve composing a wide range of text control operations, such as editing the text w.r.t. an attribute, manipulating keywords and structure, and generating new text of desired properties. Prior work typically learns/finetunes a language model (LM) to perform individual or specific subsets of operations. Recent research has studied combining operations in a plug-and-play manner, often with costly search or optimization in the complex sequence space. This paper proposes a new efficient approach for composable text operations in the compact latent space of text. The low-dimensionality and differentiability of the text latent vector allow us to develop an efficient sampler based on ordinary differential equations (ODEs) given arbitrary plug-in operators (e.g., attribute classifiers). By connecting pretrained LMs (e.g., GPT2) to the latent space through efficient adaption, we then decode the sampled vectors into desired text sequences. The flexible approach permits diverse control operators (sentiment, tense, formality, keywords, etc.) acquired using any relevant data from different domains. Experiments show that composing those operators within our approach manages to generate or edit highquality text, substantially improving over previous methods in terms of generation quality and efficiency. 1 Keyword: accommodate staff was nice and accommodating a timely manner . he is always nice and accommodating . the service is wonderful and the facility is clean and accommodating . nicely crowded , along with a great accommodating staff ! she is friendly and willing to accommodate any type of questions .
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.
13 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
- Score-based Generative Modeling in Latent Space cites Score-Based Generative Modeling through Stochastic Differential Equations
- Controllable Text Generation via Probability Density Estimation in the Latent Space cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Controllable Text Generation via Probability Density Estimation in the Latent Space cites Diffusion-LM Improves Controllable Text 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 Score-Based Generative Modeling through Stochastic Differential Equations
- Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding cites Score-based Generative Modeling in Latent Space
- Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding cites Diffusion-LM Improves Controllable Text Generation
- Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding cites Score-Based Generative Modeling through Stochastic Differential Equations
- COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability cites Diffusion-LM Improves Controllable Text Generation
- Counterfactual Generation with Identifiability Guarantees cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Cited by top-tier papers13
- COLD-Attack: Jailbreaking LLMs with Stealthiness and ControllabilityXingang Guo, Fangxu Yu, Huan Zhang, Lianhui Qin et al.ICML 2024 · 173 citations
- RoboDreamer: Learning Compositional World Models for Robot ImaginationSiyuan Zhou, Yilun Du, Jiaben Chen, Yandong Li et al.ICML 2024 · 140 citations
- Counterfactual Generation with Identifiability GuaranteesHanqi Yan, Lingjing Kong, Lin Gui, Yuejie Chi et al.NeurIPS 2023 · 16 citations
- Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-DecodingGuangyi Liu, Yu Wang, Zeyu Feng, Qiyu Wu et al.ICML 2024 · 9 citations
- Controllable Text Generation via Probability Density Estimation in the Latent SpaceYuxuan Gu, Xiaocheng Feng, Sicheng Ma, Lingyuan Zhang et al.ACL 2023 · 8 citations
Builds on24
- Diffusion-LM Improves Controllable Text GenerationXiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang et al.NeurIPS 2022 · 1,546 citations
- Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 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
- Score-based Generative Modeling in Latent SpaceArash Vahdat, Karsten Kreis, Jan KautzNeurIPS 2021 · 903 citations
- Your classifier is secretly an energy based model and you should treat it like oneWill Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud et al.ICLR 2020 · 643 citations
Related papers
- Tailor: A Soft-Prompt-Based Approach to Attribute-Based Controlled Text GenerationKexin Yang, Dayiheng Liu, Wenqiang Lei, Baosong Yang et al.ACL 2023 · 25 citations
- 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
- Non-autoregressive Text Editing with Copy-aware Latent AlignmentsYu Zhang, Yue Zhang, Leyang Cui, Guohong FuEMNLP 2023 · 2 citations
- Controlled Text Generation for Black-box Language Models via Score-based Progressive EditorSangwon Yu, Changmin Lee, Hojin Lee, Sungroh YoonACL 2024
- EdiText: Controllable Coarse-to-Fine Text Editing with Diffusion Language ModelsChe Hyun Lee, Heeseung Kim, Jiheum Yeom, Sungroh YoonACL 2025
