ToDoPro: Faster and Better Reference-Based Generation: Early Token Reduction via Downsampled Self-Probing

Caiyi Sun, Yujing Sun, Siu-Ming YiuarXiv 2026

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 ToDoPro pipeline: Probing on downsampled images to guide hierarchical token reduction.

The process consists of three main steps:

  1. 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.
  2. 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.
  3. Hierarchical Reduction: Based on the scores, reference tokens are sorted into a tri-tier system:
  4. High-importance: Kept at full resolution to preserve fine-grained details.
  5. Mid-importance: Replaced with their downsampled counterparts to preserve global context at 1/4 the cost.
  6. 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.
Figure 1: Compared to base model FLUX.2-klein-4B, our method reduces inference latency while improving generation quality.

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.
Average quality vs. speedup across three base models.

Limitations and Future Work

The authors acknowledge a few limitations:

  1. 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.
  2. 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

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 $\mathcal{O}(N^2)$ 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 $2\times$ 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
BibTeX
@misc{sun2026todopro,
  author = {Caiyi Sun and Yujing Sun and Siu-Ming Yiu},
  title = {{ToDoPro: Faster and Better Reference-Based Generation: Early Token Reduction via Downsampled Self-Probing}},
  year = {2026},
  eprint = {2610.34782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.34782},
}
Figure