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

Resolution Invariant Autoencoder

Ashay Patel, Michela Antonelli, Sebastien Ourselin, M. Jorge CardosoarXiv 2025

TL;DR

Medical images come in highly variable resolutions, forcing researchers to resample data and risk losing critical details or wasting compute. This paper introduces a Resolution Invariant Autoencoder that uses a learned, variable resizing mechanism to map images of any resolution into a fixed-size latent space. This unified representation enables downstream tasks like classification, super-resolution, and generative modeling to work seamlessly across varying resolutions without retraining or preprocessing.

What Problem Does This Paper Address?

In medical imaging (like CT or MRI scans), "resolution" is defined by voxel spacing ($mm^3$). Because different scanners and clinical protocols produce data with widely varying voxel sizes, standard deep learning pipelines rely heavily on resampling images to a uniform grid before feeding them into convolutional neural networks (CNNs).

However, this preprocessing step introduces a painful trade-off:

  • Downsampling high-resolution images discards fine, clinically relevant structural details.
  • Upsampling low-resolution images inflates data size, wasting computational resources without adding real information.

While task-specific workarounds exist (e.g., using hypernetworks or coordinate conditioning), they are often computationally expensive or rigid. This paper tackles the challenge of creating a single, unified framework capable of handling arbitrary input and output resolutions across multiple distinct imaging tasks.

Methods

The authors re-engineer the traditional autoencoder (AE) architecture by replacing fixed spatial downsampling and upsampling (which typically scale by a strict factor of 2) with a Learnt Variable Resampling block.

Figure 1: Illustration of (left) AE architecure consisting of 3 layers of residual blocks followed by variable resizing blocks along the encoder and decoder, (right) architecture for learnable variable resizing block

Key components of their methodology include:

  1. Dynamic Resizing Factors: Given an input image resolution ($r$) and a target latent resolution ($l$), the network dynamically computes the exact resizing factor ($d_i$) required for each layer ($n$) using the formula: $$d_i = (l_i / r_i)^{1/n}$$ This allows the network weights to remain completely independent of the input image size.

  2. Latent Consistency Loss ($\mathcal{L}_{latent}$): To force the network to map the same anatomy to the same latent space regardless of its resolution, the training pipeline encodes both a high-resolution image and its artificially downsampled low-resolution counterpart. It then minimizes the $L_1$ distance between their respective latents ($z_1$ and $z_2$).

Figure 2: Training pipeline indicating flow of data during training of the resolution invariant AE
  1. Information Loss as Uncertainty: True resolution invariance is physically impossible because low-resolution images inherently lack high-frequency details. To account for this, the authors experimentally measure the information loss (via SSIM drop) at various resolutions and inject a proportional amount of Gaussian noise into the latent space during low-resolution encoding. This allows the decoder to naturally represent uncertainty when hallucinating high-resolution details.

Datasets

The model was validated across two distinct medical imaging datasets:

  • Whole-Body CT Dataset: Consisting of 897 high-resolution whole-body CT scans resampled to $1.6 \times 1.6 \times 2.5\text{ mm}^3$. This dataset was used to evaluate super-resolution and generative modeling performance.
  • ADNI (Alzheimer’s Disease Neuroimaging Initiative): Comprising 1,134 brain MRI scans ($1 \times 1 \times 1.2\text{ mm}^3$) categorized into Cognitively Normal, Mild Cognitive Impairment, or Alzheimer’s Disease. This was used to evaluate image classification.

Key Insights and Ideas

  • Decoupling Resolution from Architecture: By treating the down/upsampling factors as non-parametric inputs calculated on the fly, the model achieves true architectural flexibility.
  • Noise as a Proxy for Lost Information: Instead of forcing the network to deterministically guess missing details, injecting noise based on the expected SSIM drop turns a standard autoencoder into an uncertainty-aware model.
  • Mitigating Data Scarcity: In generative modeling, this framework allows researchers to safely pool high-resolution and low-resolution datasets together, significantly boosting the training data pool without degrading the quality of generated high-resolution outputs.

Key Results

The authors demonstrated the effectiveness of their method across three distinct tasks:

1. Super-Resolution

When upscaling low-resolution images back to the original high-resolution baseline, the proposed model significantly outperformed a standard U-Net baseline (RUNet), especially at extreme downsampling factors. At a $4\times$ downsampling factor, the U-Net's performance degraded sharply (PSNR of 19.90), whereas the Resolution Invariant AE maintained a stable PSNR of 25.64 and provided clear, localized uncertainty maps.

Figure 3: Qualitative results showcasing (left) the original ground truth image, (top) low resolution input image ( resampled to same output size via linear interpolation), (2nd row) super-resolved image using the U-Net approach, (3rd row) super-resolved image using our proposed method, (4th row) the uncertainty for our approach.

2. Classification

Classifiers trained on the invariant latents proved highly robust to resolution mismatches. For instance, when a classifier was trained on low-resolution data but tested on high-resolution data, the proposed method achieved an AUROC of 0.76, compared to just 0.68 using a standard Autoencoder KL with image resampling.

3. Generative Modelling

Using a Latent Diffusion Model (LDM), the authors showed that supplementing a tiny dataset of 50 high-resolution samples with 797 low-resolution samples drastically improved generation quality, dropping the Fréchet Inception Distance (FID) from 0.2238 to 0.1606—nearly reaching the "oracle" performance of training on pure high-resolution data (0.1408).

Limitations and Future Work

While highly effective, the noise injection mechanism relies on an experimentally estimated average information loss calculated over a subset of training data, rather than an image-specific or dynamically learned loss. The authors suggest that future work could explore more sophisticated, frequency-dependent methods to model information loss dynamically, or extend this flexible resizing architecture to other foundational deep learning backbones.

Summary updated

BibTeX
@misc{patel2025resolution,
  author = {Ashay Patel and Michela Antonelli and Sebastien Ourselin and M. Jorge Cardoso},
  title = {{Resolution Invariant Autoencoder}},
  year = {2025},
  eprint = {2503.09828},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.09828},
}
Figure