Manuscript Offprint

arXiv:2610.22370

Which Tokens to Merge? Diffusion Dynamics for Efficient Image Generation

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

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 dynamics-aware 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- α\alpha 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.

1 Introduction

Diffusion models [1, 2] have become a dominant paradigm for high-quality image [3–5] and video synthesis [6–8], owing to their strong fidelity and scalability. However, their iterative denoising process incurs substantial computational cost, as a large number of tokens are repeatedly processed at every inference step [9]. To address this, token merging [10] has emerged as an effective training-free acceleration strategy that groups similar tokens, merges them into representative tokens, and uses the merged representations in subsequent layers [9–13]. For example, early token merging methods such as ToMeSD [10] first construct local merge candidate groups in a content-agnostic manner, and then form merge pairs simply based on feature similarity within each group. Consequently, content-relevant tokens can be selected as merge sources, causing local details to be absorbed and leading to visual distortion [9]. This raises a central challenge: which tokens should be absorbed through merging, and which must be retained as anchors for subsequent computation.

Prior work [9] leverages classifier-free guidance (CFG) [14] as a token importance signal, identifying tokens strongly steered by the text condition through the discrepancy between conditional and

Preprint.

Figure

(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 ratios. 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).

unconditional noise predictions as anchors to be retained. However, as shown in Fig. 1(a), CFG-based 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-to-fine 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 prompt-independent 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].

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. Unlike CFG, this score-derived signal reflects the actual update applied to every token, regardless of prompt relevance, providing an image-wide view of generative activity (Fig. 1(b)). 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. This captures prompt-independent structural boundaries, including weakly conditioned structures that CFG often underestimates. By jointly modeling temporal evolution and structural saliency, we obtain a dynamics-aware token importance signal that guides merging decisions.

Building on this dynamics-aware importance, we propose Dynamics-aware Token Merging (DaTMe), a training-free token merging framework for diffusion transformers [2, 5, 22]. At each denoising step, DaTMe assigns token roles at the intersection of the temporal and structural signals. High-scoring tokens are assigned as constraint tokens and excluded from merging as dynamically or structurally important regions, while low-scoring tokens are assigned as source tokens from relatively stable and homogeneous regions that can be safely merged. To meet the target compression budget, DaTMe supplements the source set with grid-based spatial sampling, preventing local collapse. The resulting source tokens are then merged only within nearby regions via locality-constrained matching, built upon [9]. We primarily evaluate DaTMe on PixArt- α\alpha and FLUX, where it outperforms prior methods while maintaining visual fidelity across the entire image. Our contributions are as follows:

• We introduce a dynamics-aware importance map derived from the Tweedie estimate, jointly capturing the temporal evolution and structural saliency of each token.

• We propose DaTMe, a training-free token merging framework that leverages the proposed temporal and spatial importance signals to identify safely mergeable tokens while preserving structurally critical regions.

• We validate DaTMe on DiT (PixArt- α\alpha) and MM-DiT (FLUX), showing strong preservation of image-wide details and state-of-the-art performance across most metrics.

References (35)