[KongchangAI]
ConceptClassifier-Free Guidance

CFG

CFG (Classifier-Free Guidance) is a guidance mechanism used in diffusion models. It computes both conditional and unconditional noise predictions simultaneously and amplifies generation guidance in a specified direction, controlling the degree to which the generated image matches the input prompt.

Core Facts

Timeline (last 90 days)

Oct 29

Logic bugs do not rely on guessing the memory layout or hijacking control flow, so memory mitigation mechanisms such as ASLR and CFG are essentially ineffective against them.

Unverified50%
Oct 29

Modern browsers generally deploy multiple layers of protection such as ASLR, CFG, and sandboxes, raising the bar for exploiting memory corruption vulnerabilities.

Unverified50%
Oct 29

CFG (Control Flow Guard) verifies whether the target address belongs to a legitimate function entry before an indirect call, blocking a common path by which attackers hijack control flow.

Unverified50%
Oct 24

CFG is a parameter controlling the strength of alignment between the generated result and the prompt, usually taking values of 5-9; acceleration LoRAs require CFG=1 because the model has already internalized the guidance signal during distillation, and continuing to use a high CFG would break the step-compression mapping.

Unverified50%
Oct 21

When CFG is 1, negative prompts have no effect; if negative prompts are needed, the CFG value can be slightly increased (e.g., to 1.5).

Unverified60%
Oct 18

The 1920x1088 resolution failed due to OOM because the CFG path requires two forward passes per step, and the high-definition tier doubles memory before improving anything.

Unverified50%
Oct 12

Classifier-free guidance (CFG) runs both a conditional branch and an unconditional branch simultaneously, amplifying the conditional signal by subtracting the unconditional direction from the conditional direction, trading a doubling of inference cost for quality improvement.

Unverified50%
Oct 12

The SFG branch only needs to run during the first 20% of image sampling steps, and without using CFG its overhead is only approximately 1.2× the base NFE.

Unverified50%
Oct 11

Turbo defaults to CFG=1, requiring only one forward inference pass per step.

Unverified50%
Oct 1

CFG (Classifier-Free Guidance) requires running both conditional and unconditional forward passes simultaneously at each denoising step, doubling the computation per inference step when enabled.

Unverified50%

18 more timeline events

All Facts (20)

Verified

The implementation of negative prompting techniques in text-to-image scenarios relies on the Classifier-Free Guidance (CFG) mechanism.

75%
Verified

A higher CFG Scale causes the generated result to adhere more strictly to the text description, but too high a value may lead to oversaturated colors and distorted details.

65%
Unverified

CFG值(Classifier-Free Guidance Scale)通常设置在5-12之间,采样步数一般在20-50步之间取得较好平衡

85%
Unverified

FSM constraints can guarantee JSON format validity at the grammatical level, but cannot constrain the semantic quality of fields.

70%
Unverified

When CFG is 1, negative prompts have no effect; if negative prompts are needed, the CFG value can be slightly increased (e.g., to 1.5).

60%
Unverified

Even with the same prompt, different seeds produce completely different images; once the seed is fixed, even small changes to the number of sampling steps or the CFG guidance strength can cause differences in the output.

60%
Unverified

The CFG value (Classifier-Free Guidance Scale) controls the degree to which the model adheres to the prompt; a higher value yields greater fidelity but may result in oversaturation.

60%
Unverified

The Classifier-Free Guidance (CFG) sampling technique, while improving image quality, pushes outputs toward high-density regions of the data distribution, further exacerbating output homogenization.

60%
Unverified

New-generation models such as FLUX and Z-Image, due to architectural improvements, achieve optimal results with a CFG value of 1 or even lower, whereas traditional Stable Diffusion models typically use CFG values of 7–12.

60%
Unverified

Logic bugs do not rely on guessing the memory layout or hijacking control flow, so memory mitigation mechanisms such as ASLR and CFG are essentially ineffective against them.

50%
Unverified

Modern browsers generally deploy multiple layers of protection such as ASLR, CFG, and sandboxes, raising the bar for exploiting memory corruption vulnerabilities.

50%
Unverified

CFG (Control Flow Guard) verifies whether the target address belongs to a legitimate function entry before an indirect call, blocking a common path by which attackers hijack control flow.

50%
Unverified

CFG is a parameter controlling the strength of alignment between the generated result and the prompt, usually taking values of 5-9; acceleration LoRAs require CFG=1 because the model has already internalized the guidance signal during distillation, and continuing to use a high CFG would break the step-compression mapping.

50%
Unverified

The 1920x1088 resolution failed due to OOM because the CFG path requires two forward passes per step, and the high-definition tier doubles memory before improving anything.

50%
Unverified

The SFG branch only needs to run during the first 20% of image sampling steps, and without using CFG its overhead is only approximately 1.2× the base NFE.

50%
Unverified

Classifier-free guidance (CFG) runs both a conditional branch and an unconditional branch simultaneously, amplifying the conditional signal by subtracting the unconditional direction from the conditional direction, trading a doubling of inference cost for quality improvement.

50%
Unverified

Turbo defaults to CFG=1, requiring only one forward inference pass per step.

50%
Unverified

CFG (Classifier-Free Guidance) requires running both conditional and unconditional forward passes simultaneously at each denoising step, doubling the computation per inference step when enabled.

50%
Unverified

On Qwen-Image 2.1, a lower CFG value (3) generally produces more natural output with less of an overfitting feel.

50%
Unverified

Supra2-IMG uses CFG 3.0 as the default display value, which is lower than the 7.0–9.0 commonly used by Stable Diffusion.

50%

Source Articles