Accelerating Continuous Normalizing Flow with Trajectory Polynomial Regularization

Han-Hsien Huang, Mi-Yen Yeh
12/8/2020
cs.LGstat.ML
diffusion-flow

Official code: hanhsienhuang/CNF-TPR (1 star, Python, MIT, last commit 2020-12-07).

Abstract

In this paper, we propose an approach to effectively accelerating the computation of continuous normalizing flow (CNF), which has been proven to be a powerful tool for the tasks such as variational inference and density estimation. The training time cost of CNF can be extremely high because the required number of function evaluations (NFE) for solving corresponding ordinary differential equations (ODE) is very large.

Show full abstract

We think that the high NFE results from large truncation errors of solving ODEs. To address the problem, we propose to add a regularization. The regularization penalizes the difference between the trajectory of the ODE and its fitted polynomial regression. The trajectory of ODE will approximate a polynomial function, and thus the truncation error will be smaller. Furthermore, we provide two proofs and claim that the additional regularization does not harm training quality. Experimental results show that our proposed method can result in 42.3% to 71.3% reduction of NFE on the task of density estimation, and 19.3% to 32.1% reduction of NFE on variational auto-encoder, while the testing losses are not affected.

View on arXivView PDF

Code Implementations(1)

MIT
10Python, ShellApr 15, 20205 years agoMIT

Similar Papers

Cite this paper

@article{huang2020accelerating,
  title  = {Accelerating Continuous Normalizing Flow with Trajectory Polynomial Regularization},
  author = {Han-Hsien Huang and Mi-Yen Yeh},
  year   = {2020},
  eprint = {2012.04228},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.04228}
}

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/2012.04228.svg)](https://codeofpaper.com/paper/2012.04228)

Discussion