---
title: "Lossless Acceleration for Seq2seq Generation with Aggressive"
description: "Aggressive Decoding speeds up translation, grammar correction, and other text generation by drafting ahead and checking several tokens in…"
canonical: "https://research.elamur.ai/free/en/papers/ge-2022-lossless-acceleration-seq2seq-generation-aggressive/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ge-2022-lossless-acceleration-seq2seq-generation-aggressive/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Lossless Acceleration for Seq2seq Generation with Aggressive Decoding

# Lossless Acceleration for Seq2seq Generation with Aggressive Decoding

Paper · 2022 · Tao Ge, Heming Xia, Xin Sun et al.

**Authors:** [Tao Ge](https://md.research.elamur.ai/free/en/authors/tao-ge/), [Heming Xia](https://md.research.elamur.ai/free/en/authors/heming-xia/), [Xin Sun](https://md.research.elamur.ai/free/en/authors/xin-sun/), [Si-Qing Chen](https://md.research.elamur.ai/free/en/authors/si-qing-chen/) and [Furu Wei](https://md.research.elamur.ai/free/en/authors/furu-wei/) · **Year:** 2022 · **Venue:** arXiv:2205.10350 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[Cited by **7** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/ge-2022-lossless-acceleration-seq2seq-generation-aggressive/cited-by/) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2205.10350)
- [arXiv 2205.10350](https://arxiv.org/abs/2205.10350)

## Summary

A system that translates or corrects a sentence usually writes its answer one token at a time. Each choice depends on what the system has already written, so it has to wait for the previous choice even when the next several tokens are easy to anticipate. Aggressive Decoding uses that predictability. It proposes several tokens in advance and checks, in parallel, what the ordinary decoder would choose at each position if the preceding proposals were correct. The system can keep a run of matching predictions and, at the first disagreement, keep the ordinary decoder’s choice. That choice tells it where to resume.

The paper gives different ways to produce the draft. In [grammatical error correction](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/), much of the original sentence typically survives. Input-guided Aggressive Decoding copies from the sentence, verifies the proposed continuation, and looks for a place to resume copying after an edit. For [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) and abstractive [summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/), the source wording is a weaker guide to the next output token. Generalized Aggressive Decoding uses a separate drafter trained to predict a block of upcoming tokens from the source and the confirmed output so far. Both methods let the autoregressive decoder decide which predictions become part of the output.

With strict verification, both variants reproduce greedy decoding, the procedure that always picks the highest-scoring next token. The authors report a 7× to 9× speedup across the rewriting tasks they study, grammatical error correction and text simplification. On the WMT14 English-to-German test, strict Generalized Aggressive Decoding ran at a reported 3.0× speedup against beam search while reproducing the verifier’s greedy translations. The strict method also reproduced greedy outputs on CNN Daily Mail and delivered a 3× speedup in abstractive summarization. The time comparison and the output comparison serve different purposes. Beam search supplies the timing reference in the main translation experiment, while greedy decoding supplies the sequence to be preserved.

A relaxed variant, GAD++, can also accept a draft token that ranks near the verifier’s favorite and has a sufficiently close score. This lets the draft influence the wording. On WMT14 English-to-German, the high-quality setting improved [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/) over the greedy verifier and ran at 3.6× the beam-search speed. The high-efficiency setting reached 4.5× against the same reference, with a small quality decrease relative to the high-quality setting. Summarization also ran faster with the relaxed rule, but the authors observed no corresponding quality improvement. The strict rule gives a guarantee about which text comes out. The relaxed rule offers a tradeoff whose quality must be measured on the task at hand.

## Deep dive: Lossless Acceleration for Seq2seq Generation with Aggressive Decoding

Aggressive Decoding speeds up translation, grammar correction, and other text generation by drafting ahead and checking several tokens in parallel. · about 39 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why generating a sequence makes the decoder wait

Sequence-to-sequence generation takes an input sequence and produces another. A translation system might produce a sentence in a different language, a correction system might repair a sentence, and an abstractive summarizer might express the main points of a document in new wording. The output length and the correspondence between input and output positions can differ across these tasks. Whatever the task, a decoder’s early choices help determine which continuations make sense. The paper studies how to preserve that dependence while reducing the time spent waiting for it during [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/).

The experiments center on the [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/), with an encoder to represent the source and a decoder to score the output. A token is one unit in the sequence the decoder processes. It can be a word, a piece of a word, or a marker with a special role. Autoregressive decoding assigns a score to a candidate token using both the source and the tokens already chosen for the output. To make its next decision, the decoder gets the result of its own previous decision as part of the input. This is the dependency that matters for inference, the stage at which a trained system generates text for a new source.

Training presents a different situation. The target sequence is already available, so the decoder can be given the correct earlier tokens at every position. This procedure, called teacher forcing, lets the Transformer calculate next-token scores at multiple positions in parallel. Each position still uses only the appropriate earlier target tokens. Since the training target fixes those tokens in advance, evaluating a later position need not wait for a prediction to be made at an earlier one. At inference time, the source is known and the target must be constructed. Without a proposed continuation, the decoder lacks the history it would need to do the same parallel scoring.

The time cost therefore comes in part from the number of serial passes, even when a device can do much of the work within each pass in parallel. This matters for a request that contains a single sentence, the setting used for the main online efficiency comparisons. The device can parallelize the operations involved in scoring one token, but the next prediction still waits for that token to be selected. Waiting is especially costly if the choices that occupy separate iterations are highly predictable from the source or from a separate system that can propose them together.

The paper also distinguishes the probability of a whole output from the procedure used to find one. Greedy decoding keeps the locally highest-scoring token at each step and follows that one continuation. Beam search retains several partial continuations while looking for an output. The paper uses both as reference points, for different questions. Preserving greedy output means reproducing a specific series of local decisions. A timing comparison with beam search measures how the proposed decoder fares against a conventional alternative that does more search. The difference matters in a paper about acceleration because choosing another search procedure and changing how an existing procedure is executed are different interventions.

#### Attempts to remove or rearrange the dependency

Earlier work on [non-autoregressive neural machine translation](https://md.research.elamur.ai/free/en/papers/gu-2017-non-autoregressive-neural-machine-translation/) sought to generate the target in a single iteration. A system that predicts target positions together removes much of the serial work, but in the account given by the authors, the early approach gave up translation quality. Independent target choices can individually make sense given the source and still fit together poorly. An autoregressive decoder has access to the actual earlier choices while selecting a continuation. A parallel predictor has to coordinate across positions through the information it receives and the way it is trained.

The paper describes several lines of work that tried to improve this arrangement. Some changed the training objective, including approaches based on [latent alignments](https://md.research.elamur.ai/free/en/papers/saharia-2020-non-autoregressive-machine-translation-latent/). Others gave the system ways to account for relationships among the target tokens. Still others made more than one pass so that a first attempt could be revised, an approach also studied in [iterative refinement](https://md.research.elamur.ai/free/en/papers/lee-2018-deterministic-non-autoregressive-neural-sequence/). The broad difficulty was to recover the quality associated with sequential conditioning while retaining enough parallelism to save time. A parallel predictor could be fast, but its completed text would still have to stand on its own as the system’s answer.

Semi-autoregressive approaches organized the dependency at different scales. One line of work made predictions in parallel locally while retaining serial dependence across groups. Another kept local autoregressive dependencies within a system whose broader organization was non-autoregressive. For grammatical correction, an earlier approach used a sequence tagger to find likely error spans and then applied autoregressive generation to edit those spans. The paper treats this as a precursor to its input-guided method. Both approaches try to concentrate serial work where the sentence needs changes. The input-guided method decides where that happens by comparing a proposed copy with the ordinary decoder’s own predictions.

Blockwise Decoding is the closest earlier approach to the generalized method in the authors’ account. It adds lightweight prediction heads to the decoder to anticipate several future tokens, then uses the ordinary autoregressive head to verify them. The resemblance concerns the order of decisions: propose a block, check how far its history agrees with the autoregressive choices, and advance accordingly. Aggressive Decoding develops this approach by giving the drafting job to an independent non-autoregressive network, trained specifically to propose continuations. The authors regard the strength of the draft as central. An inexpensive guess can still give little benefit when disagreement tends to occur near the start of the block.

The authors also place their work alongside cascade inference and dynamic early exiting. A cascade applies successive stages to handle cases of differing difficulty. Early-exit systems such as [DeeBERT](https://md.research.elamur.ai/free/en/papers/xin-2020-deebert-dynamic-early-exiting-accelerating/) and [FastBERT](https://md.research.elamur.ai/free/en/papers/liu-2020-fastbert-self-distilling-bert-adaptive/) use predictions made inside a deep network to decide when enough computation has been done. Aggressive Decoding has a related division of labor: the first stage proposes an answer and the later stage controls what is accepted. Its unit of work is a continuation of a partially generated sequence. Each verification pass may settle several positions, then hand the next pass a longer confirmed prefix. The central question is how much of that prefix can be extended through one check.

### The method, step by step

#### Ask the decoder several conditional questions at once

Imagine that a correction system has reached a point where the rest of the sentence appears likely to stay as written. The original sentence already supplies a continuation worth testing. The decoder can score the next token in the usual way. It can also score the following token under the assumption that the proposed next token was correct, then score another position under the assumption that both preceding proposals were correct. Each of these scoring problems has a fixed history by the time the check starts. They can therefore be evaluated together in the same way that known histories make parallel scoring possible during training.

A check of this kind produces a sequence of answers to separate conditional questions. A later answer is valid for greedy decoding only if the history supplied at its position is the history greedy decoding would actually have produced. The algorithm establishes that by looking for the first mismatch. Up to that point, the draft provides exactly the needed history. The verifier’s prediction at the first mismatch also has the correct history, so the algorithm can use it as the next output token. Predictions farther along the block were made with the wrong token in their histories and are discarded. The next iteration starts with the confirmed output.

This explains why both drafting approaches can use the same reasoning about acceptance. The draft can come from a sentence being corrected or from a separately trained network. In either case, a draft that agrees for a long stretch allows the system to advance far in one iteration. A draft that disagrees immediately still lets the verifier supply the next greedy choice. The source of the draft determines how much work can be avoided. Under the strict rule, the ordinary decoder determines the output.

One iteration of strict Aggressive Decoding The steps in order.

The verifier uses causal scoring. At a given position, the relevant decoder input consists of the tokens that precede that position. Parallel execution supplies the preceding draft tokens for each calculation, while preserving the dependence of each score on the proper prefix. In particular, the verifier at a position can choose a token from the vocabulary independently of the token that the draft proposes there. If the verifier could simply see the current proposal as if it were already part of the history, agreement would provide no such check.

#### What the autoregressive decoder learns and scores

The paper expresses training as maximizing the log probability of the known target given the source. Expressed by position, the objective is the sum of the log probabilities assigned to the actual next target tokens.

```
Φ* = arg max_Φ log P(y | x; Φ)
   = arg max_Φ Σ[i = 0,…,l−1] log P(yᵢ₊₁ | y_≤i, x; Φ)
```

Here Φ is the set of trainable parameters and Φ* is a maximizing set of parameter values. The operation `arg max` returns the argument that maximizes the following score. The sequence x is the source, y is the reference target, and l is the target length. The index i counts the positions already included in the conditioning history. The token yᵢ₊₁ is the next reference token, while y_≤i contains the earlier target tokens, including the initial marker y₀ in the paper’s notation. P is the conditional probability, `|` separates the event being scored from its conditioning information, and the semicolon introduces the parameters. The logarithm is written `log`, and Σ adds the position-wise terms over the indicated range. Because all prefixes come from the reference, these terms can be evaluated in parallel.

At inference, the learned parameters are fixed. The sequence-level scoring problem is to find an output whose conditional probability is as large as possible.

```
o* = arg max_o log P(o | x; Φ)
   = arg max_o Σ[j = 0,…,m−1] log P(oⱼ₊₁ | o_≤j, x; Φ)
```

In this expression o is a candidate output, o* is a sequence that maximizes the objective, and m is the length of o. The index j identifies the preceding output position, oⱼ₊₁ is the candidate next token, and o_≤j is its prefix, including the initial marker as appropriate. The terms x, Φ, P, `log`, `arg max`, `|`, and Σ have the corresponding meanings from training. The difference is where the prefix comes from. During inference it belongs to an output candidate, whereas the training objective uses a prefix from the known target.

The sequence-level objective describes what it means to give a complete output a high score. The strict verification algorithm preserves the steps of greedy decoding. Greedy decoding maximizes the next-token score under the current prefix, so a decision at an early position can determine what is considered at later ones. The exactness argument is about following this particular decision rule at every position. It makes no search over all other output paths.

#### Input-guided drafting and the return to copying

Input-guided Aggressive Decoding, abbreviated IAD, begins by using the source sentence as its hypothesis for the output. If the task is correction, absolutely every token in the sentence is eligible to be proposed, including those the decoder may ultimately edit. The first verifier pass can test a long continuation without a separately trained component to mark errors or guess corrections. It uses the source both as the material to be corrected and as the basis for the provisional output history. These roles remain distinct even though the same token sequence supplies both.

The initial scoring equation in the paper substitutes the copied history for the output history. The substitution follows the copying hypothesis and is confirmed only as far as the verifier agrees with it.

```
o*ⱼ₊₁ = arg max_oⱼ₊₁ log P(oⱼ₊₁ | o_≤j, x; Φ)
      = arg max_oⱼ₊₁ log P(oⱼ₊₁ | ô_≤j, x; Φ)
      = arg max_oⱼ₊₁ log P(oⱼ₊₁ | x_≤j, x; Φ)
```

The index j runs from 0 through n−1, where n is the number of source tokens. The symbol oⱼ₊₁ ranges over candidate tokens at the position being scored and o*ⱼ₊₁ is the highest-scoring choice. The histories o_≤j, ô_≤j, and x_≤j denote, respectively, the output prefix, the provisional copy used as a draft, and the corresponding source prefix. The same source x and parameters Φ enter all the scores, and `arg max`, `log`, P, and `|` have the meanings given above. The last expression is the one the system can evaluate in parallel at the outset. Its equality with the first expression applies when the prefix really is the copied one.

Suppose the first difference is at position k. The predicted tokens before k agree with the copy. The verified prediction at k was made using precisely those previous tokens, so it too is available for the greedy output. The position k may contain an edit, or it may mark the end of generation. For an edit followed by more output, every later speculative prediction used the uncorrected source token in the position where the verifier just chose something else. The method discards those predictions. Even an apparently plausible suffix has to be scored again with the confirmed history.

After the disagreement, ordinary greedy decoding extends the output. At this stage the paper writes the scoring rule in probability form. Choosing the maximum of the probability gives the same token ranking as choosing the maximum of its logarithm.

```
o*ⱼ₊₁ = arg max_oⱼ₊₁ P(oⱼ₊₁ | o_≤j, x; Φ)
```

Here j is at or beyond k, the first disagreement, and o_≤j is the confirmed output through j. The token oⱼ₊₁ is a candidate next choice, o*ⱼ₊₁ is the chosen value, and P evaluates it given that confirmed prefix, source x and parameters Φ. The vertical bar introduces the conditions for the probability, and `arg max` selects the value of oⱼ₊₁ with the highest score. Subsequent decisions can stay in this ordinary mode until there is a basis for drafting again.

The basis for restarting is a match between the end of the confirmed output and a unique substring of the source. The paper describes looking for such a match as serial decoding proceeds beyond the disagreement. The match identifies a source position to copy from next. An edit may have inserted or removed output tokens, so inspecting the end of the confirmed output allows the method to recover a correspondence even when the source and output positions have shifted. Requiring uniqueness gives the procedure a specific location from which to copy. If the same ending could point to several source locations, that ending by itself would leave the continuation ambiguous.

```
oⱼ₋q…ⱼ = xᵢ₋q…ᵢ
```

The left side is the suffix of the confirmed output ending at position j. The right side is a source substring ending at position i. The offset q is non-negative and determines how far back each span begins. The equality means that the two spans have the same tokens in order. The paper additionally requires the matched span to occur uniquely in the source x before treating i as the new copying point.

Once the system finds such a match, the fixed context for a later position has two parts. The first is the output already confirmed, including any corrections. The second is the copied continuation up to the position being tested. Scoring under these combined histories allows another parallel pass.

```
o*ⱼ₊ₜ = arg max_oⱼ₊ₜ P(oⱼ₊ₜ | o_<j+t, x; Φ)
```

The offset t is positive. The index j is the end of the confirmed prefix, oⱼ₊ₜ is a candidate token t positions farther on, and o*ⱼ₊ₜ is the verifier’s highest-scoring choice there. The expression o_\<j+t denotes the entire history before that position. The probability P conditions on that history and the source x, using parameters Φ. The operator `arg max` selects the candidate with highest probability. For the purpose of this pass the earlier part of the history is fixed by accepted output, and the unconfirmed part is filled from the draft.

```
o_<j+t = Cat(o_≤j, ôⱼ₊₁…ⱼ₊ₜ₋₁) = Cat(o_≤j, xᵢ₊₁…ᵢ₊ₜ₋₁)
```

The function Cat appends its second sequence to its first. The sequence o_≤j is the confirmed prefix through output position j, and ôⱼ₊₁…ⱼ₊ₜ₋₁ contains the copied draft tokens that come before the position being checked. In the final expression these are the source tokens xᵢ₊₁…ᵢ₊ₜ₋₁, starting just beyond the match at source position i. The index t selects the position within the proposed continuation. The same check for the first divergence then determines how much of this computation can contribute to the genuine output.

The authors simplify the algorithm by using a shared beginning-of-sequence marker, [BOS], at position 0 of both sequences. This makes the initial copying pass an instance of the same resumption rule. They also put a [PAD] marker at the end of the source in their algorithm, so the search for a divergence has a boundary even in a case where the visible sentence is copied unchanged. The paper describes returning the original sentence when the prediction preserves it. Matching a suffix or reaching the end of a copied span is a matter of organizing the speculative work. Output decisions still come from the autoregressive scores and the generation boundary.

The paper’s correction examples distinguish long parallel stretches from the individual steps needed around edits. The distinction is operational. A heavily corrected sentence can go back and forth between these modes as the relevant prefix changes. A lightly corrected sentence can retain much of the work of a parallel pass. The decoder does not need a declaration that a particular kind of change is allowed. The confirmed history follows whatever greedy choices the correction system makes, and copying resumes when that history again points to a source continuation.

#### Generalized drafting from the confirmed output

Generalized Aggressive Decoding, abbreviated GAD, replaces copying with a learned proposal. An English source sentence rarely supplies the token sequence of its German translation. An abstractive summary can similarly depart from source wording. The learned drafter receives the encoded source and the confirmed output prefix. It predicts a block of upcoming tokens using slots marked [MASK], with the tokens of the block proposed in parallel. It fills a fixed span of upcoming positions and can make a fresh proposal when the prefix changes.

```
õⱼ₊₁…ⱼ₊ₖ = arg max_õⱼ₊₁…ⱼ₊ₖ Σ[i = 1,…,k] log P(õⱼ₊ᵢ | o_≤j, x; Φ_NAR)
```

The block õⱼ₊₁…ⱼ₊ₖ is a proposed continuation of size k after the confirmed output prefix o_≤j. The index j is the last confirmed output position and i counts positions within the block. The token õⱼ₊ᵢ is the proposal at offset i. The source is x and Φ_NAR denotes the parameters of the non-autoregressive drafter. The conditional probability P uses the source and the same confirmed prefix at each drafted position. The operator Σ adds the `log` probabilities across the proposed block, and `arg max` chooses the block maximizing that score. The absence of preceding draft tokens on the conditioning side is what makes this a parallel proposal. Every position can use the known prefix without waiting for the preceding slot to be filled.

The verifier then supplies the autoregressive choices under the proposed histories. The paper’s notation for a verified prediction uses a hat, whereas the tilde denotes the learned draft.

```
ôⱼ₊ᵢ = arg max_ôⱼ₊ᵢ log P(ôⱼ₊ᵢ | o_≤j, õⱼ₊₁…ⱼ₊ᵢ₋₁, x; Φ_AR)
```

Here ôⱼ₊ᵢ is the highest-scoring token the autoregressive verifier selects at offset i after output position j. The conditions are the confirmed prefix o_≤j, the earlier positions õⱼ₊₁…ⱼ₊ᵢ₋₁ in the current draft, and source x. The parameters Φ_AR belong to the autoregressive verifier. The probability P is evaluated for each candidate ôⱼ₊ᵢ and `arg max` chooses the one with greatest log probability. At the first position of the block, the preceding draft span is empty. At later positions, it lengthens by the relevant part of the draft. Once that draft is available, the verifier can score all these histories in parallel.

```
c = arg max_i 𝟙(õⱼ₊ᵢ ≠ ôⱼ₊ᵢ) / i,    1 ≤ i ≤ k
```

The symbol c is the offset of the first disagreement when the block contains a disagreement. The offset i ranges across the block of size k, j is the end of the confirmed prefix, õⱼ₊ᵢ is the draft token, and ôⱼ₊ᵢ is the verifier’s choice at the corresponding position. The indicator 𝟙 is 1 for a true condition and 0 otherwise, and `≠` is the condition that the tokens differ. Dividing the indicator by i gives an earlier disagreement a higher score than a later one, so `arg max` picks the earliest. For an all-match block the expression has no unique maximizing position. Under the acceptance rule, every position in such a block passes the check.

```
oⱼ₊₁…ⱼ₊c = ôⱼ₊₁…ⱼ₊c = (õⱼ₊₁…ⱼ₊c₋₁, ôⱼ₊c)
```

Here oⱼ₊₁…ⱼ₊c is the output appended to the confirmed prefix when a disagreement occurs at offset c. The verified predictions through that offset are ôⱼ₊₁…ⱼ₊c. The parenthesized right side consists of the matching draft positions through the one immediately before c, followed by ôⱼ₊c, the autoregressive choice at the disagreement. The index j still denotes the end of the old confirmed prefix. The system repeats the process until it generates [EOS], the end-of-sequence marker, or reaches the permitted maximum length.

The exactness argument can be read as a sequence of implications. At the start of an iteration, assume the prefix is what greedy decoding would have written. The first score the verifier computes uses only that prefix and the source, so it makes the greedy choice there. If the draft agrees, the next score uses the greedy history as well. This continues through the matching portion of the block. At the disagreement, the history still consists of greedy choices, which makes the verifier’s replacement the greedy continuation. By appending the replacement and dropping everything after it, the procedure preserves the starting assumption for the next iteration. The comparison is for the same verifier, with the same selection and stopping rules.

The translation case study uses WMT14 English–German examples with k=10, a top-3 cutoff and tolerance τ=1.0. It distinguishes the already accepted translation from the new proposals, marks the disagreement, and crosses out later verification pieces to show where the assumed history becomes invalid. It also illustrates how displayed text relates to [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/). The example pieces `Gut@@` and `acht` join to form `Gutacht`. A block is counted in tokens of the decoder’s vocabulary, so a block boundary or disagreement can occur inside a word as it appears to a reader.

#### Training the drafter and verifier to work together

The generalized drafter is trained on a task that resembles the input it will receive at generation time. The authors take a source and target pair, randomly select a prefix of the target, and ask for the next block. This makes the prefix length vary across training examples. Early prefixes give the drafter practice beginning an output. Later prefixes give it practice continuing one whose wording and ordering are already partly fixed. The predictor learns to use that information at all the positions in the new block.

```
ℒ_NAR = Σ[i = p+1,…,p+k] log P(yᵢ | y₁…ₚ, x; Φ_NAR)
```

The quantity ℒ_NAR is the drafter’s training objective as expressed in the paper. The target is y, p is the sampled length of its known prefix, and y₁…ₚ contains the target tokens in that prefix. An empty content prefix is allowed, and the sampled prefix ends before the target does. The index i identifies each target token yᵢ being predicted in the block, and k sets how many upcoming positions the objective covers. The function P gives the conditional probability of yᵢ given y₁…ₚ and source x, using drafter parameters Φ_NAR. The Σ and `log` symbols sum the log probabilities for these next positions. As in generation, the fixed prefix conditions each prediction in the block.

The authors also use the glancing strategy, a curriculum learning technique taken from the [Glancing Transformer](https://md.research.elamur.ai/free/en/papers/qian-2021-glancing-transformer-non-autoregressive-neural/). In this paper it is a training choice for the parallel drafter. At inference the proposed continuation still has to be produced from the source and the confirmed prefix. The verification rule itself is independent of that training choice.

For translation, the drafter and verifier are both trained with [sequence-level knowledge distillation](https://md.research.elamur.ai/free/en/papers/kim-2016-sequence-level-knowledge-distillation/). An autoregressive teacher is fitted on the original parallel data. The teacher then generates output sentences with beam=5, producing a training set of source sentences paired with those generated targets. That training set supplies targets to both components. The verifier is still a conventional autoregressive Transformer. The two components learn different prediction procedures from common examples of how to express an output. The authors use the shared teacher to encourage agreement and to improve the verifier’s predictions.

The translation teacher varies with the benchmark. The paper uses Transformer-big for both directions between English and German on WMT14, and Transformer-base for both directions between English and Romanian on WMT16. In the main translation configuration the drafter and verifier themselves are both Transformer-base. In each case, the encoder and decoder are both six layers deep, the embeddings have 512 dimensions, the feed-forward component has 2,048 dimensions, and there are eight attention heads. The paper also describes averaging the parameter values of the last 10 checkpoints, following earlier Transformer training practice. The larger drafting experiments change the capacity of the participating networks, while the core greedy verification rule stays the same.

IAD has a different training requirement because the input supplies the draft. Its main English correction system uses Transformer-big with a 6-layer encoder, a 6-layer decoder, an embedding dimension of 1,024 and a feed-forward dimension of 4,096. An encoder-decoder vocabulary of 32K tokens is shared, using Byte Pair Encoding to represent text in sub-word units. The correction system is trained to predict corrected text. The similarity between source and target is exploited by the decoding procedure, so the system needs no separate task of teaching a drafter what to copy. The experiments also apply IAD to a correction system initialized from [BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/), with synthetic pretraining and several stages of [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

#### How GAD++ changes acceptance

Strict verification requires the draft token to be the verifier’s favorite at that position. The authors observe that another token can be a reasonable choice even when the verifier slightly prefers its own. GAD++ adds a way for the draft to win in such cases. The verifier still looks at the source, the confirmed output, and the earlier draft tokens. It then checks how the current draft token ranks and how far its score falls below the best candidate.

```
ôⱼ₊ᵢ = õⱼ₊ᵢ if both GAD++ conditions hold
        highest-scoring verifier token otherwise
```

Here ôⱼ₊ᵢ denotes the token returned by the relaxed verifier, õⱼ₊ᵢ is the proposed token, j marks the end of the confirmed prefix, and i is the offset within the block. The highest-scoring verifier token is the autoregressive choice under the same history. The two GAD++ conditions are a rank cutoff and a maximum gap in log probability. Both are evaluated at the proposed token’s position.

```
log P(õⱼ₊ᵢ | ·) ≥ log P(ôⱼ₊ᵢ⁽ᵝ⁾ | ·)
```

The draft token is õⱼ₊ᵢ and ôⱼ₊ᵢ⁽ᵝ⁾ is the token at rank β under the autoregressive verifier. The indices j and i identify the same position as in the verification rule. The dot stands for the confirmed output prefix, the preceding draft tokens, the source, and the verifier parameters used in scoring. P is the conditional probability and `log` is its logarithm. The sign ≥ requires the draft’s score to reach at least the score at the chosen rank cutoff.

```
log P(ôⱼ₊ᵢ⁽¹⁾ | ·) − log P(õⱼ₊ᵢ | ·) ≤ τ
```

The token ôⱼ₊ᵢ⁽¹⁾ is the verifier’s top-ranked candidate, and õⱼ₊ᵢ is the draft token at output position j+i. Again the dot represents the same history, source, and parameters on both sides of the scoring comparison. The left side subtracts the draft’s log probability from the top candidate’s log probability. The bound τ is the largest gap allowed, and ≤ requires the computed gap to stay within it.

The rank condition restricts which alternatives can be adopted, and the gap condition limits how strongly the verifier can prefer its own first choice. The two conditions address different situations. Scores near the top can be closely spaced, so a small gap alone can cover several candidates. A token within the permitted ranks can also have a score far below the favorite. The relaxed rule asks for both a sufficiently high rank and sufficient proximity in score. When the draft passes, it becomes part of the accepted history and can influence all later choices. The subsequent checks continue to respect the history that will actually be used, with the draft now authorized to contribute wording the greedy verifier would have passed over.

### Experiments and results

#### Measuring output quality and decoding time

The evaluation spans rewriting, translation, and abstractive summarization. The experiments ask whether strict verification preserves a reference decoder’s output, how much runtime a method saves under particular conditions, and what happens to task quality when the acceptance rule is relaxed. Exact sequence agreement is stronger evidence of preservation than equal aggregate scores. Two decoders can produce different outputs whose evaluation scores happen to match. Conversely, a method can exactly preserve greedy output and have quality different from beam search, because beam search can choose a different output in the first place.

Timing uses a designated baseline. In the main online experiments, the authors evaluate individual requests with batch size=1 by default. The multiplication sign in a reported speedup indicates relative speed against the baseline used in that comparison. For translation, the authors also report the average number of decoding iterations. Iterations indicate how frequently generation must advance serially, whereas speed incorporates the time of drafting, verification, encoding, and other work inside or around those iterations.

#### English grammatical error correction

The English correction data follow the restricted training setting of the BEA-2019 shared task. Training draws on the Lang-8 Corpus of Learner English, the [NUS Corpus of Learner English](https://md.research.elamur.ai/free/en/papers/dahlmeier-2013-building-large-annotated-corpus-learner/), the [First Certificate in English dataset](https://md.research.elamur.ai/free/en/papers/yannakoudakis-2011-new-dataset-method-automatically-grading/), and W&I+LOCNESS. CoNLL-2013 is the validation set and contains 1,381 sentences. The main test set used in the efficiency comparison is CoNLL-2014, with 1,312 sentences. Separately, to compare with English correction systems that pretrain on synthetic examples, the authors create 300M pairs of sentences with errors and their corrected versions. The ordinary experiments omit synthetic training data unless the system is described as using them.

Correction quality is evaluated with the official Max-Match scripts, which report precision, recall, and F₀.₅. Precision relates the credited edits to the edits the system made. Recall relates them to the edits expected by the evaluation. The combined F₀.₅ score gives greater weight to precision. This distinction is relevant because a correction system can increase its recall by making more changes and lose precision if some of those changes are unnecessary or incorrect. The paper accompanies these metrics with measurements of inference speed.

For the main online English correction timings, the authors use fairseq with Pytorch 1.5.1 and CUDA 10.2 on an Nvidia Tesla V100-PCIe with 16GB of GPU memory. They also release their decoding code. On the CoNLL-13 validation set, IAD with Transformer-big achieves over 7× the speed of the Transformer-big autoregressive beam-search reference with beam=5. The output text matches the same system’s greedy decoding exactly. In quality terms, greedy decoding and beam search are comparable on F₀.₅ in this experiment. The greedy system made more edits, with higher recall and lower precision. IAD inherits that edit behavior because its output is fixed by the greedy decisions.

The English test-set comparison also applies IAD to a system with a 12-layer encoder and 2-layer decoder initialized from BART. Its training uses synthetic data and several stages of fine-tuning. On the CoNLL-14 test, this combination runs 9.6× as fast as the Transformer-big baseline and preserves the strong correction result of the BART-initialized system. The 9.6× compares the complete configuration with the Transformer-big reference. The architecture and training of the BART-initialized system are also part of that comparison. The paper separately reports that the same checkpoint reaches 72.9 F₀.₅ on the BEA-19 test, with a 9.3× speedup.

The CoNLL-14 comparison situates IAD among efficient English correction methods such as [GECToR](https://md.research.elamur.ai/free/en/papers/omelianchuk-2020-gector-grammatical-error-correction-tag/) and PIE. Some comparison timings come from earlier evaluations with the same kind of GPU and runtime software. The authors reimplement GECToR’s RoBERTa inference path in fairseq to measure it in their setup. Some other timings come from Tensorflow implementations and have limited comparability. Where systems are unavailable in an implementation suitable for the test, the paper leaves their timings unreported. These conditions matter especially for specialist systems that approach the editing task through operations different from ordinary sequence generation.

#### Rewriting beyond English correction

The input-guided method is also applied to Chinese grammatical correction on NLPCC-18 and English text simplification on Wikilarge. For Chinese the backbone is Transformer-big. For simplification it is Transformer-base. The authors report over 8× speedup for each task in its Transformer comparison, with outputs identical to the autoregressive greedy versions. These experiments extend the evidence to a different language and a different kind of rewriting. Both still have the property the drafting rule uses: parts of the input regularly remain in the output in the same order.

The paper contrasts the basis for transfer with the English-specific edit operations in GECToR and PIE. Those systems exploit operations tailored to English corrections, such as a change in verb form or a preposition substitution. Input-guided decoding operates on the token sequence and asks the trained decoder where the copy should diverge. The Chinese and simplification systems still require training appropriate to their tasks. What carries across is the decoding procedure, including the use of shared stretches to bypass serial steps.

An appendix evaluates IAD on a CPU as well. The 6-layer Transformer is tested on the CoNLL-13 validation set on an Intel Xeon E5-2690 v4 running at 2.60GHz. The authors use settings of 8 and 2 threads. They report over 6× online inference speedup, with batch=1, against the Transformer-big baseline. This supplies a separate comparison on a CPU, while the principal runtime experiments use GPUs.

#### Machine translation

The main generalized decoding benchmark is WMT14 English-to-German translation, with 4.5M training pairs. The authors use newstest-13 to select checkpoints and decoding settings and newstest-14 for testing. The source and target share a dictionary of 32K Byte Pair Encoding sub-words. Translation quality is measured with BLEU, which evaluates generated translations against references using overlaps in sequences of words. The main inference measurements use fairseq, Pytorch 1.10 and CUDA 11 on an Nvidia P100 GPU. The timing reference is autoregressive beam search. The reference for strict output preservation is the distilled autoregressive verifier run greedily.

The comparison includes autoregressive and non-autoregressive translation baselines. Some of the previously published speedups cited in the paper are relative to greedy decoding. Those figures have a different denominator from the paper’s beam-search speedups. The main result for strict GAD is that it reproduces the verifier’s greedy translations at a reported 3.0× speedup over the beam-search baseline. The high-quality GAD++ setting relaxes verification enough to improve translation quality over greedy decoding and reaches 3.6×. The high-efficiency setting advances farther through its drafts and reaches 4.5×, with a marginal quality decrease relative to the high-quality setting.

WMT14 English-to-German test speedup over beam search Relaxing verification raises the reported speedup, with the high-efficiency setting fastest.

**The numbers**

| System or setting | speedup × |
| --- | --- |
| Strict GAD | 3.0 |
| GAD++ high-quality | 3.6 |
| GAD++ high-efficiency (this paper) | 4.5 |

The paper also discusses how the drafter performs in comparisons with non-autoregressive translation systems. Its translation quality exceeds that of most fully non-autoregressive approaches in the comparison and falls short of most iterative ones. The drafter is designed around predicting a block with the preceding output supplied. The authors emphasize that it avoids some expensive mechanisms used by earlier systems, such as length prediction, a search over possible lengths, reranking, or connectionist temporal classification. Their drafter averages 1.6 decoding iterations in the reported comparison of non-autoregressive approaches and delivers speed comparable to fully non-autoregressive decoding. In GAD itself, its role is to provide continuations that are inexpensive to produce and likely to pass the verifier.

Other translation experiments cover the German-to-English direction on WMT14 and both directions between English and Romanian on WMT16. Each direction has decoding settings chosen on its development set. The authors report that the general pattern holds across the language pairs, with some differences in speedup. This is a test of whether the method remains effective when the translation direction and benchmark change. The main test chart gives the figures for WMT14 English-to-German, the benchmark used for the paper’s principal detailed comparisons and timing analysis.

The larger configuration puts Transformer-big in both the drafter and verifier roles. The comparison on WMT14 English–German includes conventional Transformer-big decoding and Blockwise Decoding built on Transformer-big. The paper reports a 3× to 5× speedup for the larger GAD and GAD++ configurations over Transformer-big beam search. The authors attribute the advantage over Blockwise Decoding to a stronger independent drafter and greater acceptance. They also retune the block size and relaxed verification parameters for the big configuration. As a result, the experiment measures a tuned larger system as a whole.

#### Abstractive summarization and batched inference

For summarization the authors use the [CNN Daily Mail dataset](https://md.research.elamur.ai/free/en/papers/hermann-2015-teaching-machines-read-comprehend/). The drafter and verifier are based on BART-base and learn from the distilled training data used by BART. On the CNN Daily Mail test split, strict GAD produces the same output as the autoregressive verifier with beam=1. The paper reports a 3× lossless speedup for this task. GAD++ accelerates it further. The authors report no quality improvement from the relaxed rule comparable to that in their translation experiments and attribute this difference to the wider quality gap between the drafter and the verifier in summarization.

The authors additionally measure batch inference on P100, V100, and A100 GPUs. The correction experiments use CoNLL-14 and include the Transformer-big and 12+2 BART-initialized systems. The translation experiments use WMT14 English–German and the base configuration. The comparisons evaluate P100 in fp32 and V100 and A100 in fp16. The reference for the plotted speedups is autoregressive beam search with beam=5 at batch=32. The authors use batches up to 32 and note that the latency of a batch increases with its size. The plots motivate their observation that devices with stronger parallel computing can give Aggressive Decoding a larger advantage. The comparison describes the tested combinations of device, numerical precision, and implementation.

### What the ablations show

#### Similarity makes copying productive

The authors inspect the 1,381 sentences in CoNLL-13 to explain why IAD saves more time on some inputs than others. They compare each sentence’s speedup over greedy decoding with its edit ratio. The edit ratio is the edit distance between the input and output divided by the input length. It describes the extent of rewriting relative to the amount of source material. The examples with fewer edits tend to give greater speedups. Sentences with heavy editing more frequently require the system to throw away speculative computations and resume serial decoding.

The case studies make the timing pattern easier to connect to the algorithm. Some sentences contain long blocks produced in parallel. Others have short copied stretches separated by isolated autoregressive choices. The edit ratio describes overall similarity, while the verification mechanism responds to where the first difference occurs in a particular drafted stretch and whether a usable suffix match follows. Even with similar total amounts of editing, different locations of the edits can give the decoder different opportunities to copy. The reported distribution establishes the tendency across the validation examples. The examples show the kinds of alternation between copying and serial prediction that can produce it.

#### Block length helps up to the drafter’s capacity

A longer block offers more positions that could pass together. To test how far that advantage extends, the authors vary k on the translation development set while using GAD++ with top-3 and τ=1.0. They examine the mean number of accepted tokens, BLEU, and speed. Mean acceptance increases up to k=25. Beyond that point both efficiency and translation quality decline. The authors attribute the decline to the limited capacity of the drafter when it has to predict more upcoming tokens from the same prefix.

This experiment separates the number of proposed positions from the amount of usable progress. The verifier takes a contiguous run through the first disagreement, so accurate guesses late in a block bring little benefit if an early disagreement has already made the proposed history unusable. A larger k can help most when the drafter still produces a convincing continuation near the start of the block. The tested optimum reflects that capacity and the development data.

The larger configurations provide related evidence. Transformer-big can use k=30, compared with k=25 for Transformer-base in the paper’s comparison. The authors also compare the base and big drafters at k=30 with the GAD-base verifier on the WMT14 English–German test. The bigger drafter supplies more acceptable tokens per iteration and reduces the number of decoding iterations. Because the block size and verifier are held fixed in that comparison, the change in acceptance can be linked to the drafter. A decoder with a different cost per pass can change total latency as well, so acceptance and iteration counts describe the mechanism more directly than they describe the full runtime effect.

For another point of comparison, the authors report that strict GAD-base accepts an average of 6.13 tokens per iteration on the development set, and GAD++ reaches 10.99 with comparable quality. They give a reported average of 1.90 tokens for Blockwise Decoding-base with no quality loss. The Blockwise figure is from earlier work, while the GAD values come from the paper’s own experiments. The controlled drafter-size comparison complements those figures by holding the verifier and requested block length fixed.

#### Relaxing verification helps within a range

On the WMT14 English-to-German development set, the authors hold k=25 and vary the rank cutoff β and tolerance τ in GAD++. Both changes can increase the average number of accepted tokens. Moderate relaxation also improves BLEU in their sweep. The greedy verifier scores 26.62 on the development set. The reported peak in the relaxed sweep is 27.02. At top-5 with τ=5.0, the score falls to 26.64. In that looser setting the relaxed decoder remains close to greedy on BLEU, while giving back most of the quality advantage seen at the peak.

WMT14 English-to-German development BLEU under different verification rules Moderate relaxation attains the highest BLEU, and the loosest shown setting returns close to the greedy score.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Autoregressive greedy verifier | 26.62 |
| GAD++ peak in the development sweep (this paper) | 27.02 |
| GAD++ top-5 with τ=5.0 | 26.64 |

The authors use top-3 with τ=1.0 for the high-quality setting on WMT14 English-to-German, and top-5 with τ=3.0 for the high-efficiency setting on that task. The latter tolerance is below the τ=5.0 setting used to illustrate the decline. These operating points serve different objectives in the test comparison. A better score for a relaxed setting shows that the drafter can sometimes contribute choices that improve the benchmark result. It gives no per-token rule for identifying which individual departures from greediness help. The summarization experiment reinforces the task dependence of the quality effect.

#### Profiling shows where the remaining time goes

An appendix examines single-sentence speedups on the WMT14 English–German test set. The distribution includes 3,003 sentences and uses GAD++ with k=25, top-5, and τ=3.0. Most sentences see speedups between 3× and 6× relative to beam search, while rare cases exceed 10×. A typical result in the distribution is thus a substantial speedup, with variation across inputs. A different sequence of disagreements can change the number of serial rounds even under identical hyper-parameters.

The authors also profile the same base-size GAD++ setting by component. In their implementation, encoding the source separately for the verifier and drafter accounts for roughly 16% of total time on the WMT14 English–German test. The two encoders run in sequence even though their calculations are independent. The drafter’s decoder also consumes more time than the verifier’s decoder. Its bidirectional attention makes it revisit previously decoded tokens across rounds, while the autoregressive side can reuse earlier computations. This explains why a system that aims to reduce autoregressive work can spend much of its remaining time in the parallel proposer.

The memory analysis uses fp32 on a single Nvidia P100. Peak inference memory for GAD-Base is about 400MB higher than for Transformer-base. Around 250MB of that additional footprint holds the drafter’s weights. Most of the remaining increase is attributed to the final source representations produced by the drafter’s encoder, which vary with the shape of the input. Together, the runtime and memory measurements identify the cost added by an independent drafter. Its value depends on how much sequential work the better proposals remove.

### Limitations

#### Limits identified by the authors

The authors describe Aggressive Decoding as preliminary and identify the drafter and the verifier as different sources of performance limits. In strict GAD the verifier determines translation quality, so advancing faster preserves the verifier’s errors as well as its correct choices. The drafter determines how much of that output can be recovered from each parallel pass. A weak drafter can make the system expend time on proposals that are mostly discarded. The larger drafter comparison shows that this part of the system has room to improve within the tested translation configuration.

The authors also identify specific implementation costs. The source encoders for drafting and verification are run consecutively, although they could execute concurrently. The bidirectional drafter cannot save the same computations over already decoded tokens as the autoregressive verifier. In batched verification the implementation also omits caching previous attention keys and values, the intermediate representations that can otherwise be reused. The authors expect optimization to improve performance. Their paper measures the version they implemented and profiles the work it repeats. The additional savings are an expectation based on that analysis.

Hardware affects the results. The authors find the method promising on more powerful devices that can better exploit parallel computation, and they use the batch experiments to illustrate that possibility. They also recognize the latency cost of increasing batch size. The tests stop at batch size 32. This sets the conditions for the observations about hardware and batching, alongside the known limitations of their batched implementation.

The authors treat GAD++ as a way to retain more tokens while relying on the verifier to constrain the acceptable choices. They show that loosening the constraints too far can reduce translation quality. They also acknowledge a different outcome in summarization, where greater speed under the relaxed rule comes without the improvement in quality they found with moderate relaxation in translation. Their explanation invokes the wider gap between the summarization drafter and verifier. The experiments establish task-specific results for the settings evaluated.

#### Limits of the experimental setup

The exact guarantee attaches to greedy decisions of a fixed autoregressive verifier. In translation that verifier is a network trained on distilled targets from the shared teacher. In correction, the greedy and beam-search outputs can favor different edit behavior. A result can therefore combine exact greedy agreement with a large speedup measured against a wider beam. Reading the two comparisons together gives the relevant interpretation: one describes preserved decisions, the other compares runtimes under the specified search procedures. The guarantee and the timing figures cannot establish exact equality with beam-search output or a speedup of the same size against every greedy deployment.

The experiments establish reproducibility of the strict output through the verified prefix, under consistent scoring and stopping. That argument concerns the selected tokens. It gives no mathematical bound on the runtime for a particular sentence and no quality guarantee independent of the verifier. The input-guided method can have little room to advance in parallel if its source and target diverge repeatedly. The generalized method can face the same practical problem when an early draft position fails often, and it incurs the cost of a learned draft in addition to verification. The observed range of per-sentence translation and correction timings is consistent with those limits.

Results on different hardware also come with different execution conditions. The batch comparison changes precision along with the device, and the online correction and translation evaluations use different GPU and software configurations. These experiments document what happens in those setups. They leave open how much of a cross-device difference is due to hardware alone, and how far the same speeds carry over to other serving arrangements. The memory result is likewise specific to the tested base configuration on the P100 in fp32. The influence of source length on the stored encoder states gives one reason the additional memory can vary.

There are limits to what the training comparisons isolate. The drafter and verifier share teacher-generated targets, which the authors use to encourage agreement. The reported tuned results evaluate that choice together with the block training procedure and the other experimental settings. The drafter-size comparison isolates a particular change in capacity more directly. The CoNLL-14 BART-initialized comparison similarly includes architecture and training changes in its reference, so its headline speedup describes the full system against Transformer-big. The distinct validation comparison with Transformer-big gives a more direct view of changing the decoding procedure within that configuration.

Finally, the scope is conditional sequence generation of the kinds tested. The drafting rule for IAD is supported by the correction and simplification experiments, where keeping source text is common. GAD is evaluated with separately trained drafting and verifying components in translation and summarization. The strict procedure preserves greediness. It does not address the different question of preserving a sampling distribution, and the relaxed procedure explicitly permits different tokens. BLEU and the correction metrics indicate benchmark performance. They cannot turn an observed GAD++ quality improvement into a guarantee that other choices of data, drafter or task will give the same outcome.

### What came after

The later paper [Speculative Decoding for seq2seq generation](https://md.research.elamur.ai/free/en/papers/xia-2023-speculative-decoding-exploiting-speculative-execution/) takes up the same inference problem under the description of speculative execution. In that framing, the next output positions are opportunities to work ahead while a decision is still pending. The Aggressive Decoding paper illustrates the opportunity concretely. Its parallel pass evaluates positions whose provisional histories are available from the draft, and its acceptance rule determines how much of that work can become output. The later paper puts the use of speculation to accelerate sequence-to-sequence generation at the center of the study, continuing the algorithmic line of work.

The survey [Towards Efficient Generative Language Model Serving](https://md.research.elamur.ai/free/en/papers/miao-2023-towards-efficient-generative-large-language/) places generation efficiency in a broader setting that spans algorithms and systems. Aggressive Decoding is relevant at both levels. The acceptance rule is an algorithmic decision about when a draft can extend the prefix. Its actual cost and benefit depend on how well the system executes the parallel computations, what it can cache, and how it batches requests. The original paper’s time and memory profiles expose those two levels in a single design. The later survey cites the work in the wider context of serving, where how an algorithm is executed is part of how its efficiency is understood.

[Unlocking Efficiency in Large Language Model Inference](https://md.research.elamur.ai/free/en/papers/xia-2024-unlocking-efficiency-large-language-model/) surveys speculative decoding itself. Its scope puts the draft-and-verify approach within a family of methods for accelerating inference. Aggressive Decoding offers an early example in which the proposal mechanism changes with the task. A rewriting task supplies a cheap draft from its source, while translation uses a trained predictor to supply a continuation in the target language. The paper also gives examples of different acceptance rules within that design. Strict verification preserves the reference decoder’s choices, while the relaxed rule makes room for highly scored proposals and is evaluated through speed and task quality.

Together these citing works show the idea being pursued as a sequence-generation algorithm and examined in surveys of both speculative decoding and serving. The distinction made by the original experiments continues to give those discussions a concrete question to ask of any proposal. A draft has to save enough serial progress to pay for producing and checking it, and the verification rule determines which properties of the reference decoding procedure survive that acceleration.

## Cite

Cite as Tao Ge, Heming Xia, Xin Sun, Si-Qing Chen and Furu Wei. 2022. Lossless Acceleration for Seq2seq Generation with Aggressive Decoding. arXiv:2205.10350.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2205.10350](https://doi.org/10.48550/arxiv.2205.10350) · [arXiv 2205.10350](https://arxiv.org/abs/2205.10350)

```bibtex
@misc{ge2022lossless,
  title = {{Lossless Acceleration for Seq2seq Generation with Aggressive Decoding}},
  author = {Tao Ge, Heming Xia, Xin Sun, Si-Qing Chen and Furu Wei},
  year = {2022},
  doi = {10.48550/arxiv.2205.10350},
  eprint = {2205.10350},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2205.10350}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
