Skip to main content
QUICK REVIEW

[Paper Review] Cascaded Text Generation with Markov Transformers

Yuntian Deng, Alexander M. Rush|arXiv (Cornell University)|Jun 1, 2020
Natural Language Processing TechniquesComputer Science67 references11 citations
TL;DR

This paper proposes a cascaded decoding approach using Markov Transformers to achieve sub-linear time autoregressive text generation, combining the accuracy of beam search with the speed of parallel inference. By training a single model to parameterize increasingly higher-order Markov dependencies, it enables efficient, high-quality generation across five machine translation benchmarks, matching or exceeding non-autoregressive baselines in speed and accuracy.

ABSTRACT

The two dominant approaches to neural text generation are fully autoregressive models, using serial beam search decoding, and non-autoregressive models, using parallel decoding with no output dependencies. This work proposes an autoregressive model with sub-linear parallel time generation. Noting that conditional random fields with bounded context can be decoded in parallel, we propose an efficient cascaded decoding approach for generating high-quality output. To parameterize this cascade, we introduce a Markov transformer, a variant of the popular fully autoregressive model that allows us to simultaneously decode with specific autoregressive context cutoffs. This approach requires only a small modification from standard autoregressive training, while showing competitive accuracy/speed tradeoff compared to existing methods on five machine translation datasets.

Motivation & Objective

  • To address the inefficiency of fully autoregressive models that rely on serial beam search for decoding.
  • To enable fast, parallelizable text generation without sacrificing generation quality by leveraging bounded Markov dependencies.
  • To design a unified neural architecture—Markov Transformers—that can parameterize cascaded graphical models for structured prediction.
  • To achieve competitive speed/accuracy tradeoffs compared to existing non-autoregressive and beam search methods.
  • To enable efficient multi-GPU scaling and variable-length generation in neural text generation.

Proposed method

  • Introduce the Markov Transformer, a variant of the standard transformer that restricts self-attention to a fixed context window M during training, enabling it to learn high-order Markov dependencies.
  • Use cascaded decoding: start with a non-autoregressive model (0th-order) and iteratively refine predictions using higher-order Markov models (1st, 2nd, etc.) with increasing context.
  • Apply distillation to transfer knowledge from a full autoregressive transformer to the cascaded system, improving performance without increasing inference time.
  • Use max-marginals instead of n-gram scores for pruning unlikely n-grams, improving compatibility across positions with minimal computational cost.
  • Enable multi-GPU inference by partitioning the sequence across devices, with only log potential communication between GPUs at each iteration.
  • Train the Markov Transformer via maximum likelihood, maintaining full autoregressive training objectives while enforcing context cutoffs via masking.

Experimental results

Research questions

  • RQ1Can we achieve sub-linear time decoding in autoregressive models while preserving high generation quality?
  • RQ2Can a single neural model parameterize a cascade of increasingly higher-order Markov models for structured prediction in text generation?
  • RQ3Does cascaded decoding with Markov Transformers outperform both beam search and non-autoregressive methods in speed-accuracy tradeoffs?
  • RQ4Can distillation improve the performance of cascaded decoding without increasing inference time?
  • RQ5Can the approach scale efficiently across multiple GPUs and support variable-length sequence generation?

Key findings

  • On WMT14 En-De, the cascaded Markov Transformer with distillation achieved a BLEU score of 35.03 with 33.45ms inference time, outperforming non-autoregressive baselines in both speed and accuracy.
  • A 4th-order Markov transformer with beam search (K=5) achieved a BLEU score of 35.07, close to the full transformer’s 35.63, demonstrating strong expressivity with limited context.
  • Cascaded decoding with length constraints improved performance over strict length enforcement, showing the benefit of flexible sequence length modeling.
  • Using 4 GPUs, the method achieved a 2.79× speedup compared to 1.68× on a single GPU, indicating strong multi-GPU scalability due to localized communication.
  • Max-marginals improved BLEU from 28.42 to 29.24 on WMT14 En-De validation set (128.58ms) compared to n-gram scores (123.48ms), with only a small time overhead.
  • The approach achieved O(log L) parallel time complexity, with the log L component being negligible in practice, making it nearly as fast as O(1) non-autoregressive models.

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.