One-shot is Enough: Boosting SAM for Medical Image Segmentation through Structured Information Modeling

Guilin GuanarXiv 2026

TL;DR

The Segment Anything Model (SAM) is a titan of computer vision, but it often stumbles when entering the clinic, struggling to identify complex medical structures from just a single example. OB-SAM fixes this by teaching the model to "see" structured information—decoupling textures, edges, and global shapes—allowing it to achieve state-of-the-art segmentation using only one labeled image.

What Problem Does This Paper Address?

In the world of medical imaging, data is gold, but labeled data is a diamond—rare, expensive, and requiring expert time that doctors don't have. This makes "one-shot learning" (learning from a single labeled example) the holy grail of medical image segmentation (MIS).

While foundation models like SAM are incredible at segmenting cats or sunsets, they often fail in the hospital. Medical images have low contrast, tiny lesions, and huge variations between patients. When you try to adapt SAM to these tasks with only one image, it tends to "overfit"—it memorizes that one specific image instead of learning the general rules of what a tumor or an organ looks like. The authors identify three main hurdles:

  1. Overfitting: The model can't distinguish between global structure and local texture.
  2. Feature Bullying: In deep learning, high-level semantic features often "drown out" the fine-grained details from earlier layers.
  3. Background Noise: Medical images are cluttered; models struggle to tell the difference between a lesion and the surrounding healthy tissue.

Methods

The authors propose OB-SAM, a framework that maximizes the "nutritional value" of a single training sample through three clever modules:

  • Multi-Frequency Decoupling (MFD): Instead of just looking at pixels, MFD breaks the image features into three mathematical "languages":
  • Fourier Domain: Captures the big-picture, global structure.
  • Wavelet Domain: Focuses on multi-scale textures and edges.
  • Gabor Domain: Sensitive to specific directions and fine details. By looking at these separately, the model learns to generalize better rather than just memorizing pixel patterns.

  • Progressive Feature Integrator (PFI): This acts as a mediator. It creates a bidirectional conversation between different layers of the neural network, ensuring that the "big picture" and the "fine details" complement each other rather than competing.

  • Selective Context Filtering (SCF): Think of this as a smart spotlight. It explicitly separates the image into "foreground" (the lesion) and "background" (everything else), suppressing the noise in the background to help the model lock onto the target.
Fig. 2. Overview of the proposed OB-SAM framework. The SAM image encoder extracts multi-level features. MFD captures comple- mentary frequency information, PFI promotes cross-level feature fusion, and SCF enhances foreground representations while suppressing background interference. The refined features are fed into the SAM mask decoder for segmentation.

Datasets

The researchers didn't cherry-pick; they tested OB-SAM across seven diverse datasets covering four imaging modalities:

  • MRI: Prostate segmentation (RUNMC and UCL datasets).
  • Dermoscopy: Skin cancer detection (UWSkinCancer and ISIC2016).
  • X-ray: Lung segmentation (CXR and Covid19Radio).
  • Endoscopy: Polyp detection (Bkai-Igh and ETIS).

Key Insights and Ideas

  • Frequency is a Shield: By forcing the model to operate in the frequency domain (Fourier/Wavelet), the authors found a way to prevent the model from overfitting to the specific pixel noise of a single training image.
  • Equality in Features: The PFI module proves that "feature bullying" is a real problem in one-shot tasks. When you balance the influence of different network layers, the segmentation of complex boundaries becomes much sharper.
  • The Power of One: Perhaps the most surprising "aha" moment is that with the right structural modeling, a model trained on one image can actually beat traditional models trained on hundreds.

Key Results

The numbers are, frankly, startling. In scenarios where traditional CNNs (like U-Net) were almost completely ineffective (scoring as low as 9-19% on Dice similarity), OB-SAM achieved scores between 81% and 86%.

Fig. 3. Qualitative visualization comparison of segmentation results from different methods on seven medical datasets is provided.

When compared to the standard SAM, OB-SAM improved performance by massive margins—sometimes by over 70 percentage points in one-shot settings. Even more impressively, OB-SAM's one-shot performance was often comparable to (or better than) fully supervised models that had access to the entire training set.

A bar chart showing that while adding more training images (up to 15) helps slightly, OB-SAM's performance is remarkably high even with just a single 'shot'.

Limitations and Future Work

While OB-SAM is a leap forward, the authors note a few areas for growth:

  • Efficiency: They are looking into making the adaptation strategies even "lighter" and more computationally efficient.
  • Extreme Shifts: While it generalizes well, "extreme domain shifts" (e.g., moving from a high-res MRI to a low-res ultrasound) still pose a challenge.
  • Clinical Integration: The paper focuses on the architecture; the next step is seeing how this holds up in real-world, messy clinical workflows.

Summary updated

Abstract

In recent years, Foundation models such as the Segment Anything Model (SAM) have demonstrated strong generalization capabilities, but because they are primarily pre-trained on natural images, they perform poorly when faced with medical images. With sufficient labeled medical data, this challenge is somewhat alleviated. However, the difficulty and high cost of acquiring large amounts of labeled data make one-shot learning a highly attractive research paradigm. But within this paradigm, SAM struggles to fully extract its potential multi-granular information, leading to a sharp decline in performance. To address this, we propose OB-SAM, a one-shot enhancement framework for medical image segmentation. It aims to maximize the utilization of information from a single sample from the perspective of structured modeling. Specifically, we first designed a Multi-Frequency Decoupling (MFD) module, which divides features into different frequency domain components, allowing each branch to focus on information expression at different semantic levels, thereby alleviating overfitting and enhancing feature representation capabilities. Secondly, we introduce a Progressive Feature Integrator (PFI) module to promote complementary fusion among multi-level features, thereby avoiding the dominant effect of a certain level of feature in the fusion process. Furthermore, we propose an Selective Context Filtering (SCF) Module that adaptively selects key contextual information by modeling the contrast relationship between the foreground and background, thereby achieving precise localization of the lesion area. Extensive experiments across seven diverse datasets validate that OB-SAM achieves state-of-the-art performance.
BibTeX
@misc{guan2026one,
  author = {Guilin Guan},
  title = {{One-shot is Enough: Boosting SAM for Medical Image Segmentation through Structured Information Modeling}},
  year = {2026},
  eprint = {2611.29278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29278},
}
Figure