RaPD: Resolution-Agnostic Pixel Diffusion via Semantics-Enriched Implicit Representations

Yanhao Ge, Shanyan Guan, Weihao Wang, Ying Tai, Mingyu You

TL;DR

RaPD (Resolution-Agnostic Pixel Diffusion) introduces a novel framework that performs diffusion directly within a continuous Neural Image Field (NIF) latent space. By combining semantic distillation with a coordinate-queried attention renderer, RaPD enables high-quality text-to-image generation at arbitrary resolutions while keeping the core diffusion computational cost completely fixed.

What Problem Does This Paper Address?

Modern image generative models—whether operating in pixel space or compressed VAE latent spaces—are fundamentally bound to discrete grids. Generating higher-resolution images natively requires scaling up token lengths and computational costs quadratically.

While continuous representations like Neural Image Fields (NIFs) or Implicit Neural Representations (INRs) allow for resolution-free rendering, previous attempts only used them as post-hoc interpolation modules during decoding. This creates a reconstruction-generation gap: the underlying latent space remains optimized for local textures rather than global semantics, meaning the models reconstruct images beautifully but fail to generate coherent new ones from text prompts.

The reconstruction-generation gap in existing NIF representations.

RaPD addresses this by making the continuous latent space itself "generation-aware."

Methods

RaPD breaks the generation process into a two-stage pipeline:

  1. Stage-1: Generation-Aware NIF Learning: Instead of training an encoder-decoder pair purely on pixel reconstruction, RaPD introduces Semantic Representation Guidance (SRG). It uses a frozen vision foundation model (DINOv2) as a teacher to distill global and local semantic structures directly into a dense, uncompressed NIF latent space.
  2. Stage-2: Diffusion Training via Flow Matching: A Diffusion Transformer (DiT) denoiser is trained over these normalized, semantically enriched continuous latents.

To decode these latents into spatially coherent images at any resolution, the authors discard traditional pointwise MLP decoders and introduce the Coordinate-Queried Attention Renderer (CQAR). CQAR constructs tokens based on target coordinates and cell sizes, then applies Swin-style windowed self-attention. This allows pixels to perform inter-pixel semantic reasoning during the rendering stage.

Overview of the RaPD framework showing Stage-1, Stage-2, and Inference.

At inference time, the model runs the expensive denoising process exactly once on a fixed latent shape. To change the output resolution, you simply alter the query coordinate grid fed into CQAR.

Datasets

  • Pretraining: Approximately 36 million images from the BLIP3o corpus.
  • Fine-tuning: A curated subset of 60k high-quality images at $512 \times 512$ resolution.
  • Evaluation Benchmarks: GenEval (for compositional text-to-image alignment) and DPG-Bench (for complex, long-form prompt fidelity).

Key Insights and Ideas

  • Formative Semantic Supervision: Aligning continuous latents with a foundation model during the autoencoder training phase changes the nature of the latent space. It shifts from storing low-level texture statistics to storing generative semantic layouts.
  • The Density Shift Principle: Because the NIF latent space lacks spatial downsampling, it is incredibly dense with information compared to a standard VAE latent. Standard diffusion timestep schedules fail here. RaPD fixes this by applying a massive timestep shift factor ($s=32$), forcing the flow-matching model to prioritize heavy noise stages where global structure is established.
  • Attention over Output Coordinates: Pointwise implicit decoders lack a receptive field, meaning they cannot ensure global coherence across arbitrary scales. By performing windowed self-attention over the queried output tokens rather than the input grid, CQAR allows neighboring pixels to coordinate boundaries and fine details dynamically.

Key Results

  • State-of-the-Art Pixel Diffusion: At a baseline resolution of $512 \times 512$, RaPD achieves an overall score of 0.85 on GenEval, outperforming strong pixel-diffusion baselines like PixelGen (0.79) and DeCo (0.86 in original, 0.83 re-run), as well as larger models like SD3 (0.68).
  • Unprecedented Scaling Efficiency: Because the diffusion cost is decoupled from the output size, RaPD scales incredibly well to out-of-distribution resolutions like $4096 \times 4096$.
Figure 1: RaPD supports arbitrary-resolution text-to-image generation and outperforms strong latent- and pixel-diffusion baselines [18, 40, 52, 51, 68, 10].
  • Inference Speedup: At $4096^2$ resolution, fixed-grid pixel diffusion models like PixelGen and DeCo experience quadratic slowdowns, taking over 61 seconds per image. RaPD generates the same resolution in just 2.13 seconds—a massive win for high-resolution deployment.

Limitations and Future Work

Despite its architectural elegance, the authors note a few key limitations:

  • Data Scale: RaPD was trained on 36 million images, which is orders of magnitude smaller than commercial models like FLUX.1 or DALL-E 3, limiting its absolute visual fidelity.
  • Text Understanding: The choice of a compact text encoder (Qwen3-1.7B) can sometimes constrain its ability to parse highly complex, multi-layered prompts.
  • Engineering Optimizations: The current inference stack does not yet leverage hardware-level acceleration techniques like FlashAttention, FP8 quantization, or fused window-attention kernels for CQAR.

Future directions include scaling up the dataset, extending the continuous NIF latent space to controllable editing tasks, and implementing hardware-aware inference acceleration.

Summary updated

BibTeX
@inproceedings{ge2026rapd,
  author = {Yanhao Ge and Shanyan Guan and Weihao Wang and Ying Tai and Mingyu You},
  title = {{RaPD: Resolution-Agnostic Pixel Diffusion via Semantics-Enriched Implicit Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BRLhAs1iAm},
}
Figure