Sobolev Regularized Score Difference Estimation in Diffusion Models

Chenghan Xie, Jose Blanchet, Renyuan Xu

Abstract Estimating the difference between two Stein's score functions is a fundamental challenge in generative modeling, particularly for transfer learning and discriminator guidance in diffusion models. Existing estimators often lack statistical consistency or struggle to scale in high dimensions. This paper introduces a statistically consistent and scalable estimator for score differences based on Sobolev regularization. By constraining the gradient of the estimator, the proposed method prevents overfitting to high-frequency noise, stabilizing training in small-sample regimes. The authors establish near-optimal convergence rates and demonstrate significant empirical improvements, including state-of-the-art performance in transfer learning for ECG signal generation.

Introduction

Diffusion models have revolutionized generative AI, but training them from scratch requires massive datasets and immense computational power. Transfer learning offers a practical alternative: adapting a model pre-trained on a large source dataset ($p$) to a smaller, specialized target dataset ($q$). To achieve this, we must estimate the score difference ($\nabla \log q - \nabla \log p$). This difference acts as the mathematical "driving force" that transports samples from the source domain to the target domain.

However, accurately estimating this score difference is notoriously difficult, especially when target data is scarce. This paper proposes a novel solution using Sobolev regularization, effectively smoothing the learning path and enabling highly stable, data-efficient transfer learning for diffusion models.

The Gradient Overfitting Trap

The standard approach to estimating score differences relies on a "classify-then-differentiate" pipeline. A discriminator is trained to distinguish between source and target samples, effectively estimating the density ratio. The gradient of this classifier is then used as the score difference.

While this sounds straightforward, it suffers from a critical flaw: standard classifiers are highly prone to overfitting the gradient field. A classifier might achieve perfect accuracy in its output values (the density ratio) while producing a completely jagged, oscillating gradient field due to high-frequency noise in the training data. These "catastrophic oscillations" render the resulting score difference estimator unstable and practically useless in data-scarce regimes.

Proposed Method: Sobolev Regularization

To overcome gradient overfitting, the authors introduce the Sobolev Regularized Score Difference Estimator. The core innovation lies in modifying the objective function used to train the estimator $f$:

  1. Binary Classification Reformulation: The problem is framed as a classification task between source and target samples using a cross-entropy loss.
  2. Sobolev Penalty: The authors introduce a Sobolev seminorm penalty that explicitly constrains the $L^2$ norm of the estimator's gradient: $\lambda \|\nabla f\|^2_{L^2(\mu)}$. This acts as a low-pass filter, smoothing the score field without sacrificing the accuracy of the underlying density ratio.
  3. Neural Network Sieve: The estimator utilizes clipped sparse neural networks with $\text{ReLU}^3$ activations, a class of networks theoretically proven to be well-suited for approximating smooth functions and their derivatives.
  4. Diffusion Extension: To accommodate the time-dependent densities and unbounded domains characteristic of diffusion models, the framework employs a "projected-rescaled" objective that clips inputs to a bounded ball.

By directly estimating the difference between scores rather than learning the target score from scratch, the method exploits shared geometry. If the source and target distributions are related, their difference often resides on a lower-dimensional manifold, requiring far fewer samples to learn.

Empirical Evaluation and Key Results

The authors evaluated their method across synthetic simulations, visual domain adaptation (Office-Caltech-10), and a real-world medical application (ECG signal generation). The results highlight several major advantages:

  • Small-Sample Stability: In synthetic 2D tests (e.g., Rotated Ridge, Orthogonal GMM) with as few as 20 samples, the Sobolev-regularized estimator improved Mean Squared Error (MSE) by over 50% compared to unregularized baselines.
  • Superior Real-World Generation: On the ECG benchmark (transferring from the large PTB-XL dataset to the limited ICBEB2018 dataset), the proposed method (TGDP-SoB) achieved a Frechet Inception Distance (FID) of 8.097 and a downstream classification AUC of 0.915. This substantially outperformed vanilla diffusion and non-regularized transfer methods.
  • Amortized Efficiency: Previous theoretically sound estimators relied on kernel methods, which require comparing new samples against the entire training set at every step. By using a neural network, this method amortizes the cost. Inference becomes a standard forward/backward pass, resulting in a ~5,000x speedup (0.0004s vs. 2.06s per gradient calculation) over kernel-based alternatives.

Mathematically, the authors also establish a convergence rate of $\tilde{\mathcal{O}}(n^{-\frac{s-1}{d+2s-2}})$, proving that their estimator is statistically consistent and nearly optimal relative to the established minimax lower bound of $\tilde{\Omega}(n^{-\frac{2(s-1)}{d+2s}})$.

Limitations and Future Directions

While the theoretical convergence rate is strong, the authors acknowledge a slight "optimality gap" between their achievable upper rate and the minimax lower bound. They hypothesize that this is a saturation phenomenon inherent to single-step Tikhonov-type regularization.

Closing this gap might require iterative regularization schemes—training a sequence of networks where each refines the previous one. However, such approaches would significantly increase computational and memory overhead. Future research will likely focus on balancing this trade-off, seeking ways to implement iterative refinements without sacrificing the remarkable scalability of the current Sobolev-regularized approach.

Summary updated

BibTeX
@inproceedings{xie2026sobolev,
  author = {Chenghan Xie and Jose Blanchet and Renyuan Xu},
  title = {{Sobolev Regularized Score Difference Estimation in Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=en3Ws2v1Ts},
}
Figure