Manuscript Offprint

arXiv:2610.07659

DLoop: Looped Speculative Decoding

Geonmo Gu, Byeongho Heo, HeeJae Jun, Yoohoon Kang, Sangmin Lee, Sangdoo Yun, Dongyoon Han

ABSTRACT

Speculative decoding accelerates autoregressive generation in large language models. In each drafting stage, a lightweight draft model proposes tokens that the target model subsequently verifies. With increasingly capable draft models, we find that the target model frequently accepts all tokens produced in a drafting stage. A verification nevertheless follows each drafting stage, resulting in unnecessary target-model forward passes even when drafting could have continued. Adaptive draft length methods decide during decoding how many draft tokens precede a verification, but they raise the speedup only for autoregressive draft models. For a parallel draft model, drafting further requires target-model hidden states for draft tokens that have not been verified. We propose DLoop, a looped form of speculative decoding that adaptively performs multiple drafting stages before verification. DLoop continues drafting while the draft model remains confident and verifies all accumulated draft tokens together. Loop-aware training keeps the draft model reliable in the additional drafting stages by exposing it to its own hidden states for unverified draft tokens. By spending additional draft-model forward passes, DLoop reduces the number of target-model forward passes required for verification. Across diverse speculative decoding methods including EAGLE-3, DFlash, Domino, DSpark, and multi-token prediction modules, DLoop improves the wall-clock speedup by 5 to 41 percent while preserving lossless decoding. Code will be available at https://github.com/naver-ai/DLoop.

1 INTRODUCTION

Speculative decoding (Leviathan et al., 2023; Chen et al., 2023) accelerates autoregressive generation in large language models (Brown et al., 2020; Achiam et al., 2023; Team et al., 2023; Grattafori et al., 2024; Liu et al., 2024a; Yang et al., 2025), where each token costs a full forward pass of the model. In each drafting stage, a lightweight draft model proposes several draft tokens that the target model is likely to generate next. It produces them either token by token (Li et al., 2024a;b; 2025) or in parallel (Chen et al., 2026; Cheng et al., 2026; Huang et al., 2026). The target model then verifies these draft tokens in a single forward pass while preserving its output distribution.

Speculative decoding performs a verification after every drafting stage, even when the draft model could have continued. If the draft model keeps producing tokens that the target model accepts, additional lightweight drafting stages can replace costly verifications. As shown in Fig. 1, across four draft models and three task categories, a substantial fraction of drafting stages are fully accepted, that is, every draft token passes verification. Verification also dominates decoding time, since it requires a full forward pass of the target model. The latency of that pass, however, grows only modestly with the number of tokens it verifies (Pope et al., 2023).

Adaptive draft length methods were proposed to address this problem by deciding during decoding how many draft tokens precede a verification (Kim et al., 2023; Zhang et al., 2025; Agrawal et al., 2024; Xu et al., 2023; Huang et al., 2025; Mamou et al., 2024; Zhang et al., 2026; 2024b; Brown et al., 2024). These methods raise the speedup only for autoregressive draft models as shown in Section 4.2. These methods build on an autoregressive draft model, either a separate small language model or a drafter of the EAGLE family (Li et al., 2024a;b; 2025). Such a draft model produces one token at a time and can therefore stop or continue drafting at any token. A parallel draft model (Chen et al., 2026; Huang et al., 2026; Cheng et al., 2026) instead produces all draft tokens of a drafting stage in a single forward pass. Stopping early leaves the cost of this forward pass unchanged.

Drafting further requires target-model hidden states for draft tokens that have not been verified. Without them, the draft model conditions on its own hidden states, a setting it was not trained for.

In this work, we propose DLoop, a looped form of speculative decoding in which a single verification covers multiple drafting stages. DLoop consists of two components, a confidence-gated drafting loop at inference and loop-aware training. The drafting loop, illustrated in Fig. 2, decides how many drafting stages a single verification covers. It repeats the drafting stage while the draft model remains confident in the draft tokens it has just produced. After each drafting stage, the loop scores this confidence by summing the log probabilities of these draft tokens. If the score remains above a threshold, the loop performs an additional drafting stage. Otherwise, the target model verifies all accumulated draft tokens in one forward pass. Since the loop repeats whole drafting stages, it applies to parallel and autoregressive draft models alike. As in standard speculative decoding, the acceptance rule is unchanged and decoding remains lossless.

Loop-aware training aims to keep the draft model reliable in the additional drafting stages. An additional drafting

Figure

Figure 1: Full acceptance is common. Fraction of drafting stages in which the target model accepts every draft token, under standard speculative decoding with Qwen3-4B (Yang et al., 2025) and greedy decoding (T = 0).

stage conditions on the draft tokens of earlier drafting stages. Target-model hidden states exist only for the tokens before the first drafting stage. Loop-aware training exposes the draft model to its own hidden states for the draft tokens that follow. It is inspired by the training-time test of EAGLE-3 (Li et al., 2025). That test unrolls the draft model over its own predicted features within one drafting stage. Loop-aware training extends this unrolling across the drafting stages of the loop. Unlike the training-time test, it thus applies to parallel draft models as well.

We evaluate DLoop on EAGLE-3 (Li et al., 2025), DFlash (Chen et al., 2026), Domino (Huang et al., 2026), DSpark (Cheng et al., 2026), and multi-token prediction modules (MTP) (Team, 2026a; Team et al., 2026). In every one of these settings, the loop and loop-aware training together raise both the acceptance length and the wall-clock speedup. DLoop obtains this speedup by spending additional draft-model forward passes to reduce the number of target-model forward passes. It does not require additional parameters and applies on top of these publicly released draft models. DLoop does not change how a draft model produces tokens, only how many drafting stages precede a verification. The number of drafting stages before a verification need not be fixed by the schedule and can be decided during decoding.

References (44)