Wei Deng, Qi Feng, Liyao Gao, Faming Liang, Guang Lin
Replica exchange Monte Carlo (reMC), also known as parallel tempering, is an important technique for accelerating the convergence of the conventional Markov Chain Monte Carlo (MCMC) algorithms. However, such a method requires the evaluation of the energy function based on the full dataset and is not scalable to big data. The na\"ive implementation of reMC in mini-batch settings introduces large biases, which cannot be directly extended to the stochastic gradient MCMC (SGMCMC), the standard sampling method for simulating from deep neural networks (DNNs). In this paper, we propose an adaptive replica exchange SGMCMC (reSGMCMC) to automatically correct the bias and study the corresponding properties. The analysis implies an acceleration-accuracy trade-off in the numerical discretization of a Markov jump process in a stochastic environment. Empirically, we test the algorithm through extensive experiments on various setups and obtain the state-of-the-art results on CIFAR10, CIFAR100, and SVHN in both supervised learning and semi-supervised learning tasks.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Image Classification | CIFAR-10 | Percentage correct | 97.42 | WRN-28-10 with reSGHMC |
| Image Classification | CIFAR-10 | Percentage correct | 96.87 | WRN-16-8 with reSGHMC |
| Image Classification | CIFAR-10 | Percentage correct | 96.12 | ResNet56 with reSGHMC |
| Image Classification | CIFAR-10 | Percentage correct | 95.35 | ResNet32 with reSGHMC |
| Image Classification | CIFAR-10 | Percentage correct | 94.62 | ResNet20 with reSGHMC |
| Image Classification | CIFAR-100 | Percentage correct | 84.38 | WRN-28-10 with reSGHMC |
| Image Classification | CIFAR-100 | Percentage correct | 82.95 | WRN-16-8 with reSGHMC |
| Image Classification | CIFAR-100 | Percentage correct | 80.14 | ResNet56 with reSGHMC |
| Image Classification | CIFAR-100 | Percentage correct | 76.55 | ResNet32 with reSGHMC |
| Image Classification | CIFAR-100 | Percentage correct | 74.14 | ResNet20 with reSGHMC |