Multimodal Structure Preservation Learning

Chang Liu, Jieshi Chen, Lee H. Harrison, Artur Dubrawski

TL;DR

Multimodal Structure Preservation Learning (MSPL) is a new machine learning framework that enhances a low-cost, readily available data modality by injecting the latent clustering structure of an expensive, gold-standard modality. By aligning pairwise distances in a learned feature space with an external dissimilarity matrix, MSPL successfully bridges the utility gap between disparate data types, enabling cheap diagnostic tools like mass spectrometry to perform complex tasks like bacterial outbreak detection.

What Problem Does This Paper Address?

In practical machine learning applications, choosing the right data modality is often a trade-off between cost, availability, and discriminatory power. For instance, in hospital outbreak investigations, Whole Genome Sequencing (WGS) is the gold standard for tracking bacterial lineages due to its high resolution. However, WGS is expensive, labor-intensive, and slow. Conversely, MALDI-TOF mass spectrometry is fast and cheap but lacks the resolution needed to detect fine-grained outbreak clusters.

Traditional multimodal machine learning attempts to bridge this gap by aligning features directly across modalities, which requires complete, paired data for all samples during inference. MSPL takes a different approach: structure-level alignment. Instead of forcing feature spaces to merge, it trains a model on the cheap modality to preserve the relational and clustering topology (e.g., pairwise distances) of the expensive modality. This allows practitioners to reap the benefits of high-fidelity data structures using only low-cost inputs at deployment.

Methods

The MSPL framework optimizes three concurrent objectives to learn structure-preserving representations:

  1. Input Reconstruction: A standard autoencoder (specifically a 1-D U-Net) compresses and reconstructs the primary input data (Modality 1) to ensure robust feature extraction.
  2. Pretext Task: A classification head trains the network on a task where the primary modality already excels (e.g., identifying bacterial species).
  3. Structure Preservation: This is the core innovation. The model minimizes a custom loss function ($L_{struct}$) that minimizes the difference between the pairwise $\ell_2$ distances of the learned latent features ($h$) and an external dissimilarity matrix ($d$) derived from the secondary modality (Modality 2).
Figure 1: Overview of the MSPL framework.

For epidemiological applications, the authors designed a custom structure loss ($f_{SNP}$) that ignores distance discrepancies once they exceed a certain threshold. This prevents the model from overfitting to massive, irrelevant genetic distances and focuses its capacity on the small distances critical for outbreak detection.

Datasets

The authors evaluated MSPL across three distinct datasets:

  • Synth-TS: A newly introduced synthetic benchmark consisting of time-series data built from seasonal components (sine or triangle waves), linear trends, and Gaussian noise. The parameters governing these components are sampled from a 2D Gaussian grid, providing a clear ground-truth latent structure.
  • Proprietary Epidemiological Dataset: 1,862 bacterial samples containing MALDI-TOF mass spectrometry profiles paired with Single Nucleotide Polymorphism (SNP) distance matrices from WGS.
  • DRIAMS Dataset: A large, public database containing 10,404 bacterial mass spectrometry profiles paired with Antimicrobial Resistance (AMR) profiles across 251 species.
Figure 2: Generating the Synth-TS dataset.

Key Insights and Ideas

  • Topology Over Features: You don't need to replicate the exact features of an expensive data type to inherit its utility. Preserving the geometry of the data space is sufficient for downstream tasks like clustering.
  • Robustness to Data Sparsity: Unlike classification-based clustering baselines (which map inputs to discrete cluster IDs), MSPL matches continuous dissimilarity metrics. This makes it significantly more robust when training data is sparse or clusters are small.
  • Independence from Pretext Difficulty: The framework successfully injects external structures regardless of whether the pretext classification task is easy or highly challenging for the model.

Key Results

MSPL demonstrated substantial performance gains over baseline models (onlyCLS which lacks structural loss, and clusCLS which treats clustering as a classification problem):

  • Bacterial Outbreak Tracking: On the proprietary WGS dataset, MSPL using a distance threshold (MSPLthr) achieved a cluster F1-score of 0.962, vastly outperforming onlyCLSthr (0.685) and clusCLS (0.667). As shown in the bipartite graph below, MSPL successfully groups samples belonging to the same WGS ground-truth clusters.
Figure 3: Bipartite graph of Klebsiella pneu- moniae clusters.
  • Antimicrobial Resistance Clustering: On the DRIAMS dataset, MSPL achieved an F1-score of 0.937 compared to onlyCLSthr (0.818). Multidimensional scaling (MDS) plots visually confirm that MSPL's predicted clusters closely mirror the true AMR profile topologies.
Figure 4: Multidimensional scaling projection based on predicted distance matrix of DRIAMS data using MSPL model, colored in ground truth clusters (left) and predicted clusters (right) respectively. MSPL recovered most of the clusters in ground truth.

Limitations and Future Work

Despite strong F1-scores, MSPL yielded low Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI) scores when using a fixed distance threshold. The authors attribute this to extreme cluster imbalance in real-world biological data (e.g., a few massive clusters alongside hundreds of singleton clusters). The current loss function struggles to perfectly capture these highly skewed distributions.

Future Directions: The team plans to introduce additional supervision to help MSPL better estimate the total number and distribution of ground-truth clusters. They also aim to extend the framework to incorporate multiple structural sources simultaneously (e.g., blending WGS and AMR structures to guide mass spectrometry representations).

Summary updated

BibTeX
@misc{liu2024multimodal,
  author = {Chang Liu and Jieshi Chen and Lee H. Harrison and Artur Dubrawski},
  title = {{Multimodal Structure Preservation Learning}},
  year = {2024},
  eprint = {2410.22520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.22520},
}
Figure