Controllable Generation from Pre-trained Language Models via Inverse Prompting
Not on the map. Why?
Abstract (arXiv)
Large-scale pre-trained language models have demonstrated strong capabilities of generating realistic text. However, it remains challenging to control the generation results. Previous approaches such as prompting are far from sufficient, which limits the usage of language models. To tackle this challenge, we propose an innovative method, inverse prompting, to better control text generation. The core idea of inverse prompting is to use generated text to inversely predict the prompt during beam search, which enhances the relevance between the prompt and the generated text and provides better controllability. Empirically, we pre-train a large-scale Chinese language model to perform a systematic study using human evaluation on the tasks of open-domain poem generation and open-domain long-form question answering. Our results show that our proposed method substantially outperforms the baselines and that our generation quality is close to human performance on some of the tasks. Narrators can try our poem generation demo at https://pretrain.aminer.cn/apps/poetry.html, while our QA demo can be found at https://pretrain.aminer.cn/app/qa. For researchers, the code is provided in https://github.com/THUDM/InversePrompting.
Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). Builds on 16 of its 33 references that are in the map. First posted on arXiv 19 Mar 2021.
Builds on
16 of 33 references.
References · 16
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2016Dual Learning for Machine Translationcited by 146
4 more
- 2017CycleGAN, a Master of Steganographycited by 63
- 2020CPM: A Large-scale Generative Chinese Pre-trained Language Modelcited by 60
- 2020As Good as New. How to Successfully Recycle English GPT-2 to Make Models for Other Languagescited by 54
- 2020MixPoet: Diverse Poetry Generation via Learning Controllable Mixed Latent Spacecited by 17
Built on by
Citing papers per year: 2021: 3; 2022: 13; 2023: 4; 2024: 8; 2025: 1.
29 papers.
Sort:
By area:
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
- 2024Decoding-Time Language Model Alignment with Multiple Objectivescited by 90
- 2022DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generationcited by 30
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generationcited by 29
- 2022Learning to Transfer Prompts for Text Generationcited by 22
- 2021RetrievalSum: A Retrieval Enhanced Framework for Abstractive Summarizationcited by 19
- 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentationcited by 16
- 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentationcited by 15
17 more
- 2022Automatic Song Translation for Tonal Languagescited by 12
- 2022Context-Tuning: Learning Contextualized Prompts for Natural Language Generationcited by 11
- 2024SWAG: Storytelling With Action Guidancecited by 8
- 2024MentalAgora: A Gateway to Advanced Personalized Care in Mental Health through Multi-Agent Debating and Attribute Controlcited by 8
- 2023Translate the Beauty in Songs: Jointly Learning to Align Melody and Translate Lyricscited by 6
- 2024Towards Better Question Generation in QA-based Event Extractioncited by 6
- 2022Inverse is Better! Fast and Accurate Prompt for Few-shot Slot Taggingcited by 5
- 2024Enhancing Court View Generation with Knowledge Injection and Guidancecited by 5
- 2022ElitePLM: An Empirical Study on General Language Ability Evaluation of Pretrained Language Modelscited by 4
- 2022Multi-Modal Experience Inspired AI Creationcited by 3
- 2023Text-Only Training for Visual Storytellingcited by 3
- 2023Controllable Text Generation with Residual Memory Transformercited by 3
- 2022Lexical Complexity Controlled Sentence Generationcited by 2
- 2022A Self-Paced Mixed Distillation Method for Non-Autoregressive Generationcited by 1
- 2024LoFTI: Localization and Factuality Transfer to Indian Localescited by 1
- 2025Contrastive Prompt Clustering for Weakly Supervised Semantic Segmentationcited by 1
- 2022Efficient and Training-Free Control of Language Generationcited by 0
- 2025Contrastive Prompt Clustering for Weakly Supervised Semantic Segmentation23 Aug 2025
- 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentation29 Dec 2024
- 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentation18 Dec 2024
- 2024LoFTI: Localization and Factuality Transfer to Indian Locales16 Jul 2024
- 2024MentalAgora: A Gateway to Advanced Personalized Care in Mental Health through Multi-Agent Debating and Attribute Control3 Jul 2024
- 2024Decoding-Time Language Model Alignment with Multiple Objectives27 Jun 2024
- 2024Towards Better Question Generation in QA-based Event Extraction17 May 2024
- 2024Enhancing Court View Generation with Knowledge Injection and Guidance7 Mar 2024
- 2024SWAG: Storytelling With Action Guidance5 Feb 2024
- 2023Controllable Text Generation with Residual Memory Transformer28 Sep 2023
- 2023Text-Only Training for Visual Storytelling17 Aug 2023
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generation6 Jul 2023
17 more
- 2023Translate the Beauty in Songs: Jointly Learning to Align Melody and Translate Lyrics28 Mar 2023
- 2022Lexical Complexity Controlled Sentence Generation26 Nov 2022
- 2022DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generation18 Oct 2022
- 2022Multi-Modal Experience Inspired AI Creation2 Sep 2022
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learning25 May 2022
- 2022A Self-Paced Mixed Distillation Method for Non-Autoregressive Generation23 May 2022
- 2022Efficient and Training-Free Control of Language Generation12 May 2022
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning11 May 2022
- 2022Learning to Transfer Prompts for Text Generation3 May 2022
- 2022ElitePLM: An Empirical Study on General Language Ability Evaluation of Pretrained Language Models3 May 2022
- 2022Inverse is Better! Fast and Accurate Prompt for Few-shot Slot Tagging2 Apr 2022
- 2022Automatic Song Translation for Tonal Languages25 Mar 2022
- 2022Context-Tuning: Learning Contextualized Prompts for Natural Language Generation21 Jan 2022
- 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Models14 Jan 2022
- 2021RetrievalSum: A Retrieval Enhanced Framework for Abstractive Summarization16 Sep 2021
- 2021Pre-Trained Models: Past, Present and Future14 Jun 2021
- 2021CogView: Mastering Text-to-Image Generation via Transformers26 May 2021
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
- 2022DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generationcited by 30
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generationcited by 29
- 2022Learning to Transfer Prompts for Text Generationcited by 22
- 2021RetrievalSum: A Retrieval Enhanced Framework for Abstractive Summarizationcited by 19
- 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentationcited by 16
- 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentationcited by 15
- 2022Automatic Song Translation for Tonal Languagescited by 12
12 most cited of 27 All 27 (JSON)
- 2025Contrastive Prompt Clustering for Weakly Supervised Semantic Segmentation23 Aug 2025
- 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentation29 Dec 2024
- 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentation18 Dec 2024
- 2024LoFTI: Localization and Factuality Transfer to Indian Locales16 Jul 2024
- 2024Towards Better Question Generation in QA-based Event Extraction17 May 2024
- 2024Enhancing Court View Generation with Knowledge Injection and Guidance7 Mar 2024
- 2024SWAG: Storytelling With Action Guidance5 Feb 2024
- 2023Controllable Text Generation with Residual Memory Transformer28 Sep 2023
- 2023Text-Only Training for Visual Storytelling17 Aug 2023
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generation6 Jul 2023
- 2023Translate the Beauty in Songs: Jointly Learning to Align Melody and Translate Lyrics28 Mar 2023
- 2022Lexical Complexity Controlled Sentence Generation26 Nov 2022
12 newest of 27 All 27 (JSON)