TL;DR
Accelerating image diffusion models by merging redundant image patches (tokens) usually forces an ugly trade-off: either distort the whole image or protect only the main subject while turning the background to mush. DaTMe (Dynamics-aware Token Merging) solves this without any extra training by watching the physics-like dynamics of the generation process itself. By protecting tokens that are still actively evolving or hold sharp structural edges—regardless of whether they were mentioned in the text prompt—DaTMe speeds up generation while keeping the entire scene crisp.
What Problem Does This Paper Address?
Modern Diffusion Transformers (DiTs) generate stunning images, but iteratively denoising thousands of image tokens across dozens of steps is painfully slow. Token merging speeds this up on the fly by grouping similar tokens together so the model processes fewer of them.
The million-dollar question is: which tokens are safe to merge, and which ones must be left alone?
Early methods merged tokens purely based on visual similarity, accidentally swallowing up fine details. Newer approaches use Classifier-Free Guidance (CFG)—which measures how strongly the text prompt steers a token—to protect "important" foreground regions. But CFG has a massive prompt-centric blind spot. If you prompt for an "elegant teacup," the model also invents a table, lighting, and perhaps a background flower to make the scene coherent. Because you didn't explicitly type "flower," CFG assigns those background tokens low importance and merges them away, destroying background objects and structural coherence.
Methods
Instead of asking "does this token match the text?", the authors ask two questions grounded in diffusion dynamics: "is the model still actively changing this token?" and "does this token hold an edge or texture?"
To answer this cleanly, DaTMe relies on Tweedie’s formula, a mathematical shortcut that estimates what the final, clean image looks like at any noisy intermediate step. From this noise-normalized estimate, DaTMe builds a two-part importance map:
- Temporal Signal (Novel): Measures the step-to-step difference in the Tweedie clean-image estimate. High values mean the region is still "unresolved" and actively evolving.
- Spatial Signal (Novel): Downsamples and upsamples the Tweedie estimate, taking the residual between the original and blurred versions. This acts like a high-pass filter, lighting up sharp boundaries, contours, and fine textures across the entire image.
At each step, DaTMe assigns roles based on a target compression ratio:
- Constraint Tokens: Tokens scoring high on both temporal and spatial axes are locked in as untouchable structural anchors.
- Source Tokens: Tokens scoring low on both axes (stable and flat/homogeneous) are marked safe to merge. To hit the exact compression budget without collapsing a single region, DaTMe tops up this set using uniform grid-based spatial sampling.
- Locality-Constrained Routing (Standard): Building on prior DiT merging work, source tokens are merged only into spatially adjacent destination tokens via bipartite soft matching, respecting local geometry.
Datasets
Because DaTMe is entirely training-free, no training datasets are used. For evaluation, the authors sample 10,000 image-prompt pairs from the MS-COCO 2014 validation set, testing across two major DiT architectures: PixArt-$\alpha$ and FLUX.1-dev. No new benchmarks are introduced.
Key Insights and Ideas
- Importance is a moving target: Diffusion generates images coarse-to-fine. Early on, updates concentrate on main objects; later, generative activity ripples outward into background textures. CFG stays stubbornly glued to the foreground the whole time, whereas Tweedie differences naturally track this outward wave.
- Why raw noise scores fail late in the game: Why use Tweedie’s clean-image estimate instead of just measuring changes in the raw predicted noise (score slope)? The authors prove mathematically that raw score differences get contaminated by a global noise-schedule "scale term" that explodes as noise approaches zero in late steps—drowning out actual token updates with unstructured static. Tweedie algebraically cancels this scale term out.
- Works without CFG: Modern rectified-flow models like FLUX.1-dev don't use traditional CFG, rendering CFG-based merging unusable. Because DaTMe only needs intermediate denoised estimates, it works out of the box.
Key Results
Tested at 30%, 50%, and 70% token compression ratios, DaTMe consistently achieves the best quality-efficiency trade-off:
- PixArt-$\alpha$ (50% compression): DaTMe slashes the FID quality degradation seen in baselines—scoring 43.42 FID (nearly matching the uncompressed baseline's 42.10), compared to 52.29 for CFG-merging and 94.89 for ToMeSD. It boosts structural similarity (SSIM) to 0.730 vs. CFG's 0.633, while cutting latency from 1.94s down to 1.69s (at 170.4 TFLOPs vs. 183.5 base).
- FLUX.1-dev (50% compression): Latency drops from 14.60s to 13.27s while outperforming ToMeSD and attention-based ToMA on prompt alignment (HPSv2 28.93), structural fidelity (PSNR 20.20), and aesthetics.
- Human Preference: In a blind study with 32 evaluators on PixArt-$\alpha$ ($r=0.3$), DaTMe won 70.31% of overall preferences, vs. 28.44% for CFG and 1.25% for ToMeSD.
Limitations and Future Work
While the paper does not include a standalone limitations section, the authors explicitly note a slight computational overhead in their quantitative tables: computing Tweedie maps, dual rankings, and grid completion makes DaTMe marginally slower than simpler baselines at identical compression ratios (e.g., 1.69s vs. 1.59s for ToMeSD on PixArt-$\alpha$ at $r=0.5$), though it easily makes up for this by preserving image quality at higher compression rates. Future directions are not explicitly discussed in the main text.
Summary updated