Constraint-Guided Prediction Refinement via Deterministic Diffusion Trajectories

Pantelis Dogoulis, Fabien Bernier, Félix Fourreau, Karim Tit, Maxime Cordy
6/15/2025
cs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Many real-world machine learning tasks require outputs that satisfy hard constraints, such as physical conservation laws, structured dependencies in graphs, or column-level relationships in tabular data. Existing approaches rely either on domain-specific architectures and losses or on strong assumptions on the constraint space, restricting their applicability to linear or convex constraints. We propose a general-purpose framework for constraint-aware refinement that leverages denoising diffusion implicit models (DDIMs). Starting from a coarse prediction, our method iteratively refines it through a deterministic diffusion trajectory guided by a learned prior and augmented by constraint gradient corrections. The approach accommodates a wide class of non-convex and nonlinear equality constraints and can be applied post hoc to any base model. We demonstrate the method in two representative domains: constrained adversarial attack generation on tabular data with column-level dependencies and in AC power flow prediction under Kirchhoff's laws. Across both settings, our diffusion-guided refinement improves both constraint satisfaction and performance while remaining lightweight and model-agnostic.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dogoulis2025constraintguided,
  title  = {Constraint-Guided Prediction Refinement via Deterministic Diffusion Trajectories},
  author = {Pantelis Dogoulis and Fabien Bernier and Félix Fourreau and Karim Tit and Maxime Cordy},
  year   = {2025},
  eprint = {2506.12911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.12911v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.12911.svg)](https://codeofpaper.com/paper/2506.12911)

Discussion