TL;DR
Generating crisp images directly from raw pixels usually requires massive compute, which is why most modern AI models take a lossy shortcut through compressed "latent" spaces. RePiD sidesteps both the compression bottleneck and the compute explosion by recursively chopping images into smaller and smaller patches as it denoises them—sculpting coarse blocks first and fine pixels last. By letting each patch peek at its immediate neighbors to avoid awkward seams, it delivers top-tier image quality at a fraction of the usual computational cost.
What Problem Does This Paper Address?
If you want to generate high-resolution images with a diffusion model, you face a classic engineering trade-off. Doing diffusion directly in pixel space preserves every ounce of detail, but running full-image attention across hundreds of thousands of pixels at every denoising step is brutally expensive.
To survive this, models like Stable Diffusion use Latent Diffusion: they squish the image through a pre-trained autoencoder into a tiny latent space, diffuse there, and decode it back. It is fast, but that initial squish creates an information bottleneck—subtle textures get lost, and fine-grained editing gets tricky. Recent pixel-space models try to avoid autoencoders by cascading from low-res thumbnails up to high-res images, yet they still burn massive compute during the final full-resolution stages. The authors ask: can we stay purely in lossless pixel space without ever paying the full-resolution attention tax?
Methods
RePiD (Recursive Pixel-Space Diffusion) builds on a standard Diffusion Transformer (DiT) backbone with $\epsilon$-prediction (predicting the noise added to an image), but completely rewires how the image is fed into it over time.
Instead of changing the image's resolution across stages, RePiD keeps the canvas at full resolution ($256 \times 256$) and couples diffusion time with spatial granularity:
- Recursive Patch Partitioning: The 1000-step denoising timeline is split into three stages. Stage 1 chops the noisy image into 256 blocks ($16 \times 16$ pixels). Stage 2 subdivides those into 4,096 blocks ($4 \times 4$), and Stage 3 goes down to 65,536 individual $1 \times 1$ pixels. Crucially, each DiT forward pass processes single blocks independently in parallel batches, rather than one giant image-wide sequence.
- Neighborhood Embedding (NE): If you denoise patches independently, you get a checkerboard of mismatched edges. To fix this, RePiD introduces a novel two-step attention module. Before denoising a central block, it grabs its 8 surrounding same-scale neighbors (a $3 \times 3$ grid). First, self-attention lets all 9 blocks chat to establish local context; second, cross-attention lets the center block pull relevant details from that enriched neighborhood to use as a conditioning signal.
- Synchronous Training with Teacher Forcing: Because stages depend on each other, training them simultaneously from scratch can cause noisy errors to cascade. RePiD trains in reverse order using a cosine-decayed teacher forcing schedule—occasionally feeding stages clean ground-truth patches early in training, then gradually weaning them onto real inter-stage outputs.
Datasets
No new benchmarks are introduced. The authors evaluate on established datasets resized to $256 \times 256$ (with supplementary tests at $512 \times 512$):
- ImageNet-256: Used for standard class-conditional image generation.
- CelebA-HQ & AFHQ: High-quality human faces and animal faces (cats, dogs, wildlife), used as a downstream case study for unpaired image-to-image translation (paired with a lightweight GAN-based recurrent generator to supply pseudo-conditions).
Key Insights and Ideas
- Divide-and-conquer slashes quadratic attention: Full-image self-attention scales quadratically with pixel count. By isolating attention inside recursively smaller blocks, RePiD shrinks the theoretical quadratic attention scaling by a factor of roughly $240\times$ on a $256 \times 256$ image.
- Recursion carries more weight than fancy local operators: In a controlled $2 \times 2$ ablation comparing single-stage vs. multi-stage setups, a multi-stage recursive model using a simple $3 \times 3$ convolution beat a single-stage model equipped with full Neighborhood Attention (FID 3.32 vs. 3.58). Aligning spatial scale with diffusion time is doing the heavy lifting.
- Local gossip creates global harmony: Even though blocks only ever talk to their immediate $3 \times 3$ neighbors, context propagates "hop by hop" across denoising steps. Grid-artifact metrics at block boundaries deviate from real photographs by less than 3.4%, proving you don't need global attention at every step to build a coherent picture.
Key Results
On ImageNet-256 (using a 50-step Euler solver split 20/15/15 across stages), RePiD hits a sweet spot on the quality–efficiency frontier:
- High Fidelity, Tiny Footprint: With 280M parameters, RePiD achieves an FID of 1.87 (lower is better) and an Inception Score (IS) of 341.6 (higher is better), requiring just 43.3 GFLOPs and 3.43 seconds per sample.
- Beating Pixel Baselines on Speed: Compared to recent end-to-end pixel diffusion heavyweights (PixelDiT, JiT, DeCo, PixelGen), RePiD uses $2.4\text{--}3.4\times$ fewer parameters and $3.0\text{--}4.2\times$ fewer GFLOPs while achieving the highest IS among them and nearly matching their FIDs (1.61–1.86). Against PixelFlow, it cuts compute from 146.3 to 43.3 GFLOPs and sampling time from 12.53s to 3.43s.
- Accessible Training & Transferability: The 400K-step ImageNet-256 model trained in just 91.2 GPU-hours on a single consumer RTX 4090 (24GB). On unpaired translation, it achieved the best FID on both CelebA-HQ (26.30) and AFHQ (59.37) among tested baselines.
Limitations and Future Work
Because blocks only communicate locally hop-by-hop, modeling scenes with strict, long-range global geometry remains challenging—local neighborhood conditioning mitigates cross-patch drift, but doesn't eliminate it. Expanding to a $5 \times 5$ neighborhood improves FID (from 2.50 to 2.21 in ablations), but nearly triples the GFLOPs ($2.88\times$). Additionally, ultra-high-resolution fidelity has room to grow, and the architecture hasn't yet been battle-tested on large-scale text-to-image generation. Future work aims to explore adaptive stage step-allocation, stronger cross-patch context mechanisms, and full text-to-image benchmarks like GenEval.
Summary updated