[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 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 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 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%
Sep 22

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

Unverified50%
Sep 21

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.

Unverified50%
Sep 20

Dithering textures and dotted textures in AI image generation typically stem from insufficient sampling steps during the diffusion model denoising process, improper CFG guidance strength, or training quality issues.

Unverified50%
Sep 20

CFG is a core hyperparameter in diffusion models, rooted in a 2022 research finding, and works by enhancing responsiveness to text descriptions through a weighted mixture of the predictions from the conditional and unconditional denoising paths.

Unverified50%
Sep 20

The tester found that raising CFG from 1 to 4–4.5 yielded some improvement in output image quality.

Unverified50%
Sep 20

CFG=1 means no interpolation amplification is applied at all, causing the generation process to degrade into pure unconditional diffusion, rendering the prompt ineffective as a guide.

Unverified50%

14 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

新一代模型如FLUX、Z-Image由于架构改进,CFG值设为1甚至更低即可获得最佳效果,而传统Stable Diffusion模型通常使用7-12的CFG值

80%
Unverified

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

70%
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

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

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

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%
Unverified

Dithering textures and dotted textures in AI image generation typically stem from insufficient sampling steps during the diffusion model denoising process, improper CFG guidance strength, or training quality issues.

50%
Unverified

The tester found that raising CFG from 1 to 4–4.5 yielded some improvement in output image quality.

50%
Unverified

CFG is a core hyperparameter in diffusion models, rooted in a 2022 research finding, and works by enhancing responsiveness to text descriptions through a weighted mixture of the predictions from the conditional and unconditional denoising paths.

50%
Unverified

CFG=1 means no interpolation amplification is applied at all, causing the generation process to degrade into pure unconditional diffusion, rendering the prompt ineffective as a guide.

50%
Unverified

CFG=4–4.5 is the recommended starting range for many Flux and SD3 series models, while SDXL-type models commonly use 5–8.

50%
Unverified

Excessively high CFG values (e.g., above 10) can cause color saturation to blow out, over-sharpening of details, and the appearance of artifacts.

50%
Unverified

For Qwen Image 2.1, it is recommended to start around CFG 4, paired with approximately 40 sampling steps.

50%

Source Articles