Multi-view-AE: A Python package for multi-view autoencoder models

Ana Lawry Aguila, Alejandra Jayme, Nina Montaña-Brown, Vincent Heuveline, André AltmannJ. Open Source Softw 2023 · DBLP

Introduction

In modern data science, information is frequently "multi-view," originating from diverse modalities or sensors that characterize the same underlying phenomenon. For instance, clinical diagnostics often combine medical imaging (e.g., MRI) with high-dimensional genomic data or unstructured text notes. Multi-view autoencoders (MVAEs) have emerged as a powerful unsupervised framework for learning joint representations across these disparate sources. However, the lack of a unified implementation framework has historically hindered the reproducibility and comparative analysis of these complex deep learning architectures.

The Challenge of Multi-view Implementation

Prior to the release of multi-view-AE, researchers faced a fragmented landscape of codebases. Implementations varied significantly in programming style, deep learning backends, and evaluation metrics. This inconsistency made it difficult to benchmark new architectures against established baselines or to apply existing models to novel datasets without significant engineering overhead. multi-view-AE addresses these challenges by providing a centralized, modular, and user-friendly library specifically tailored for multi-view autoencoder research.

Methodology and Design Principles

The library is built upon three core design principles to ensure both accessibility and flexibility:

  1. Standardized Interface: By adopting the scikit-learn API, the package provides a familiar workflow for data scientists. Standard methods such as .fit() for training and .predict_latent() for inference allow for seamless integration into existing machine learning pipelines.
  2. Modular Architecture: The framework decouples model logic from specific network architectures. This modularity allows users to easily swap encoder and decoder components or implement custom architectures while leveraging the library's training and evaluation infrastructure.
  3. Modern Infrastructure: The backend utilizes PyTorch-Lightning for scalable hardware management (CPU/GPU) and Hydra for robust hyperparameter configuration management via simple text files.

Modeling Paradigms

The library supports two primary strategies for integrating multiple data views:

  • Joint Models: These architectures map all input views into a single, shared latent space.
  • Coordinated Models: These models maintain separate latent variables for each view but apply regularization terms (e.g., cross-view reconstruction or specific loss functions) to ensure the representations are related.
Comparison of (a) Joint and (b) Coordinated multi-view modeling strategies.

Implementation and Supported Models

At its release, multi-view-AE includes 13 distinct model classes, encompassing a wide range of state-of-the-art MVAE techniques. The library supports both Variational Autoencoders (VAEs) and Adversarial Autoencoders (AAEs), allowing researchers to choose the regularization method best suited to their specific application.

Architectural variations supported by the library: (a) standard Autoencoder (AE), (b) Adversarial Autoencoder (AAE), and (c) Variational Autoencoder (VAE).

Key implemented models include:

  • mcVAE: Multi-Channel Variational Autoencoder.
  • mmVAE & mVAE: Variants utilizing mixture-of-experts and multimodal integration.
  • MVTCAE: Multi-View Total Correlation Auto-Encoder.
  • DVCCA & JMVAE: Models optimized for dual-view scenarios.

Most implemented models are designed to handle an arbitrary number of views ($\ge 1$), providing significant flexibility for complex datasets.

Conclusion

multi-view-AE represents a significant step toward standardizing multi-view deep learning. By unifying disparate algorithms into a single, extensible framework, it lowers the barrier to entry for practitioners while providing the rigorous tools necessary for advanced research. Future development will focus on incorporating emerging state-of-the-art models and expanding the ecosystem of tutorials and community-driven extensions.

Summary updated

BibTeX
@article{aguila2023multi,
  author = {Ana Lawry Aguila and Alejandra Jayme and Nina Montaña-Brown and Vincent Heuveline and André Altmann and Alejandra Jayme and André Altmann},
  title = {{Multi-view-AE: A Python package for multi-view autoencoder models}},
  journal = {J. Open Source Softw.},
  year = {2023},
  doi = {10.21105/joss.05093},
}

Loading related content...

Figure