Show Me How To Revise: Improving Lexically Constrained Sentence Generation with XLNet
Not on the map. Why?
Abstract (arXiv)
Lexically constrained sentence generation allows the incorporation of prior knowledge such as lexical constraints into the output. This technique has been applied to machine translation, and dialog response generation. Previous work usually used Markov Chain Monte Carlo (MCMC) sampling to generate lexically constrained sentences, but they randomly determined the position to be edited and the action to be taken, resulting in many invalid refinements. To overcome this challenge, we used a classifier to instruct the MCMC-based models where and how to refine the candidate sentences. First, we developed two methods to create synthetic data on which the pre-trained model is fine-tuned to obtain a reliable classifier. Next, we proposed a two-step approach, "Predict and Revise", for constrained sentence generation. During the predict step, we leveraged the classifier to compute the learned prior for the candidate sentence. During the revise step, we resorted to MCMC sampling to revise the candidate sentence by conducting a sampled action at a sampled position drawn from the learned prior. We compared our proposed models with many strong baselines on two tasks, generating sentences with lexical constraints and text infilling. Experimental results have demonstrated that our proposed model performs much better than the previous work in terms of sentence fluency and diversity. Our code and pre-trained models are available at https://github.com/NLPCode/MCMCXLNet.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 24 of its 38 references that are in the map. First posted on arXiv 13 Sep 2021.
Builds on
24 of 38 references.
References · 24
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2019MASS: Masked Sequence to Sequence Pre-training for Language Generationcited by 347
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
12 more
- 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 185
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 182
- 2018Generating Informative and Diverse Conversational Responses via Adversarial Information Maximizationcited by 116
- 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
- 2016Sequence to Backward and Forward Sequences: A Content-Introducing Approach to Generative Short-Text Conversationcited by 35
- 2019Text Infillingcited by 32
- 2016Image Captioning with Deep Bidirectional LSTMscited by 21
- 2015Bidirectional Recurrent Neural Networks as Generative Models - Reconstructing Gaps in Time Seriescited by 14
- 2019TIGS: An Inference Algorithm for Text Infilling with Gradient Searchcited by 10
- 2015Backward and Forward Language Modeling for Constrained Sentence Generationcited by 9
- 2018BFGAN: Backward and Forward Generative Adversarial Networks for Lexically Constrained Sentence Generationcited by 9
- 2018Incorporating Discriminator in Sentence Generation: a Gibbs Sampling Methodcited by 5
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 3; 2024: 1; 2025: 2.
10 papers.
- 2021Parallel Refinements for Lexically Constrained Text Generation with BARTcited by 24
- 2025ConInstruct: Evaluating Large Language Models on Conflict Detection and Resolution in Instructionscited by 10
- 2021Unsupervised Editing for Counterfactual Storiescited by 8
- 2022Metric-guided Distillation: Distilling Knowledge from the Metric to Ranker and Retriever for Generative Commonsense Reasoningcited by 8
- 2023Improving Factual Error Correction by Learning to Inject Factual Errorscited by 4
- 2022Lexical Complexity Controlled Sentence Generationcited by 2
- 2024Pseudo-labeling with Keyword Refining for Few-Supervised Video Captioningcited by 2
- 2025Evaluating Human-LLM Representation Alignment: A Case Study on Affective Sentence Generation for Augmentative and Alternative Communicationcited by 1
- 2023A Benchmark for Text Expansion: Datasets, Metrics, and Baselinescited by 0
- 2023Evaluating, Understanding, and Improving Constrained Text Generation for Large Language Modelscited by 0
- 2025ConInstruct: Evaluating Large Language Models on Conflict Detection and Resolution in Instructions18 Nov 2025
- 2025Evaluating Human-LLM Representation Alignment: A Case Study on Affective Sentence Generation for Augmentative and Alternative Communication14 Mar 2025
- 2024Pseudo-labeling with Keyword Refining for Few-Supervised Video Captioning6 Nov 2024
- 2023Improving Factual Error Correction by Learning to Inject Factual Errors12 Dec 2023
- 2023Evaluating, Understanding, and Improving Constrained Text Generation for Large Language Models25 Oct 2023
- 2023A Benchmark for Text Expansion: Datasets, Metrics, and Baselines17 Sep 2023
- 2022Lexical Complexity Controlled Sentence Generation26 Nov 2022
- 2022Metric-guided Distillation: Distilling Knowledge from the Metric to Ranker and Retriever for Generative Commonsense Reasoning21 Oct 2022
- 2021Unsupervised Editing for Counterfactual Stories10 Dec 2021
- 2021Parallel Refinements for Lexically Constrained Text Generation with BART26 Sep 2021