Abstract
This paper proposes a cooperative learning algorithm to train both the undirected energy-based model and the directed latent variable model jointly. The learning algorithm interweaves the maximum likelihood algorithms for learning the two models, and each iteration consists of the following two steps: (1) Modified contrastive divergence for energy-based model: The learning of the energy-based model is based on the contrastive divergence, but the finite-step MCMC sampling of the model is initialized from the synthesized examples generated by the latent variable model instead of being initialized from the observed examples. (2) MCMC teaching of the latent variable model: The learning of the latent variable model is based on how the MCMC in (1) changes the initial synthesized examples generated by the latent variable model, where the latent variables that generate the initial synthesized examples are known so that the learning is essentially supervised. Our experiments show that the cooperative learning algorithm can learn realistic models of images.
Introduction
In the field of generative AI, researchers often navigate a trade-off between two primary model families: Energy-Based Models (EBMs) and Latent Variable Models (LVMs/Generators). While EBMs excel at capturing complex data patterns through an energy function, they are notoriously difficult to sample from, often requiring slow Markov Chain Monte Carlo (MCMC) processes. Conversely, Generators offer fast sampling but frequently suffer from training instabilities like "mode collapse."
This paper introduces CoopNets, a framework where these two models cooperate rather than compete. By interweaving their training processes, CoopNets achieves greater stability than adversarial methods (like GANs) and produces high-fidelity, realistic images.
The CoopNets Algorithm: Advisor and Student
The authors employ a compelling analogy: an advisor (the EBM) and a student (the Generator). The student produces a "draft," which the advisor refines. The student then learns from these revisions.
The Two Players
- The Descriptor (Teacher): A bottom-up ConvNet acting as an EBM that learns the underlying shape of the data distribution.
- The Generator (Student): A top-down ConvNet that maps latent variables to signals.
The Cooperative Loop
Each training iteration follows a two-step cycle:
- Modified Contrastive Divergence: The Generator creates a batch of "draft" images from random noise. The EBM takes these drafts and runs a few steps of Langevin MCMC to refine them, moving them closer to the real data distribution.
- MCMC Teaching: Because the Generator knows the exact latent noise that produced each draft, it treats the EBM’s refined version as a target. It updates its parameters to better map the original noise to the revised image, transforming a difficult unsupervised problem into a supervised non-linear regression task.
Experimental Evaluation
The authors evaluated CoopNets across several challenging domains, including texture synthesis (e.g., honeycombs, ivy), ImageNet scene categories (e.g., volcanoes, lakesides), and CelebA face images.
Key Results
- Higher Fidelity: On ImageNet scene categories, CoopNets achieved an Inception Score of 3.79, outperforming DCGAN (3.47), EBGAN (2.75), and VAE (1.73).
- Stability: Unlike GANs, CoopNets is trained via Maximum Likelihood, leading to significantly more stable training without mode collapse issues.
- Smooth Latent Space: By interpolating between latent vectors, the authors demonstrated that the Generator learns a smooth, continuous manifold of images, proving it captures the underlying data structure rather than simply memorizing the training set.
Conclusion
CoopNets demonstrates that MCMC is not merely a computational burden for EBMs but can serve as a vital communication channel to "distill" knowledge into a fast generator. While MCMC still introduces some overhead compared to pure feed-forward models, the resulting stability and image quality represent a significant step forward in joint generative modeling.
Summary updated