Score Correction for Generative Models with Probabilistic Constraints

Shishang Wu, Bingjing Tang, Vinayak RaoICML 2026

Introduction

Generative models, particularly diffusion models, are incredibly powerful but frequently inherit biases from their training data. For instance, an image generator might produce a disproportionate number of specific demographic attributes due to dataset imbalances. The paper introduces DUALSCORE, a framework designed to "nudge" pre-trained generative models so they satisfy specific distributional constraints—such as class fairness—without the need for expensive retraining.

The Challenge of Probabilistic Constraints

While researchers have developed methods to enforce constraints on deterministic transformations (e.g., ensuring a specific generated image has a certain attribute), real-world constraints are often probabilistic and involve stochastic transformations. A common goal is ensuring the marginal distribution of labels from a noisy classifier is uniform across a generated population.

Existing solutions, such as importance sampling or conditional sampling, often fail in these scenarios. This failure is particularly pronounced when there is a "density chasm"—a significant lack of overlap between the original model's distribution and the desired target distribution. The authors provide a formal proof demonstrating that standard techniques are mathematically incapable of satisfying marginal constraints under stochastic transformations. DUALSCORE is specifically designed to bridge this chasm efficiently.

The DUALSCORE Framework

DUALSCORE approaches this task as a constrained KL-minimization problem. The objective is to find a new distribution that is as close as possible to the original reference distribution (measured by KL divergence) while satisfying a constraint on the marginal distribution of a transformed variable.

Key technical innovations include:

  • Fenchel Duality: Instead of solving the intractable infinite-dimensional primal problem, the authors optimize its dual. This mathematical pivot reveals that the optimal correction is simply an additive term to the original score function.
  • Neural Parameterization: The dual variable is parameterized by a lightweight neural network (a simple Multi-Layer Perceptron). This transforms a complex optimization problem into a standard neural network training procedure.
  • Persistent SGLD: To estimate gradients efficiently during training, the framework employs a "persistent" Markov chain. Rather than restarting the sampling process at every training step, a chain is maintained that slowly evolves alongside the model parameters, drastically reducing computational overhead.
  • Plug-and-Play Integration: The learned additive correction can be plugged directly into existing sampling algorithms, such as Stochastic Gradient Langevin Dynamics (SGLD) or reverse diffusion sampling, without modifying the base model's weights.

Experimental Validation and Results

The framework was rigorously evaluated across several domains, including synthetic 1D Gaussian and Laplace distributions (to illustrate the density chasm), Regularized Nonparametric Maximum Likelihood Estimation (NPMLE) tasks, and image generation for fairness correction on CIFAR-10 (long-tailed versions) and CelebA.

Key Findings: * Effective Fairness Correction: On both CIFAR-10 and CelebA, DUALSCORE successfully shifted biased class distributions to near-uniform (balanced) or even intentionally "reversed" distributions. * High Fidelity: The method maintained low Fréchet Inception Distance (FID) scores, proving that the quality of the generated images remained high even after the distributional shift. The additive nature of the correction ensures the model does not "forget" how to generate high-quality data; it merely learns a directional vector to steer the generation process. * Robustness and Feasibility: DUALSCORE remains effective even as the transformation (e.g., the classifier used to check for fairness) becomes noisier. Furthermore, if a constraint is perfectly impossible to satisfy, the framework gracefully finds the "closest possible" distribution, making it highly robust for real-world applications. * Efficiency: While sampling time roughly doubled for image tasks, this computational cost is negligible compared to the expense of retraining a massive diffusion model from scratch. In "density chasm" regimes, DUALSCORE significantly outperformed baselines like Importance Resampling (IRS) and Conditional Sampling.

Limitations and Future Work

While DUALSCORE offers a robust solution for probabilistic constraints, the current work primarily focuses on a single marginal constraint. Real-world scenarios often involve multiple, potentially conflicting constraints. Additionally, the framework is built for continuous spaces where scores are well-defined; extending this to discrete spaces (like text or graphs) remains an open area for future research.

The authors also note theoretical gaps regarding the rigorous analysis of errors introduced by neural network approximation and SGLD mixing. Finally, they acknowledge a dual-use concern: while DUALSCORE is highly effective at correcting bias, the same mechanism could theoretically be used to amplify bias if applied maliciously.

Summary updated

BibTeX
@inproceedings{wu2026score,
  author = {Shishang Wu and Bingjing Tang and Vinayak Rao},
  title = {{Score Correction for Generative Models with Probabilistic Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=jMfOyiKY2O},
}
Figure