Speculate in the Right Order: Efficient Self-Speculative Decoding for Autoregressive Image Generation

Yihan Chen, Jintao Zhang, Jun ZhuarXiv 2026

TL;DR

Generating images with AI is usually a slow, one-pixel-at-a-time process. This paper introduces Speculation-Aware Ordering (SAO), a clever way to rearrange the order in which an AI "paints" an image so it can accurately guess its own future steps, leading to speedups of over 5x without any extra training.

What Problem Does This Paper Address?

Autoregressive (AR) models—the same tech behind ChatGPT—are fantastic at creating high-quality images, but they are notoriously slow. They generate "visual tokens" (think of these as sophisticated pixels) one by one. To speed things up, researchers use speculative decoding: the model "drafts" several future tokens in parallel and then checks if they make sense. If the first guess is wrong, the whole batch is tossed out.

The catch? Most models follow a rigid "raster scan" order (left-to-right, top-to-bottom). But pixels have complex dependencies. If you try to guess a pixel that depends heavily on a neighbor you haven't drawn yet, you’ll likely guess wrong. This paper asks a simple but profound question: Can we find a better generation order that makes these guesses more likely to be correct?

Methods

The authors propose Speculation-Aware Ordering (SAO). It’s a "training-free" framework, meaning you don't need to retrain your massive AI model; you just change its "to-do list."

  1. Measuring Influence: They use a metric called Conditional Total Variation (TV) to see how much revealing one token changes the prediction of another. Think of it as a "dependency map" of the image.
  2. The Objective Function: They identify two enemies of speed:
  3. Draft-Target Mismatch: When the parallel guesses deviate too much from what the sequential model would have done.
  4. Early-Rejection Cost: If you mess up the first guess in a batch, you waste the entire batch. Messing up the last guess is much cheaper.
  5. Offline Optimization: Using the dependency map, SAO mathematically constructs a "speculation-friendly" order offline. It places highly influential tokens earlier in the sequence so that subsequent parallel guesses have a solid foundation to build on.
Figure 1. A toy example illustrating how generation order affects self-speculative decoding. We consider four visual tokens, where u has a strong conditional influence on v, while other pairwise influences are assumed negligible. With K = 4, the illustrated round uses three parallel draft proposals and a potential bonus to- ken. From Order A to B, intra-group reordering delays the illus- trated rejection from j = 2 to j = 3, reducing the early-rejection cost. From Order B to C, placing v at the bonus position avoids jointly drafting u and v, potentially reducing the draft–target mis- match associated with their dependency. The committed lengths (L = 2, 3, 4) represent illustrative decoding outcomes.

Datasets

The researchers put SAO to the test on two heavy hitters in the vision world:

  • ImageNet-256: Used for class-conditional generation (e.g., "generate a picture of a goldfinch").
  • MS-COCO: Used for text-to-image generation (e.g., "a cat wearing a hat"). They evaluated performance using standard metrics like FID (for image quality) and NFE (Number of Function Evaluations, a proxy for computational cost).

Key Insights and Ideas

  • Order is a New Dimension: We usually think about model architecture or sampling tricks. This paper proves that the sequence of operations is a massive, untapped lever for efficiency.
  • The "Early Rejection" Penalty: The realization that not all rejections are equal is crucial. By reordering tokens so that the "hardest" ones aren't at the front of a speculative block, the model stays "on the rails" longer.
  • Quality Bonus: Surprisingly, optimizing for speed also improved image quality (lower FID scores). This suggests that some generation orders are inherently "easier" for the model to handle, leading to more coherent images.
  • Training-Free is Key: Because SAO is an offline, mathematical optimization, it can be applied to existing models (like ARPG-L or RLlamaGen) immediately.

Key Results

The results are quite striking across different model backbones:

  • Speed: On the ARPG-L model, SAO achieved a 5.29x latency speedup compared to standard sequential decoding.
  • Efficiency: It increased the average number of tokens accepted per round from ~9 to over 11 (with a window size of 16).
  • Quality: On ImageNet, the FID score improved from 16.89 (random order) to 14.67 (SAO order).
  • Complementarity: SAO isn't a replacement for other speculative methods; it actually makes them better. When combined with existing techniques like SJD or SCD, it provided an additional 10-20% speed boost.

Limitations and Future Work

  • Fixed Order: Currently, SAO finds one "best" order for all images. However, different images (e.g., a landscape vs. a portrait) might benefit from different, dynamic ordering.
  • Profiling Cost: While the optimization is "training-free," it does require an initial "profiling" phase to build the dependency matrix (taking about 1 GPU hour).
  • Discrete Tokens: The method is designed for models that use discrete visual tokens. Extending this to continuous-space models (like some diffusion-based AR hybrids) remains an open challenge.

In short, SAO shows us that in the world of AI, it's not just about what you say, but the order in which you say it.

Summary updated

Abstract

Self-speculative decoding accelerates autoregressive image generation by leveraging the same model for parallel drafting and sequential verification, without requiring an additional draft model. While existing methods primarily focus on improving drafting and verification strategies, recent advances in random-order autoregressive modeling introduce an additional degree of freedom: the generation order. In this work, we theoretically analyze how generation order affects self-speculative decoding efficiency, identifying two key factors: draft-target mismatch, which determines token rejection probabilities, and early-rejection cost, which reflects the higher cost of rejecting tokens earlier in a speculative round. Motivated by these insights, we propose Speculation-Aware Ordering (SAO), a training-free framework for offline optimization of generation orders. Instead of evaluating candidate orders through costly speculative decoding, SAO uses simple pairwise conditional-TV statistics to formulate a rejection-cost-aware objective and efficiently construct speculation-friendly generation orders offline. Extensive experiments across different backbones and speculative widths demonstrate that SAO improves decoding efficiency, with the additional benefit of improved generation quality. Furthermore, SAO provides complementary efficiency gains when combined with existing self-speculative decoding methods. To the best of our knowledge, this is the first work to identify generation order as a new optimization dimension for efficient self-speculative decoding in autoregressive image generation.
BibTeX
@misc{chen2026speculate,
  author = {Yihan Chen and Jintao Zhang and Jun Zhu},
  title = {{Speculate in the Right Order: Efficient Self-Speculative Decoding for Autoregressive Image Generation}},
  year = {2026},
  eprint = {2611.30704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30704},
}
Figure