NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MedVAE: Efficient Automated Interpretation of Medical Images with Large-Scale Generalizable Autoencoders

Maya Varma, Ashwin Kumar, Rogier van der Sluijs, Sophie Ostmeier, Louis Blankemeier, Pierre Chambon, Christian Bluethgen, Jip Prince, Curtis Langlotz, Akshay Chaudhari

TL;DR

MedVAE introduces a family of six large-scale 2D and 3D autoencoders designed specifically to compress high-resolution medical images into compact latent representations. By training on over one million medical images with a novel two-stage approach, MedVAE achieves up to a 70x increase in downstream training throughput and a 512x reduction in storage needs while perfectly preserving critical diagnostic features and enabling high-fidelity image reconstruction.

What Problem Does This Paper Address?

Medical images like X-rays, CT scans, and MRIs are captured at exceptionally high resolutions to ensure radiologists can spot subtle, fine-grained abnormalities (such as microcalcifications or hairline fractures). However, these massive file sizes create severe computational and storage bottlenecks when training deep learning models for computer-aided diagnosis (CAD) or building large-scale medical foundation models.

To mitigate this, researchers frequently resort to standard image interpolation (like bilinear or bicubic downsampling). Unfortunately, simple geometric downsampling discards high-frequency clinical details, severely degrading downstream model performance. While powerful autoencoders (like VAEs and VQ-GANs) exist to compress natural images into compact "latent spaces" for latent diffusion models, they suffer from severe domain shift when applied to medical data. Existing medical autoencoders are typically narrow—trained on a single modality like chest X-rays—and fail to generalize across diverse clinical tasks and anatomies.

Methods

The authors introduce MedVAE, a suite of four 2D and two 3D variational autoencoders (VAEs) optimized for the medical domain. To ensure that compressed latents retain clinical utility, they implement a novel two-stage training approach:

  1. Stage 1: Base Autoencoder Training: The models are trained on a massive corpus of 2D medical images to maximize reconstruction quality. The loss function combines standard perceptual loss, a patch-based adversarial objective, and a domain-specific embedding consistency loss.
  2. Stage 2: Feature Preservation Across Modalities: The autoencoder weights are frozen, and lightweight, trainable projection layers are appended to the encoder. For 2D images, the authors leverage BiomedCLIP (a medical vision-language foundation model) to enforce feature consistency between the original high-resolution image and the downsized latent representation. For 3D volumes, they "lift" the 2D architecture to 3D using a kernel centering inflation strategy and fine-tune it directly on 3D patches to capture volumetric context across slices.
Overview of the MedVAE training pipeline and evaluation framework

Datasets

The autoencoders were trained on a massive, curated dataset containing 1,021,356 2D images and 31,374 3D images aggregated from 19 multi-institutional, open-source repositories:

  • 2D Modalities: Chest X-rays and full-field digital mammograms (FFDMs) from datasets including CMMD, VinDR-Mammo, and MIMIC-CXR.
  • 3D Modalities: Head MRIs, knee MRIs, and high-resolution whole-body/chest/head CT scans from repositories like VerSe, CQ500, ADNI, and TotalSegmentator.

Downstream evaluation spanned 20 datasets across 4 imaging modalities and 8 anatomical regions to test diverse diagnostic tasks.

Key Insights and Ideas

  • Natural Image Autoencoders Smooth Out Clinical Details: Standard autoencoders trained on natural images (like KL-VAE or VQ-GAN) perform poorly on medical tasks. They tend to smooth out or hallucinate over the tiny, high-frequency details that carry diagnostic weight.
  • BiomedCLIP Acts as a Clinical Compass: Using a frozen medical foundation model to guide Stage 2 training effectively regularizes the latent space, forcing it to prioritize clinically relevant features over visually dominant but diagnostically irrelevant background pixels.
  • 3D Context Cannot Be Stitched: Compressing 3D volumes slice-by-slice using a 2D autoencoder destroys cross-slice continuity. True 3D autoencoding is essential for preserving volumetric patterns, such as spinal fractures that span multiple consecutive slices.

Key Results

  • Maintained or Improved Downstream Accuracy: Downstream CAD models trained directly on MedVAE's downsized latents matched or exceeded the performance of models trained on raw, high-resolution images. At a downsizing factor of $f=16$, 2D MedVAE perfectly preserved features across 4 out of 5 classification tasks.
  • Massive Efficiency Gains: Utilizing MedVAE latents yielded up to a 70x improvement in throughput and a 69x reduction in latency for 2D images. For 3D volumes, it enabled up to a 512x increase in maximum batch size on a single GPU, transforming previously intractable volumetric training into a lightweight task.
Downstream CAD model efficiency gains using MedVAE latents
  • High-Fidelity Reconstruction: MedVAE decodes latents back into high-resolution images with minimal information loss. In a blinded reader study, three radiologists rated MedVAE reconstructions roughly 2.8 points higher (on a 5-point Likert scale) for image fidelity and feature preservation compared to standard bicubic downsampling.

Limitations and Future Work

  • Diminishing Returns at Extreme Compression: At extreme downsizing factors ($f=512$ for 3D volumes), the diagnostic feature preservation drops noticeably, meaning users must carefully weigh the trade-off between extreme computational savings and clinical accuracy.
  • Need for Latent-Optimized Architectures: The downstream classifiers used in this study (HRNet, SEResNet) were originally designed for standard images. Developing neural network architectures tailored specifically to ingest and process latent representations directly could unlock further performance gains.
  • Foundation Model Scaling: The massive batch sizes enabled by MedVAE latents open up a promising avenue for training large-scale self-supervised medical foundation models within resource-constrained academic or clinical environments.

Summary updated

BibTeX
@inproceedings{varma2025medvae,
  author = {Maya Varma and Ashwin Kumar and Rogier van der Sluijs and Sophie Ostmeier and Louis Blankemeier and Pierre Chambon and Christian Bluethgen and Jip Prince and Curtis Langlotz and Akshay Chaudhari},
  title = {{MedVAE: Efficient Automated Interpretation of Medical Images with Large-Scale Generalizable Autoencoders}},
  booktitle = {MIDL},
  year = {2025},
  url = {https://openreview.net/forum?id=jNmvKHniMe},
}
Figure