Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

VSF: Simple, Efficient, and Effective Negative Guidance in Few-Step Image Generation Models By Value Sign Flip

About

We introduce Value Sign Flip (VSF), a simple and efficient method for incorporating negative prompt guidance in few-step diffusion and flow-matching image generation models. Unlike existing approaches such as classifier-free guidance (CFG), NASA, and NAG, VSF dynamically suppresses undesired content by flipping the sign of attention values from negative prompts. Our method requires only small computational overhead and integrates effectively with MMDiT-style architectures such as Stable Diffusion 3.5 Turbo, as well as cross-attention-based models like Wan. We validate VSF on challenging datasets with complex prompt pairs and demonstrate superior performance in both static image and video generation tasks. Experimental results show that VSF significantly improves negative prompt adherence compared to prior methods in few-step models, and even CFG in non-few-step models, while maintaining competitive image quality. Code and ComfyUI node are available in https://github.com/weathon/VSF/tree/main.

Wenqi Guo, Shan Du• 2025

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationNegGenBench (test)
Positive Score98
22
Negative Concept SuppressionLLM-generated prompts
Suppression Rate (%)21.5
10
Negative Concept SuppressionDCS-Bench LLM-generated prompts on FLUX (dev)
Negative Concept Suppression (%)42.25
10
Negative Concept SuppressionDCS-Bench COCO-derived prompts FLUX (dev)
Suppression Rate (%)39.75
10
Negative Concept SuppressionDCS-Bench Combined FLUX (dev)
Negative Concept Suppression (%)41
10
Negative Concept SuppressionCombined LLM-generated + COCO-derived
Suppression Rate26.62
10
Negative Concept SuppressionCOCO derived prompts
Suppression (%)31.75
10
Text-to-Image GenerationNVIDIA A6000 GPU Environment
Inference Time (s)29.45
9
Text-to-Image GenerationNegGenBench 10 Selected Prompts Human Labelled (test)
Positive Score0.9
4
Showing 9 of 9 rows

Other info

Follow for update