TL;DR
Pixel-space diffusion transformers waste significant computation by processing flat, uniform image areas (like skies or walls) with the same granularity as complex details. This paper introduces the Region Token Interface (RTI), a method that dynamically groups patches into content-adaptive, contiguous regions using a 1D Hilbert curve. RTI achieves a $2\times$ speedup with no loss in generation quality, and its "elastic" design allows a single trained checkpoint to dynamically adjust to any computational budget at runtime.
What Problem Does This Paper Address?
Unlike latent diffusion models, which use an autoencoder (VAE) to compress spatial redundancy before the diffusion process begins, pixel-space diffusion transformers denoise images directly in pixel space. Consequently, they pay a massive computational price, treating every image patch uniformly across every layer and every denoising timestep.
This creates a stark mismatch: a hundred uniform patches might be spent on a blank background wall, while the same number is allocated to a highly detailed object. Prior token reduction techniques fail to solve this cleanly: some delete tokens entirely (losing information), some discard spatial positions (confusing the transformer), and others group patches purely by feature similarity, scattering a single token's representation across disconnected corners of the image.
Methods
RTI introduces a content-adaptive tokenization strategy that preserves spatial contiguity and position while drastically reducing token counts. It relies on several key components:
- The Hilbert Curve Ordering: To group 2D patches into contiguous regions without complex quadtree overhead, the authors map the 2D patch grid into a 1D sequence using a Hilbert curve. Because consecutive positions on a Hilbert curve are always spatial neighbors, any contiguous run in 1D forms a connected, content-shaped region in 2D.
- Content-Adaptive Partitioning: RTI calculates the feature distance between adjacent patches along the Hilbert curve. It places "cuts" at the largest feature gaps, ensuring flat areas stay merged into large regions while highly detailed areas are split into fine, single-patch tokens.
- An Hourglass Core Architecture: Probing reveals that token redundancy is highest in the middle layers of the network. RTI leaves the first few blocks ("prelude") and last few blocks ("coda") at full resolution, compressing tokens only within the middle blocks ("core").
- READ/WRITE Interface: A learned
READmodule soft-pools patch tokens into region tokens, incorporating size and low-passed position embeddings. After the core blocks process these region tokens, aWRITEmodule scatters the updates back to individual patches, specializing the updates using pre-pooled features. - Elastic Budget Training: During fine-tuning, the target number of regions ($R$) is drawn at random. This trains the network to be "elastic," meaning a single checkpoint can be deployed at any token budget.
Datasets
The authors evaluated RTI across several standard text-to-image and class-conditional generation benchmarks:
- GenEval: Used to evaluate compositional text-to-image accuracy (e.g., attribute binding, position).
- PartiPrompts: Used to measure image-text alignment and human preference metrics via reward models (CLIPScore, PickScore, ImageReward).
- MJHQ-30K: Used to compute distribution-level quality (FID).
- ImageNet-1K: Used to validate the approach on class-conditional generation tasks using a different backbone family (JiT).
Key Insights and Ideas
- Redundancy is Dynamic: Spatial redundancy is not static; it sits primarily in the middle blocks of the network (depth) and widens as the image forms over the sampling trajectory (time). Early layers need full resolution to build features, and late layers need it to generate crisp pixel details.
- Contiguity and Position are Non-Negotiable: Grouping patches from opposite corners of an image (as feature-similarity merging does) destroys spatial context. Tokens must represent a definite, contiguous place in the image for the transformer's positional mechanisms to function correctly.
- Tokens over Steps: At a matched computational budget, it is significantly better to run more denoising steps on fewer compressed region tokens than fewer steps on full-resolution patch tokens.
Key Results
- Speed vs. Quality: RTI matches the generation quality of the dense baseline at $2.0\times$ the throughput and maintains highly competitive quality up to $2.6\times$ speedup.
- Baseline Comparison: At a budget of $R=256$ tokens, RTI significantly outperforms feature-similarity merging (ToMe) and latent bottlenecks (Perceiver-style arrays) on GenEval and PartiPrompts. For instance, feature-similarity merging suffers structural breakdowns at low budgets, whereas RTI preserves coherent layouts and fine details.
Limitations and Future Work
- Speedup Ceiling: Because the prelude, coda, and text streams are never compressed, they create an architectural bottleneck that caps the maximum achievable wall-clock speedup (saturating around $2.5\times$ to $3.0\times$).
- Intra-Region Blindness: Once patches are pooled into a region token, the core transformer blocks cannot distinguish or process sub-patch variations within that region.
- Manual Budgeting: The total token budget $R$ is currently a user-defined hyperparameter chosen at deployment, rather than being automatically and dynamically determined by the complexity of the image content itself.
Summary updated