TL;DR
DVAR introduces a size-flexible visual autoregressive framework for image super-resolution, breaking the rigid resolution constraints of traditional next-scale prediction models. By learning a canonical scaling dynamic and utilizing a zero-overhead dynamic sampling scheduler, it achieves state-of-the-art perceptual image restoration across arbitrary resolutions using a single set of weights.
What Problem Does This Paper Address?
Visual Autoregressive (VAR) models generate images using a coarse-to-fine "next-scale prediction" paradigm, showing great promise for efficiency and structural control. However, vanilla VAR models suffer from a major limitation: size-dependency. Because they always initiate generation from a fixed $1 \times 1$ static token and memorize absolute scaling schedules, a completely separate model must be trained for every single target resolution. This is highly impractical for Real-World Image Super-Resolution (Real-ISR), where input sizes are highly variable and unpredictable.
Furthermore, like all autoregressive models, VAR models are susceptible to exposure bias. During training, the model uses ground-truth historical tokens to predict the next scale (teacher forcing). During inference, however, it must rely on its own potentially flawed prior predictions, leading to compounding errors and degraded image quality.
Methods
The authors propose DVAR to replace the static assumptions of vanilla VAR models with two dynamic components:
- Canonical Scaling Dynamic: Instead of starting from a blank $1 \times 1$ token, DVAR initiates generation using a data-dependent dynamic start token map extracted directly from the low-quality (LQ) input image. It defines a single canonical scale sequence at a base resolution and proportionally rescales it to fit any arbitrary target resolution. This keeps relative scaling ratios consistent across different sizes, allowing a single model to generalize to unseen resolutions.
- Dynamic Sampling Scheduler (DSS): To mitigate exposure bias without the massive computational overhead of traditional scheduled sampling, DSS exploits the geometric property of VQ-VAE codebooks (where visually similar features are close to each other in vector space). It tracks the model's historical prediction errors using an Exponential Moving Average (EMA). During training, it samples plausible "mistakes" from the ground-truth token's $k$-nearest neighbors and feeds them back into the model, efficiently bridging the training-inference gap with zero extra forward passes.
The overall architecture consists of a degradation-robust encoder to extract features, a state-of-the-art Switti VAR transformer backbone fine-tuned via Low-Rank Adaptation (LoRA), and target-size embeddings to make the network explicitly size-aware.
Datasets
- Training: The model is trained on the LSDIR dataset and the first 10,000 images from the FFHQ dataset. Low-quality and high-quality pairs are synthesized using the Real-ESRGAN degradation pipeline.
- Evaluation: DVAR is evaluated on one synthetic benchmark (DIV2K-Val processed with the Real-ESRGAN pipeline) and two real-world benchmarks (RealSR and DRealSR).
Key Insights and Ideas
- Restoration vs. Synthesis: The authors point out that image restoration is fundamentally a refinement task ("from something to something better"), unlike text-to-image generation which is a synthesis task ("from nothing to something"). Forcing a super-resolution model to start from a $1 \times 1$ token discards the rich structural and content priors already present in the low-quality input.
- Semantic Topology of Visual Tokens: Unlike discrete text tokens in NLP, visual tokens embedded from a VQ-VAE possess a meaningful geometric space. This allows the model to simulate realistic inference errors simply by looking at spatial neighbors in the codebook, turning a typically expensive scheduled sampling routine into a virtually free lookup operation.
Key Results
- Perceptual Superiority: DVAR achieves state-of-the-art scores on no-reference Image Quality Assessment (IQA) metrics like CLIPIQA and MANIQA across all three evaluation datasets. For example, on the DRealSR dataset, DVAR scores 0.7351 on CLIPIQA and 0.5653 on MANIQA, outperforming both diffusion-based (SeeSR, SUPIR) and previous AR-based (VARSR) methods.
- Qualitative Excellence: DVAR excels at reconstructing fine surface details like textile fibers, leaf veins, and animal fur where other methods produce blurry or distorted artifacts.
Limitations and Future Work
Because DVAR relies on a discrete VQ-VAE tokenizer, it inherently introduces minor tokenization errors. This leads to slightly lower pixel-fidelity metrics (PSNR and SSIM) compared to continuous VAE-based diffusion models, reflecting the classic perception-distortion trade-off. The authors suggest that future work could explore mitigating these tokenization losses or extending the canonical scaling dynamic to other autoregressive vision tasks.
Summary updated