Abstract
The escalating demand for real-time image synthesis has driven significant advancements in one-step diffusion models, which inherently offer expedited generation speeds compared to traditional multi-step methods. However, this enhanced efficiency is frequently accompanied by a compromise in the controllability of image attributes. While negative prompting, typically implemented via classifier-free guidance (CFG), has proven effective for fine-grained control in multi-step models, its application to one-step generators remains largely unaddressed. Due to the lack of iterative refinement, as in multi-step diffusion, directly applying CFG to one-step generation leads to blending artifacts and diminished output quality. To fill this gap, we introduce Negative-Away Steer Attention (NASA), an efficient method that integrates negative prompts into one-step diffusion models. NASA operates within the intermediate representation space by leveraging cross-attention mechanisms to suppress undesired visual attributes. This strategy avoids the blending artifacts inherent in output-space guidance and achieves high efficiency, incurring only a minimal 1.89% increase in FLOPs compared to the computational doubling of CFG. Furthermore, NASA can be seamlessly integrated into existing timestep distillation frameworks, enhancing the student's output quality. Experimental results demonstrate that NASA substantially improves controllability and output quality, achieving an HPSv2 score of 31.21, setting a new state-of-the-art benchmark for one-step diffusion models.
Introduction
Diffusion models have revolutionized image synthesis, but their iterative nature—often requiring 20–50 steps—remains a bottleneck for real-time applications. Recent distillation techniques have successfully compressed this process into a single step. However, this speed gain often sacrifices controllability, particularly the ability to use negative prompts (e.g., "no blurry backgrounds").
In traditional multi-step models, Classifier-Free Guidance (CFG) handles negative prompts by steering the image away from a negative noise estimate. When applied directly to one-step models, CFG fails because the model lacks the iterative refinement steps to resolve the conflict between positive and negative prompts. This typically results in "blending artifacts," where unwanted features appear as ghostly overlays or distorted textures, significantly degrading image quality.
Methodology: Negative-Away Steer Attention (NASA)
To overcome the limitations of output-space guidance, we propose Negative-Away Steer Attention (NASA). Instead of steering the final pixels, NASA operates within the internal cross-attention layers—the semantic bridge between text prompts and image features.
The NASA Mechanism
NASA modifies the standard cross-attention mechanism to incorporate negative guidance directly into the feature representation space. The process involves:
- Dual Attention Computation: The model computes attention maps for both the positive prompt ($Z^+$) and the negative prompt ($Z^-$) using a shared query projection ($Q$).
- Feature Steering: Undesired features are suppressed by subtracting the negative representation from the positive one: $Z^{NASA} = Z^+ - \alpha \cdot Z^-$, where $\alpha$ is a steering scale.
- Computational Efficiency: By reusing the query projection and performing subtraction in the feature space, NASA avoids the costly double-forward pass required by CFG, adding only a negligible 1.89% overhead in FLOPs.
NASA can be implemented in two ways: NASA-I (Inference), a training-free plug-and-play module for existing models, and NASA-T (Training), which integrates the mechanism into the distillation process to further refine output quality.
Experimental Results
NASA was evaluated on benchmarks including MS-COCO and NegOpt, a dataset specifically designed to test feature removal.
Quality and Controllability
NASA achieved a state-of-the-art HPSv2 score of 31.21, outperforming existing one-step baselines. In controllability tests, NASA demonstrated near 100% success in removing specific semantic features, whereas standard one-step CFG often resulted in total image collapse.
Efficiency and Generalization
Beyond its performance gains, NASA's efficiency is a key highlight. While CFG doubles the computational cost, NASA's 1.89% FLOPs increase maintains the real-time promise of one-step models. The method also generalizes well across architectures (UNet and Transformers) and modalities, showing success in text-to-video generation tasks.
Conclusion
NASA provides a robust and efficient solution for bringing negative prompt control to one-step diffusion models. By shifting guidance to the intermediate representation space, it eliminates blending artifacts and sets a new standard for high-quality, real-time image synthesis. Future work will explore more complex layout controls and localized editing within this framework.
Summary updated