TL;DR
ToDoPro introduces a training-free "probing" stage that uses the diffusion model itself to identify which reference image tokens are actually important for a specific generation task. By hierarchically reducing the token count before the main denoising loop, it achieves up to 3x speedups and 50% VRAM savings while simultaneously improving image quality by filtering out irrelevant visual noise.
What Problem Does This Paper Address?
Modern image generation models, particularly those based on the Diffusion Transformer (DiT) architecture, have become incredibly versatile. They can handle "reference-based" generation, where multiple images (e.g., a specific person, a car, and a background style) are used as conditions. However, this versatility comes at a steep price: token explosion.
When you concatenate multiple high-resolution reference images into a single sequence, the number of tokens ($N$) grows massively. Because the computational complexity of self-attention is $\mathcal{O}(N^2)$, this leads to high latency and enormous peak VRAM usage. Furthermore, having too many tokens can actually hurt quality through "attention dilution"—where the model's limited attention capacity is spread too thin across irrelevant background pixels, leading to missing objects or distorted shapes.
Existing acceleration methods often operate inside the model (pruning tokens mid-way), which doesn't solve the peak VRAM spike at the start. Others use external models to predict importance, which adds complexity and often lacks alignment with what the generator actually needs.
Methods
The authors propose ToDoPro (Early Token reduction via Downsampled self-Probing), a training-free framework that identifies and reduces redundant tokens before the main denoising stage begins.
The process consists of three main steps:
- Downsampled Self-Probing: The model runs a very "cheap" version of the denoising process (using spatially $2\times$ downsampled images and fewer timesteps). This probing stage uses the DiT model itself to see which reference tokens it naturally pays attention to.
- Importance Estimation: The authors calculate a Reference Utilization Score—the total attention that generative and prompt tokens pay to each reference token. They found that averaging this score across all layers provides a robust, noise-free estimate of a token's importance.
- Hierarchical Reduction: Based on the scores, reference tokens are sorted into a tri-tier system:
- High-importance: Kept at full resolution to preserve fine-grained details.
- Mid-importance: Replaced with their downsampled counterparts to preserve global context at 1/4 the cost.
- Low-importance: Completely discarded to eliminate background noise and save memory.
Datasets
The researchers evaluated ToDoPro across three base models (Flux.2-Klein-4B, Qwen-Image-Edit-2511, and HiDream-O1-Image) using two primary benchmarks:
- MultiBanana: A challenging benchmark for multi-reference generation with over 3,000 samples and up to 8 reference images per task.
- Macro: A dataset covering customization, illustration, and spatial/temporal synthesis with up to 10 reference images.
Key Insights and Ideas
- The Generator is its Own Best Judge: Instead of using an external "saliency" model, ToDoPro uses the generator's own internal attention mechanism. This ensures that the tokens being kept are exactly the ones the model needs for that specific prompt.
- Pruning as a Denoiser: Surprisingly, reducing tokens doesn't just make the model faster; it makes it better. By removing "distractor" tokens from the background of reference images, the model can focus its attention more effectively on the target subjects.
- Hierarchical > Binary: Simply keeping or discarding tokens (binary) often loses too much context. The "mid-importance" tier, which uses low-resolution substitutions, is a key innovation that maintains global coherence without the heavy computational load.
Key Results
ToDoPro demonstrates significant gains in both efficiency and quality:
- Speed: Achieves up to 3x mean speedup across different models.
- Memory: Reduces peak activation VRAM by up to 50%, enabling multi-reference generation on consumer-grade GPUs that would otherwise crash.
- Quality: Consistently outperforms the baseline and other state-of-the-art pruning methods (like ToMeSD and VisPruner) in human and VLM-based quality metrics.
- Orthogonality: Because it happens "early" (before the main loop), it can be combined with other "in-model" acceleration techniques for even greater compounded speedups.
Limitations and Future Work
The authors acknowledge a few limitations:
- Single-Image Gains: The acceleration is most dramatic when multiple reference images are used. In single-image "instruction-based" editing, the overhead of the probing stage makes the relative speedup lower.
- Task Scope: While highly effective for image generation, the framework hasn't yet been empirically validated for broader tasks like video generation or pure Vision-Language Model (VLM) inference, though the authors believe the underlying strategy is transferable.
Future work may involve applying this "downsampled self-probing" logic to long-form video generation, where token explosion is an even more critical bottleneck.
Summary updated