[Paper Review] Insertion-Deletion Transformer
The paper introduces the Insertion-Deletion Transformer, a novel sequence generation framework that alternates between insertion and deletion phases using two Transformer decoders. It achieves significant BLEU score improvements—91.49 vs. 70.15 on shifted alphabetic sequences and 37.57 vs. 35.55 on Caesar’s cipher—by enabling on-policy training of deletions based on insertion errors, allowing iterative refinement of generated sequences for better accuracy and flexibility in tasks like text editing and translation.
We propose the Insertion-Deletion Transformer, a novel transformer-based neural architecture and training method for sequence generation. The model consists of two phases that are executed iteratively, 1) an insertion phase and 2) a deletion phase. The insertion phase parameterizes a distribution of insertions on the current output hypothesis, while the deletion phase parameterizes a distribution of deletions over the current output hypothesis. The training method is a principled and simple algorithm, where the deletion model obtains its signal directly on-policy from the insertion model output. We demonstrate the effectiveness of our Insertion-Deletion Transformer on synthetic translation tasks, obtaining significant BLEU score improvement over an insertion-only model.
Motivation & Objective
- Address the limitation of insertion-only models, which cannot correct generation errors, by introducing a deletion phase for iterative refinement.
- Develop a simplified training framework that avoids complex expert policies or token-count prediction, unlike prior work such as Levenshtein Transformer.
- Enable flexible, non-autoregressive sequence generation with parallel token generation and support for editing tasks like text simplification and style transfer.
- Demonstrate that on-policy deletion training significantly improves sequence generation quality on synthetic tasks without architectural or training complexity.
Proposed method
- The model operates in two iterative phases: first, an insertion phase using a standard Insertion Transformer to generate candidate outputs by inserting tokens at various positions.
- Second, a deletion phase is applied, where the model learns to remove incorrect or redundant tokens based on the output of the insertion model.
- Deletion training uses on-policy signals: the deletion model is trained directly on sequences sampled from the insertion model’s output, including its errors, enabling end-to-end refinement.
- The insertion and deletion phases are implemented as separate Transformer decoder heads, with the deletion head receiving input from the insertion-generated sequence.
- The framework supports parallel generation and can be applied to variable-length input and output sequences, with generation terminating when all positions predict end-of-sequence.
- The training process avoids dynamic programming or auxiliary classifiers (unlike Levenshtein Transformer), simplifying both training and inference.
Experimental results
Research questions
- RQ1Can a two-phase insertion-deletion framework improve sequence generation quality compared to insertion-only models on synthetic tasks?
- RQ2Does on-policy deletion training—where deletions are trained on the insertion model’s own outputs—lead to better performance than off-policy or expert-based methods?
- RQ3Can the insertion-deletion framework efficiently handle tasks requiring text editing, such as text simplification or style transfer, by starting from the source sequence?
- RQ4How does the deletion phase affect model convergence and BLEU scores in tasks with high lexical diversity, such as Caesar’s cipher?
- RQ5Is the proposed method simpler and more efficient than existing insertion-deletion frameworks like Levenshtein Transformer, particularly in terms of inference speed and training complexity?
Key findings
- The Insertion-Deletion Transformer achieved a BLEU score of 91.49 on the shifted alphabetic sequence task, a significant improvement over the insertion-only model’s 70.15.
- On the more complex Caesar’s cipher task, the model achieved a BLEU score of 37.57, up from 35.55 with the insertion-only baseline, demonstrating robustness to non-sequential and diverse input sequences.
- The deletion phase effectively corrected errors introduced by the insertion model, as evidenced by the consistent BLEU score improvements across both synthetic tasks.
- Adversarial deletion training did not improve performance on the synthetic tasks, suggesting that on-policy supervision from the insertion model is sufficient and effective.
- The framework’s simplicity—requiring only two Transformer decoders without auxiliary token-count prediction—results in lower training and inference complexity compared to models like Levenshtein Transformer.
- The model enables efficient, iterative refinement of sequences through alternating insertion and deletion steps, supporting flexible, non-autoregressive generation with potential for parallelization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.