Improved Contrastive Divergence Training of Energy Based Models
Yilun Du, Shuang Li, Joshua Tenenbaum, Igor Mordatch
TL;DR
The paper tackles instability in training energy-based models with contrastive divergence. It reintroduces a previously neglected KL-gradient term and shows how to estimate it efficiently, combining Langevin dynamics with a nearest-neighbor entropy surrogate. It also introduces data augmentation transitions and a multi-scale energy formulation to improve mixing, robustness, and generation quality. Empirically, these components yield improved stability and performance on image generation, out-of-distribution detection, and compositional generation.
Abstract
Contrastive divergence is a popular method of training energy-based models, but is known to have difficulties with training stability. We propose an adaptation to improve contrastive divergence training by scrutinizing a gradient term that is difficult to calculate and is often left out for convenience. We show that this gradient term is numerically significant and in practice is important to avoid training instabilities, while being tractable to estimate. We further highlight how data augmentation and multi-scale processing can be used to improve model robustness and generation quality. Finally, we empirically evaluate stability of model architectures and show improved performance on a host of benchmarks and use cases,such as image generation, OOD detection, and compositional generation.
