Joint Learning of Discrete and Continuous Variability with Coupled Autoencoding Agents

Yeganeh M. Marghi, Rohan Gala, Uygar SümbülarXiv 2020 · OpenReview

TL;DR

This paper introduces cpl-mixVAE, a novel unsupervised framework that uses multiple coupled autoencoders to jointly learn interpretable discrete (e.g., cell types) and continuous (e.g., cell state) factors of variation in high-dimensional data. By enforcing a consensus on the discrete factor across these "agents," cpl-mixVAE achieves more accurate and robust representation learning than existing methods, particularly for complex datasets like single-cell transcriptomics.

What Problem Does This Paper Address?

Unraveling complex phenomena often requires understanding both distinct categories (like different types of cells) and continuous variations within those categories (like a cell's metabolic state). This is a fundamental challenge in fields ranging from image generation to biological data analysis. While variational autoencoders (VAEs) are powerful tools for learning representations, accurately inferring these mixed discrete and continuous factors, especially in high-dimensional settings with many discrete categories, remains difficult. Existing VAE approaches often struggle with posterior approximation in these complex latent spaces, leading to issues like mode collapse or underestimation of variance. The paper specifically targets the challenge of learning interpretable representations when the discrete and continuous factors are not independent, a common scenario in real-world data.

Methods

The core innovation is the cpl-mixVAE framework, which extends the standard VAE by employing multiple "autoencoding arms" (individual VAEs). These arms are coupled through a consensus constraint on their inferred discrete latent variables.

  • Multi-Arm Architecture: Instead of a single VAE, cpl-mixVAE uses A independent autoencoding arms. Each arm receives a (potentially augmented) copy of the input data.
  • Shared Discrete Factor: While each arm learns its own continuous latent representation (style/state), they are all trained to agree on a single discrete latent variable (category/type). This is achieved by adding a penalty term to the objective function that encourages consistency in the discrete assignments across arms.
  • Consensus Constraint: The key mechanism is a "consensus constraint" that regularizes the posterior approximation of the discrete factor. This is theoretically justified to improve inference accuracy and robustness.
  • Aitchison Geometry: For calculating distances between categorical variables in the simplex, the paper utilizes Aitchison geometry, which is more suitable for probability distributions than standard Euclidean geometry.
  • Perturbed Distance: To avoid mode collapse (where the model ignores some categories), a "handshake in the simplex" mechanism is introduced, which uses a perturbed distance metric that diverges from the standard one when category distributions are too similar, thus encouraging exploration of all categories.
  • Data Augmentation: To provide diverse inputs to the arms while preserving categorical identity, a generative data augmentation approach is used, especially relevant for non-image data.

Datasets

The proposed cpl-mixVAE framework was evaluated on three datasets:

  • MNIST: A standard benchmark for handwritten digit recognition, used to test the model's ability to learn discrete digit types and continuous writing styles.
  • dSprites: A dataset of synthetic 2D shapes, used to evaluate disentanglement of continuous factors like shape, scale, and position.
  • Single-cell RNA-sequencing (scRNA-seq) dataset: A complex, real-world dataset comprising transcriptomic profiles of thousands of neurons from over 100 cell types. This dataset is crucial for demonstrating the model's capability in identifying biologically meaningful discrete cell types and continuous within-type variations (like cell activity).

Key Insights and Ideas

  • "Wisdom of the Crowd" for Latent Variables: The core idea is that by having multiple "agents" (VAEs) infer the discrete latent variable and enforcing agreement, the collective decision-making process leads to a more accurate and robust posterior approximation, akin to the "wisdom of the crowd" principle.
  • Discrete-Continuous Interdependence is Key: The paper highlights that in many real-world scenarios, discrete and continuous factors are not independent (e.g., a digit's "style" can depend on the digit itself). cpl-mixVAE explicitly models this interdependence, leading to better interpretability.
  • Scalability to High-Dimensional Discrete Spaces: Unlike previous methods that struggle with many discrete categories, the consensus mechanism in cpl-mixVAE is designed to scale, making it suitable for applications like single-cell biology with hundreds or thousands of cell types.
  • Avoiding Mode Collapse with Geometric Insights: The use of Aitchison geometry and the perturbed distance metric are clever solutions to a common VAE problem (mode collapse), ensuring that the model explores the full range of discrete categories.

Key Results

  • Improved Categorical Accuracy: cpl-mixVAE consistently outperformed baseline methods (JointVAE, CascadeVAE, InfoGAN) in categorical assignment accuracy across all tested datasets, including a significant improvement on the scRNA-seq dataset (38.78% vs. 12.53% for JointVAE).
  • Interpretable Representations: The model successfully identified discrete cell types in the scRNA-seq data and demonstrated interpretable continuous latent traversals for factors like rotation, stroke thickness, and cell activity genes.
  • Biological Insights: For the scRNA-seq data, cpl-mixVAE could differentiate between cell-type-specific marker genes and activity-regulated genes, providing deeper biological insights than single-arm VAEs.
  • Computational Efficiency: The computational cost of cpl-mixVAE was comparable to existing VAE-based methods, making it practical for large-scale applications.

Limitations and Future Work

  • Data Augmentation Dependency: While the generative augmenter is powerful, its effectiveness can depend on the dataset. The paper notes that for datasets where within-class variations are easily guessed (like images), simpler augmentation strategies might suffice.
  • Hyperparameter Tuning: The coupling hyperparameter ($\lambda$) and the temperature parameter for the Gumbel-softmax distribution require tuning, although the paper suggests setting $\lambda=1$ universally works well.
  • Future Work: The authors suggest extending the framework to include additional hyperparameters for disentangling continuous variables (similar to $\beta$-VAE) and exploring its application to other multi-modal or complex sequential data. The theoretical analysis could also be extended to non-uniform priors.

Summary updated

Abstract

Jointly identifying a mixture of discrete and continuous factors of variability without supervision is a key problem in unraveling complex phenomena. Variational inference has emerged as a promising method to learn interpretable mixture representations. However, posterior approximation in high-dimensional latent spaces, particularly for discrete factors remains challenging. Here, we propose an unsupervised variational framework using multiple interacting networks called cpl-mixVAE that scales well to high-dimensional discrete settings. In this framework, the mixture representation of each network is regularized by imposing a consensus constraint on the discrete factor. We justify the use of this framework by providing both theoretical and experimental results. Finally, we use the proposed method to jointly uncover discrete and continuous factors of variability describing gene expression in a single-cell transcriptomic dataset profiling more than a hundred cortical neuron types.
BibTeX
@misc{marghi2020joint,
  author = {Yeganeh M. Marghi and Rohan Gala and Uygar Sümbül},
  title = {{Joint Learning of Discrete and Continuous Variability with Coupled Autoencoding Agents}},
  year = {2020},
  eprint = {2007.09880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.09880},
}
Figure