Annealed Relaxation of Speculative Decoding for Faster Autoregressive Image Generation
Xingyao Li, Fengzhuo Zhang, Cunxiao Du, Hui Ji
TL;DR
This paper tackles the latency challenge of autoregressive (AR) image generation by grounding speculative decoding (SD) in theory and introducing COOL-SD, an annealed relaxation of SD. It derives a near-tight upper bound on the TV distance between the relaxed output and the target distribution, identifies an optimal resampling distribution G_i^*, and demonstrates that a decaying (annealed) acceptance schedule further reduces distributional bias. The proposed COOL-SD framework consistently improves the speed–quality Pareto frontier over prior SD methods on two large AR image models (LlamaGen-XL and Lumina-mGPT), and even enhances performance when applied to LANTERN++. The combination of principled bias control and adaptive acceptance yields faster image generation with minimal quality loss, making AR models more viable for real-time applications.
Abstract
Despite significant progress in autoregressive image generation, inference remains slow due to the sequential nature of AR models and the ambiguity of image tokens, even when using speculative decoding. Recent works attempt to address this with relaxed speculative decoding but lack theoretical grounding. In this paper, we establish the theoretical basis of relaxed SD and propose COOL-SD, an annealed relaxation of speculative decoding built on two key insights. The first analyzes the total variation (TV) distance between the target model and relaxed speculative decoding and yields an optimal resampling distribution that minimizes an upper bound of the distance. The second uses perturbation analysis to reveal an annealing behaviour in relaxed speculative decoding, motivating our annealed design. Together, these insights enable COOL-SD to generate images faster with comparable quality, or achieve better quality at similar latency. Experiments validate the effectiveness of COOL-SD, showing consistent improvements over prior methods in speed-quality trade-offs.
