Skip to main content
QUICK REVIEW

[Paper Review] Encode, Tag, Realize: High-Precision Text Editing

Eric Malmi, Sebastian Krause|arXiv (Cornell University)|Sep 3, 2019
Natural Language Processing TechniquesComputer Science33 references4 citations
TL;DR

LaserTagger is a high-precision text editing model that reformulates text generation as a sequence tagging task using three edit operations: keep, delete, and insert. By combining a BERT encoder with an autoregressive Transformer decoder, it achieves state-of-the-art results on sentence fusion, splitting, summarization, and grammar correction—especially under low-data regimes—while enabling inference over 100x faster than comparable seq2seq models.

ABSTRACT

We propose LaserTagger - a sequence tagging approach that casts text generation as a text editing task. Target texts are reconstructed from the inputs using three main edit operations: keeping a token, deleting it, and adding a phrase before the token. To predict the edit operations, we propose a novel model, which combines a BERT encoder with an autoregressive Transformer decoder. This approach is evaluated on English text on four tasks: sentence fusion, sentence splitting, abstractive summarization, and grammar correction. LaserTagger achieves new state-of-the-art results on three of these tasks, performs comparably to a set of strong seq2seq baselines with a large number of training examples, and outperforms them when the number of examples is limited. Furthermore, we show that at inference time tagging can be more than two orders of magnitude faster than comparable seq2seq models, making it more attractive for running in a live environment.

Motivation & Objective

  • Address the inefficiency and data hunger of standard seq2seq models in text generation tasks with high input-output overlap.
  • Reduce model complexity and vocabulary size by framing text generation as a sequence of edit operations rather than autoregressive generation.
  • Improve data efficiency and inference speed while maintaining or exceeding performance on tasks like sentence fusion, splitting, summarization, and grammar correction.
  • Enhance model interpretability and reduce common seq2seq errors such as hallucination and repetition by constraining output to a small set of edit tags.

Proposed method

  • Model text generation as a sequence tagging problem using three edit operations: keep, delete, and insert a phrase before a token.
  • Use a BERT encoder to produce contextual representations of the input sequence.
  • Apply an autoregressive Transformer decoder (LaserTagger AR) to predict edit tags for each input token, enabling context-aware tagging.
  • Implement a two-stage pipeline: (1) Encode input with BERT, (2) Tag each token with an edit operation from a learned, task-specific tag vocabulary, (3) Realize output by applying the edit operations via deterministic rules.
  • Generate the tag vocabulary from training data using frequent phrase insertions and common edit patterns.
  • Train the model end-to-end with cross-entropy loss on tag sequences, enabling efficient and controllable inference.

Experimental results

Research questions

  • RQ1Can text generation tasks with high input-output overlap be effectively modeled as sequence tagging with minimal edit operations?
  • RQ2Does a tagging-based approach outperform standard seq2seq models in low-data regimes while maintaining high accuracy?
  • RQ3To what extent does the constrained output space of edit tags reduce common seq2seq failures like hallucination and repetition?
  • RQ4How does inference speed of the tagging model compare to autoregressive seq2seq baselines, especially in production settings?
  • RQ5Can a BERT-based tagger with a lightweight decoder achieve competitive performance with drastically reduced inference latency?

Key findings

  • LaserTagger AR achieves state-of-the-art results on three of four evaluated tasks: sentence fusion, sentence splitting, and grammar correction, with comparable performance on abstractive summarization.
  • On low-data settings (e.g., 10k examples), LaserTagger outperforms strong seq2seq baselines, demonstrating superior data efficiency.
  • LaserTagger FF achieves over 100x faster inference than comparable seq2seq BERT models, with batch size 1 taking 13ms vs. 1,773ms.
  • LaserTagger AR is 10x faster than a 12-layer seq2seq BERT baseline at batch size 8, despite matching or exceeding its accuracy.
  • The model is significantly less prone to hallucination, imaginary words, and repeated phrases—common errors in seq2seq models—due to its constrained output space.
  • Qualitative analysis shows that LaserTagger avoids abrupt sentence endings and misleading rephrasing, while seq2seq models frequently fail on coreference and premature sentence breaks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.