Manuscript Offprint

arXiv:2610.38822

CopyLoop: Fast Looped Transformer Decoding via Context Copying and Shallow Screening

Wenyu Du, Stephen Chung

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Wenyu Du Stephen Chung

DualverseAI

Looped Transformers increase computational capacity through the repeated application of shared blocks, but their recurrent depth makes conventional full-depth decoding expensive. While existing speculative pipelines accelerate generation by processing consecutive token positions at varying depths, they are typically limited by sequential decoding overheads. We introduce CopyLoop, a training-free decoding algorithm that combines low-cost context-copy proposals with shallow screening and continuous recurrent scheduling. Rather than step-by-step generation, CopyLoop proposes multi-token suffixes from repeated context. It then evaluates them early at a shallow recurrent depth to efficiently filter out incorrect branches, processing newer blocks concurrently while earlier blocks are still progressing toward full-depth verification. We evaluate CopyLoop across six model checkpoints from the Ouro, Raven, and Huginn families, covering code generation and multi-step mathematical reasoning. CopyLoop achieves decoding speedups of 2.98×−10.70×2.98\times-10.70\times over full-depth autoregressive decoding on Base models and 2.74×−3.52×2.74\times-3.52\times on Thinking models, consistently outperforming or closely matching all competing baselines across evaluation tasks. Furthermore, ablation studies confirm a strong synergy between shallow screening and continuous scheduling, while our analyses show that CopyLoop requires only lightweight model calibration and yields greater speedups on longer generations with reusable contexts.

Date: 28-Oct-2026

Correspondence: info@dualverse.ai

DUALVERSE AI

1 Introduction

Looped Transformers increase computational capacity without scaling parameter count by repeatedly applying shared Transformer blocks [1, 2]. Recent studies demonstrate that they can outperform conventional Transformers of equivalent size on specific tasks, highlighting the potential of recurrent computation to elevate model performance [3–5]. Nevertheless, this efficiency comes at a price: every token needs complete all recurrent passes before the next can initiate, causing decoding latency to scale with recurrent depth.

Intermediate predictions circumvent this bottleneck by decoding hidden states from early recurrent passes into draft tokens, allowing them to start their own processing cycles while current positions proceed deeper. Self-speculative decoding frameworks [6, 7] exploit this by concurrently processing consecutive token positions at varying depths. Once a position attains full depth, its final next-token prediction verifies the draft: a match preserves the continuation, whereas a mismatch discards it. When intermediate predictions prove accurate, such pipelining drastically trims sequential computation.

The success of prior self-speculative methods relies on intermediate recurrent passes to generate draft tokens step by step, which remains limited by sequential decoding overheads. We broaden this perspective: rather than generating drafts token by token, we observe that direct copy-paste from repeated context—such as recurrent phrases or structured blocks—provides a much cheaper and richer source of multi-token proposals, completely bypassing stepwise drafting. Because such copied guesses can be wrong, we introduce shallow recurrent verification to cheaply filter out invalid suffixes before full-depth processing. By coupling these low-cost copy-paste proposals with an efficient shallow screening schedule, we call this algorithm CopyLoop.

This work extends a human-verified finding made by Station (https://dualverse.ai/station) as part of our Autonomous Research Program (https://dualverse.ai/auto_research). See Section 7 for a discussion of AI use.

Figure

Figure 1: Screen copied tokens while full-depth verification continues. (a) A shallow-predicted token A is extended by B C D from earlier context. Predecessor predictions A→B, B→C, and C→X retain A B C, discard D, and supply X as the next head. (b) Retained states advance alongside the next block. Each column represents one pass of the shared recurrent block. Full-depth predecessor predictions commit final tokens in causal order. This teaching example uses ds=1d_s = 1 and R=4R = 4.

Concretely, CopyLoop works as follows. At each step, a shallow prediction forms the initial token of a block, while a context-matched suffix supplies the remaining tokens. The entire block then advances jointly to an early recurrent depth, where each copied token is screened against its predecessor's next-token prediction: only the longest agreeing prefix is preserved, and the rest is discarded. The surviving tokens continue toward full-depth verification, while the retained position immediately seeds the next block, enabling newer proposals to enter the pipeline before earlier blocks complete verification. In this manner, CopyLoop advances multiple positions per readout, pruning unreliable suffixes before they trigger expensive deeper computation. CopyLoop uses existing model readouts and requires no additional training. Figure 1 illustrates this mechanism through a four-token example.

We evaluate CopyLoop across six model checkpoints from the Ouro, Raven, and Huginn families, covering different recurrent depths, code generation, and mathematical reasoning with both Base and Thinking models. Across our evaluations, CopyLoop achieves decoding speedups of 2.98–10.70× over full-depth autoregressive decoding on Base models and 2.74–3.52× on Thinking models, outperforming all baselines in 14 of 16 Base model-task configurations and all eight Thinking configurations, and closely matching them on the remaining configurations. Beyond these overall gains, ablation studies confirm a strong synergy between shallow screening and continuous scheduling: screening yields substantially larger latency reductions when new blocks enter before full-depth verification. Furthermore, hyperparameter studies demonstrate that CopyLoop requires only lightweight calibration when transferring to new model architectures. Lastly, our analysis shows that CopyLoop delivers greater speedups on longer lengths and reusable spans, whereas short-response tasks see limited acceleration due to pipeline overheads.¹

Our contributions are:

  • Copy-paste speculation with shallow screening. We introduce CopyLoop, a training-free efficient decoding algorithm for looped Transformers that combines context-derived multi-token proposals with shallow screening and continuous recurrent scheduling, using causal full-depth verification to output final tokens.

¹Code is available at https://github.com/dualverse-ai/copyloop.

  • Evaluation across architectures and generation modes. We evaluate decoding efficiency and task accuracy across four Base and two Thinking checkpoints, demonstrating significant acceleration over autoregressive decoding and gains over existing self-speculative pipelines across code and reasoning workloads.

  • Analysis of mechanism and hyperparameter stability. We reveal the synergy between shallow screening and continuous scheduling via ablation studies, verify the stability of core hyperparameters, and quantify how reusable span patterns and response lengths shape overall speedups.

References (25)