TL;DR
Auto-regressive (AR) image generation models are powerful but computationally heavy, making on-device deployment painfully slow. This paper introduces CIAR, a cloud-device collaborative decoding framework. By using a novel interval-based uncertainty metric, CIAR allows a mobile device to generate predictable image regions locally and only query the cloud for complex details. This approach speeds up generation by over 2x and cuts expensive cloud requests by 70% without sacrificing image quality.
The Bottleneck in Auto-Regressive Image Generation
AR models like LlamaGen have recently matched diffusion models in generating high-fidelity images. However, they generate images sequentially (token-by-token) using massive visual vocabularies. This makes them incredibly slow and difficult to deploy on resource-constrained edge devices like smartphones.
A common workaround in text generation is "speculative decoding"—a small model on the device quickly drafts tokens, and a massive model on the cloud verifies them. However, applying text-based speculative decoding directly to images fails for two main reasons:
- Communication Bottleneck: Image tokens scale quadratically with resolution. Sending every single token to the cloud for verification creates a massive data transfer bottleneck, negating any speed benefits.
- Spatial Redundancy: Images have highly predictable regions (like a flat blue sky) and highly uncertain regions (like complex object boundaries). Uniformly verifying every token wastes cloud compute and bandwidth on "easy" tokens that the device model already predicted correctly.
To make collaborative decoding work for visual synthesis, the device needs a way to accurately self-verify its own confidence, ensuring it only bothers the cloud when absolutely necessary.
Introducing CIAR: Collaborative Interval-based AutoRegressive Decoding
To solve these inefficiencies, the authors propose CIAR, which centers on an on-device token uncertainty quantifier.
The framework consists of three main components:
- Interval-Based Uncertainty Quantifier (Inter-Head): Standard uncertainty metrics (like entropy) fail for images because massive visual codebooks naturally flatten probability distributions. Instead of outputting standard discrete probabilities, CIAR equips the device model with an "Inter-Head" that outputs continuous probability intervals (upper and lower bounds) for each token. This allows the device to calculate an uncertainty score based on the total volume and disparity of these intervals, efficiently deciding if a token is safe to keep or needs cloud verification.
- Cloud-Enhanced Decoding: When the device is uncertain, it sends the token sequence to the cloud. To prevent the device and cloud from falling out of sync (distribution drift), CIAR uses Prefix Injection (the cloud pre-generates a short starting sequence to guide the device) and Interval-Enhanced Decoding (the device sends its interval features to the cloud, giving extra context about the device's confidence to help steer the correction).
- Inter-DRO Loss: Because the device's Inter-Head outputs intervals rather than standard logits, it cannot share weights with the cloud model. The authors introduce a Distributionally Robust Optimization (DRO) training strategy to ensure the device's interval predictions stay strictly aligned with the cloud model's expectations.
Key Insights
- Text Speculative Decoding ≠ Image Speculative Decoding: Text tokens carry dense, diverse information, whereas image tokens exhibit high spatial redundancy. Treating image generation exactly like text generation wastes massive amounts of compute on predictable pixels.
- Most Device Predictions are Already Correct: The authors found that when a small device model generates an image, the cloud model actually agrees with about 70% of the device's top-choice tokens. The trick to acceleration is isolating the 30% that actually need help.
- Continuous Intervals > Discrete Sets: Calculating uncertainty by enumerating discrete probabilities over a massive visual vocabulary (e.g., 16,000+ tokens) is too slow for on-device use. Using continuous probability intervals bypasses this exponential scaling, making real-time self-verification mathematically and computationally feasible.
Performance and Results
CIAR was evaluated on MS-COCO for fidelity, alignment, and speed, and tested on ImageNet-1K to verify generalization across different generative architectures.
- Massive Speedups: CIAR achieved up to a 2.53x to 3x inference speedup compared to base models (LlamaGen and Anole).
- Drastic Bandwidth Reduction: The framework reduced cloud verification requests by ~70%, requiring the cloud to intervene on only about 30% of the generated tokens.
- Preserved Image Quality: Despite skipping cloud verification for most of the image, CIAR maintained visual fidelity, achieving CLIP, FID, and HPSv2 scores comparable to the heavy base models and outperforming existing visual acceleration baselines like Lantern and CoDe.
- Architectural Flexibility: CIAR successfully generalized beyond standard AR models, achieving a 2.5x speedup when applied to a Diffusion Transformer (DiT) model.
Limitations and Future Work
While highly effective, CIAR relies on carefully tuned hyperparameters. Setting the uncertainty threshold too high or the prefix rate too low causes distribution drift, leading to noticeable visual artifacts. Additionally, when applied to Next-Scale Prediction (NSP) models like VAR, the relative communication overhead of cloud verification becomes more pronounced, slightly reducing the overall acceleration gains.
Looking forward, the successful application of CIAR to a Diffusion Transformer (DiT) suggests that interval-based collaborative decoding has strong potential for accelerating iterative refinement processes in diffusion models, marking a promising avenue for future research.
Summary updated