Temporal Score Analysis for Understanding and Correcting Diffusion Artifacts
Yu Cao, Zengqun Zhao, Ioannis Patras, Shaogang Gong
TL;DR
This work analyzes diffusion model artifacts through the lens of temporal score dynamics, revealing three generation phases and pinpointing artifacts to the Mutation phase via score traps. It introduces ASCED, an unsupervised, in-process detector that identifies abnormal score dynamics and a Trajectory-aware Targeted Correction that perturbs only artifact regions during diffusion, preserving diversity elsewhere. Across multiple datasets, ASCED matches or surpasses supervised baselines while offering faster inference and training-free applicability. The combination of real-time detection and on-the-fly correction demonstrates practical improvements in artifact reduction and latent representation quality, with insights into optimal correction timing and safe operation in non-artifact regions. Overall, the approach provides a principled, domain-general method to mitigate diffusion artifacts without post-hoc processing, enabling more reliable diffusion-based generation in diverse applications.
Abstract
Visual artifacts remain a persistent challenge in diffusion models, even with training on massive datasets. Current solutions primarily rely on supervised detectors, yet lack understanding of why these artifacts occur in the first place. In our analysis, we identify three distinct phases in the diffusion generative process: Profiling, Mutation, and Refinement. Artifacts typically emerge during the Mutation phase, where certain regions exhibit anomalous score dynamics over time, causing abrupt disruptions in the normal evolution pattern. This temporal nature explains why existing methods focusing only on spatial uncertainty of the final output fail at effective artifact localization. Based on these insights, we propose ASCED (Abnormal Score Correction for Enhancing Diffusion), that detects artifacts by monitoring abnormal score dynamics during the diffusion process, with a trajectory-aware on-the-fly mitigation strategy that appropriate generation of noise in the detected areas. Unlike most existing methods that apply post hoc corrections, \eg, by applying a noising-denoising scheme after generation, our mitigation strategy operates seamlessly within the existing diffusion process. Extensive experiments demonstrate that our proposed approach effectively reduces artifacts across diverse domains, matching or surpassing existing supervised methods without additional training.
