English

Inference-Time Loss-Guided Colour Preservation in Diffusion Sampling

Computer Vision and Pattern Recognition 2026-01-27 v1 Graphics Machine Learning

Abstract

Precise color control remains a persistent failure mode in text-to-image diffusion systems, particularly in design-oriented workflows where outputs must satisfy explicit, user-specified color targets. We present an inference-time, region-constrained color preservation method that steers a pretrained diffusion model without any additional training. Our approach combines (i) ROI-based inpainting for spatial selectivity, (ii) background-latent re-imposition to prevent color drift outside the ROI, and (iii) latent nudging via gradient guidance using a composite loss defined in CIE Lab and linear RGB. The loss is constructed to control not only the mean ROI color but also the tail of the pixelwise error distribution through CVaR-style and soft-maximum penalties, with a late-start gate and a time-dependent schedule to stabilize guidance across denoising steps. We show that mean-only baselines can satisfy average color constraints while producing perceptually salient local failures, motivating our distribution-aware objective. The resulting method provides a practical, training-free mechanism for targeted color adherence that can be integrated into standard Stable Diffusion inpainting pipelines.

Keywords

Cite

@article{arxiv.2601.17259,
  title  = {Inference-Time Loss-Guided Colour Preservation in Diffusion Sampling},
  author = {Angad Singh Ahuja and Aarush Ram Anandh},
  journal= {arXiv preprint arXiv:2601.17259},
  year   = {2026}
}

Comments

25 Pages, 12 Figures, 3 Tables, 5 Appendices, 8 Algorithms

R2 v1 2026-07-01T09:18:12.303Z