Skip to main content
QUICK REVIEW

[Paper Review] Efficient Learning of Generative Models via Finite-Difference Score Matching

Tianyu Pang, Kun Xu|arXiv (Cornell University)|Jul 7, 2020
Model Reduction and Neural NetworksPhysics and Astronomy11 citations
TL;DR

This paper proposes a finite-difference (FD) score matching method that replaces high-order gradient computations in score matching with efficient, parallelizable function evaluations. By reformulating score matching objectives using directional derivatives approximated via finite differences, the approach reduces computational cost by up to 2.5× while maintaining model performance and improving numerical stability.

ABSTRACT

Several machine learning applications involve the optimization of higher-order derivatives (e.g., gradients of gradients) during training, which can be expensive in respect to memory and computation even with automatic differentiation. As a typical example in generative modeling, score matching (SM) involves the optimization of the trace of a Hessian. To improve computing efficiency, we rewrite the SM objective and its variants in terms of directional derivatives, and present a generic strategy to efficiently approximate any-order directional derivative with finite difference (FD). Our approximation only involves function evaluations, which can be executed in parallel, and no gradient computations. Thus, it reduces the total computational cost while also improving numerical stability. We provide two instantiations by reformulating variants of SM objectives into the FD forms. Empirically, we demonstrate that our methods produce results comparable to the gradient-based counterparts while being much more computationally efficient.

Motivation & Objective

  • Address the high computational cost of optimizing higher-order derivatives (e.g., Hessian traces) in score matching methods.
  • Overcome the inefficiency and numerical instability of sequential gradient computations in existing score matching variants.
  • Develop a generic, parallelizable method to approximate any-order directional derivatives without backpropagation.
  • Enable efficient training of unnormalized generative models like energy-based models and normalizing flows by eliminating intractable partition function dependence.
  • Achieve comparable performance to gradient-based score matching while significantly reducing training time and memory usage.

Proposed method

  • Rewrite score matching objectives (e.g., SSM, DSM) in terms of second-order directional derivatives.
  • Propose a finite-difference (FD) approximation for any-order directional derivatives using only function evaluations.
  • Decompose high-order gradient computations into independent, parallelizable function evaluations, reducing computational graph depth.
  • Use a symmetric FD scheme with step size ε = 0.1 to approximate directional derivatives efficiently.
  • Show that FD-based objectives are asymptotically consistent with gradient-based counterparts under mild conditions.
  • Apply the FD reformulation to unnormalized models, where the intractable partition function cancels out in the objective.

Experimental results

Research questions

  • RQ1Can finite-difference approximations replace high-order gradient computations in score matching with minimal loss in performance?
  • RQ2Does the proposed FD-based score matching achieve better computational efficiency and numerical stability than gradient-based methods?
  • RQ3To what extent can parallel function evaluations reduce training time in score-based generative models?
  • RQ4Is the FD-based objective asymptotically consistent with the original score matching objective under stochastic optimization?
  • RQ5Can the FD reformulation be applied to both explicit and implicit generative models without architectural changes?

Key findings

  • The FD-based Sliced Score Matching (FD-SSM) achieves a speed-up of over 2.5× compared to standard SSM on multiple datasets and models.
  • The FD-based Denoising Score Matching (FD-DSM) achieves a 1.5× speed-up over baseline DSM while maintaining comparable log-likelihood performance.
  • Model performance in terms of log-likelihood and out-of-distribution detection is comparable to gradient-based baselines across MNIST, CIFAR-10, SVHN, and CelebA.
  • The FD approach reduces computational graph depth, improving numerical stability and reducing variance in stochastic optimization.
  • The method is compatible with unnormalized models, as the intractable partition function cancels out in the objective, enabling direct training on unnormalized densities.
  • Empirical results confirm that FD-based objectives are asymptotically consistent with their gradient-based counterparts under mild regularity conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.