Training deep generative models (DGMs) on small datasets is a notoriously difficult challenge. When models like Generative Adversarial Networks (GANs) are trained on limited data (e.g., only 1,000 images), they tend to memorize the training samples rather than learning the underlying distribution. This is a classic case of high variance leading to severe overfitting.
To address this, researchers have proposed the Regularized Deep Generative Model (Reg-DGM). This approach leverages a fixed, "nontransferable" pre-trained model—such as an off-the-shelf ImageNet classifier—as a regularizer to guide the learning process. By effectively balancing the bias-variance tradeoff, Reg-DGM achieves state-of-the-art sample quality on limited data.
The Challenge of Limited Data
Existing solutions for training DGMs on small datasets typically fall into three categories:
- Data Augmentation: Artificially increasing the dataset size using techniques like ADA or APA.
- Loss Modifications: Altering the discriminator's objective to prevent it from overpowering the generator.
- Transfer Learning: Fine-tuning a generative model that was already trained on a massive dataset.
However, transfer learning strictly requires the pre-trained model to be a generative one with a similar architecture. The authors identified a significant gap: how can we leverage the vast "knowledge" stored in ubiquitous, non-generative pre-trained models (like ResNet classifiers or CLIP encoders) to help train a DGM from scratch on a tiny dataset?
Introducing Reg-DGM
The core idea behind Reg-DGM is to add a specialized regularization term to the standard DGM objective:
$$\min_{p_g} \text{Divergence}(p_{data} || p_g) + \lambda \mathbb{E}_{x \sim p_g} [\mathcal{E}_f(x)]$$
- The Divergence: This is the standard GAN or VAE loss that attempts to match the model to the training data.
- The Energy Function ($\mathcal{E}_f$): This is the key innovation. It utilizes a fixed, pre-trained feature extractor $f$. By default, this energy function calculates the expected mean squared error (MSE) between the features of a generated sample and the features of the actual training data.
- The Weight ($\lambda$): A hyperparameter that controls the balance. A high $\lambda$ relies more heavily on the pre-trained model's "prior" (low variance, high bias), while a low $\lambda$ relies more on the small training set (high variance, low bias).
Crucially, the pre-trained model $f$ is nontransferable. It remains frozen and does not need to be a generative model itself. This flexibility allows researchers to use powerful, off-the-shelf encoders like ResNet-18, CLIP, or FaceNet to guide the generation process.
Theoretical Insight: The Bias-Variance Tradeoff
The authors provide a compelling theoretical analysis using a representative Gaussian-fitting example to demonstrate why this works. They prove that by introducing a biased pre-trained model, the total error (MSE) of the generator can be significantly reduced by slashing its variance.
As shown in the theoretical analysis, Reg-DGM consistently achieves a lower MSE than standard Maximum Likelihood Estimation (MLE), particularly when the sample size ($m$) is small. The regularization parameter effectively trades off the bias introduced by the pre-trained model against the high variance inherent in small-data training.
Key Results and Advantages
Reg-DGM was evaluated on several standard benchmarks for limited-data generation, including FFHQ, LSUN CAT, CIFAR-10, and an extremely small 100-shot Obama dataset. The method consistently outperformed base models across all tested datasets and architectures:
- State-of-the-Art Performance: On FFHQ-1k, combining Reg-DGM with ADA and APA achieved a median FID of 17.88, significantly outperforming the baseline APA (45.19) and the previous SOTA ADA+APA (19.71). On LSUN CAT-1k, it reached an FID of 21.88 compared to 24.09 for standard ADA+APA.
- Orthogonality: Reg-DGM works synergistically with existing methods. It can be layered on top of data augmentation techniques like ADA and APA to push performance even further.
- Data-Dependent Regularization: By matching features to the specific training data rather than using generic constraints, the regularization is highly effective.
- Robustness: The method proved effective regardless of whether the pre-trained model was a standard ImageNet classifier (ResNet), a multi-modal encoder (CLIP), or a specialized face recognizer (FaceNet).
Limitations and Future Work
While highly effective, Reg-DGM does have limitations. The weighting factor $\lambda$ is crucial, and finding the optimal value currently requires a computationally expensive grid search. Furthermore, while the authors provide convergence proofs for wide neural networks, a complete theoretical understanding of generalization in deep generative modeling remains an open challenge. Finally, while the MSE-based energy function is strong, exploring more sophisticated ways to define the relationship between the generator and the pre-trained model presents an exciting avenue for future research.
Summary updated