Which Tokens to Merge? Diffusion Dynamics for Efficient Image Generation

arXiv:2610.22370 · cs.CV · Submitted 2026-10-15 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: I'm Tom.

Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.

Tom: We're looking at the paper: "Which Tokens to Merge? Diffusion Dynamics for Efficient Image Generation".

Jane: The gist The authors propose Dynamics-aware Token Merging (DaTMe),

Tom: First, who's behind it and why it matters.

Title and authors: Tom: So, to recap, this paper is about using diffusion dynamics to make smarter token merging decisions for image generation. They are proposing a new way to pick which tokens stay as anchors and which ones can safely be merged without destroying important parts of the image structure.

Jane: Exactly. The authors point out that current approaches based only on prompt relevance fail because they ignore background objects and local details that are not in the prompt, so they introduce this idea that token importance depends on whether a token is still evolving during denoising and if it carries structural information.

Lu: They construct this dynamics-aware importance map from the Tweedie denoised estimate, which combines a temporal signal measuring inter-step changes in the predicted clean image with a structural signal capturing local high-frequency content like boundaries and fine details.

Meng: That sounds complex to implement, but if it works well on models like PixArt-alpha and FLUX, it suggests we could get better quality while still being efficient.

Lalam: They then use this map to adaptively assign tokens into merging roles based on a compression ratio. Important tokens are kept as anchors, while tokens that are both temporally stabilized and structurally homogeneous are selected as safe merge candidates.

The paper's summary: Tom: So, the summary of "Which Tokens to Merge? Diffusion Dynamics for Efficient Image Generation" is that DaTMe is a training-free framework for token merging in diffusion transformers that uses a dynamics-aware importance signal derived from the Tweedie denoised estimate.

Jane: They explain that at each denoising step, DaTMe assigns token roles by looking at the intersection of temporal and structural signals. Tokens with high scores are set as constraint tokens and excluded from merging because they are dynamically or structurally important regions.

Lu: The framework supplements this by taking low-scoring tokens—those from relatively stable and homogeneous regions—and sampling them into grid-based spatial cells to avoid local information loss after merging.

Meng: So, when they hit the budget constraint, like meeting a target compression ratio r, DaTMe picks the right tokens to keep and which ones can be safely merged in those stable areas.

Lalam: After assigning the source set with that additional grid sampling, they use locality-constrained matching to merge those source tokens only within nearby regions. This prevents merging distant tokens from collapsing spatially and distorting local structure.

The paper's improvements: Tom: The main improvements they highlight are that DaTMe better preserves background integrity compared to the CFG-based merging methods that people have used before.

Jane: That’s a big deal because the authors say that CFG's focus on text relevance leads to a blind spot where low-ranked tokens in non-prompt regions get merged into neighboring homogeneous areas, losing fine details.

Lu: They also point out an improvement in their temporal importance signal. Instead of using raw score slope, which they say is heavily dominated by noise schedule scaling, they define the temporal map as the inter-step residual in predicted clean-image space, defined as M(t)temp = xˆ0(t) − xˆ0(t − one) <ref:2610.22370#pg1>.

Meng: That sounds more robust for real inference because it measures how much the predicted structure is still evolving spatially, rather than just the raw score. It gives them a better signal for when to keep or merge tokens.

Lalam: They also show that jointly modeling temporal evolution and structural saliency gives them this dynamics-aware token importance signal that guides merging decisions at the intersection of those two signals.

Conclusion: Tom: To wrap up, the authors argue that DaTMe successfully grounds token merging in the underlying generation dynamics by using a spatiotemporal importance map to identify safely mergeable tokens while preserving structurally critical regions.

Jane: This approach shows that diffusion dynamics are an effective way to make token merging decisions for efficient image generation, and they demonstrate strong visual fidelity across the entire image on models like PixArt-alpha and FLUX.

Lu: The final contribution is that by using this spatiotemporal importance map, DaTMe achieves a strong preservation of image-wide details and state-of-the-art performance compared to prior methods.

Meng: From an engineering standpoint, the fact that they maintain visual fidelity across the whole image while being more efficient is exactly what we need for production models.

Lalam: And I'd add that their experiments confirm that jointly using temporal and spatial signals yields the best overall performance, while replacing just the temporal signal with raw score slope consistently degrades all evaluation metrics.

Tom: So, in summary, this paper "Which Tokens to Merge? Diffusion Dynamics for Efficient Image Generation" successfully grounds token merging in generation dynamics by leveraging a spatiotemporal importance map to identify safely mergeable tokens while preserving structurally critical regions.

SeungJu Cha, Ye-Chan Kim, HyunGee Kim, Sungho Koh, Dong-Jin Kim

Hanyang University

cs.CV

Submitted: 2026-10-15

Updated: 2026-10-15

Comments: Accepted at NeurIPS 2026. Code: https://github.com/SeungJuCha/DaTMe

Code: https://github.com/SeungJuCha/DaTMe

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 83/100

The gist: The gist The authors propose Dynamics-aware Token Merging (DaTMe), a training-free framework that grounds token merging in diffusion dynamics by constructing a dynamics-aware importance map from the

Key concepts

Dynamics-aware Token Merging (DaTMe)
A training-free framework that grounds token merging in diffusion model dynamics. It creates an importance map using temporal changes and structural features to adaptively assign tokens into merging roles, ensuring critical regions are preserved while minimizing generation degradation.
Temporal Dynamics Signal
This signal measures how much the predicted clean image structure is still evolving between consecutive denoising steps. It is calculated as the inter-step residual ($|x_0(t) - x_0(t-1)|$), highlighting regions where the model is actively injecting details and should not be merged.
Structural Saliency Signal
This signal captures local high-frequency content, such as boundaries, fine textures, and contours. It is derived from the Tweedie estimate to assign high importance to areas with strong spatial information that anchor visual coherence in the generated image.

Terminology

Summary

The gist The authors propose Dynamics-aware Token Merging (DaTMe), a training-free framework that grounds token merging in diffusion dynamics by constructing a dynamics-aware importance map from the Tweedie denoised estimate to adaptively assign tokens into merging roles, thereby preserving structurally critical regions while minimizing generation degradation.

Why it matters

Token merging has emerged as an effective training-free strategy for accelerating diffusion models by reducing redundant token computation while minimizing generation degradation The authors address the challenge that existing methods overlook background objects and local details not explicitly mentioned in the prompt, leading to degraded structural coherence. Their key insight is that token importance should reflect whether a token remains unresolved during denoising and whether it carries structural information.

How it works

The DaTMe framework constructs a dynamics-aware importance map from the Tweedie denoised estimate, which combines a temporal signal measuring inter-step changes in the predicted clean image with a structural signal capturing local high-frequency content such as boundaries and fine details. This map is used to adaptively assign tokens into merging roles under a given compression ratio, where important tokens are preserved as anchors, while those that are both temporally stabilized and structurally homogeneous are selected as safe merge candidates.

The process involves defining two complementary signals for token importance:

  1. Temporal dynamics: This is quantified by the inter-step residual in predicted clean-image space, defined as M(t)temp = xˆ0(t) − xˆ0(t − 1), which quantifies how much the predicted clean structure is still evolving at each spatial location.

  2. Structural saliency: This is quantified by a spatial axis derived from the Tweedie estimate, defined as M(t)spat = xˆ0(t) − UpSample×s DownSample×s xˆ0(t), which assigns high responses to contours, boundaries, and fine textures.

DaTMe Pipeline

DaTMe performs three main steps at each denoising step t given a target compression ratio r:

  1. Role Assignment: It defines a conservative source set Ssrc as the intersection of the lowest-r fractions of tokens ranked by Mtemp and Mspat, and a constraint set Scon as the intersection of the top-(1 − r) fractions on both axes, preserving tokens that are both temporally unstable and structurally salient.

  2. Spatially Distributed Source Completion: To meet the target compression budget ntgt = ⌊rN⌋, DaTMe selects an additional set Saddsrc from the remaining unassigned tokens and samples them into P non-overlapping grid cells to avoid local information loss after merging. The final source set is then S∗src = Ssrc ∪ Saddsrc.

  3. Locality-Constrained Routing: The remaining tokens form the destination pool D, and S∗src is merged into D via bipartite soft matching using spatial adjacency as the matching criterion to ensure that merging does not collapse spatially distant tokens and distort local spatial structure.

Experimental Validation

Experiments on PixArt-α and FLUX demonstrate that DaTMe maintains visual fidelity across the entire image, highlighting diffusion dynamics as an effective token-level merging decision in efficient generation. Quantitative results show that DaTMe achieves strong preservation of image-wide details and state-of-the-art performance across most metrics when compared to prior methods. Ablation studies confirm that jointly using temporal and spatial signals yields the best overall performance, while replacing the temporal signal with the raw score slope consistently degrades all evaluation metrics.

Conclusion

DaTMe successfully grounds token merging in underlying generation dynamics by leveraging a spatiotemporal importance map to identify safely mergeable tokens while preserving structurally critical regions, achieving strong image fidelity and favorable quality-efficiency trade-offs across DiT-based diffusion models. The work shows that grounding token merging in the underlying generation dynamics is a key step toward faithful and efficient diffusion inference.

--- Page 1 ---

Which Tokens to Merge? Diffusion Dynamics for Efficient Image Generation

SeungJu Cha Ye-Chan Kim HyunGee Kim Sungho Koh Dong-Jin Kim† Hanyang University, South Korea

Abstract Token merging has emerged as an effective training-free strategy for accelerating diffusion models by reducing redundant token computation while minimizing generation degradation. A key challenge is determining which tokens can be safely merged and which should be preserved for subsequent computation. Existing method addresses this by preserving prompt-aligned foreground regions, thereby protecting semantically relevant structures. However, this text-relevance criterion overlooks background objects, local details that are not explicitly mentioned in the prompt, leading to degraded structural coherence. In this work, we propose Dynamics-aware Token Merging (DaTMe), a training-free framework that grounds token merging in the underlying diffusion dynamics. Our key insight is that token importance should reflect whether a token remains unresolved during denoising and whether it carries structural information. To this end, DaTMe constructs a dynamicsaware importance map from the Tweedie denoised estimate. The map combines a temporal signal, measuring inter-step changes in the predicted clean image, with a structural signal, capturing local high-frequency content such as boundaries and fine details. Using this map, DaTMe adaptively assigns tokens into merging roles under a given compression ratio: important tokens are preserved as anchors, while tokens that are both temporally stabilized and structurally homogeneous are selected as safe merge candidates. Experiments on PixArt-α and FLUX demonstrate that DaTMe maintains visual fidelity across the entire image, highlighting diffusion dynamics as an effective token-level merging decision in efficient generation. Our code is available at https://github.com/SeungJuCha/DaTMe.

--- Page 2 ---

CFG Score Slope Tweedie Diff Pseudo GT

T (a) Results on different compression ratio (b) Spatial distribution of top-ranked tokens (c) Blind spots at non-prompt region Figure 1: (a) Comparison under different compression ratio. CFG-based merging [9] often overlooks background details and structures, whereas our method better preserves background integrity. (b) Spatial distribution of top-ranked tokens over denoising timesteps. CFG-based importance remains concentrated on the foreground object with limited temporal variation. In contrast, our score-based signals (Score Slope and Tweedie Diff) progressively shift from object regions to fine-grained spatial details, better matching the pseudo-GT pattern. Here, pseudo-GT is defined as the difference between the final denoised latent and the Tweedie estimate at each timestep. (c) Non-prompt region blind spot. Low-ranked tokens under the CFG-based signal consistently overlap with structurally salient regions in text-irrelevant areas (red). However, as shown in Fig. 1(a), CFGbased merging tends to underprotect non-prompt regions of the image, losing fine details and structural coherence. We attribute this to CFG’s prompt-centric bias: by focusing exclusively on text-conditioned influence, CFG overlooks two key aspects of how diffusion models generate images. First, CFG fails to capture time-varying token importance. Diffusion generation follows a coarse-tofine progression [15, 16], where tokens undergoing large inter-step changes represent regions in which the model is actively injecting details [17]. In this context, prematurely merging such still-evolving tokens directly attenuates their ongoing refinement by averaging their features with neighboring tokens. Crucially, the spatial distribution of these actively evolving tokens is time-varying: while it remains concentrated on foreground objects in early steps, it progressively expands toward broader spatial regions, including non-prompt areas, at later timesteps (Fig. 1(b)). High-ranked tokens in CFG importance signal, however, remain anchored to foreground objects throughout the entire timestep, confining its search for important tokens only to prompt-aligned regions. As a result, CFG fails to identify the very tokens that should be protected: actively evolving tokens outside the foreground are prematurely merged into nearby or similar tokens, suppressing their distinct updates. Second, CFG is insensitive to prompt-independent structural importance. To produce natural and coherent images, diffusion models actively generate scene elements that are not directly mentioned in the prompt such as background objects and supporting structures [1, 2]. Although these promptindependent structures contribute little to text guidance, they carry essential structural information such as boundaries between homogeneous regions, edges of background objects, and fine textures that anchor visual coherence. However, because CFG only measures text-conditioned discrepancy, structural boundaries in such non-prompt regions tend to receive low scores across all timesteps (Fig. 1(c)), making them vulnerable to merging into neighboring homogeneous areas. Taken together, these observations indicate that token importance should not be defined solely by text relevance, but by diffusion dynamics: how unresolved a token remains and how much structural information it carries at the current denoising step [18].

--- Page 3 ---

To faithfully capture diffusion dynamics, we define two complementary signals that quantify the spatiotemporal dynamics of each token during denoising. For temporal dynamics, we start from the score function [19], which quantifies how each token is updated at the current denoising step. In particular, we project this score into clean-image space via the Tweedie denoised estimate [20, 21], and use its inter-step difference as the temporal signal, assigning high values to tokens that are unresolved. For the structural signal, we measure the residual between the Tweedie estimate and its coarse-scale smoothed version, which acts as a high-pass filter highlighting structural components throughout the image.

Improvements for AI systems

  1. Guarda token merging in diffusion dynamics through DaTMe (Dynamics-aware Token Merging). This framework grounds token merging in the underlying diffusion dynamics by constructing a dynamics-aware importance map from the Tweedie denoised estimate, which combines a temporal signal, measuring inter-step changes in the predicted clean image, with a structural signal. This allows for adaptive assignment of tokens into roles: important tokens are preserved as anchors, while tokens that are both temporally stabilized and structurally homogeneous are selected as safe merge candidates.

  2. Enhance structural coherence and background integrity in generated images. The paper demonstrates that DaTMe better preserves background integrity than CFG-based merging, which the authors attribute to CFG’s prompt-centric bias, leading to a method that better preserves the original spatial configuration and object structure while maintaining the intended prompt semantics.

  3. Develop a more reliable temporal importance signal for token evolution. By defining the temporal map as the inter-step residual in predicted clean-image space: M(t) temp = xˆ0(t) − xˆ0(t − 1), DaTMe captures how much the predicted clean structure is still evolving at each spatial location, providing a signal that is more stable than the raw score slope, which is prone to being heavily dominated by the noise schedule scaling in later denoising steps.

  4. Implement locality-constrained spatial matching for robust token merging in DiT architectures. To prevent structural distortion, DaTMe uses locality-constrained routing, pairing source tokens with their spatially nearest destination to form the merged set, thereby compensating for the weak spatial inductive bias of DiTs.

  5. Achieve superior quality-efficiency trade-offs across diverse diffusion model architectures. Experiments show that DaTMe consistently achieves the strongest CLIP-T and HPSv2 scores while maintaining comparable inference efficiency across PixArt-α, FLUX, Stable Diffusion 1.5, and SDXL, demonstrating effectiveness beyond DiT models.

Sources

Related papers