English

CFG-OEC: Classifier Free Guidance with Orthogonal Error Correction

Machine Learning 2026-05-27 v2 Artificial Intelligence

Abstract

Classifier free guidance is a standard method for conditional sampling in diffusion models, but its sampling rule is not aligned with the objective used in training. This mismatch induces a structural sampling error through the interaction of conditional and unconditional prediction errors. We analyze this issue by decomposing the sampling error into a base term and a cross term determined by the alignment of the two errors. Based on this analysis we propose CFG with orthogonal error correction (CFG-OEC), a structural modification that reduces the interaction term. For practical settings where ground truth noise is not observable, we introduce a proxy computed from model predictions and a dynamic method that stabilizes correction across diffusion timesteps. Experiments in a controlled environment validate our theoretical error decomposition and proxy construction. Image generation on Stable Diffusion v1.5 and Stable Diffusion XL show that CFG-OEC improves FID and CLIP scores over CFG and CFG++ across multiple samplers and guidance regimes.

Keywords

Cite

@article{arxiv.2511.14075,
  title  = {CFG-OEC: Classifier Free Guidance with Orthogonal Error Correction},
  author = {Nakgyu Yang and Yechan Lee and SooJean Han},
  journal= {arXiv preprint arXiv:2511.14075},
  year   = {2026}
}
R2 v1 2026-07-01T07:42:32.124Z