Efficient Learning of Generative Models via Finite-Difference Score Matching

Tianyu Pang, Kun Xu, Chongxuan Li, Yang Song, Stefano Ermon +1 more
7/7/2020
cs.LGstat.ML

Official code: taufikxu/FD-ScoreMatching (12 stars, Python, MIT, last commit 2022-11-22).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

The official code for Efficient Learning of Generative Models via Finite-Difference Score Matching

123Python, ShellMay 23, 20204 years agoMIT

Similar Papers

Cite this paper

@article{pang2020efficient,
  title  = {Efficient Learning of Generative Models via Finite-Difference Score Matching},
  author = {Tianyu Pang and Kun Xu and Chongxuan Li and Yang Song and Stefano Ermon and Jun Zhu},
  year   = {2020},
  eprint = {2007.03317},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.03317}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.03317.svg)](https://codeofpaper.com/paper/2007.03317)

Discussion