LMS-Net: A Learned Mumford-Shah Network For Few-Shot Medical Image Segmentation

Shengdong Zhang, Fan Jia, Xiang Li, Hao Zhang, Jun Shi, Liyan Ma, Shihui YingarXiv 2025 · DOI · arXiv

Abstract

LMS-Net bridges the gap between classical mathematical rigor and modern deep learning by "unfolding" the Mumford-Shah variational model into a deep neural network for few-shot medical image segmentation. By treating segmentation as an iterative optimization process—where structural priors are learned via a deep denoiser—the model achieves state-of-the-art accuracy while remaining significantly more interpretable than standard "black-box" architectures.

Introduction

Few-shot semantic segmentation (FSS) is critical in medical imaging because expert-annotated data is notoriously scarce and expensive to produce. While deep learning has mastered segmentation on large datasets, standard FSS models often struggle with two primary challenges:

  1. Interpretability: Most models are "black boxes," making it difficult for clinicians to trust their internal logic.
  2. Structural Priors: They often fail to incorporate the underlying physical and spatial constraints of human anatomy, such as spatial continuity, leading to noisy or anatomically impossible results.

Traditional variational methods, like the Mumford-Shah model, are highly interpretable and handle spatial constraints well, but they rely on handcrafted priors and struggle with the complex intensity variations found in real-world medical scans.

Methodology

The authors propose LMS-Net, a Deep Unfolding Network. Deep unfolding takes a traditional iterative optimization algorithm and maps its steps directly onto network layers.

Comparison between prototypical FSS methods and the proposed LMS unified framework.

The Mathematical Foundation

The model reformulates the piecewise constant Mumford-Shah (MS) model to balance a "data fidelity" term (how well the mask fits image features) with a "regularization" term (how smooth the mask is). Instead of using a simple handcrafted mathematical smoother, LMS-Net employs a CNN-based Mask Denoiser (MD). This allows the network to learn valid anatomical shapes directly from data.

Alternating Optimization

The model solves the MS problem by alternating between two key tasks:

  • Prototype Update: A Momentum Update Transformer (MUT) refines the feature representation of a class across iterations to prevent information loss.
  • Mask Update (PD-Net): A Primal-Dual network structure iteratively refines the segmentation mask based on current prototypes and the deep denoising prior.

Experimental Results

The model was evaluated on three diverse medical datasets: Synapse-CT (abdominal), CHAOS-MRI (abdominal), and CMR (cardiac). LMS-Net consistently outperformed existing state-of-the-art FSS methods like ADNet and RPT:

  • Quantitative Performance: On the Abd-CT dataset, LMS-Net improved the mean Dice Similarity Coefficient (DSC) by 3.00% over RPT. On CMR, it achieved a 4.14% improvement over ADNet.
  • Qualitative Quality: Visual results demonstrate that LMS-Net produces much cleaner boundaries and preserves the structural integrity of organs better than competitors, which often produce fragmented or "leaky" segmentations.
  • Ablation Studies: The authors confirmed that specific modifications to the Mask Denoiser (adding Sigmoid and inverse Sigmoid layers) were crucial for stability, boosting the mean DSC on Synapse-CT from 66.72% to 80.83%.

Key Insights

  • Segmentation as Denoising: The mathematical "proximal operator" used to regularize a mask is functionally equivalent to a Gaussian denoising task, allowing the integration of powerful CNN denoisers into a formal optimization framework.
  • Unfolding for Interpretability: Because every layer in LMS-Net corresponds to a specific step in a mathematical proof, researchers can visualize intermediate masks as they are refined, making the AI's "thought process" transparent.

Conclusion and Future Work

While LMS-Net represents a significant step forward in interpretable FSS, it is currently optimized for 1-way 1-shot scenarios. Future research will focus on scaling the model to handle multiple classes (N-way) and reducing the computational complexity of the multi-block unfolding structure for faster inference. The authors suggest this "Learned Mumford-Shah" framework could eventually be adapted for broader, fully-supervised semantic segmentation tasks.

Summary updated

Abstract

Few-shot semantic segmentation (FSS) methods have shown great promise in handling data-scarce scenarios, particularly in medical image segmentation tasks. However, most existing FSS architectures lack sufficient interpretability and fail to fully incorporate the underlying physical structures of semantic regions. To address these issues, in this paper, we propose a novel deep unfolding network, called the Learned Mumford-Shah Network (LMS-Net), for the FSS task. Specifically, motivated by the effectiveness of pixel-to-prototype comparison in prototypical FSS methods and the capability of deep priors to model complex spatial structures, we leverage our learned Mumford-Shah model (LMS model) as a mathematical foundation to integrate these insights into a unified framework. By reformulating the LMS model into prototype update and mask update tasks, we propose an alternating optimization algorithm to solve it efficiently. Further, the iterative steps of this algorithm are unfolded into corresponding network modules, resulting in LMS-Net with clear interpretability. Comprehensive experiments on three publicly available medical segmentation datasets verify the effectiveness of our method, demonstrating superior accuracy and robustness in handling complex structures and adapting to challenging segmentation scenarios. These results highlight the potential of LMS-Net to advance FSS in medical imaging applications. Our code will be available at: https://github.com/SDZhang01/LMSNet
BibTeX
@misc{zhang2025lms,
  author = {Shengdong Zhang and Fan Jia and Xiang Li and Hao Zhang and Jun Shi and Liyan Ma and Shihui Ying},
  title = {{LMS-Net: A Learned Mumford-Shah Network For Few-Shot Medical Image Segmentation}},
  year = {2025},
  eprint = {2502.05473},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05473},
}
Figure