Progressive Test Time Energy Adaptation for Medical Image Segmentation

Xiaoran Zhang, Byung-Woo Hong, Hyoungseob Park, Daniel H. Pak, Anne-Marie Rickmann +3 more
3/20/2025
cs.CV

No official code found. Best implementation: Voldemort108X/pttea_seg (9 stars, last commit 2025-10-16).

Abstract

We propose a model-agnostic, progressive test-time energy adaptation approach for medical image segmentation. Maintaining model performance across diverse medical datasets is challenging, as distribution shifts arise from inconsistent imaging protocols and patient variations. Unlike domain adaptation methods that require multiple passes through target data - impractical in clinical settings - our approach adapts pretrained models progressively as they process test data. Our method leverages a shape energy model trained on source data, which assigns an energy score at the patch level to segmentation maps: low energy represents in-distribution (accurate) shapes, while high energy signals out-of-distribution (erroneous) predictions. By minimizing this energy score at test time, we refine the segmentation model to align with the target distribution. To validate the effectiveness and adaptability, we evaluated our framework on eight public MRI (bSSFP, T1- and T2-weighted) and X-ray datasets spanning cardiac, spinal cord, and lung segmentation. We consistently outperform baselines both quantitatively and qualitatively.

View on arXivView PDF

Code Implementations(1)

Progressive Test Time Energy Adaptation for Medical Image Segmentation (ICCV 2025 Highlight)

91Python, Jupyter NotebookJul 28, 20251 years ago

Similar Papers

Cite this paper

@article{zhang2025progressive,
  title  = {Progressive Test Time Energy Adaptation for Medical Image Segmentation},
  author = {Xiaoran Zhang and Byung-Woo Hong and Hyoungseob Park and Daniel H. Pak and Anne-Marie Rickmann and Lawrence H. Staib and James S. Duncan and Alex Wong},
  year   = {2025},
  eprint = {2503.16616},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.16616v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.16616.svg)](https://codeofpaper.com/paper/2503.16616)

Discussion