Abstract
Text-to-image (T2I) diffusion models lack an efficient mechanism for early quality assessment, leading to costly trial-and-error in multi-generation scenarios such as prompt iteration, agent-based generation, and flow-grpo. We reveal a strong correlation between early diffusion cross-attention distributions and final image quality. Based on this finding, we introduce Diffusion Probe, a framework that leverages internal cross-attention maps as predictive signals. We design a lightweight predictor that maps statistical properties of early-stage cross-attention extracted from initial denoising steps to the final image's overall quality. This enables accurate forecasting of image quality across diverse evaluation metrics long before full synthesis is complete. We validate Diffusion Probe across a wide range of settings. On multiple T2I models, across early denoising windows, resolutions, and quality metrics, it achieves strong correlation (PCC > 0.7) and high classification performance (AUC-ROC > 0.9). Its reliability translates into practical gains. By enabling early quality-aware decisions in workflows such as prompt optimization, seed selection, and accelerated RL training, the probe supports more targeted sampling and avoids computation on low-potential generations. This reduces computational overhead while improving final output quality. Diffusion Probe is model-agnostic, efficient, and broadly applicable, offering a practical solution for improving T2I generation efficiency through early quality prediction.
Introduction
Generating high-fidelity images with modern diffusion models like Stable Diffusion XL or FLUX is a computationally intensive process often characterized by trial and error. Users frequently generate dozens of images to find a single result that accurately reflects their prompt without semantic distortions or aesthetic failures. Currently, there is no standard, efficient way to identify a "failed" generation until the denoising process is nearly complete.
While large Vision-Language Models (VLMs) can evaluate generated images, using them as early-stage filters is often counterproductive because the computational cost of the evaluator can exceed the cost of the generator itself. Diffusion Probe addresses this by providing a lightweight "early-warning system" that forecasts final image quality just a few steps into the denoising trajectory.
The Diffusion Probe Framework
The core methodology of Diffusion Probe relies on the observation that a model's internal cross-attention maps—which dictate how text tokens relate to specific spatial regions—stabilize very early in the generation process.
As shown in the architecture diagram, the system operates in four primary stages:
- Feature Extraction: At an early denoising step (typically step 5 of 25), the system extracts cross-attention maps from the model's internal layers (e.g., the UNet in SDXL or Transformer blocks in FLUX).
- CNN Probing: These maps are fed into a lightweight CNN-based predictor. This probe consists of several "DownBlocks" with residual layers designed to capture spatial and semantic features from the attention maps.
- Quality Prediction: The probe outputs a scalar score representing the predicted quality of the final image.
- Training: The probe is trained using a regression objective to map early attention patterns to ground-truth quality scores (such as ImageReward or PickScore) derived from fully rendered images.
Early Attention as a Diagnostic Signal
The fundamental insight driving this research is the correlation between attention dispersion and semantic grounding. If the cross-attention for a specific token (e.g., "bird") is focused and localized early on, the model is likely to render that object successfully. Conversely, fragmented or diffuse attention patterns are strong indicators of imminent failure.
This predictive power is robust across different architectures and is not tied to a single timestamp; the signal remains reliable across a window of early steps (typically steps 3–10). Because the probe is model-agnostic and non-invasive, it can be deployed as a sidecar module without altering the weights of the primary T2I model.
Key Results and Practical Applications
Diffusion Probe demonstrates high predictive accuracy, achieving a Pearson Correlation Coefficient (PCC) of over 0.7 and an AUC-ROC exceeding 0.9 for quality classification. More importantly, its computational overhead is negligible: a single prediction takes approximately 0.05 seconds, representing a tiny fraction of the resources required for a full generation.
In real-world workflows, this efficiency translates into significant speedups:
- Seed Selection: By generating only the first 5 steps for multiple random seeds and using the probe to select the most promising candidate, researchers achieved a 3.45x speedup.
- Prompt Optimization: Using the probe to determine when a prompt requires LLM-based refinement resulted in a 2.05x speedup.
- RL Training: Integrating the probe into Reinforcement Learning (Flow-GRPO) increased the proportion of valid training samples by 40%, leading to faster convergence and higher final scores.
Conclusion and Future Directions
Diffusion Probe offers a practical solution to the efficiency bottleneck in T2I generation. By identifying low-potential trajectories early, it allows for more targeted sampling and reduced computational waste. While currently limited by the biases of the reward models used for training, future iterations could expand into multi-dimensional probing—simultaneously assessing aesthetics, text-alignment, and object fidelity to provide more granular feedback for automated generation pipelines.
Summary updated