Test-Time Model Adaptation for Image Reconstruction Using Self-supervised Adaptive Layers

Yutian Zhao, Tianjing Zhang, Hui JiECCV 2024

Abstract

Deep learning has significantly advanced image reconstruction (IR), yet models often struggle with distribution shifts between training datasets and real-world clinical samples. We present AdaptNet, a novel test-time adaptation (TTA) framework that specializes pre-trained models for individual patient scans. By incorporating lightweight "AdaptBlocks"—comprising less than 1% of the total model parameters—AdaptNet utilizes self-supervised learning at inference time to bridge the domain gap. Our approach demonstrates superior performance in MRI and CT reconstruction, even outperforming supervised models trained on larger datasets.

Introduction

In medical imaging, obtaining high-quality "ground truth" data for training is often prohibitively expensive or physically impossible. While deep learning models excel at reconstructing images from incomplete measurements (e.g., sparse MRI data), they are highly sensitive to changes in noise levels, scanner types, or patient pathologies. This "distribution shift" often leads to artifacts or loss of detail when a model is deployed in a new environment.

AdaptNet addresses this by asking: How can we take a model pre-trained on a general dataset and quickly specialize it for a single, unseen test sample without needing new ground truth images?

Methods

AdaptNet is built upon the concept of "unrolled" neural networks, which mimic iterative mathematical solvers. The framework introduces two primary innovations:

1. AdaptBlocks and Linear Adaptation

Instead of fine-tuning the entire network—which is computationally expensive and risks catastrophic forgetting—AdaptNet inserts tiny, linear convolutional layers called AdaptBlocks at the end of each denoising stage.

Architecture of AdaptNet showing the unrolled iterations and the integration of lightweight AdaptBlocks.

This design is grounded in signal processing theory. The authors demonstrate that a linear denoising layer acts as a "Wiener filter." By adding a small convolutional layer, the system can mathematically shift a "universal" filter (optimized for the average training image) toward an "oracle" filter optimized for the specific test image's noise and signal characteristics.

2. Dual-Domain Self-Supervised Loss

To train these blocks at test time without ground truth, AdaptNet employs a two-part loss function:

  • Range Space Loss: Ensures the reconstruction remains consistent with the actual physical measurements acquired by the scanner.
  • Null Space Loss: Uses the pre-trained model’s initial guess to "fill in the blanks" for the missing data, further refined by a specialized noise injection technique to prevent overfitting to artifacts.
Visualization of the power spectral density adaptation, illustrating the shift from a general prior to a sample-specific reconstruction.

Experimental Results

The researchers evaluated AdaptNet across multiple benchmarks, including the ADNI (Alzheimer’s Disease Neuroimaging Initiative), NYU fastMRI, and even the Berkeley Segmentation Dataset (BSD) for natural images.

  • Superior Accuracy: In MRI tasks, AdaptNet achieved PSNR gains of approximately 3dB over existing state-of-the-art TTA methods like MetaCS and DDSSL.
  • Cross-Domain Transfer: Remarkably, AdaptNet could take a model pre-trained on natural images (e.g., trees and buildings) and adapt it to medical scans so effectively that it outperformed methods trained specifically on medical data. This suggests that the "priors" learned from natural images are highly transferable when the adaptation mechanism is robust.
  • Efficiency: Because only the AdaptBlocks are updated (representing as little as 0.03% of parameters), the process is fast, typically requiring only 20 iterations to reach peak performance.

Discussion and Limitations

AdaptNet demonstrates that simple linear adjustments are surprisingly effective for adapting to new noise and signal distributions. However, the current theory relies heavily on "unrolling" architectures. Future work is needed to determine if these principles translate to purely black-box architectures like Vision Transformers (ViTs).

While lightweight, test-time adaptation still introduces a few seconds of latency per image. In high-throughput clinical environments, further optimization may be required to ensure real-time performance. Nonetheless, AdaptNet provides a powerful path forward for robust, patient-specific medical imaging.

Summary updated

BibTeX
@inproceedings{zhao2024test,
  author = {Yutian Zhao and Tianjing Zhang and Hui Ji},
  title = {{Test-Time Model Adaptation for Image Reconstruction Using Self-supervised Adaptive Layers}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72913-3\_7},
}
Figure