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
The implementation of negative prompting techniques in text-to-image scenarios relies on the Classifier-Free Guidance (CFG) mechanism.
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.
Timeline (last 90 days)
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.
Modern browsers generally deploy multiple layers of protection such as ASLR, CFG, and sandboxes, raising the bar for exploiting memory corruption vulnerabilities.
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.
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.
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).
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.
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.
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.
Turbo defaults to CFG=1, requiring only one forward inference pass per step.
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.
18 more timeline events
All Facts (20)
The implementation of negative prompting techniques in text-to-image scenarios relies on the Classifier-Free Guidance (CFG) mechanism.
75%VerifiedA 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%UnverifiedCFG值(Classifier-Free Guidance Scale)通常设置在5-12之间,采样步数一般在20-50步之间取得较好平衡
85%UnverifiedFSM constraints can guarantee JSON format validity at the grammatical level, but cannot constrain the semantic quality of fields.
70%UnverifiedWhen 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%UnverifiedEven 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%UnverifiedThe 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%UnverifiedThe 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%UnverifiedNew-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%UnverifiedLogic 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%UnverifiedModern browsers generally deploy multiple layers of protection such as ASLR, CFG, and sandboxes, raising the bar for exploiting memory corruption vulnerabilities.
50%UnverifiedCFG (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%UnverifiedCFG 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%UnverifiedThe 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%UnverifiedThe 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%UnverifiedClassifier-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%UnverifiedTurbo defaults to CFG=1, requiring only one forward inference pass per step.
50%UnverifiedCFG (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%UnverifiedOn Qwen-Image 2.1, a lower CFG value (3) generally produces more natural output with less of an overfitting feel.
50%UnverifiedSupra2-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%