Abstract
Deep generative models often struggle with bidirectional mapping and structural consistency in latent spaces. The Joint Generative Moment-Matching Network (JGMMN) addresses these challenges by extending standard GMMNs with an inference network. By matching joint distributions of data and latent codes using Maximum Mean Discrepancy (MMD) and incorporating a novel multi-modal regularization term, JGMMN enables effective unsupervised clustering and data generation. Experimental results on image and text benchmarks demonstrate state-of-the-art performance in clustering accuracy and latent space organization.
Introduction
Generative models like Generative Adversarial Networks (GANs) have achieved remarkable success in creating realistic data. However, they are notoriously difficult to train due to the unstable "min-max" optimization between the generator and discriminator. Generative Moment-Matching Networks (GMMNs) provide a stable alternative by utilizing Maximum Mean Discrepancy (MMD)—a kernel-based statistical test—to match distributions directly.
Despite their stability, standard GMMNs are limited to a "one-way street": they can generate samples from noise but cannot perform inference, which is the process of mapping real samples back to their latent codes. This limitation prevents their use in downstream tasks like clustering. Furthermore, existing inference-capable models often fail to produce a "structural" latent space that reflects the natural groupings (modalities) inherent in the data.
The JGMMN Framework
The authors propose JGMMN, which simultaneously trains a Generation Network ($g_\theta$) and an Inference Network ($h_\beta$). Unlike standard models that match marginal distributions, JGMMN matches the joint distribution of (data, latent code). This ensures that the pair (Generated Data, Prior Noise) is statistically indistinguishable from the pair (Real Data, Inferred Code).
To compare these joint distributions, the model employs Joint MMD (JMMD). This technique maps joint distributions into a high-dimensional Reproducing Kernel Hilbert Space (RKHS), allowing their distance to be minimized through standard backpropagation. Mathematically, matching joint distributions is powerful because it theoretically guarantees that marginal and conditional distributions will also align, ensuring the inference network correctly approximates the true posterior distribution.
Learning Structural Latent Codes
To ensure the latent space is structured for clustering, JGMMN introduces an unsupervised multi-modal regularization term. This term forces samples from the same class to cluster together in the latent space. The process involves two auxiliary distributions:
- $p$: The probability of a latent code belonging to a specific cluster, calculated via a softmax layer.
- $q$: A target cluster assignment, initialized via K-means on pre-trained features and refined dynamically during training.
By minimizing the KL-divergence between $q$ and $p$, the model encourages the latent space to preserve the multi-modal structure of the input data. This dynamic refinement allows the model to self-correct its clustering assignments as the inference network learns more representative features.
Experimental Results
JGMMN was evaluated on synthetic 2D Gaussian mixtures and real-world datasets including MNIST, USPS, ExtendYaleB, Reuters-10K, and 20News.
Clustering and Latent Space Quality
As shown in the synthetic visualizations, without multi-modal regularization, latent codes tend to smear together. With the proposed regularization, clusters become compact and well-separated. Quantitatively, JGMMN achieved superior Clustering Accuracy (ACC) and Normalized Mutual Information (NMI) across nearly all benchmarks. For instance, on MNIST, it reached an ACC of 0.8667, outperforming established methods like Deep Embedding Clustering (DEC).
Generation Quality
While the generated images are slightly blurrier than those produced by GANs—a known characteristic of kernel-based methods—they remain visually consistent with the training data. The model successfully maintains the balance between stable inference and representative generation.
Conclusion and Future Work
JGMMN provides a robust framework for joint generation and inference with structured latent spaces. While it overcomes the instability of GANs, it faces challenges regarding the computational complexity of pairwise kernel calculations in large mini-batches and the inherent blurriness of MMD-based generation. Future research may explore more sophisticated kernels or hybrid adversarial-MMD approaches to enhance image sharpness while preserving the model's strong inference and clustering capabilities.
Summary updated