NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On Investigating the Conservative Property of Score-Based Generative Models

Chen-Hao Chao, Wei-Fang Sun, Bo-Wun Cheng, Chun-Yi Lee

Score-Based Generative Models (SBMs) typically force a trade-off between architectural flexibility and the mathematical guarantee of "conservativeness"—ensuring the model outputs valid gradients of a probability distribution. This paper introduces Quasi-Conservative Score-Based Models (QCSBMs), which use a novel, scalable regularization term to enforce conservativeness in flexible architectures. The result is a model that maintains high expressive power while significantly improving sampling efficiency and image generation quality.

The Problem: CSBMs vs. USBMs

Score-based generative models (and by extension, diffusion models) generate data by estimating the "score"—the gradient of the data's log probability density function. To do this, researchers generally choose between two types of architectures, both of which have significant flaws:

  1. Constrained SBMs (CSBMs): These models explicitly output the gradient of a scalar energy function. By definition from vector calculus, this guarantees the output is a "conservative" vector field (it has zero rotation/curl). However, forcing a neural network into this specific architectural constraint severely limits its modeling capacity.
  2. Unconstrained SBMs (USBMs): These models (like standard U-Nets) directly output the vector field. They are highly flexible and model data beautifully. However, because they don't guarantee conservativeness, they often output rotational vector fields that do not correspond to any real probability distribution.
Visual demonstration of how non-conservative vector fields cause swirling, inefficient sampling trajectories.

The authors demonstrate that this "non-conservativeness" in USBMs causes sampling algorithms to take inefficient, swirling detours, requiring more steps to converge and degrading sample quality. The paper asks: Can we get the architectural flexibility of USBMs while maintaining the conservative mathematical guarantees of CSBMs?

The Solution: Quasi-Conservative Score-Based Models

To solve this, the authors propose QCSBMs. Instead of restricting the neural network's architecture, they start with a standard, flexible USBM and add a regularization loss during training to penalize non-conservativeness.

Mathematically, a vector field is conservative if its Jacobian matrix is symmetric. The authors measure non-conservativeness using the asymmetry of the model's Jacobian. However, calculating the full Jacobian for high-dimensional data (like images) is computationally disastrous, requiring $D$ (data dimension) backward passes through the network.

The clever trick: The authors mathematically reformulate the asymmetry metric and apply Hutchinson's trace estimator. This allows them to approximate the regularization loss using random vector projections. Instead of $D$ backward passes, the model only requires a few extra automatic differentiation steps, making the enforcement of conservativeness highly scalable.

Key Insights and Results

The researchers evaluated QCSBMs on toy datasets (8-Gaussian, Spirals, Checkerboard) to visualize the vector fields, as well as real-world image datasets (CIFAR-10, CIFAR-100, ImageNet-32x32, and SVHN).

  • Non-conservativeness actively hurts sampling: The authors visually and quantitatively prove that standard USBMs learn "rotational" vector fields tangent to the true score. During generation, this causes the sampling trajectory to spin unnecessarily, requiring more function evaluations to reach the target distribution.
  • Architectural constraints bottleneck performance: CSBMs, while perfectly conservative, consistently yield worse Negative Log-Likelihood (NLL) scores than USBMs. Forcing a network to output the gradient of a scalar limits its expressive power.
  • Soft constraints outperform hard constraints: By enforcing conservativeness via a regularization loss (QCSBM) rather than an architectural bottleneck (CSBM), the model can learn conservative vector fields that are mathematically impossible for certain constrained architectures to represent.
Comparison of asymmetry metrics and denoising trajectories between standard USBMs and QCSBMs.

When put to the test, QCSBMs delivered impressive empirical results:

  • Better Sampling Efficiency: When using an ODE solver for sampling, the QCSBM variant (QC-NCSN++) achieved comparable or better generation quality than the baseline USBM, but required significantly fewer function evaluations (e.g., 124 vs. 170 NFE on CIFAR-10).
  • Higher Generation Quality: Under a fixed budget of 1,000 sampling steps, QC-NCSN++ consistently outperformed both baselines across all datasets. For example, on CIFAR-100, QC-NCSN++ achieved a Fréchet Inception Distance (FID) of 2.45, beating the USBM (2.54) and crushing the CSBM (17.59).
  • Restored Conservativeness: The proposed regularization successfully drove the asymmetry metric down by orders of magnitude compared to standard USBMs, confirming the vector fields became nearly perfectly conservative.

Limitations and Future Work

While the Hutchinson trace estimator makes the math scalable, calculating the regularization loss and its gradients still requires additional backward passes during training. The authors note that QCSBMs consume more memory and take longer to train per iteration than standard USBMs (e.g., 0.36s vs 0.10s per forward pass).

A natural next step would be applying this quasi-conservative regularization to larger-scale, state-of-the-art latent diffusion models to see if the sampling efficiency gains hold up at massive scales, potentially accelerating the generation of high-resolution images.

Summary updated

BibTeX
@inproceedings{chao2023investigating,
  author = {Chen-Hao Chao and Wei-Fang Sun and Bo-Wun Cheng and Chun-Yi Lee},
  title = {{On Investigating the Conservative Property of Score-Based Generative Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=I6eJvWRrFa},
}
Figure