Skip to main content
QUICK REVIEW

[Paper Review] DIAMOND: Directed Inference for Artifact Mitigation in Flow Matching Models

Alicja Polowczyk, Agnieszka Polowczyk|arXiv (Cornell University)|Jan 31, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

DIAMOND is a training-free inference-time method that corrects artifacts in flow-matching and diffusion models by estimating clean latents and applying gradient-based trajectory corrections during sampling.

ABSTRACT

Despite impressive results from recent text-to-image models like FLUX, visual and anatomical artifacts remain a significant hurdle for practical and professional use. Existing methods for artifact reduction, typically work in a post-hoc manner, consequently failing to intervene effectively during the core image formation process. Notably, current techniques require problematic and invasive modifications to the model weights, or depend on a computationally expensive and time-consuming process of regional refinement. To address these limitations, we propose DIAMOND, a training-free method that applies trajectory correction to mitigate artifacts during inference. By reconstructing an estimate of the clean sample at every step of the generative trajectory, DIAMOND actively steers the generation process away from latent states that lead to artifacts. Furthermore, we extend the proposed method to standard Diffusion Models, demonstrating that DIAMOND provides a robust, zero-shot path to high-fidelity, artifact-free image synthesis without the need for additional training or weight modifications in modern generative architectures. Code is available at https://gmum.github.io/DIAMOND/

Motivation & Objective

  • Motivate practical artifact reduction during image synthesis without expensive fine-tuning.
  • Develop a training-free pipeline that detects and corrects artifacts on-the-fly during generation.
  • Enable precise, region-level guidance to preserve prompt fidelity while reducing artifacts.

Proposed method

  • Compute a clean latent estimate hat{x}_{0,t} from intermediate latents using the predicted velocity v_theta in Flow Matching (or noise prediction in Diffusion).
  • Decode hat{x}_{0,t} to an image and apply a differentiable Artifact Detector to obtain an artifact mask M^t.
  • Define an artifact loss L_a as the mean squared artifact probability over pixels, and compute gradients with respect to x_t.
  • Normalize the gradient and apply a trajectory correction delta_t scaled by a time-dependent lambda_t to steer away from artifacts.
  • Use a power-based schedule lambda_t to apply stronger corrections early and decay them in later steps.
  • Generalize the correction to diffusion models via x_{t-1} update incorporating delta_t, analogous to the flow-based formulation.
Figure 3 : Overview of DIAMOND . Our technique employs an inference-time pipeline specifically designed to mitigate artifacts without requiring additional training. Artifact suppression is achieved by correcting the trajectory using gradients derived from a pixel-wise segmentation loss. During infer
Figure 3 : Overview of DIAMOND . Our technique employs an inference-time pipeline specifically designed to mitigate artifacts without requiring additional training. Artifact suppression is achieved by correcting the trajectory using gradients derived from a pixel-wise segmentation loss. During infer

Experimental results

Research questions

  • RQ1Can artifact-free image synthesis be achieved without model retraining or fine-tuning?
  • RQ2Does on-the-fly trajectory correction based on a differentiable artifact detector reduce artifacts while preserving prompt fidelity?
  • RQ3How does artifact-guided sampling perform across different base models (Rectified Flow and Diffusion) and datasets?
  • RQ4What is the impact of gradient normalization and regularization terms on artifact reduction and identity preservation?
  • RQ5Which artifact detectors yield the best trade-off between artifact reduction and image quality?

Key findings

  • DIAMOND drastically reduces artifact frequency from baseline levels (e.g., from 100% to as low as about 9–31% depending on model and dataset).
  • DIAMOND achieves lower Artifact Pixel Ratios across models, indicating more localized artifact suppression.
  • DIAMOND maintains or slightly improves perceptual quality metrics (CLIP-T, ImageReward) while reducing artifacts and preserving base-model identity with optional L_rec regularization.
  • Gradient normalization stabilizes trajectory corrections and enhances artifact mitigation.
  • DIAMOND generalizes to both Flow Matching (e.g., FLUX) and Diffusion models (e.g., SDXL), outperforming alternatives like DiffDoctor, HandsXL, and HPSv2 in artifact reduction.
  • The choice of artifact detector (DiffDoctor vs RichHF*) materially affects overall image quality, with DiffDoctor yielding better CLIP-T and ImageReward scores.
Figure 13 : Images for the FLUX.1 [dev] on the people dataset using DIAMOND for 10 inference steps. In this type of flow matching model, we can direct the trajectory by correcting large artifacts, such as improving the body shape (see the image with the wizards), and smaller ones (correcting the han
Figure 13 : Images for the FLUX.1 [dev] on the people dataset using DIAMOND for 10 inference steps. In this type of flow matching model, we can direct the trajectory by correcting large artifacts, such as improving the body shape (see the image with the wizards), and smaller ones (correcting the han

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.