Speculate in the Right Order: Efficient Self-Speculative Decoding for Autoregressive Image Generation
Organizations: Tsinghua University
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.
Figures & tables
| Backbone | Method | NFE | Latency (s) | Speedup | FID | IS | ||
| NFE | Latency | |||||||
| ARPG-L | Sequential Raster | 256.00 | 1.00 | 4.82 | 40.82 | 33.99 | ||
| Sequential Random | 256.00 | 1.00 | ||||||
| Sequential SAO | 256.00 | 1.00 | 4.78 | 14.28 | 90.65 | |||
| Self-Spec Raster | 123.32 | 4.14 | 2.39 | 41.00 | 33.88 | |||
| Self-Spec Random | ||||||||
| Backbone | Decoder | Order | NFE | Latency (s) | Latency Speedup | FID | |
|---|---|---|---|---|---|---|---|
| Sequential | Order | ||||||
| ARPG-L | Self-Spec | Random | – | ||||
| SAO | 45.60 | 0.90 | 14.67 | ||||
| SJD | Random | – | |||||
| SAO | 37.12 | 1.21 | 14.55 | ||||
| SCD-MC | Random | – | |||||
| Order | NFE | Latency (s) | FID | |
|---|---|---|---|---|
| ARPG-L | ||||
| Random | ||||
| Shuffled | ||||
| Unweighted | 10.80 | 47.42 | 0.99 | 14.80 |
| Blockwise | 10.18 | 50.05 | 1.02 | 15.13 |
| SAO | 11.21 | 45.60 | 0.90 | 14.67 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | NFE | Latency (s) | Speedup | FID | ||||
| NFE | Latency | Order | ||||||
| Sequential Random | 256.00 | 1.00 | – | |||||
| Sequential SAO | 256.00 | 1.00 | 4.79 | – | 15.05 | |||
| Self-Spec Random | – | |||||||
| Self-Spec SAO | 130.07 | 3.93 | 2.52 | 15.06 | ||||
| Direct Parallel | 64.00 | 4.00 | – | |||||
| Method | NFE | Latency (s) | Speedup | FID | CLIP-Score | ||||
| NFE | Latency | Order | |||||||
| Sequential Random | 257.00 | 1.00 | – | ||||||
| Sequential SAO | 257.00 | 1.00 | 10.54 | – | 30.34 | 27.37 | |||
| Self-Spec Random | – | ||||||||
| Self-Spec SAO | 136.38 | 3.77 | 5.65 | 29.91 | 27.44 | ||||
| Direct Parallel | 129.00 | 4.00 | – | ||||||
| Backbone | Profiling Trajectories | Coverage (%) | NFE | Profiling Cost (GPU hours) | |
|---|---|---|---|---|---|
| ARPG-L | Random | – | 0.00 | ||
| 64 | 99.98 | – | – | 0.12 | |
| 128 | 100.00 | 11.06 | 46.23 | 0.24 | |
| 256 | 100.00 | 11.07 | 46.15 | 0.47 | |
| 500 | 100.00 | 11.16 | 45.82 | 0.92 | |
| 1,000 | 100.00 | 11.16 | 45.79 | 1.84 |
| Generation Order | NFE | Latency | Order Speedup | FID | |
| Random | |||||
| Raster Scan [ 4 ] | 4.14 | 123.32 | 2.39 | 41.00 | |
| Spiral-in [ 4 ] | 4.07 | 125.66 | 2.34 | 35.50 | |
| Spiral-out [ 4 ] | 3.91 | 130.57 | 2.46 | 34.81 | |
| Z-curve [ 4 ] | 4.20 | 121.62 | 2.32 | 43.42 | |
| Subsample [ 4 ] | 10.18 | 50.20 | 1.01 | 18.93 |
| Generation Order | NFE | Latency | Order Speedup | FID | CLIP | |
| Random | ||||||
| Raster Scan [ 4 ] | 4.00 | 128.60 | 5.43 | 34.57 | 26.49 | |
| Spiral-in [ 4 ] | 4.04 | 127.54 | 5.45 | 33.96 | 26.61 | |
| Spiral-out [ 4 ] | 4.02 | 128.24 | 5.46 | 35.31 | 26.66 | |
| Z-curve [ 4 ] | 4.08 | 126.15 | 5.33 | 33.52 | 26.64 | |
| Subsample [ 4 ] | 8.73 | 59.55 | 2.54 | 30.89 | 27.29 |
| Backbone | CFG | Order | NFE | FID | CLIP | |
|---|---|---|---|---|---|---|
| ARPG-L | 2 | Random | – | |||
| SAO (Reuse) | 10.54 | 48.51 | 5.80 | – | ||
| SAO (CFG-matched) | 10.53 | 48.54 | 5.06 | – | ||
| 3 | Random | – | ||||
| SAO (Reuse) | 9.88 | 51.73 | 11.76 | – | ||
| SAO (CFG-matched) | 9.91 | 51.56 | 9.81 | – |
Speculative Decoding
Speculative decoding accelerates generation by drafting multiple tokens and verifying them in parallel with a larger target model.
See all 371 papers