Hybrid Generative Models for Two-Dimensional Datasets

Hoda Shajari, Jaemoon Lee, Sanjay Ranka, Anand RangarajanarXiv 2021

TL;DR

This paper introduces a two-stage hybrid approach for generative modeling that shifts computations from raw pixel space to representation basis spaces like PCA and ICA. By training models on compressed coefficients rather than raw arrays, the authors achieve faster training and superior statistical fidelity, particularly for continuous-valued scientific datasets where traditional visual metrics fail.

What Problem Does This Paper Address?

Most modern generative models, such as GANs and Normalizing Flows, operate directly in the "pixel domain." While successful for natural images, this approach has three major drawbacks:

  1. Efficiency: It ignores decades of signal processing research on image representation and compression, leading to computationally expensive training.
  2. Correlation: Pixel-level modeling doesn't explicitly capture the underlying structural correlations between elements.
  3. Scientific Incompatibility: Scientific datasets (like physics simulations) often consist of continuous values with unconstrained ranges and "exotic" topologies. Standard metrics like Fréchet Inception Distance (FID), which rely on human-centric visual features, are useless for evaluating the quality of a generated particle velocity histogram.

The authors aim to bridge the gap between classical data representation and deep generative modeling to create a framework that is both efficient and applicable to non-visual data.

Methods

The authors propose a two-stage "Hybrid Generative Model" framework:

  1. Data Projection (The Parametric Module): Instead of feeding raw 2D arrays into a network, the data is first projected into a representation basis. The authors experiment with Principal Component Analysis (PCA), Independent Component Analysis (ICA), and Tucker Decomposition (a higher-order SVD). This step acts as a form of lossy compression, reducing the dimensionality of the problem while capturing essential statistical structures.
  2. Generative Modeling (The Non-Parametric Module): A generative model is then trained to learn the probability distribution of these coefficients rather than the pixels. The authors compare three types of models: Generative Adversarial Networks (GANs), Normalizing Flows (NFs), and Gaussian Mixture Models (GMMs).

To evaluate scientific data where visual inspection fails, they introduce a new benchmark: a GMM trained on Discrete Wavelet Transform (DWT) coefficients. They use the Negative Log-Likelihood (NLL) of generated samples against this DWT-GMM model to measure how well the statistical distribution was actually learned.

The GAN architecture used for scientific XGC data, showing the transition from latent noise to basis coefficients and finally back to the image space.

Datasets

The study uses two contrasting 2D datasets to prove the generality of the approach:

  • Fashion MNIST: A standard benchmark of 70,000 grayscale images of clothing items. This represents discrete, constrained [0, 255] image data.
  • XGC (X-point Gyrokinetic Code): A scientific dataset from fusion plasma simulations. It consists of 2D histograms representing the perpendicular and parallel velocities of photons. Unlike images, these values are continuous and vary significantly in range.
Fig. 1. Depiction of a node in the XGC dataset (left). The x and y axes of the histogram represent the perpendicular and parallel velocities of photons, respectively. Samples from dataset (right).

Key Insights and Ideas

  • Visual Fidelity $\neq$ Statistical Accuracy: A key finding was that a standard Pixel-GAN can generate images that look like the training set but are statistically "wrong" (exhibiting very high entropy). In contrast, the ICA-GAN preserved the statistical properties of the dataset much more effectively.
  • ICA for Features: For the Fashion MNIST dataset, Independent Component Analysis (ICA) outperformed PCA. ICA's ability to decompose data into non-Gaussian, independent components allowed the GAN to learn plausible shapes and textures much earlier in the training process.
  • The Power of Classical Baselines: Surprisingly, GMMs paired with a strong representation basis (like Tucker decomposition) proved to be powerful generative models, sometimes rivaling deep learning approaches for scientific data.
  • Preprocessing is Critical: To handle the unconstrained range of ICA coefficients for standard images, the authors used an inverse sigmoid mapping to project constrained pixel intensities into a wider, continuous space suitable for linear basis transformations.

Key Results

  • Faster Convergence: The ICA-GAN produced plausible, artifact-free images of clothing by epoch 10, whereas the standard Pixel-GAN required significantly more iterations and still produced visual artifacts.
  • Statistical Superiority: For the scientific XGC dataset, the Pixel-GAN's learned distribution was far from the truth (DWT-Entropy of ~311,895). The ICA-GAN achieved a DWT-Entropy of -2,239, indicating a much closer fit to the real data distribution.
  • Efficiency in Flows: Normalizing Flows, which are notoriously memory-intensive, became much more practical when trained on a reduced set of 324-400 coefficients rather than full 1024-pixel arrays.
Comparison of Fashion MNIST generation: ICA-GAN (left) shows much cleaner shapes at epoch 10 compared to the noisy Pixel-GAN (right).

Limitations and Future Work

The authors acknowledge that their current approach relies on linear transformations (PCA, ICA, Tucker) for the representation basis. While efficient, these might not capture complex non-linear homogeneities as well as a deep autoencoder might.

Future work is expected to explore:

  • Using over-complete dictionaries for even more sparse representations.
  • Integrating coefficient compression directly into the generative loop.
  • Incorporating Variational Autoencoders (VAEs) as the representation module to handle non-linearities.

For more details, you can find the full paper at arXiv:2106.00203v2.

Summary updated

BibTeX
@misc{shajari2021hybrid,
  author = {Hoda Shajari and Jaemoon Lee and Sanjay Ranka and Anand Rangarajan},
  title = {{Hybrid Generative Models for Two-Dimensional Datasets}},
  year = {2021},
  eprint = {2106.00203},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.00203},
}
Figure