TL;DR
This paper compares two score-matching techniques, Implicit Score Matching (ISM) and Denoising Score Matching (DSM), for training generative models. They show that while asymptotically equivalent, DSM is sensitive to noise scale, whereas ISM is more robust and doesn't require noisy data, making it a more stable choice, especially for small noise levels.
What Problem Does This Paper Address?
Training generative models often relies on maximizing the likelihood of the data. However, this can be computationally intractable due to the need to calculate a normalization factor. Score matching offers an alternative by directly learning the gradient of the log-likelihood (the score) without this normalization. A key challenge is that the true score of the data distribution is usually unknown. To overcome this, researchers have developed methods like Implicit Score Matching (ISM) and Denoising Score Matching (DSM). While both aim to approximate the score-matching objective, they have different biases, making direct comparison difficult. This paper seeks to clarify their relationship and practical differences, particularly in how they handle noisy data.
Methods
The authors first unify the theoretical framework of ISM and DSM by removing constant biases from their loss functions. They then analyze their behavior on noisy data. For ISM, they use the formulation that requires computing the Hessian of the log-likelihood, while for DSM, they use the denoising objective that involves learning from noisy samples. The core of their comparison lies in analyzing the variance of the fitting terms in both objectives when trained on corrupted data. They derive theoretical results showing that while the expected values of these fitting terms are equivalent for infinite data, their variances can differ significantly in finite data regimes.
Datasets
The paper uses the half-moon synthetic dataset for empirical evaluation. This dataset is chosen because it represents a non-Gaussian data distribution, allowing for a more nuanced comparison of ISM and DSM.
Key Insights and Ideas
- Noise Sensitivity of DSM: DSM's performance is highly dependent on the chosen noise scale. Too little noise can lead to exploding gradients and poor fitting, while too much noise can cause the learned score to deviate significantly from the true data score.
- Robustness of ISM: ISM, on the other hand, is more robust to varying noise scales. Crucially, it can be trained even without any added noise, making it a more flexible and stable option.
- Practical Implications for Generative Models: For applications where data might be inherently noisy or where introducing controlled noise is part of the training process (like in diffusion models), ISM offers a more reliable and less parameter-sensitive approach.
- Computational Cost Trade-off: While ISM's theoretical formulation can involve computing Hessians (which can be costly), its robustness and flexibility might outweigh this drawback, motivating further research into efficient ISM implementations.
Key Results
The experiments on the half-moon dataset demonstrate that:
- When trained with a fixed noise scale, both ISM and DSM-S (a modified DSM objective) show similar convergence of their fitting terms.
- However, when the noise scale is varied exponentially, ISM consistently shows stable training dynamics.
- For low noise scales (e.g., $\sigma = 10^{-3}$), DSM exhibits rapidly increasing gradient variance, and for even lower scales ($\sigma = 10^{-4}$), the loss barely decreases.
- ISM, in contrast, remains stable across a wide range of noise scales, including the case with no added noise ($\sigma = 0$).
Limitations and Future Work
The authors acknowledge that ISM's computational cost, particularly the Hessian computation, can be a barrier. They suggest that future work should focus on improving the computational efficiency of ISM. Additionally, while they investigated ISM and DSM on a simple non-Gaussian dataset, further studies on more complex, real-world data distributions would be beneficial to fully understand their comparative performance.
Summary updated