UniUltra: Interactive Parameter-Efficient SAM2 for Universal Ultrasound Segmentation

Yue Li, Qing Xu, Yixuan Zhang, Xiangjian He, Qian Zhang, Yuan Yao, Fiseha B. Tesem, Xin Chen, Ruili Wang, Zhen Chen, Chang Wen ChenarXiv 2025 · DOI

Abstract

The Segment Anything Model 2 (SAM2) has set a new benchmark for universal image segmentation; however, its application to medical ultrasound is hindered by significant domain gaps—such as speckle noise and low contrast—and high computational demands. We introduce UniUltra, a framework designed to adapt SAM2 for universal ultrasound segmentation. By employing a novel Context-Edge Hybrid Adapter (CH-Adapter) and Deep-Supervised Knowledge Distillation (DSKD), UniUltra achieves state-of-the-art accuracy while drastically reducing model size. Our large-scale variant (UniUltra-L) outperforms existing medical segmentors, while the compressed "mini" version reduces parameters by over 94% and achieves real-time performance at 45.09 FPS, facilitating deployment on resource-constrained clinical hardware.

Introduction

Foundation models like SAM2 excel in natural image domains but face two primary hurdles in clinical ultrasound: the Domain Gap and the Deployment Gap. Ultrasound physics introduces unique artifacts like acoustic shadows and ambiguous boundaries that natural-image models are not equipped to handle. Furthermore, the massive parameter count of SAM2 makes it unsuitable for real-time use on point-of-care clinical devices. UniUltra addresses these challenges by efficiently teaching SAM2 ultrasound-specific boundary features and distilling that knowledge into a lightweight student model.

Methodology

The UniUltra framework introduces two core innovations to bridge the gap between foundation models and clinical practice.

Overview of the UniUltra framework, including data collection, the CH-Adapter SAM2 architecture, and the deep-supervised knowledge distillation process.

Context-Edge Hybrid Adapter (CH-Adapter)

Rather than performing full fine-tuning, UniUltra utilizes Parameter-Efficient Fine-Tuning (PEFT) by inserting CH-Adapters into the SAM2 backbone. This adapter consists of two branches:

  • Context-Aware Branch: Captures global semantic information to identify the target organ or lesion.
  • Edge-Aware Branch: Utilizes classical four-directional Sobel filters to explicitly enhance fine-grained boundary perception, overcoming the "blurry boundary" problem inherent in ultrasound imaging.

Deep-Supervised Knowledge Distillation (DSKD)

To enable real-time deployment, the fine-tuned SAM2 acts as a "teacher" for a much smaller "student" model. DSKD employs stage-wise independent distillation, aligning features at multiple hierarchical layers of the encoder. This ensures the student model learns the internal feature representations of the teacher, allowing for a reduction in embedding dimensions (from 768 to 128) without significant loss in accuracy.

Experimental Results

UniUltra was validated across six diverse ultrasound datasets, including breast (BUSI, UDIAT), thyroid (DDTI, TN3K), cervical (FUGC), and fetal (JNU-IFM) scans.

Performance comparison of UniUltra-L and UniUltra-mini against state-of-the-art models across parameters, FLOPs, and FPS vs. Dice score.

Accuracy and Efficiency

UniUltra-L achieved Dice scores between 93.81% and 94.50% on internal datasets, consistently outperforming MedSAM and the original SAM2. The CH-Adapter approach allowed the model to adapt using only 8.91% of SAM2’s original parameters as trainable.

Real-Time Clinical Deployment

The "UniUltra-mini" variant achieved a 94.08% reduction in parameter count compared to the original SAM2. Crucially, it reached a processing speed of 45.09 FPS, more than doubling the speed of the base SAM2. The model also demonstrated robust zero-shot generalization on unseen external datasets, such as fetal head scans (96.37% Dice), where traditional models like UNet showed significant performance degradation.

Conclusion

UniUltra demonstrates that combining classical computer vision priors (like Sobel filters) with modern transformer architectures can effectively bridge the domain gap in medical imaging. By significantly reducing computational overhead while maintaining high accuracy, UniUltra paves the way for the integration of advanced interactive segmentation models into real-time clinical ultrasound workflows. Future work will explore extending this parameter-efficient approach to 3D ultrasound volumes and multi-modal prompting.

Summary updated

BibTeX
@misc{li2025uniultra,
  author = {Yue Li and Qing Xu and Yixuan Zhang and Xiangjian He and Qian Zhang and Yuan Yao and Fiseha B. Tesem and Xin Chen and Ruili Wang and Zhen Chen and Chang Wen Chen},
  title = {{UniUltra: Interactive Parameter-Efficient SAM2 for Universal Ultrasound Segmentation}},
  year = {2025},
  eprint = {2511.15771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.15771},
}
Figure