arXiv(opens in a new tab)cs.CVAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.29281

Elastic Token Compression for Pixel-Space Diffusion Transformers

Eduard Zamfir, Christian Reisswig, Zongwei Wu, Yongqin Xian, Radu Timofte

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Natural images concentrate their detail in a small fraction of the frame, yet diffusion models spend a full token on every patch, in every layer and at every timestep. The waste is largest in pixel-space models, with no autoencoder to absorb low-level redundancy first. Probing a pretrained pixel text-to-image transformer, we find its middle-block tokens redundant wherever the image is flat. The redundancy occupies connected, content-shaped regions, and exploiting it requires tokens with the same geometry. Cutting a Hilbert ordering of the patches provides them. Consecutive positions are always image neighbours, so any contiguous run is a connected region whose size and shape follow the content, and grouping in two dimensions becomes a cut in one. Existing reductions each lose part of this. Similarity merging scatters its groups, latent bottlenecks discard position, and skipping deletes what it should summarize. We cut where the model's features change most and pool each run into one region token. Our Region Token Interface (RTI) adapts a diffusion model to these tokens, with the region count drawn at random during fine-tuning so one checkpoint serves every budget. RTI leads prior reduction methods at matched budgets, matches dense quality at 2.0×2.0\times the speed, and stays close at 2.6×2.6\times. The code and models are open-sourced at https://eduardzamfir.github.io/rti.

1 Introduction

A natural image is not uniform in space, and the process that generates it is not uniform in time. Detail gathers in a small part of the frame while clear sky, a flat tabletop or a stretch of water repeats itself over large areas, and a diffusion model (Ho, Jain, and Abbeel 2020; Song, Meng, and Ermon 2021) resolves that detail only late in sampling, once the layout has settled. Diffusion transformers (Peebles and Xie 2023; Ma et al. 2024; Esser et al. 2024) follow neither axis. They run on a regular grid of patches, one token each, at the same cost in every layer and at every timestep. Fig. 1 makes the mismatch concrete. Where a uniform tokenization spends around a hundred patches on sky or a wall, a handful of larger regions covers the same area.

The waste is most acute in pixel-space diffusion transformers (Li and He 2026; Wang et al. 2026), which denoise the image directly and so have no autoencoder to absorb the low-level spatial redundancy first. A latent model (Rombach et al. 2022) pays for that redundancy once, in a VAE; a pixel-space model pays for it in every block.

Uniform Tokens

Region Tokens

Figure

Figure 1: Content-adaptive tokenization. RTI groups the patch grid into contiguous regions sized by content, so flat areas collapse into a few large region tokens while detail stays near per-patch. Three samples with the uniform grid overlaid (top) and ours (bottom); each arrow reports how many region tokens RTI spends where the grid spends ∼\sim100 patches. The overlays compare tokenizations, not outputs.

We measure that redundancy in a pretrained pixel generator, along the two axes above and a third that the model adds. In space, Fig. 2a confirms the concentration in the generated images themselves. In time, Fig. 2b pools the N patch tokens into a few hundred regions and keeps a growing share of a block's representation as the image forms. In depth, Fig. 2c finds that share highest in the middle blocks and falling toward the first and last, which stay sensitive to every patch.

Measured this way, the redundancy has a shape, and the shape dictates the reduction. Redundant patches lie next to one another in flat stretches of the frame, so groups must be contiguous. Because detail concentrates in few patches, group size must follow the content, large over a flat wall and small over foliage. A group covers a definite place that its token has to stand for, and each must therefore hold a position. And in Fig. 2c dropping loses what pooling keeps, which is why the redundant content must be summarized rather than deleted, coarse rather than absent. Existing reductions each forfeit at least one. Similarity merging (Bolya et al. 2023; Bolya and Hoffman 2023; Wang et al. 2024) groups by appearance, so a group can gather patches from opposite cor-

Figure

(a) Detail is spatially concentrated.

Figure

(b) More redundant as detail forms.

Figure

(c) Most poolable in the middle blocks.

Figure 2: Token redundancy in a pretrained pixel diffusion model. We probe a frozen MiniT2I-B/16 along three axes. (a) In space, detail is concentrated: the most-detailed 15% of patches hold half of it, the top half 88%. (b) In time, pooling the N=1024 tokens to R=256 regions recovers a growing share of a middle block's representation as the image forms, with a content-adaptive partition ahead of a uniform grid throughout. (c) In depth, the redundancy sits in the middle blocks and thins toward the first and last (shaded); skipping rather than pooling (red) recovers far less.

ners of the frame and its token stands nowhere in particular, losing contiguity and position at once; latent bottlenecks (Jaegle et al. 2022; Jabri, Fleet, and Chen 2023; Haji-Ali et al. 2026) give up grouping and position together; conditional computation (Raposo et al. 2024; Jain et al. 2024) deletes what it should summarize.

In this work, we obtain all of these properties from a single ordering of the patches. A Hilbert curve (Hilbert 1891) visits every patch exactly once, and consecutive positions in the order it induces are always image neighbours, so any contiguous run of that order is a connected region, of any length and not necessarily a square, with a centre the pretrained attention reads as an ordinary position. Grouping in two dimensions therefore becomes cutting in one. We cut where the model's features change most, long runs over flat areas, single patches over detail, and recut each step, so the partition tracks the image as it forms.

We integrate this partition into a pretrained diffusion transformer with RTI, our Region Token Interface. Guided by Fig. 2c, the first and last blocks keep every patch, while the middle blocks operate on region tokens alone. A learned pooling forms each region token on the way in, and a learned scattering spreads its update back over the patches on the way out. The backbone stays frozen apart from low-rank adapters, and the number of regions is drawn at random during training, so one checkpoint runs at any budget.

In summary, our main contributions are:

• We measure the redundancy in a pretrained pixel diffusion transformer and the shape it takes.

• We introduce RTI, an elastic Hilbert-ordered region interface that adapts a frozen backbone.

• RTI matches the dense baseline at twice the throughput, ahead of prior reduction methods.

References (64)