Kaijing Ma

Paper Notes

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

Paper Notes

Explore the method

Synthetic teaching values, not paper results. Nothing plays automatically; all steps remain available in the static explanation.

Static explanation and limits

VSF introduces negative guidance inside attention for image generators, including few-step models.

  1. Input: positive and negative text branches. Their keys compete in a shared softmax. Negative values are sign-flipped.
  2. Separate the shared attention into positive mass W and negative mass 1−W. Flipping values does not flip keys or attention probabilities.
  3. The output is W times positive value minus α(1−W) times negative value. This acts inside attention, not by subtracting final noise predictions.
  4. In the MMDiT construction, the negative branch must also keep an unflipped copy for its own updates. The simple scalar example omits full network dynamics.

Wenqi Guo, Shan Du

Original reading note; cited methods and evidence, not an experimental reproduction. · 2508.10931v6

2508.10931v6 · Author code

Match with the key, oppose with the value

VSF introduces negative guidance inside attention for image generators, including few-step models.

It concatenates positive and negative prompt keys but flips and scales only the negative values.

Keeping the negative key unchanged lets image queries still find the unwanted concept.

Z_VSF = softmax(Q[K⁺;K⁻]ᵀ/√d)[V⁺;−αV⁻]

Flipping the entire embedding would also change matching and is not the same operation.

1 / 52508.10931v6

Why one attention pass gives adaptive weights

Let S⁺ and S⁻ be the summed exponentiated attention scores for positive and negative keys.

The shared softmax assigns total positive mass W = S⁺/(S⁺ + S⁻).

Z_VSF = W Z⁺ − α(1 − W)Z⁻

Here Z⁺ and Z⁻ use separately normalized attention within their prompt groups.

This identity explains the per-query weight without requiring two separate attention passes.

It does not prove that subtracting a representation removes exactly one semantic concept.

2 / 52508.10931v6

Joint attention needs routing controls

In MM-DiT, image and text tokens share attention, so an unprotected negative value could also perturb positive and negative text streams.

The method duplicates negative tokens, retains an unflipped updating stream, and restricts the flipped copy's influence to image queries.

It also uses attention bias and removes negative-prompt padding.

Section 3.2 contains conflicting wording about whether the flipped copy acts as a key/value; Equation 9 and the routing description require that image queries can attend to its keys and flipped values.

The demonstration therefore visualizes the explicit equation and intended routing rather than reproducing that contradictory sentence.

The paper also flags an implementation duplication issue in the author repository's issue 19.

3 / 52508.10931v6

Experiments and limitations

NegGenBench contains 200 prompt pairs, often requesting removal of an essential part, with two seeds for the main experiment.

Table 2 reports positive, negative, and quality scores of 0.870, 0.545, and 0.952 for VSF Strong.

VSF Quality gives 0.980, 0.420, and 0.986, showing a deliberate tradeoff in negative adherence.

The original NAG configuration gives 0.993, 0.220, and 0.968 under the same reported evaluation.

The main judge is an MLLM; the human check covers only ten selected prompts with two seeds.

Negative adherence and visual quality must therefore be inspected separately, including unusual but correct objects.

A reproduction should pin the code revision, routing mask, duplication convention, α, and attention bias.

The author repository is weathon/VSF.

4 / 52508.10931v6

Sources and reading scope

This original note covers the method and selected experimental evidence discussed above. It is not a full-paper translation. No model experiments were run for this note. Source license: https://creativecommons.org/licenses/by/4.0/

Author-code links in the source: https://github.com/weathon/VSF/tree/main; https://github.com/weathon/VSF/issues/19; https://github.com/hako-mikan/sd-webui-negpip/; https://github.com/huggingface/diffusers

5 / 52508.10931v6

Original figures and data come from the cited paper. Explanations and comparisons are reading notes. Source versions and figure labels appear beside the material.