QDM: Quadtree-Based Region-Adaptive Sparse Diffusion Models for Efficient Image Super-Resolution

Donglin Yang, Paul Vicol, Xiaojuan Qi, Renjie Liao, Xiaofan Zhang

TL;DR

The Quadtree Diffusion Model (QDM) introduces a region-adaptive diffusion framework that eliminates computational redundancy in image super-resolution. By using a quadtree structure to identify detail-rich regions, QDM selectively concentrates its processing power on complex textures while bypassing uniform, homogeneous areas. This approach dramatically reduces computational costs and peak memory usage while maintaining high-fidelity reconstruction, making it exceptionally well-suited for resource-constrained environments and medical imaging.

What Problem Does This Paper Address?

Most deep learning-based super-resolution (SR) methods treat every pixel equally, applying uniform, heavy computations across the entire image. However, real-world images are rarely uniformly complex. Large portions of an image—such as smooth skies in natural photos or uniform background tissues in medical CT scans—are homogeneous and require very little refinement.

Applying pixel-wise diffusion models uniformly across these flat regions incurs massive, unnecessary computational overhead and memory consumption. The authors address this inefficiency by asking a fundamental question: How can we dynamically guide a diffusion model to focus its computational budget only on the sparse, detail-rich regions that actually need it?

Difference heatmaps showing that only sparse, detail-rich regions require significant refinement.

Methods

QDM achieves spatial adaptivity through two core components: a Quadtree Prior and a Dual-Stream Architecture.

  1. Quadtree Prior Generation: The algorithm recursively splits a low-resolution input image into four quadrants. If the pixel variance within a sub-region is below a predefined homogeneity threshold $s$, it becomes a "leaf node" and stops splitting. This process yields a sparse binary mask $M$, where 1 represents active, detail-rich sites (bottom-level leaf nodes) and 0 represents homogeneous regions.

  2. Mask-Guided Sparse Diffusion: Unlike standard diffusion models that add and remove noise globally, QDM alters the forward and reverse transition distributions to operate only on the active sites defined by the quadtree mask. Homogeneous regions undergo minimal deterministic refinement to preserve their structure without wasting GPU cycles.

  3. Dual-Stream Transformer Architecture: To execute this spatially adaptive computation, the authors design a bifurcated network:

  4. Upstream Branch: A Diffusion Transformer (DiT) operating on large $8 \times 8$ patches. It efficiently captures global contextual relationships and handles coarse refinements, reducing the token count by $64\times$.

  5. Downstream Branch: Processes fine-grained $2 \times 2$ patches, but only within the windows flagged as active by the quadtree mask. It uses multi-head cross-attention to pull global context from the upstream branch and refine local details.
Figure 2. Dual-Stream Architecture Overview. Our transformer-based model employs two complementary processing streams guided by a quadtree mask for input-adaptive computation. The upstream (top) extracts global context via Diffusion Transformer (DiT) blocks operating on patches with size 8×8, while the downstream (bottom) refines patches with size 2×2 exclusively in mask-selected regions. Mask M dynamically controls computational overhead by routing computationally intensive processing only to detail-rich areas. Selected tokens are partitioned into parallelizable chunks, each processed independently through cross-attention blocks. Final predictions combine the coarse upstream outputs with the refined downstream results.

Datasets

The model was evaluated across both natural and medical imaging domains:

  • Natural Images: Trained on a combination of six benchmarks: LSDIR, DIV2K, DIV8K, OutdoorSceneTraining, Flickr2K, and a subset of FFHQ. Evaluation was conducted on RealSR, RealSet80, and LSDIR-Test.
  • Medical Images: Focused on clinical CT scans from the HaN-Seg (head-and-neck organ segmentation) and SegRap2023 (naso-pharyngeal cancer radiotherapy planning) challenges. Evaluation benchmarks included Med-SR4 ($\times4$ tasks) and Med-SR8 ($\times8$ tasks).

Key Insights and Ideas

  • Structural Hierarchy Preservation: A key insight is that low-resolution and high-resolution images share the same structural hierarchy at upper levels. Therefore, a quadtree mask derived entirely from a low-quality input remains a highly accurate proxy for guiding high-resolution refinement.
  • Token Independence via Masking: By projecting only mask-selected tokens into the high-dimensional downstream space and partitioning them into parallelizable chunks, the model completely avoids storing full-size, high-dimensional feature maps. This breaks the quadratic memory bottleneck typical of vision transformers.
  • Tunable Efficiency: The homogeneity threshold $s$ acts as a direct hardware-efficiency knob. Users can dynamically scale down FLOPs for resource-critical deployments by simply increasing $s$.

Key Results

  • Computation and Memory Savings: On the Med-SR8 benchmark, using a lossless threshold ($s=0$) matched full-mask performance while cutting total computation by 40.3%. Increasing the threshold to $s=0.90$ reduced computation to just 15.5% of the baseline with a negligible PSNR drop of 0.34 dB.
  • Peak Memory Reduction: When processing high-resolution $1024 \times 1024$ inputs, QDM variants demonstrated massive memory advantages. For instance, QDM-S required only 0.5 GB of peak memory compared to 4.1 GB for a standard DiT-S and 14.3 GB for SwinUNet.
Peak memory usage comparison across different architectures on high-resolution inputs.
  • Performance: QDM-L achieved competitive or superior PSNR, SSIM, and perceptual metrics (LPIPS) against state-of-the-art training-from-scratch methods like ResShift and LDM, particularly excelling in clinically critical pathological areas like tumor regions.

Limitations and Future Work

While QDM delivers state-of-the-art performance among methods trained from scratch, it still falls slightly short of the absolute visual generation quality of pretrained foundation-prior methods (e.g., StableSR, SeeSR) on natural images. However, those massive text-to-image models carry immense computational weight and fail to generalize to specialized domains like medical imaging due to a lack of relevant prior knowledge.

The authors suggest that future work could focus on adapting this region-adaptive quadtree masking mechanism to other dense prediction tasks or exploring its integration into larger foundation models to make them more resource-conscious.

Summary updated

BibTeX
@inproceedings{yang2026qdm,
  author = {Donglin Yang and Paul Vicol and Xiaojuan Qi and Renjie Liao and Xiaofan Zhang},
  title = {{QDM: Quadtree-Based Region-Adaptive Sparse Diffusion Models for Efficient Image Super-Resolution}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=3mciR3endl},
}
Figure