Rarity-Aware Discrete Diffusion with Spatially Consistent Decoding for Photo-Realistic Image Super-Resolution

Ao Li, Yapeng Du, Yi Xin, Lei Zhu, Le Zhang, Guangtao Zhai, Ce Zhu, Xiaohong LiuarXiv 2026

TL;DR

The authors introduce DiMOO-SR, a novel discrete diffusion framework that brings native multimodal semantic understanding to photo-realistic image super-resolution (SR). By addressing the long-tailed distribution of visual tokens during training and enforcing spatial consistency during parallel inference, DiMOO-SR achieves state-of-the-art perceptual quality while reducing generation times from minutes to just 1.63 seconds.

What Problem Does This Paper Address?

Continuous diffusion models currently dominate photo-realistic image super-resolution, but they treat reconstruction as continuous signal-level denoising and rely on external conditioning modules to inject semantic priors. This makes it difficult to natively leverage the unified token-based scaling laws seen in modern large multimodal models.

Autoregressive (AR) models offer a native alternative by quantizing images into discrete visual tokens, allowing Large Language Models (LLMs) to reason about scene content before reconstruction. However, AR models generate tokens sequentially (one-by-one), creating a massive efficiency bottleneck for high-resolution images.

Discrete Diffusion Models (DDMs) present a promising "third path" by enabling non-causal, parallel token prediction. However, directly applying vanilla DDMs to super-resolution fails due to two core bottlenecks:

  1. The Long-Tailed Token Distribution: Common low-frequency tokens (like sky or flat walls) dominate visual codebooks. Standard uniform masking strategies cause the model to waste capacity on these trivial backgrounds while ignoring rare, texture-rich tokens that are perceptually critical.
  2. Spatially Inconsistent Decoding: Parallel decoding predicts masked tokens independently based on pointwise confidence. Without a structural consensus mechanism, this independence introduces isolated, artifact-ridden token errors.

Methods

DiMOO-SR builds on a bidirectional attention transformer backbone (Lumina-DiMOO) and introduces two key innovations to solve the challenges of discrete diffusion in SR:

Figure 2: Overview of the proposed framework. Left (Training): We replace uniform masking with Inverse Frequency Sampling (IFS), assigning higher masking probabilities to rare, texture-rich tokens (visualized by the density curve). Right (Inference): We introduce Spatial Consistency Ranking (SCR), a parameter-free module that refines token confidence using anchor-aware local consensus to mitigate isolated artifacts.

1. Inverse Frequency Sampling (IFS)

To combat the long-tailed token bias during training, the authors introduce IFS. Instead of uniform random masking, tokens are masked based on their self-information (rarity). Rarer tokens receive higher masking probabilities, forcing the model to focus its capacity on reconstructing complex, high-frequency textures. To prevent "context collapse" (where the model loses global layout structure), they implement a Hybrid Sampling Strategy that alternates between a Global Structure Branch (uniform masking) and a Hard Refinement Branch (IFS).

2. Spatial Consistency Ranking (SCR)

During inference, standard DDMs re-mask tokens based purely on individual pointwise confidence scores. SCR refines this process by introducing a parameter-free, local neighborhood agreement mechanism. Tokens already locked in from previous steps act as "reliable spatial anchors." For newly predicted tokens, a local consensus is calculated using a $3\times3$ voting window. Uncertain predictions are then re-ranked based on how well they agree with their neighbors, effectively smoothing out isolated artifacts at the token level.

Datasets

  • Training: The model was trained on approximately 310,000 high-texture patches extracted from the first 10,000 images of the FFHQ and LSDIR datasets. Low-resolution counterparts were synthesized using the Real-ESRGAN degradation pipeline, and dense text captions were generated using Qwen3-VL.
  • Evaluation: Testing was performed using fixed $512 \times 512$ patches from two widely accepted real-world super-resolution benchmarks: RealSR and DRealSR.

Key Insights and Ideas

  • Statistical Rarity = Semantic Density: By projecting visual tokens back to pixel space, the authors proved that codebook rarity is a direct proxy for local structural complexity. Common tokens map to flat backgrounds, while rare tokens map to intricate textures and sharp edges.
Figure 1: Correlation between rarity and semantic density. The codebook follows a long-tailed distribution. Common codes (e.g., 754) correspond to flat backgrounds, while rare codes (e.g., 3974) encode high-frequency textures. Random masking predominantly samples the former, leading to inef- ficient fine-tuning for super-resolution.
  • Defensive Mixture Sampling: Purely training on rare tokens destabilizes optimization. Blending uniform masking with importance sampling (IFS) creates a bounded importance weight that stabilizes training while retaining the benefits of hard negative mining.
  • Anchor-Based Refinement: Parallel decoding doesn't have to mean completely independent decoding. Treating high-confidence tokens from earlier iterations as spatial anchors provides a robust, training-free way to guide neighboring ambiguous tokens.

Key Results

  • State-of-the-Art Perceptual Quality: On the RealSR benchmark, DiMOO-SR achieved the lowest Frechet Inception Distance (FID of 123.78) and Deep Image Structure and Texture Similarity (DISTS of 0.2110), outperforming both continuous diffusion models (like SeeSR and PASD) and token-based alternatives.
  • Massive Speedups: By utilizing parallel decoding over just 5 steps, DiMOO-SR restores a $512 \times 512$ image in 1.63 seconds on an NVIDIA 4090 GPU. This is a 142× speedup over autoregressive token baselines like PURE (232.4 seconds) and a 28× speedup over vanilla Lumina-DiMOO (46.3 seconds).
  • Superior Text and Geometry Restoration: Qualitative evaluations show that DiMOO-SR produces significantly sharper character boundaries, more legible text, and eliminates chromatic aliasing/fringing common in other generative SR methods.
Figure 3: Qualitative comparison for ×4 super-resolution. Compared with PASD and token-based baselines, DiMOO-SR produces sharper local structures, more legible text, and fewer isolated artifacts.

Limitations and Future Work

Despite its strong performance, DiMOO-SR inherits the fundamental granularity limits of its underlying discrete codebook; it cannot reconstruct extremely fine textures that fall outside the codebook's representational capacity. Additionally, relying on an external Vision-Language Model (VLM) to generate dense captions introduces preprocessing latency.

The authors suggest that future work should focus on exploring adaptive or hierarchical codebooks, developing lightweight on-the-fly captioning modules, and designing more precise fidelity control mechanisms.

Summary updated

BibTeX
@misc{li2026rarity,
  author = {Ao Li and Yapeng Du and Yi Xin and Lei Zhu and Le Zhang and Guangtao Zhai and Ce Zhu and Xiaohong Liu},
  title = {{Rarity-Aware Discrete Diffusion with Spatially Consistent Decoding for Photo-Realistic Image Super-Resolution}},
  year = {2026},
  eprint = {2607.17612},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.17612},
}
Figure