Don't Take It Literally: An Edit-Invariant Sequence Loss for Text Generation
Not on the map. Why?
Abstract (arXiv)
Neural text generation models are typically trained by maximizing log-likelihood with the sequence cross entropy (CE) loss, which encourages an exact token-by-token match between a target sequence with a generated sequence. Such training objective is sub-optimal when the target sequence is not perfect, e.g., when the target sequence is corrupted with noises, or when only weak sequence supervision is available. To address the challenge, we propose a novel Edit-Invariant Sequence Loss (EISL), which computes the matching loss of a target n-gram with all n-grams in the generated sequence. EISL is designed to be robust to various noises and edits in the target sequences. Moreover, the EISL computation is essentially an approximate convolution operation with target n-grams as kernels, which is easy to implement and efficient to compute with existing libraries. To demonstrate the effectiveness of EISL, we conduct experiments on a wide range of tasks, including machine translation with noisy target sequences, unsupervised text style transfer with only weak training signals, and non-autoregressive generation with non-predefined generation order. Experimental results show our method significantly outperforms the common CE loss and other strong baselines on all the tasks. EISL has a simple API that can be used as a drop-in replacement of the CE loss: https://github.com/guangyliu/EISL.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 46 of its 70 references that are in the map. First posted on arXiv 29 Jun 2021.
Builds on
46 of 70 references.
References · 46
- 2017Attention Is All You Needcited by 59,932
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,196
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 994
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
34 more
- 2015Sequence Level Training with Recurrent Neural Networkscited by 568
- 2016Self-critical Sequence Training for Image Captioningcited by 544
- 2019Symmetric Cross Entropy for Robust Learning with Noisy Labelscited by 499
- 2017Non-Autoregressive Neural Machine Translationcited by 457
- 2016Deep Reinforcement Learning for Dialogue Generationcited by 286
- 2017Toward Controlled Generation of Textcited by 271
- 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
- 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 246
- 2019Levenshtein Transformercited by 197
- 2018Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinementcited by 194
- 2018Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfercited by 191
- 2020Deep Learning for Text Style Transfer: A Surveycited by 161
- 2018Style Transfer Through Back-Translationcited by 124
- 2015Minimum Risk Training for Neural Machine Translationcited by 114
- 2016Improved Image Captioning via Policy Gradient optimization of SPIDErcited by 112
- 2019Measuring Compositionality in Representation Learningcited by 84
- 2019Style Transformer: Unpaired Text Style Transfer without Disentangled Latent Representationcited by 84
- 2019Beyond BLEU: Training Neural Machine Translation with Semantic Similaritycited by 84
- 2020Improved Natural Language Generation via Loss Truncationcited by 75
- 2018A Study of Reinforcement Learning for Neural Machine Translationcited by 74
- 2020A Probabilistic Formulation of Unsupervised Text Style Transfercited by 70
- 2020Aligned Cross Entropy for Non-Autoregressive Machine Translationcited by 65
- 2019Fast Structured Decoding for Sequence Modelscited by 59
- 2019Non-Autoregressive Machine Translation with Auxiliary Regularizationcited by 52
- 2019Learning Data Manipulation for Augmentation and Weightingcited by 44
- 2019Minimizing the Bag-of-Ngrams Difference for Non-Autoregressive Neural Machine Translationcited by 40
- 2019Hint-Based Training for Non-Autoregressive Machine Translationcited by 28
- 2020Summarizing Text on Any Aspects: A Knowledge-Informed Weakly-Supervised Approachcited by 23
- 2021Sequence-Level Training for Non-Autoregressive Neural Machine Translationcited by 18
- 2018Structured Content Preservation for Unsupervised Text Style Transfercited by 10
- 2018Greedy Search with Probabilistic N-gram Matching for Neural Machine Translationcited by 9
- 2017Differentiable lower bound for expected BLEU scorecited by 6
- 2019Educating Text Autoencoders: Latent Representation Guidance via Denoisingcited by 3
- 2019Transfer Reward Learning for Policy Gradient-Based Text Generationcited by 1
Built on by
Citing papers per year: 2022: 5; 2023: 4; 2024: 5; 2025: 2; 2026: 1.
17 papers.
Sort:
By area:
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2022A Survey on Non-Autoregressive Generation for Neural Machine Translation and Beyondcited by 64
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
- 2024Constrained Decoding for Secure Code Generationcited by 35
- 2022Composable Text Controls in Latent Space with ODEscited by 28
- 2023BOLT: Fast Energy-based Controlled Text Generation with Tunable Biasescited by 24
- 2022Multi-Granularity Optimization for Non-Autoregressive Translationcited by 6
- 2024Beyond Accuracy Optimization: Computer Vision Losses for Large Language Model Fine-Tuningcited by 5
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuningcited by 5
- 2025GAPO: Learning Preferential Prompt through Generative Adversarial Policy Optimizationcited by 4
5 more
- 2023To be or not to be? an exploration of continuously controllable prompt engineeringcited by 3
- 2024HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interactioncited by 1
- 2025Pipelined Decoder for Efficient Context-Aware Text Generationcited by 1
- 2023Attentive Multi-Layer Perceptron for Non-autoregressive Generationcited by 0
- 2026DTO: a Differentiable Training Objective for Effective Counterfactual Story Rewritingcited by 0
- 2026DTO: a Differentiable Training Objective for Effective Counterfactual Story Rewriting24 May 2026
- 2025Pipelined Decoder for Efficient Context-Aware Text Generation29 Jun 2025
- 2025GAPO: Learning Preferential Prompt through Generative Adversarial Policy Optimization26 Mar 2025
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuning11 Nov 2024
- 2024Beyond Accuracy Optimization: Computer Vision Losses for Large Language Model Fine-Tuning20 Sep 2024
- 2024HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interaction30 Jul 2024
- 2024Constrained Decoding for Secure Code Generation30 Apr 2024
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability13 Feb 2024
- 2023To be or not to be? an exploration of continuously controllable prompt engineering16 Nov 2023
- 2023Attentive Multi-Layer Perceptron for Non-autoregressive Generation14 Oct 2023
- 2023BOLT: Fast Energy-based Controlled Text Generation with Tunable Biases19 May 2023
- 2023Controlled Text Generation with Natural Language Instructions27 Apr 2023
5 more
- 2022Multi-Granularity Optimization for Non-Autoregressive Translation20 Oct 2022
- 2022Composable Text Controls in Latent Space with ODEs1 Aug 2022
- 2022Gradient-Based Constrained Sampling from Language Models25 May 2022
- 2022A Survey on Non-Autoregressive Generation for Neural Machine Translation and Beyond20 Apr 2022
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics23 Feb 2022
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2022A Survey on Non-Autoregressive Generation for Neural Machine Translation and Beyondcited by 64
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
- 2024Constrained Decoding for Secure Code Generationcited by 35
- 2022Composable Text Controls in Latent Space with ODEscited by 28
- 2023BOLT: Fast Energy-based Controlled Text Generation with Tunable Biasescited by 24
- 2022Multi-Granularity Optimization for Non-Autoregressive Translationcited by 6
- 2024Beyond Accuracy Optimization: Computer Vision Losses for Large Language Model Fine-Tuningcited by 5
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuningcited by 5
- 2023To be or not to be? an exploration of continuously controllable prompt engineeringcited by 3
- 2024HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interactioncited by 1
12 most cited of 15 All 15 (JSON)
- 2026DTO: a Differentiable Training Objective for Effective Counterfactual Story Rewriting24 May 2026
- 2025Pipelined Decoder for Efficient Context-Aware Text Generation29 Jun 2025
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuning11 Nov 2024
- 2024Beyond Accuracy Optimization: Computer Vision Losses for Large Language Model Fine-Tuning20 Sep 2024
- 2024HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interaction30 Jul 2024
- 2024Constrained Decoding for Secure Code Generation30 Apr 2024
- 2023To be or not to be? an exploration of continuously controllable prompt engineering16 Nov 2023
- 2023Attentive Multi-Layer Perceptron for Non-autoregressive Generation14 Oct 2023
- 2023BOLT: Fast Energy-based Controlled Text Generation with Tunable Biases19 May 2023
- 2023Controlled Text Generation with Natural Language Instructions27 Apr 2023
- 2022Multi-Granularity Optimization for Non-Autoregressive Translation20 Oct 2022
- 2022Composable Text Controls in Latent Space with ODEs1 Aug 2022
12 newest of 15 All 15 (JSON)