Manuscript Offprint
arXiv:2610.34782ToDoPro: Faster and Better Reference-Based Generation: Early Token Reduction via Downsampled Self-Probing
ABSTRACT
Recent generic reference-based image generation models natively support multiple conditions by concatenating all reference image and text tokens into a joint sequence processed by a single Diffusion Transformer (DiT). However, this versatile paradigm comes at an efficiency cost: accommodating multiple references leads to a token explosion, incurring massive computational complexity. Most acceleration methods operate inside the DiT, showing limited capability in reducing spatial redundancy and failing to alleviate peak VRAM. While some pre-model token reduction alternatives exist, they inevitably introduce external models. This raises a question: Is it possible to achieve acceleration and memory savings while preserving compatibility with in-model techniques and requiring no additional parameters? In this work, we realize this goal by proposing the early Token reduction via Downsampled self-Probing (ToDoPro). By executing a few denoising steps on spatially downsampled reference images, this cheap probing stage utilizes the DiT model itself to effectively and efficiently extract reference token importance. Using the probed importance, we apply a hierarchical reduction before the main denoising stage: we completely discard low-importance tokens, substitute mid-importance tokens with their downsampled counterparts to cheaply preserve global context, and keep high-importance tokens. Experiments across three base models and two benchmarks demonstrate that our early reduction accelerates inference significantly and mitigates peak GPU memory. Furthermore, we can improve generation quality by safely filtering out noisy, uninformative reference tokens, enabling the model to concentrate its limited attention capacity on genuinely useful tokens. The code will be released at https://github.com/scy639/ToDoPro
1 INTRODUCTION
Reference images

The man in Image 1 is in the background center, the woman in Image 2 is on the left, the woman in Image 3 is on the right, and the tortoise in Image 4 is in the foreground. They are gathered around a campfire in a snowy village.
Ours
Baseline
3.3 × speedup
Missing object

The chef from image 2 and the mechanic from image 3 are standing in front of the white sports car from image 4, with the statue from image 1 in the background. The style of the image is the same as in image 5.
3.8 × speedup
Wrong shapes
Figure 1: Compared to base model FLUX.2-klein-4B, our method reduces inference latency while improving generation quality.
Corresponding author.
Reference-based image generation and editing have fundamentally transformed visual synthesis, moving beyond pure text prompts to multimodal control. By allowing multiple reference inputs, these models achieve greater controllability, driving increasing demand in domains such as advertising and design. However, incorporating multiple reference images massively expands the token sequence length. Due to the nature of attention, this token explosion significantly increases both the latency and peak VRAM, limiting the number of references and resolutions that can be practically supported. The token explosion also degrades the generation quality due to: 1) Attention interference: some irrelevant reference tokens inevitably attract anomalous attention, interfering with the generation process; 2) Attention dilution: The explosion in the number of tokens leads to a massive denominator in the attention Softmax, diluting weights of truly important tokens.
Despite growing works on efficient AI, a satisfying solution for generic reference-based generation is still missing. Most token reduction methods operate inside the DiT, pruning or merging tokens only after the full sequence has already entered the model. Therefore, they fail to reduce peak VRAM, which typically occurs at the earliest attention layers before reduction takes place. Some methods can reduce tokens before the main model, but they either degrade performance noticeably [5], limiting their practicality. Thus, to reduce peak memory and maintain compatibility with most DiT acceleration methods, we target an early reduction approach, meaning the token reduction is performed before the main denoising such that the entire main denoising process uses the reduced token sequence.
One straightforward early reduction method is to use an external model to identify unimportant regions [65], which introduces extra parameters and lacks alignment with the generator's actual demands. Another method is to utilize internal features, such as attention maps, to estimate token importance. Yet, attention patterns for token importance remain unexplored in reference-based image generation, and insights from adjacent fields like ViTs/VLMs and text-to-image (T2I) are inapplicable to our task due to fundamental differences: Unlike VLMs, where visual tokens mainly provide high-level semantics, our task relies heavily on fine-grained, low-level reference details; T2I acceleration focuses on cross-timestep temporal redundancy rather than spatial token redundancy.

DiT
Feature cache,
In-model reduction,
Efficient attention,
...
(a). Existing in-model acceleration methods

DiT

DiT
(b). Ours
Figure 2: (a) Most existing acceleration methods operate inside the DiT during the main denoising stage. (b) ToDoPro reduces reference tokens before the main denoising stage begins. A probing stage on downsampled references cheaply extracts token importance, guiding token preservation / low-resolution substitution / discarding. The compressed reference images then enter the main denoising stage, slashing end-to-end latency and activation VRAM while remaining compatible with in-model methods in (a).
Thus, we firstly perform an in-depth analysis of attention, yielding two key observations: First, the total attention that generative and prompt tokens pay to a reference token, termed the reference utilization score, correlates well with its actual importance, thus serving as an effective proxy. Second, although some unimportant reference tokens inevitably exhibit anomalous attention scores, these abnormal tokens are stochastic and vary across layers. Furthermore, a single layer is usually biased because different layers may have different functions and focuses. Computing the mean utilization score across layers smooths out the bias and instantaneous noise observed in any individual layer, ensuring meaningless tokens are accurately identified, and yielding a robust importance estimation. This reveals a pathway to address degradation: reducing the number of uninformative tokens mitigates attention dilution and interference, and averaging across layers further mitigates interference by identifying unimportant tokens more accurately.
However, extracting attention maps during main denoising loop cannot prevent the VRAM spike and impairs compatibility with in-model acceleration methods, contradicting the goal of early reduction. Thus, we propose our early token reduction via spatial-temporal downsampled self-probing, which identifies unimportant tokens in a cheap probing denoising stage and prunes or replaces them prior to the main denoising. By executing a temporally downsampled, few-step denoising on spa-tially downsampled images, this probing stage cheaply approximates attention of full-resolution loop. Then, we adopt different policies for each block of full-resolution reference tokens, guided by importance score of its corresponding downsampled reference token: High-importance blocks remain intact (preserving all 4 tokens), whereas low-importance blocks are completely discarded. To prevent quality drops from losing broader mid-importance context at high pruning rates, we introduce an intermediate level, replacing mid-importance blocks with the corresponding downsampled reference token instead of completely discarding them, cheaply capturing global context.
This early reduction yields three major benefits: (1) Because tokens are reduced before the entire main denoising stage, computational savings apply to every timestep and layer, slashing FLOPs significantly and mitigating peak VRAM. (2) It is inherently orthogonal, complementary with existing in-model acceleration techniques (e.g., feature caching and in-model token reduction). (3) The self-probing design utilizes the generator itself, naturally ensuring optimal alignment with the model's actual demands while avoiding external models.
More importantly, our method does not sacrifice performance for efficiency; rather, it comprehensively enhances generation quality. By discarding low-importance tokens, our method mitigates attention interference and dilution issues, allowing the model to better concentrate its limited attention capacity on prompt and generative tokens and genuinely informative reference tokens, ultimately improving overall generation quality.
Our key contributions are threefold: (1) We present the first in-depth analysis of attention in generic reference-based diffusion models. This analysis uncovers two key observations regarding reference utilization, and layer-wise bias and noise, establishing a reliable proxy for reference token importance. (2) Guided by these insights, we propose a training-free, early token reduction framework, which is inherently compatible with the existing ecosystem of in-model acceleration. (3) Experiments across three base models and two benchmarks show that our method delivers up to mean speedups, cuts peak activation VRAM by up to 50%, and consistently improves generation quality.
2.1 REFERENCE-BASED IMAGE GENERATION AND EDITING
Diffusion models have achieved success in text-to-image generation, motivating extensive work extending them to reference-conditioned generation or editing. These methods incorporate diverse visual conditions (e.g., masks, layouts, subject images, exemplar pairs, and pose maps) to achieve fine-grained controllability. Many methods [30, 54, 42, 57, 8, 53, 22] integrated references via dedicated control encoders, adapters, or condition-selection mechanisms. While effective in their target tasks, they rely heavily on task-tailored architectures or input assumptions, limiting scalability.
More recently, general-purpose models have emerged to unify diverse conditioning, generation, and editing tasks within a shared DiT backbone [4, 58, 55, 70] by concatenating reference, text, and generative tokens into a single sequence. This paradigm supports arbitrary reference counts and resolutions, covering diverse downstream tasks. However, this generality comes at a steep cost: token counts and quadratic self-attention complexity explode with additional references. This work focuses on this emerging general-purpose paradigm, which is more versatile and representative of future directions.
2.2 TOKEN REDUCTION FOR VISION MODELS
Token reduction, also named as token compression, has been explored to improve vision model efficiency (including ViTs and MLLMs) by shortening the token sequence [47, 62, 24, 43]. One major category is in-model token reduction, which progressively discards or merges tokens during the forward pass of the main model [25, 16]. Another category is pre-model token reduction, which compresses tokens before entering the main model. Among these, training-free methods like similarity-based token merging [5] can achieve this goal without introducing extra trainable modules, though their performance is bounded. Some works [60, 19, 46, 2] exploit CLS-to-token attention from a vision encoder to prune tokens before feeding them to VLMs. Other works [65, 36] adopt more precise methods to predict region importance, but at the cost of introducing new external models.
2.3 EFFICIENT IMAGE AND VIDEO GENERATION
Diffusion acceleration has been investigated from multiple complementary perspectives. Cross-step caching methods [39, 12, 77, 32, 68, 38, 69, 50, 48, 64, 74] reuse features or attention maps across denoising steps to eliminate redundant computation. Distillation methods [37, 45] reduce sampling steps, model pruning [7, 20, 73] removes structural weights, quantization [27, 10] lowers arithmetic precision, and in-model token reduction methods [9, 21, 75, 15, 28, 66] compress tokens inside models.
Another direction is efficient attention [72, 34, 59, 35], which develop linear or log-linear attention variants. However, these methods only reduce computation inside attention, thus cannot save computation in Feed-Forward Networks.
2.4 EFFICIENT REFERENCE-BASED GENERATION AND EDITING
Closer to our reference-based generation setting, several works accelerate specific conditional generation scenarios. RegionE and SpotEdit [44, 13] reduce computation on unchanged regions in image editing, but they are limited to layout-preserving single-image editing setting. OmniControl2 [56] removes near-zero tokens in Canny edge maps and requires re-training. EVCtrl [61] reduces computation within ControlNet, and ToPi [31] accelerates in-context generation by pruning tokens inside the main denoising stage.
To the best of our knowledge, an early-stage reference-based generation acceleration method that reduces reference tokens before the main denoising run is still absent. By shortening the input sequence prior to the DiT in main denoising loop, our approach is inherently orthogonal and complementary to in-model techniques (e.g., caching, quantization, efficient attention, KV sparsification, and in-model token reduction).
3 METHOD
3.1 PRELIMINARIES AND NOTATIONS
Generic reference-based diffusion models (e.g., Flux.2) unify visual conditions by concatenating target generative tokens G, text prompt tokens P (from a text encoder), and clean reference tokens R (from a frozen VAE) into a joint sequence processed by an L-layer Diffusion Transformer (DiT). Let , , and denote token states at timestep t and layer l. Denoising starts from pure noise down to for final decoding. At step t, reference tokens are first modulated as . After passing through all L layers, the generative output is updated via a numerical solver as .
For the importance score , omitting a superscript denotes averaging over the corresponding axis: omitting denotes averaging over layers , omitting denotes averaging over timesteps , and omitting both denotes averaging over both axes . For all other variables (e.g., , , , ), omitting or is strictly notational brevity and does not imply averaging.
3.2 INVESTIGATION OF ATTENTION IN REFERENCE-BASED GENERATION
Attention scores are widely adopted as a proxy for token importance in ViTs and VLMs, where prior works observe the rule that visual information rapidly aggregates into a few "anchor" tokens during early layers, allowing most computationally silent vision tokens to be safely pruned [60, 11]. While visual tokens in VLMs primarily serve high-level semantic understanding, our task relies heavily on them to continuously provide fine-grained, low-level spatial details for generation. Thus, the rules observed in VLMs cannot be trivially transferred to our task. Furthermore, acceleration methods in text-to-image (T2I) generation primarily focus on cross-timestep temporal feature similarity. Given that the intermediate feature dynamics within generic reference-based generation models remain largely unexplored, we first perform an in-depth analysis of the attention patterns specific to this task.
3.2.1 REFERENCE UTILIZATION SCORE
We first explore how to quantify reference token importance using the model's intrinsic attention behaviour. Intuitively, a reference token's importance should be proportional to the attention it attracts during the denoising pass. Formally, let denote the head-averaged attention score from query to key (for notational simplicity, we omit the normalization like Softmax here). For a given reference token , we define the reference utilization score queried by a specific query set as and evaluate query combinations, including : (generative tokens only), (prompt tokens only), , and . To establish a pseudo ground-truth, we define the

Figure 3: Alignment of reference utilization scores with pseudo ground-truth importance across different query sets ( ). The set ( ) consistently yields the best overall alignment, demonstrating that querying reference tokens via both generative and prompt tokens optimally proxies the importance.
oracle importance as the gradient magnitude of the final decoded image pixels with respect to each reference token: , which reflects each reference token's impact on the generated result [1]. Then, we evaluate the alignment between this gold standard and our proposed attention-based proxy via Spearman's rank correlation , which evaluates relative token prioritization, and cosine similarity .
We conduct this analysis on about 120 samples and take the average across all layers. As shown in Fig. 3, the combined queries ( ) consistently yield the highest alignment, meaning the value of a reference token can be effectively approximated by how intensely it is queried by the generative target and the prompt semantics. Intuitively, while attention only captures task-agnostic reference structure, attention originating from generative tokens and prompt directly reflects actual conditioning demands for target generation. Consequently, we adopt the reference utilization score queried by and , formulated as (hereafter simply referred to as the Reference Utilization Score), as the proxy for the importance of a reference token .
3.2.2 LAYER-WISE ANALYSIS OF UTILIZATION SCORE
(a)

(b)

Figure 4: Analysis of layer-wise attention dynamics. (a) Layer-wise visualizations of the reference utilization score show stochastic anomalous values, and a single layer is usually biased because different layers may have different functions and focuses. (b) Computing the mean utilization score across layers smooths out the bias and instantaneous noise, achieving better alignment with the oracle token importance.
As the utilization score varies across layers, we analyze its layer-wise behavior to guide the design of the final token importance estimation. Visualizing the layer-wise attention maps of the reference utilization score reveals a three-stage dynamic (Fig. 4). The early layers exhibit extensive attention, likely acting as low-level feature extractors. The middle layers then transition into highly concentrated patterns that strongly correlate with the actual salient regions in the references requested by the text prompt. The final layers show dispersed attention, decoupling from the input conditions entirely, and shift their capacity toward refining the generative tokens , largely ignoring the input references.
We also show quantitative statistics in Fig. 4(b), which plots the alignment between the layer-wise reference utilization score and the oracle importance from layer 0 to 24, measured by both rank correlation (top) and cosine similarity (bottom). Consistent with our visual observations, the middle layers exhibit better correlation compared to the early and late layers. However, relying on any single layer remains highly susceptible to localized and anomalous token spikes.
Fortunately, as we can see in Fig. 4(a), these abnormal attention spikes are stochastic and vary across different layers. Thus, they can effectively cancel each other out when aggregated. As shown on the right side of Fig. 4(b), averaging the scores across multiple layers consistently outperforms any single layer. While averaging the middle 56% or 80% of layers and averaging all 100% of layers both yield excellent alignment, we simply average across all layers for better generalization across different base models. By averaging the utilization score across all layers , we apply an implicit low-pass filter that smooths these fluctuations and combines the different focuses of individual layers, yielding a relatively unbiased, comprehensive, and robust importance estimation.
(1). Probing denoising

(2). Main denoising
Prompt: "Add the flying character from image 2 in image 1"
Figure 5: The illustration of our token reduction by a spatial-temporal downsampled self-probing. By executing a downsampled time step schedule denoising loop on spatially downsampled input images, this probing stage cheaply extracts the reference importance. The extracted importance scores then guide the reduction strategy outside the main denoising run. The visual example is generated using FLUX.2-Klein-4B (4-step).
3.3 EARLY TOKEN REDUCTION VIA DOWNSAMPLED SELF-PROBING
Although the full-resolution attention score is an accurate proxy for token importance, extracting it during the main denoising loop violates our early reduction goal. Thus, we propose using a separate lightweight loop, termed the probing stage, prior to the formal denoising stage. Unimportant reference tokens are identified and reduced before they enter the DiT in the main denoising loop.
3.3.1 EXTRACTING IMPORTANCE VIA SPATIAL-TEMPORAL DOWNSAMPLED SELF-PROBING
To cheaply identify redundant tokens, the probing stage evaluates a temporally sparse DiT denoising loop on spatially downsampled inputs. Let designate the downsampled probing stage, meaning tilde-accented variables are evaluated on downsampled inputs, whereas unaccented variables refer to the standard full-resolution run. We extract the reference utilization score in the probing stage , where vision tokens operate at a reduced spatial scale: (whose individual tokens are denoted by ) is obtained by VAE-encoding the downsampled RGB references, and represents the generative noisy tokens sampled at the reduced latent resolution. is a timestep in the sparse temporal schedule, meaning the probe denoising loop executes an accelerated trajectory over a coarse time grid of only steps, where is the temporal reduction factor.
This probe stage shares completely the same configuration as the formal denoising stage, except that it operates on the spatially-downsampled image tokens and undergoes a temporally-downsampled DiT denoising loop (as defined by ). Thus, the extracted effectively approximates the reference utilization score I of the main denoising.
3.3.2 REFERENCE TOKEN REDUCTION
To better illustrate the spatial correspondence, we introduce as an alternative notation for the token index , representing the token at position in the -th reference image. Due to the spatial downsampling, each downsampled token covers a block of full-resolution tokens. Based on this, we apply different policies (preserve, discard, or substitute) for each block of full-resolution reference tokens , guided by the importance score of its corresponding downsampled reference token : (1) Keep High-importance blocks (Full-Res Tier) keep all 4 full-resolution tokens intact ( ), preserving fine-grained details. (2) Discard Low-importance blocks (Discard Tier) are completely discarded ( ), slashing the computational overhead of irrelevant background noise. (3) Substitute Mid-importance blocks (Low-Res Tier): Since a simple binary strategy (keeping high-importance blocks and discarding all others) only preserves a few highly salient regions and strips away excessive global context, we introduce an intermediate level. We replace mid-importance blocks with their corresponding downsampled tokens instead of fully discarding them. This captures global context at just the cost.
The resulting reduced sequence is then fed into the DiT for the formal denoising stage. This tri-tier reduction can be formulated as:
where , .
The core rationale behind the probing stage is to approximate the main denoising behavior with minimal overhead: Limiting the spatial downsampling to only ensures the probing denoising closely approximates the behaviour of main denoising. Meanwhile, this downsampling cuts the 2D token count to 1/4. Considering attention only, the complexity reduces its cost by ; with at least temporal downsampling, the probe is about of the main denoising, making its overhead negligible relative to the acceleration (rigorous derivation in Appendix A.1).
Unlike methods that introduce external models, the self-probing design naturally ensures optimal alignment with the generator's actual demands while avoiding the introduction of any extra parameters. The spatial-temporal downsampling ensures that the probe introduces only minor overhead, which is significantly outweighed by the acceleration achieved through token reduction. This early reduction slashes FLOPs and peak VRAM while remaining orthogonal and compatible with existing in-model acceleration techniques, such as feature caching.
4 EXPERIMENT
4.1 SETUP
We evaluate on three base models: Flux.2-Klein-4B, Qwen-Image-Edit-2511, and HiDream-O1-Image. See details in the Appendix B.1. We evaluate our method on two datasets: MultiBanana [41] and Macro [14], which both score the generation quality from multiple dimensions. For efficiency, we report end-to-end latency, peak activation VRAM, and speedup over the corresponding base model. Details, including the full names of these dimensions and sub-tasks, are in the appendix B.3.
4.2 MAIN RESULTS
Fig. 6 presents the main comparison across three base models and two benchmarks, against the original base model (Baseline), ToMeSD [5] (applied before DiT as a pre-model method), and


Figure 6: Average quality versus speedup across three base models and two benchmarks.
| Method | MultiBanana | MACRO | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Quality↑ | Efficiency | Quality↑ | Efficiency | ||||||||||||||
| Inst. Align | Ref. Cons. | B-S Match. | Phys. Real. | Visu. Qual. | Avg | Latency (s)↓ | Speed↑ | Act. VRAM (GB)↓ | Cust. | Illus. | Spat. | Temp. | Avg | Latency (s)↓ | Speed↑ | Act. VRAM (GB)↓ | |
| Baseline | 4.57 | 4.86 | 3.96 | 4.40 | 5.72 | 4.70 | 5.74 | 1.00× | 15.3 | 7.49 | 6.17 | 3.83 | 7.23 | 6.18 | 7.93 | 1.00× | 24.7 |
| Fast | |||||||||||||||||
| ToMeSD | 4.45 | 4.51 | 3.72 | 4.17 | 5.55 | 4.48 | 2.62 | 2.19× | 11.2 | 7.10 | 5.82 | 3.45 | 7.10 | 5.87 | 3.23 | 2.46× | 17.4 |
| VisPruner | 4.54 | 4.53 | 3.72 | 4.24 | 5.62 | 4.53 | 2.55 | 2.25× | 8.7 | 7.27 | 5.99 | 3.87 | 7.20 | 6.08 | 3.39 | 2.34× | 13.7 |
| Ours | 4.63 | 4.85 | 3.97 | 4.38 | 5.77 | 4.72 | 2.50 | 2.30× | 7.3 | 7.50 | 6.15 | 3.88 | 7.27 | 6.20 | 3.20 | 2.48× | 11.5 |
| Slow | |||||||||||||||||
| ToMeSD | 4.48 | 4.53 | 3.82 | 4.38 | 5.62 | 4.57 | 3.46 | 1.66× | 10.7 | 7.35 | 6.18 | 3.70 | 7.25 | 6.12 | 5.24 | 1.51× | 17.4 |
| VisPruner | 4.68 | 4.85 | 3.90 | 4.44 | 5.88 | 4.75 | 3.52 | 1.63× | 10.2 | 7.37 | 6.03 | 3.91 | 7.25 | 6.14 | 5.27 | 1.51× | 17.2 |
| Ours | 4.86 | 5.06 | 4.03 | 4.54 | 5.92 | 4.88 | 3.43 | 1.67× | 9.8 | 7.55 | 6.20 | 4.01 | 7.32 | 6.27 | 5.20 | 1.53× | 16.4 |
Table 1: Comparison of efficiency and quality on MultiBanana and MACRO (Flux.2-Klein-4B).
VisPruner [67]. Table 1 reports the fine-grained scores of this comparison on Flux.2-Klein-4B. Ours(fast) accelerates inference and lowers peak VRAM, while matching or surpassing baseline quality; Ours(slow) further improves all quality metrics, at a smaller speedup. VisPruner can improve quality over the baseline at some speedup, while its quality stays below ours because it identifies unimportant tokens less accurately. Fig. 7 shows visual results.

Figure 7: Visual comparison of generation quality across diverse tasks from MultiBanana and Macro datasets (all methods are under the Slow level in Table 1 with comparable speedups). Best viewed when zoomed in.
4.3 ORTHOGONALITY WITH IN-MODEL METHODS
We compare with in-model acceleration methods including TaylorSeer [33], RepreShift [16], and TransPrune [25] in Table 2. As demonstrated in Table 2, integrating our method with existing in-model methods yields compounded speedups. Detailed discussion of our orthogonality with other existing methods can be found in Appendix A.2.
| Method | MultiBanana | MACRO | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Quality↑ | Efficiency | Quality↑ | Efficiency | ||||||||||||||
| Inst. Align | Ref. Cons. | B-S Match. | Phys. Real. | Visu. Qual. | Avg | Latency (s)↓ | Speed↑ | Act. VRAM (GB)↓ | Cust. | Illus. | Spat. | Temp. | Avg | Latency (s)↓ | Speed↑ | Act. VRAM (GB)↓ | |
| Baseline | 4.57 | 4.86 | 3.96 | 4.40 | 5.72 | 4.70 | 5.7 | 1.00× | 15.3 | 7.49 | 6.17 | 3.83 | 7.23 | 6.18 | 7.9 | 1.00× | 24.7 |
| Ours | 4.63 | 4.85 | 3.97 | 4.38 | 5.77 | 4.72 | 2.5 | 2.30× | 7.3 | 7.50 | 6.15 | 3.88 | 7.27 | 6.20 | 3.2 | 2.48× | 11.5 |
| RepreShift | 4.51 | 4.69 | 3.93 | 4.44 | 5.78 | 4.67 | 3.5 | 1.63× | 11.3 | 7.45 | 6.12 | 3.83 | 7.11 | 6.13 | 4.1 | 1.93× | 22.1 |
| RepreShift + Ours | 4.61 | 4.66 | 3.96 | 4.40 | 5.72 | 4.67 | 2.4 | 2.38× | 8.3 | 7.44 | 6.10 | 3.85 | 7.11 | 6.12 | 3.0 | 2.65× | 15.2 |
| Taylorseer | 4.52 | 4.69 | 3.85 | 4.41 | 5.64 | 4.62 | 4.8 | 1.19× | 47.5 | 7.13 | 5.63 | 3.16 | 6.82 | 5.69 | 6.5 | 1.21× | 62.0 |
| Taylorseer + Ours | 4.55 | 4.72 | 3.90 | 4.44 | 5.70 | 4.66 | 3.1 | 1.85× | 34.3 | 7.21 | 5.47 | 3.26 | 6.86 | 5.70 | 4.8 | 1.65× | 45.4 |
| TransPrune | 4.56 | 4.85 | 3.92 | 4.43 | 5.81 | 4.71 | 3.2 | 1.77× | 14.9 | 7.52 | 6.15 | 3.87 | 7.17 | 6.18 | 3.3 | 2.40× | 23.3 |
| TransPrune + Ours | 4.58 | 4.82 | 3.94 | 4.38 | 5.77 | 4.70 | 2.1 | 2.79× | 8.4 | 7.48 | 6.14 | 3.88 | 7.13 | 6.16 | 2.5 | 3.12× | 15.6 |
Table 2: Compatibility of Ours(fast) with existing in-model acceleration methods on FLUX.2-Klein-4B, yielding compounded inference speedups.
4.4 ABLATION STUDY
| Method | Instruction Alignment↑ | Reference Consistency↑ | BG-Subject Match↑ | Physical Realism↑ | Visual Quality↑ | Overall↑ |
|---|---|---|---|---|---|---|
| Only Low-Res Tier (i.e., infer baseline on 2× downsampled images) | 4.25 | 4.10 | 3.53 | 4.12 | 5.63 | 4.33 |
| No Low-Res Tier | 4.56 | 4.67 | 3.88 | 4.37 | 5.72 | 4.64 |
| Random Reduction | 4.25 | 4.08 | 3.62 | 4.22 | 5.60 | 4.35 |
| Ours | 4.63 | 4.85 | 3.97 | 4.38 | 5.77 | 4.72 |
Table 3: Ablation study on Ours(fast) on MultiBanana (controlled to the same reduction ratio). Base model: Flux.2-Klein-4B.
Table 3 validates our designs. “All Low-Res Tier” operates on the downsampled references, suffering a severe quality drop. Removing the intermediate tier (“w/o Low-Res Tier”) causes a noticeable quality decline, confirming the necessity of capturing global context via Low-Res Tier tokens. “Random Reduction” also degrades quality, indicating the extracted reference utilization score is necessary for token reduction decisions.
4.5 ANALYSIS OF QUALITY IMPROVEMENT
4.5.1 EFFECT OF TOKEN REDUCTION RATIO
Fig. 8 shows how quality evolves with the reduction ratio, driven by two competing factors: (1) mitigating attention interference and dilution versus (2) losing informative tokens at extreme sparsity. At reduction, the baseline leaks a floating glove from a salient but irrelevant region in ref 2; Moving into a broad optimal window, Factor 1 dominates, and the model successfully filters out these visual distractors.

Change the hair of the person in Image 1 to match the hair in Image 2.
0% (Baseline)
30% Optimal window
94%
Reduction ratio
Figure 8: Qualitative evolution of generated images. At reduction (unpruned baseline), the model mistakenly retains visual distractors (e.g., an extra floating glove). Within a broad window to , our method successfully filters out these distractors, boosting quality. At extreme reduction levels , the irreversible loss of informative reference tokens causes quality degradation.
As the reduction ratio escalates to extreme levels ( ), Factor 2 eventually takes over. Crucial features are irreversibly pruned, resulting in degraded reference consistency. Note that this optimal window forms a wide plateau rather than a narrow range, as demonstrated by the case in Fig. 8 and quantitative curve in Fig. 6.
4.5.2 EFFECTIVE ATTENTION RATIO
Our method can effectively mitigate attention dilution and attention interference, thus making the model allocate its limited attention capacity to genuinely useful reference tokens. Here, we explicitly validate whether the model's attention is more focused on meaningful reference regions, by evaluating the Effective Attention Ratio (EAR).
| Layers used for Extraction | Effective Attention Ratio↑ | Instruction Alignment↑ | Reference Consistency↑ | BG-Subject Match↑ | Physical Realism↑ | Visual Quality↑ | Overall↑ |
|---|---|---|---|---|---|---|---|
| Baseline (No Reduction) | 43.6 | 4.57 | 4.86 | 3.96 | 4.40 | 5.72 | 4.70 |
| Top-1 layer | 51.7 | 4.81 | 5.08 | 3.92 | 4.42 | 5.85 | 4.82 |
| Top 20% of layers | 52.9 | 4.89 | 5.13 | 4.01 | 4.47 | 5.93 | 4.89 |
| All layers | 52.7 | 4.86 | 5.06 | 4.03 | 4.54 | 5.92 | 4.88 |
Table 4: Effective Attention Ratio (EAR) on all samples from the object composition task of Multi-Banana. Baseline: Flux.2-Klein-4B. All variants use the same reduction ratio (Slow level).
To calculate EAR, an objective ground-truth (GT) importance map is required. While general reference-based tasks lack such GT importance, the object composition task in MultiBanana [41] inherently aims to composite the salient object in each reference image. Thus, the salient object region (extracted via BiRefNet [71]) naturally serves as the GT important area. A higher ratio indicates that the model allocates more attention to genuinely useful regions. We evaluate four variants: (1) Baseline (No Reduction), the unpruned reference sequence; (2) Top-1 layer, using the utilization score from the best-aligned single layer; (3) Top 20% of layers, using the mean over the top 20% best-correlated layers; and (4) All layers, using the mean across all layers. Details are in Appendix B.5.
Table 4 shows two gains. Token reduction with Top-1 layer markedly raises EAR, validating that our token reduction makes the model allocate more attention to genuinely useful reference regions. Top 20% of layers and All layers further slightly raise EAR over Top-1 layer, validating that averaging across layers further mitigates interference by identifying unimportant tokens more accurately.
All layers is comparable to Top 20% of layers, but does not require model-specific layer selection. We therefore adopt averaging across all layers as the default for generalization across base models.
5 CONCLUSIONS
In this work, we propose an early token reduction framework via downsampled self-probing to address the token explosion in reference-based diffusion models. By utilizing the model itself to cheaply extract token importance, we perform a tri-tier reduction before the main denoising stage. Experiments show that our training-free method reduces latency, mitigate peak VRAM, seamlessly compounds with in-model acceleration techniques, and improves generation quality.
REFERENCES
[1] Samira Abnar and Willem Zuidema. Quantifying attention flow in transformers. In Proceedings of the 58th annual meeting of the association for computational linguistics, pp. 4190–4197, 2020.
[2] Kazi Hasan Ibn Arif, JinYi Yoon, Dimitrios S Nikolopoulos, Hans Vandierendonck, Deepu John, and Bo Ji. Hired: Attention-guided token dropping for efficient inference of high-resolution vision-language models. 39(2):1773–1781, 2025.
[3] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, Wenbin Ge, Zhifang Guo, Qidong Huang, Jie Huang, Fei Huang, Binyuan Hui, Shutong Jiang, Zhaohai Li, Mingsheng Li, Mei Li, Kaixin Li, Zicheng Lin, Junyang Lin, Xuejing Liu, Jiawei Liu, Chenglong Liu, Yang Liu, Dayiheng Liu, Shixuan Liu, Dunjie Lu, Ruilin Luo, Chenxu Lv, Rui Men, Lingchen Meng, Xuancheng
Ren, Xingzhang Ren, Sibo Song, Yuchong Sun, Jun Tang, Jianhong Tu, Jianqiang Wan, Peng Wang, Pengfei Wang, Qiuyue Wang, Yuxuan Wang, Tianbao Xie, Yiheng Xu, Haiyang Xu, Jin Xu, Zhibo Yang, Mingkun Yang, Jianxin Yang, An Yang, Bowen Yu, Fei Zhang, Hang Zhang, Xi Zhang, Bo Zheng, Humen Zhong, Jingren Zhou, Fan Zhou, Jing Zhou, Yuanzhi Zhu, and Ke Zhu. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025.
[4] Black Forest Labs. FLUX.2: Frontier Visual Intelligence. https://bfl.ai/blog/flux-2, 2025.
[5] Daniel Bolya and Judy Hoffman. Token merging for fast stable diffusion. In IEEE Conference on Computer Vision and Pattern Recognition – Workshops (CVPRW), 2023. URL https://arxiv.org/abs/2303.17604.
[6] Qi Cai, Jingwen Chen, Chengmin Gao, Zijian Gong, Yehao Li, Yingwei Pan, Yi Peng, Zhaofan Qiu, Kai Yu, Yiheng Zhang, Hao Ai, Siying Bai, Yang Chen, Zhihui Chen, Fengbin Gao, Ying Guo, Dong Li, Zhen Shen, Leilei Shi, Jing Wang, Siyu Wang, Yimeng Wang, Rui Zheng, Ting Yao, and Tao Mei. Hidream-o1-image: A natively unified image generative foundation model with pixel-level unified transformer. arXiv preprint arXiv:2605.11061, 2026. URL https://arxiv.org/abs/2605.11061.
[7] Thibault Castells, Hyoung-Kyu Song, Bo-Kyeong Kim, and Shinkook Choi. Ld-pruner: Efficient pruning of latent diffusion models using task-agnostic insights. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 821–830, 2024.
[8] Hyunsoo Cha, Byungjun Kim, and Hanbyul Joo. Durian: Dual reference image-guided portrait animation with attribute transfer. arXiv preprint arXiv:2509.04434, 2025. URL https://arxiv.org/abs/2509.04434.
[9] Shuning Chang, Pichao Wang, Jiasheng Tang, Fan Wang, and Yi Yang. Sparsedit: Token sparsification for efficient diffusion transformer. In Advances in Neural Information Processing Systems (NeurIPS), 2025. URL https://arxiv.org/abs/2412.06028.
[10] Lei Chen, Yuan Meng, Chen Tang, Xinzhu Ma, Jingyan Jiang, Xin Wang, Zhi Wang, and Wenwu Zhu. Q-dit: Accurate post-training quantization for diffusion transformers. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. URL https://arxiv.org/abs/2406.17343.
[11] Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large vision-language models. In European Conference on Computer Vision, pp. 19–35. Springer, 2024.
[12] Pengtao Chen, Mingzhu Shen, Peng Ye, Jianjian Cao, Chongjun Tu, Christos-Savvas Bouganis, Yiren Zhao, and Tao Chen. -dit: A training-free acceleration method tailored for diffusion transformers. arXiv preprint arXiv:2406.01125, 2024.
[13] Pengtao Chen, Xianfang Zeng, Maosen Zhao, Mingzhu Shen, Peng Ye, Bangyin Xiang, Zhibo Wang, Wei Cheng, Gang Yu, and Tao Chen. Regione: Adaptive region-aware generation for efficient image editing. arXiv preprint arXiv:2510.25590, 2025.
[14] Zhekai Chen, Yuqing Wang, Manyuan Zhang, and Xihui Liu. Macro: Advancing multi-reference image generation with structured long-context data. arXiv preprint arXiv:2603.25319, 2026. URL https://arxiv.org/abs/2603.25319.
[15] Xinle Cheng, Zhuoming Chen, and Zhihao Jia. Cat pruning: Cluster-aware token pruning for text-to-image diffusion models. arXiv preprint arXiv:2502.00433, 2025. URL https://arxiv.org/abs/2502.00433.
[16] Joonmyung Choi, Sanghyeok Lee, Byungoh Ko, Eunseo Kim, Jihyung Kil, and Hyunwoo J. Kim. Representation shift: Unifying token compression with flashattention. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025.
[17] LMDeploy Contributors. Lmdeploy: A toolkit for compressing, deploying, and serving llm. https://github.com/InternLM/lmdeploy, 2023.
[18] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in neural information processing systems, 35:16344–16359, 2022.
[19] Jinhong Deng, Wen Li, Joey Tianyi Zhou, and Yang He. Scope: Saliency-coverage oriented token pruning for efficient multimodel llms. Advances in Neural Information Processing Systems, 38:161527–161552, 2026.
[20] Gongfan Fang, Xinyin Ma, and Xinchao Wang. Structural pruning for diffusion models. In Advances in Neural Information Processing Systems, 2023.
[21] Haipeng Fang, Sheng Tang, Juan Cao, Enshuo Zhang, Fan Tang, and Tong-Yee Lee. Attend to not attended: Structure-then-detail token merging for post-training dit acceleration. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. URL https://arxiv.org/abs/2505.11707.
[22] Yan Gong, Yiren Song, Yicheng Li, Chenglin Li, and Yin Zhang. Relationadapter: Learning and transferring visual relation with diffusion transformers. In Advances in Neural Information Processing Systems (NeurIPS), 2025. URL https://arxiv.org/abs/2506.02528.
[23] Ozgur Kara, Yujia Chen, Daniel Watson, David Forsyth, James Matthew Rehg, Wen-Sheng Chu, and Du Tran. Budgetpix: Compute-adaptive tokenization for pixel-space image diffusion. arXiv preprint arXiv:2610.12307, 2026.
[24] Zhenglun Kong, Yize Li, Fanhu Zeng, Lei Xin, Shvat Messica, Xue Lin, Pu Zhao, Manolis Kellis, Hao Tang, and Marinka Zitnik. Token reduction should go beyond efficiency in generative models – from vision, language to multimodality. arXiv preprint arXiv:2505.18227, 2025.
[25] Ao Li, Yuxiang Duan, Jinghui Zhang, Congbo Ma, Yutong Xie, Gustavo Carneiro, Mohammad Yaqub, and Hu Wang. Transprune: Token transition pruning for efficient large vision-language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026.
[26] Shaohua Li, Haixiang Zhang, Hanjie Ma, Jie Feng, and Mingfeng Jiang. Efficient posenet with coarse to fine transformer. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 5100–5104. IEEE, 2024.
[27] Xiuyu Li, Yijiang Liu, Long Lian, Huanrui Yang, Zhen Dong, Daniel Kang, Shanghang Zhang, and Kurt Keutzer. Q-diffusion: Quantizing diffusion models. In IEEE/CVF International Conference on Computer Vision (ICCV), 2023. URL https://arxiv.org/abs/2302.04304.
[28] Zhuojin Li, Hsin-Pai Cheng, Hong Cai, Shizhong Han, and Fatih Porikli. Coredit: Spatial coherence-guided token pruning and reconstruction for efficient diffusion transformers. arXiv preprint arXiv:2605.14191, 2026. URL https://arxiv.org/abs/2605.14191.
[29] Chen-Hsuan Lin, Jun Gao, Luming Tang, Towaki Takikawa, Xiaohui Zeng, Xun Huang, Karsten Kreis, Sanja Fidler, Ming-Yu Liu, and Tsung-Yi Lin. Magic3d: High-resolution text-to-3d content creation. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 300–309. IEEE, 2023.
[30] Han Lin, Jaemin Cho, Abhay Zala, and Mohit Bansal. Ctrl-adapter: An efficient and versatile framework for adapting diverse controls to any diffusion model. In International Conference on Learning Representations (ICLR), 2025. URL https://arxiv.org/abs/2404.09967.
[31] Junqing Lin, Xingyu Zheng, Pei Cheng, Bin Fu, Jingwei Sun, and Guangzhong Sun. Token pruning for in-context generation in diffusion transformers. arXiv preprint arXiv:2602.01609, 2026.
[32] Feng Liu, Shiwei Zhang, Xiaofeng Wang, Yujie Wei, Haonan Qiu, Yuzhong Zhao, Yingya Zhang, Qixiang Ye, and Fang Wan. Timestep embedding tells: It's time to cache for video diffusion model. arXiv preprint arXiv:2411.19108, 2024.
[33] Jiacheng Liu, Chang Zou, Yuanhuiyi Lyu, Junjie Chen, and Linfeng Zhang. From reusing to forecasting: Accelerating diffusion models with taylorseers. pp. 15853–15863, 2025.
[34] Songhua Liu, Weihao Yu, Zhenxiong Tan, and Xinchao Wang. Linfusion: 1 gpu, 1 minute, 16k image. 2024.
[35] Songhua Liu, Zhenxiong Tan, and Xinchao Wang. Clear: Conv-like linearization revs pre-trained diffusion transformers up. In Advances in Neural Information Processing Systems (NeurIPS), 2025. URL https://arxiv.org/abs/2412.16112.
[36] Yu Lu, Tianyi Wang, Fengyun Rao, Yi Yang, Linchao Zhu, et al. Flexselect: Flexible token selection for efficient long video understanding. Advances in Neural Information Processing Systems, 38:102751–102777, 2026.
[37] Simian Luo, Yiqin Tan, Longbo Huang, Jian Li, and Hang Zhao. Latent consistency models: Synthesizing high-resolution images with few-step inference, 2023.
[38] Xinyin Ma, Gongfan Fang, Michael Bi Mi, and Xinchao Wang. Learning-to-cache: Accelerating diffusion transformer via layer caching. In Advances in Neural Information Processing Systems (NeurIPS), 2024. URL https://arxiv.org/abs/2406.01733.
[39] Xinyin Ma, Gongfan Fang, and Xinchao Wang. Deepcache: Accelerating diffusion models for free. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024. URL https://arxiv.org/abs/2312.00858.
[40] Kiyohiro Nakayama, Brian Chao, Jan Ackermann, Hansheng Chen, Federico Tombari, Leonidas Guibas, Lior Yariv, and Gordon Wetzstein. Level-of-token diffusion. arXiv preprint arXiv:2610.05816, 2026.
[41] Yuta Oshima, Daiki Miyake, Kohsei Matsutani, Yusuke Iwasawa, Masahiro Suzuki, Yutaka Matsuo, and Hiroki Furuta. Multibanana: A challenging benchmark for multi-reference text-to-image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 448–460, June 2026.
[42] Yanjie Pan, Qingdong He, Zhengkai Jiang, Pengcheng Xu, Chaoyi Wang, Jinlong Peng, Haoxuan Wang, Yun Cao, Zhenye Gan, Mingmin Chi, et al. Pixelponder: Dynamic patch adaptation for enhanced multi-conditional text-to-image generation. arXiv preprint arXiv:2503.06684, 2025.
[43] Surendra Pathak and Bo Han. Towards efficient large vision-language models: A comprehensive survey on inference strategies. arXiv preprint arXiv:2603.27960, 2026. URL https://arxiv.org/abs/2603.27960.
[44] Zhibin Qin, Zhenxiong Tan, Zeqing Wang, Songhua Liu, and Xinchao Wang. Spotedit: Selective region editing in diffusion transformers. In CVPR, 2026.
[45] Axel Sauer, Dominik Lorenz, Andreas Blattmann, and Robin Rombach. Adversarial diffusion distillation. In European Conference on Computer Vision (ECCV), 2024. URL https://arxiv.org/abs/2311.17042.
[46] Yuzhang Shang, Mu Cai, Bingxin Xu, Yong Jae Lee, and Yan Yan. Llava-prumerge: Adaptive token reduction for efficient large multimodal models. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 22857–22867. IEEE, 2025.
[47] Kele Shao, Keda Tao, Kejia Zhang, Sicheng Feng, Mu Cai, Yuzhang Shang, Haoxuan You, Can Qin, Yang Sui, and Huan Wang. A survey of token compression for efficient multimodal large language models. arXiv preprint arXiv:2507.20198, 2026.
[48] Tong Shao, Yusen Fu, Guoying Sun, Jingde Kong, Zhuotao Tian, and Jingyong Su. Soda: Sensitivity-oriented dynamic acceleration for diffusion transformer. In CVPR, 2026.
[49] Xuan Shen, Chenxia Han, Yufa Zhou, Yanyue Xie, Yifan Gong, Quanyi Wang, Yiwei Wang, Yanzhi Wang, Pu Zhao, and Jiuxiang Gu. Draftattention: Fast video diffusion via low-resolution attention guidance. arXiv preprint arXiv:2505.14708, 2025.
[50] Yonglak Son, Suhyeok Kim, Seungryong Kim, and Young Geun Kim. Corgi: Contribution-guided block-wise interval caching for training-free acceleration of diffusion transformers. arXiv preprint arXiv:2512.24195, 2025.
[51] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024.
[52] Caiyi Sun, Yujing Sun, Xiao Han, Zemin Yang, Jiawei Liu, Xinge Zhu, Siu Ming Yiu, and Yuexin Ma. Humof: Human motion forecasting in interactive social scenes. In International Conference on Learning Representations, volume 2026, pp. 6511–6534, 2026.
[53] Caiyi Sun, Yujing Sun, Xiangyu Li, Yuhang Zheng, Yiming Ren, Jiamin Wang, Yuexin Ma, and Siu-Ming Yiu. Unibiotransfer: A unified framework for multiple biometrics transfer. arXiv preprint arXiv:2603.19637, 2026. URL https://arxiv.org/abs/2603.19637.
[54] Yanan Sun, Yanchen Liu, Yinhao Tang, Wenjie Pei, and Kai Chen. Anycontrol: create your artwork with versatile control on text-to-image generation. In European Conference on Computer Vision, pp. 92–109. Springer, 2024.
[55] Super Intelligence Team. Firered-image-edit-1.0 technical report. 2026. URL https://arxiv.org/abs/2602.13344.
[56] Zhenxiong Tan, Qiaochu Xue, Xingyi Yang, Songhua Liu, and Xinchao Wang. Ominicontrol2: Efficient conditioning for diffusion transformers. arXiv preprint arXiv:2503.08280, 2025. URL https://arxiv.org/abs/2503.08280.
[57] Haoxuan Wang, Jinlong Peng, Qingdong He, Hao Yang, Ying Jin, Jiafu Wu, Xiaobin Hu, Yanjie Pan, Zhenye Gan, Mingmin Chi, et al. Unicombine: Unified multi-conditional combination with diffusion transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 18325–18334, 2025.
[58] Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan, Sheng ming Yin, Shuai Bai, Xiao Xu, Yilei Chen, Yuxiang Chen, Zecheng Tang, Zekai Zhang, Zhengyi Wang, An Yang, Bowen Yu, Chen Cheng, Dayiheng Liu, Deqing Li, Hang Zhang, Hao Meng, Hu Wei, Jingyuan Ni, Kai Chen, Kuan Cao, Liang Peng, Lin Qu, Minggang Wu, Peng Wang, Shuting Yu, Tingkun Wen, Wensen Feng, Xiaoxiao Xu, Yi Wang, Yichang Zhang, Yongqiang Zhu, Yujia Wu, Yuxuan Cai, and Zenan Liu. Qwen-image technical report. arXiv preprint arXiv:2508.02324, 2025. URL https://arxiv.org/abs/2508.02324.
[59] Enze Xie, Junsong Chen, Junyu Chen, Han Cai, Haotian Tang, Yujun Lin, Zhekai Zhang, Muyang Li, Ligeng Zhu, Yao Lu, and Song Han. Sana: Efficient high-resolution image synthesis with linear diffusion transformer, 2024. URL https://arxiv.org/abs/2410.10629.
[60] Senqiao Yang, Yukang Chen, Zhuotao Tian, Chengyao Wang, Jingyao Li, Bei Yu, and Jiaya Jia. Visionzip: Longer is better but not necessary in vision language models. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 19792–19802. IEEE, 2025.
[61] Zixiang Yang, Yue Ma, Yinhan Zhang, Shanhui Mo, Dongrui Liu, and Linfeng Zhang. Evctrl: Efficient control adapter for visual generation. arXiv preprint arXiv:2508.10963, 2025.
[62] Linli Yao, Long Xing, Yang Shi, Sida Li, Yuanxin Liu, Yuhao Dong, Yi-Fan Zhang, Lei Li, Qingxiu Dong, Xiaoyi Dong, et al. Towards efficient multimodal large language models: A survey on token compression. 2026.
[63] Jingyang Yuan, Huazuo Gao, Damai Dai, Junyu Luo, Liang Zhao, Zhengyan Zhang, Zhenda Xie, Yuxing Wei, Lean Wang, Zhiping Xiao, et al. Native sparse attention: Hardware-aligned and natively trainable sparse attention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, pp. 23078–23097, 2025.
[64] Zhihang Yuan, Hanling Zhang, Pu Lu, Xuefei Ning, Linfeng Zhang, Tianchen Zhao, Shengen Yan, Guohao Dai, and Yu Wang. Ditfastattn: Attention compression for diffusion transformer models. In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (eds.), Advances in Neural Information Processing Systems, volume 37, pp. 1196–1219. Curran Associates, Inc., 2024. doi: 10.52202/079017-0037. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/0267925e3c276e79189251585b4100bf-Paper-Conference.pdf.
[65] Quan-Sheng Zeng, Yunheng Li, Qilong Wang, Peng-Tao Jiang, Zuxuan Wu, Ming-Ming Cheng, and Qibin Hou. A glimpse to compress: Dynamic visual token pruning for large vision-language models. IEEE Transactions on Circuits and Systems for Video Technology, 2026.
[66] Evelyn Zhang, Bang Xiao, Jiayi Tang, Qianli Ma, Chang Zou, Xuefei Ning, Xuming Hu, and Linfeng Zhang. Token pruning for caching better: 9 times acceleration on stable diffusion for free. arXiv preprint arXiv:2501.00375, 2024. URL https://arxiv.org/abs/2501.00375.
[67] Qizhe Zhang, Aosong Cheng, Ming Lu, Renrui Zhang, Zhiyong Zhuo, Jiajun Cao, Shaobo Guo, Qi She, and Shanghang Zhang. Beyond text-visual attention: Exploiting visual cues for effective token pruning in vlms. In IEEE/CVF International Conference on Computer Vision, ICCV 2025, Honolulu, HI, USA, October 19-25, 2025, pp. 20857–20867. IEEE, 2025. doi:10.1109/ICCV51701.2025.01939. URL https://doi.org/10.1109/ICCV51701.2025.01939.
[68] Wentian Zhang, Haozhe Liu, Jinheng Xie, Francesco Faccio, Mike Zheng Shou, and Jürgen Schmidhuber. Cross-attention makes inference cumbersome in text-to-image diffusion models. arXiv preprint arXiv:2404.02747v1, 2024.
[69] Xuanlei Zhao, Xiaolong Jin, Kai Wang, and Yang You. Real-time video generation with pyramid attention broadcast. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu (eds.), International Conference on Learning Representations, volume 2025, pp. 3296–3319, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/092c2d45005ea2db40fc24c470663416-Paper-Conference.pdf.
[70] Huayu Zheng, Guangzhao Li, Baixuan Zhao, Siqi Luo, Hantao Jiang, Guangtao Zhai, and Xiaohong Liu. A -edit: Precise reference-guided image editing of arbitrary objects and ambiguous masks. arXiv preprint arXiv:2603.10685, 2026.
[71] Peng Zheng, Dehong Gao, Deng-Ping Fan, Li Liu, Jorma Laaksonen, Wanli Ouyang, and Nicu Sebe. Bilateral reference for high-resolution dichotomous image segmentation. CAAI Artificial Intelligence Research, 3:9150038, 2024.
[72] Yifan Zhou, Zeqi Xiao, Tianyi Wei, Shuai Yang, and Xingang Pan. Trainable log-linear sparse attention for efficient diffusion transformers. In CVPR, pp. 9424–9433, 2026.
[73] Haowei Zhu, Dehua Tang, Ji Liu, Mingjie Lu, Jintu Zheng, Jinzhang Peng, Dong Li, Yu Wang, Fan Jiang, Lu Tian, et al. Dip-go: A diffusion pruner via few-step gradient optimization. Advances in Neural Information Processing Systems, 37:92581–92604, 2024.
[74] Haowei Zhu, Tingxuan Huang, Xing Wang, Tianyu Zhao, Jiexi Wang, Weifeng Chen, Xurui Peng, Fangmin Chen, Junhai Yong, and Bin Wang. Tap: A token-adaptive predictor framework for training-free diffusion acceleration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 36082–36091, June 2026.
[75] Haowei Zhu, Ji Liu, Ziqiong Liu, Dong Li, Jun-Hai Yong, Bin Wang, and Emad Barsoum. Diffsparse: Accelerating diffusion transformers with learned token sparsity. In International Conference on Learning Representations, volume 2026, pp. 57438–57456, 2026.
[76] Junhao Zhuang, Shi Guo, Xin Cai, Xiaohui Li, Yihao Liu, Chun Yuan, and Tianfan Xue. Flashvsr: Towards real-time diffusion-based streaming video super-resolution. arXiv preprint arXiv:2510.12747, 2025.
[77] Chang Zou, Xuyang Liu, Ting Liu, Siteng Huang, and Linfeng Zhang. Accelerating diffusion transformers with token-wise feature caching. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu (eds.), International Conference on Learning Representations, volume
2025, pp. 75467–75488, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/bbe024e0517fe12ac3a8d388b19ff9fe-Paper-Conference.pdf.
The appendix is organized as follows:
• Section A presents additional analysis:
– Sec. A.1: Theoretical FLOPs analysis.
– Sec. A.2: Orthogonality with existing acceleration techniques.
– Sec. A.3: Results under varying numbers of reference images.
– Sec. A.4: Discussions with broader works.
• Section B provides implementation details:
– Sec. B.1: Models and inference.
– Sec. B.2: Reduction decision policies.
– Sec. B.3: Datasets and evaluation.
– Sec. B.4: Details of compared methods.
– Sec. B.5: Effective Attention Ratio (EAR).
• Section C discusses the limitations of our work.
A ADDITIONAL ANALYSIS
A.1 THEORETICAL COMPLEXITY ANALYSIS
We analyze the theoretical FLOPs of the probing stage and the formal denoising stage, and derive the break-even reduction ratio at which the end-to-end cost matches that of the base model (i.e., theoretical speedup = 1). Since the attention and FFN modules dominate the computational complexity, we only analyze their contributions to the computational cost here.
Per-layer cost. Let N be the joint sequence length and d the embedding dimension. We assume the FFN intermediate width is 4d (a standard dense-Transformer setting). A common accounting then gives
Here we count FLOPs as floating-point operations, including both multiplications and additions: each matrix product of size costs multiplications and as many additions, giving the attention term (for ) + (for AV) = ; the Q/K/V/O projections each cost ( in total), and the FFN's two linear layers ( and ) each cost , i.e., in total. With T denoising steps and L layers, the baseline cost is .
Sequence lengths. Let , , and denote the numbers of prompt, generative, and reference tokens, so . In the probing stage, images are spatially downsampled by (vision tokens become 1/4) and the temporal schedule is downsampled by a factor . We instantiate . Thus
Let reduction_ratio denote the fraction of reference tokens removed after token reduction. The formal-stage length is
The total cost of our method is therefore
Break-even condition. Matching the baseline requires
Numerical instantiation. We instantiate a representative two-reference setting with (so ), , and . Then , , and solving equation 5 yields a break-even ratio of approximately 9.9% for (for 4-step denoising model like Flux.2-Klein) and 3.9% for (e.g., 50-step model HiDream-O1-Image). This break-even threshold is quite low that it is almost always satisfied in practice, meaning the savings from token reduction easily outweigh the probing overhead, yielding net end-to-end speedup.
A.2 ORTHOGONALITY WITH MOST EXISTING ACCELERATION TECHNIQUES
Our method is naturally orthogonal and complementary to existing acceleration methods from two perspectives:
• Stage-level Compatibility: Most existing acceleration methods operate as in-model token reduction, which prunes or merges tokens inside the model during the main denoising loop. In contrast, our method operates outside the main denoising loop and reduces reference tokens before the main denoising stage begins. It directly provides a standard, shortened token sequence to the base model without altering internal model structures or operations, allowing existing in-model methods to be directly applied on top of our reduced sequence.
• Redundancy-level Orthogonality: Our method specifically addresses the spatial token redundancy in reference images. This is naturally orthogonal to methods focusing on temporal redundancy (such as cross-step feature caching and distillation) or methods that prune or sparsify generative tokens (like V-V sparse attention in video generation).
Consequently, our early token reduction can be seamlessly combined with these existing acceleration techniques to achieve compounded efficiency improvement in diffusion-based visual generation tasks.
Clarification on Terminology: In literature, methods compressing tokens before the main network backbone are broadly termed “pre-model” token reduction. In this paper, we primarily refer to our method as “early” token reduction to avoid ambiguity. Since our framework executes a lightweight downsampled self-probing stage using the DiT model itself to extract importance scores, the DiT model has already been executed before the token reduction takes place. Therefore, strictly calling it “pre-model” might be misleading. We instead adopt the term “early” token reduction to precisely denote that reference tokens are reduced at an early stage (prior to the main denoising stage).
In addition to the default timestep-mapped reduction (Sec 3.3.2), our framework seamlessly supports reducing reference tokens just once for the entire main denoising loop. By averaging the reference utilization scores across all probing steps, tokens can be filtered once before the main loop begins. Note that both modes share the same fundamental principle: reference tokens are always pruned or substituted outside the DiT in the main denoising, requiring zero structural or operational changes to the DiT in the main loop. We default (all experiments in the paper) to timestep-mapped reduction simply because matching the reference retention to the evolving demands across different denoising stages offers a slight performance gain.
A.3 RESULTS UNDER VARYING NUMBERS OF REFERENCE IMAGES
Figure 9 reports the score and latency of Ours (slow) on MACRO with 2–10 reference images.
A.4 DISCUSSIONS WITH BROADER WORKS
Relation to Dynamic Resolution and Adaptive Tokenization. The most recent methods LoT Diffusion [40] and BudgetPix [23] introduce adaptive tokenization by assigning variable-sized patches based on visual complexity. Fundamentally, our tri-tier reduction strategy (preserving full-resolution tokens for critical details and substituting mid-importance regions with downsampled tokens) also functions as a dynamic resolution-based efficient encoding. Our token importance and multi-resolution layout are directly determined by the DiT itself through cheap downsampled self-probing in a fully training-free manner.

Figure 9: Average score and latency of Ours (slow) (Flux.2-Klein) on MACRO with 2–10 reference images.
The Coarse-to-Fine Paradigms. Our downsampled self-probing mechanism aligns with the coarse-to-fine philosophy widely adopted across diverse fields outside diffusion acceleration, such as coarse-to-fine Transformer [26, 52], and high-resolution generation [29, 76]; Sparse and attention mechanisms [63, 72, 49] also adopt a comparable rationale, utilizing coarse-grained block selection or hierarchical structures to guide fine token-level interactions. Crucially, while they operate at the attention level, our framework instantiates a model-level coarse-to-fine paradigm: we first deploy a coarse run to probe reference token sparsity upfront, which then governs the token allocation for the subsequent fine run.
B IMPLEMENTATION DETAILS
Our code will be made publicly available upon acceptance, containing all implementation details.
B.1 MODELS AND INFERENCE
We evaluate on three base models: the latent-space Diffusion Transformers (DiTs) Flux.2-Klein-4B and Qwen-Image-Edit-2511, and HiDream-O1-Image, a Pixel-level Unified Transformer (UiT) that directly processes raw pixels without a VAE. Evaluating on these two architectures confirms our method is effective for diverse generic reference-based generation models. For all base models, we use their official code and default configurations. Specifically, we use 4, 40, and 50 inference steps for Flux.2-Klein-4B [4], Qwen-Image-Edit-2511 [58], and HiDream-O1-Image [6], respectively. For the probing stage, let denote the number of probing denoising steps. We set ( ) for Flux.2-Klein-4B, ( ) for Qwen-Image-Edit, and ( ) for HiDream-O1-Image. true_cfg_scale = 4.0 for Qwen-Image-Edit-2511; guidance_scale = 1.0 for Flux.2-Klein-4B; guidance_scale = 5.0 for HiDream-O1-Image. FlashAttention [18] is used as the attention backend. Since the attention matrix is not materialized under FlashAttention, we use a specialized Triton kernel to extract the reference utilization score. VAE slicing and tiling are enabled when inferring on samples that encounter out of memory during the VAE encoding stage. For each model, we report a quality-oriented Ours(slow) and a speed-oriented Ours(fast) by adjusting and . All experiments run on a single NVIDIA H800 (80GB) GPU.
For MultiBanana [41], which does not prescribe the input reference or output target size, we use each reference at its native resolution, except that any image whose area exceeds MAX_AREA = 4096 × 4096 is resized to this area budget; the last reference's size is used as the target generation size. For Macro [14], we follow its official settings. All runs use seed 42.
Handling of Rotary Positional Embeddings (RoPE) Since the image generation models [4, 58, 6] encode spatial layouts via RoPE [51], we maintain geometric consistency for the pruned reference sequence. The preserved full-resolution tokens retain their original 2D RoPE coordinates. For the replaced low-resolution tokens representing mid-importance blocks, we assign their RoPE coordinates precisely to the spatial center of the corresponding block.
B.2 REDUCTION DECISION POLICIES
B.2.1 RATIO-BASED DECISION (DEFAULT)
In our experiments, we adopt a ratio-based policy. Under this setting, retention proportions and are explicitly designated for the Full-Res Tier and Low-Res Tier, respectively. The cutoffs and in Eq. (1) are dynamically determined on a per-sample basis: after sorting all downsampled reference token scores at probe timestep of the current sample in descending order, is set to the score at the top- percentile rank, and is set to the score at the top- percentile rank. Consequently, the top- fraction enters the Full-Res Tier, the subsequent fraction is substituted into the Low-Res Tier, and the remaining tokens are discarded. The primary advantage of this policy is budget predictability, providing deterministic sequence lengths.
In Table 1, we configure two operational modes for this setting: Ours(fast) and Ours(slow). For Ours(fast), we set the Full-Res Tier ratio to and the Low-Res Tier ratio to . For Ours(slow), both proportions are doubled, setting and . These proportions represent global budgets evaluated across all reference images for a given sample. To prevent severe inter-reference imbalance—such as a visually dominant reference image exhausting all available quotas and starving other references—we enforce a minimum retention guarantee on each individual reference image. Specifically, every reference image is constrained to retain at least of the global Full-Res ratio within its own token grid, yielding a per-reference lower bound of (i.e., at least 10% for Ours(fast) and 20% for Ours(slow)).
Timestep-Aware Ratio Shift. Because DiTs prioritize global layout planning in early steps and fine-grained detail refinement in late steps, high-resolution details are less critical early on, whereas a wider spatial context is more beneficial. We therefore dynamically modulate the retention proportions across denoising timesteps: during the earliest steps, the effective Full-Res ratio is scaled to , while the Low-Res ratio is expanded to . As generation proceeds toward the final refinement steps, these scaling factors linearly transition back to 1.0 (restoring the base ratios and ). This dynamic adjustment slightly improves generation quality, so we adopt it in our default configuration.
B.2.2 THRESHOLD-BASED DECISION
We also support a threshold-based decision policy for sample-difficulty awareness, where fixed absolute thresholds and are applied directly to the normalized reference utilization score . Before thresholding, we normalize the raw utilization score by the total number of downsampled reference tokens of the current sample, , making the score agnostic to varying reference counts and resolutions across samples. The primary benefit of this strategy is sample-difficulty awareness: for complex reference scenes requiring rich context, the model naturally allocates high attention over broader regions, automatically preserving a larger token budget; simpler references with clean backgrounds are pruned more aggressively.
B.3 DATASETS AND EVALUATION
MultiBanana [41] is a challenging benchmark for multi-reference image generation, consisting of 3K+ samples with up to 8 reference images. For the two-reference setting, it covers 11 editing tasks including subject addition, replacement, background change, color/material/pose/hairstyle/makeup modification, tone transformation, style transfer, and text correction. For the 3 references setting, it includes four tasks: object composition, background composition, local attribute transfer, and global tone edit. The benchmark incorporates four difficulty axes: cross-domain diversity (e.g., mixing photos, anime, and sketches), scale and viewpoint differences, rare concept references (e.g., a red banana), and multilingual references (English, Chinese, and Japanese), comprehensively evaluating the model's ability on multi-reference generation tasks. MultiBanana uses a VLM to score generation quality from five dimensions: Text-Instruction Alignment, Reference Consistency, Background-Subject Match, Physical Realism, and Visual Quality, each on a 10-point scale. To align with our focus on multi-reference efficiency setting, our main experiment targets all multi-reference tasks (excluding the pure instruction-based editing task in MultiBanana). We report the mean across tasks for each quality dimension.
To reduce decoding randomness, each sample is scored twice under different decoding configurations and the two scores are averaged: (1) greedy decoding (temperature = 0 and top_k = 1); (2) Top-p sampling with temperature = 0.8, top_p = 0.8, and random_seed = 0.
Following the recommendation in Issue #2 of the official MultiBanana GitHub repository, we exclude the local attribute transfer samples with IDs 200, since the maintainers confirmed a prompt-reference mismatch bug on these samples and advised excluding them from evaluation.
Macro [14] is also a reference-based image generation dataset covering four tasks: customization (composing multiple subjects into coherent scenes), illustration (generating narrative images based on interleaved multimodal context), spatial synthesis (novel view synthesis), and temporal synthesis (predicting a future keyframe from history keyframes), each comprising 1000 samples with 1–10 reference images, in total 4000 samples. Macro evaluates each sample across multiple dimensions to compute an overall score. We report the average overall score across all samples.
Qwen3-VL [3], deployed via the LMDeploy [17] framework on an NVIDIA H800 (80GB), is used as the VLM-as-judge for the two benchmarks.
For efficiency, we report end-to-end latency (including the VAE and probing denoising stage, excluding disk I/O such as reference image reading and output image dumping), peak activation VRAM across samples, and speedup over the corresponding base model.
B.4 DETAILS OF COMPARED METHODS
ToMeSD. For ToMeSD, we directly apply the official method to the reference image tokens before entering the DiT.
VisPruner. VisPruner [67] first extracts an importance score for each visual token from a vision encoder's self-attention. If the encoder has a CLS token, importance is the CLS-to-patch attention; if not (e.g., SigLIP), it averages attention over the query axis. It then keeps a budget of tokens by selecting the top-scoring important subset and filling the rest via iterative cosine-similarity deduplication for diversity. For HiDream-O1-Image, we reuse the model's built-in Qwen3-VL vision encoder to score reference tokens. For FLUX.2 Klein, the model has no vision encoder, so we follow VisPruner's default and use CLIP (ViT-L/14-336) for importance. Because CLIP patches do not match Flux's VAE-packed reference tokens, we compute CLS-to-patch attention at CLIP's native resolution and bilinearly map the score map onto the Flux reference grid, yielding a spatially aligned importance map for subsequent stages. Important and diverse token selection then proceeds as in VisPruner, with cosine deduplication on the packed VAE latents that enter the DiT. For Qwen-Image-Edit, we reuse the built-in Qwen2.5-VL vision encoder to score tokens. Importance is computed on the pipeline's condition views and bilinearly mapped onto the VAE-packed reference grid; VisPruner then selects important and diverse tokens with cosine deduplication on those packed VAE latents.
B.5 EFFECTIVE ATTENTION RATIO (EAR)
The Effective Attention Ratio (EAR) in Sec. 4.5.2 is only possible when the ground-truth important region is known. While general reference-based tasks do not mark it, the object composition task in MultiBanana [41] does. Since the object composition task aims to composite the salient object in each reference image, the ground-truth important region is the salient object region in each reference image. We obtain this salient region with BiRefNet [71], which returns a soft saliency map . The map is resized to the latent grid of the reference, and indexes a reference token on that grid.
With the region fixed, we measure the attention that generative tokens G and prompt tokens P place on each reference token inside the main denoising loop. At timestep t and layer l, their total attention to the token at is , where is the head-averaged attention from query i. Summing over timesteps and layers, the Effective Attention Ratio (EAR) is the share of this attention that lands on the salient region,
Table 4 compares the unpruned base model and three ways of building the reference utilization score that drives token reduction. The quality scores in Table 4 are computed over the same samples as in Table 1 and Figure 7, whereas EAR is calculated on the object composition subset, as importance GT is only defined for this task. The reduction budget is the same in all four: the same ratio-based rule fixes how many tokens are preserved and how many are substituted. (1) Baseline (No Reduction) keeps the full reference sequence, so the main denoising sees every reference token. (2) Top-1 layer reduces tokens with the score of the single layer best aligned with the oracle importance . On Flux.2-Klein-4B [4] this is layer , shown in Fig. 4(b), with . (3) Top 20% of layers uses the mean of the top 20% best-correlated middle layers. On Flux.2-Klein-4B these are , and . (4) All layers uses the mean over every transformer block, .
C LIMITATIONS
-
This paper focuses on the efficiency drop caused by token growth when multiple reference images are used. In the single-image setting, namely pure instruction-based editing, the acceleration gain is relatively lower than in the multi-reference case.
-
The empirical validation of our framework is currently limited to multi-reference-based image generation. In principle, the underlying strategy of early downsampled self-probing to identify spatial redundancy can be transferred to broader visual tasks like ViTs, VLMs, and long video generation.