Highly Efficient Test-Time Scaling for T2I Diffusion Models with Text Embedding Perturbation
Hang Xu, Linjiang Huang, Feng Zhao
TL;DR
<3-5 sentence high-level summary>: This work tackles the limited exploration of randomness in test-time scaling for text-to-image diffusion models. It introduces Text Embedding Perturbation (TEP), a step-based, frequency-guided perturbation of text embeddings that complements spatial noise and SDE-based randomness. Frequency-domain analysis reveals that low-frequency spatial noise benefits early denoising whereas high-frequency embedding perturbations refine details later, guiding the design of a two-fold framework with adaptive perturbation across time, embedding components, and cross-attention layers. TEP is plug-and-play across existing TTS methods and backbones, delivering significant performance gains with negligible computational overhead on multiple benchmarks and reward metrics. This approach offers a practical path to boost generative diversity and fidelity in T2I diffusion models without retraining.
Abstract
Test-time scaling (TTS) aims to achieve better results by increasing random sampling and evaluating samples based on rules and metrics. However, in text-to-image(T2I) diffusion models, most related works focus on search strategies and reward models, yet the impact of the stochastic characteristic of noise in T2I diffusion models on the method's performance remains unexplored. In this work, we analyze the effects of randomness in T2I diffusion models and explore a new format of randomness for TTS: text embedding perturbation, which couples with existing randomness like SDE-injected noise to enhance generative diversity and quality. We start with a frequency-domain analysis of these formats of randomness and their impact on generation, and find that these two randomness exhibit complementary behavior in the frequency domain: spatial noise favors low-frequency components (early steps), while text embedding perturbation enhances high-frequency details (later steps), thereby compensating for the potential limitations of spatial noise randomness in high-frequency manipulation. Concurrently, text embedding demonstrates varying levels of tolerance to perturbation across different dimensions of the generation process. Specifically, our method consists of two key designs: (1) Introducing step-based text embedding perturbation, combining frequency-guided noise schedules with spatial noise perturbation. (2) Adapting the perturbation intensity selectively based on their frequency-specific contributions to generation and tolerance to perturbation. Our approach can be seamlessly integrated into existing TTS methods and demonstrates significant improvements on multiple benchmarks with almost no additional computation. Code is available at \href{https://github.com/xuhang07/TEP-Diffusion}{https://github.com/xuhang07/TEP-Diffusion}.
