Accelerating Volumetric Medical Image Annotation via Short-Long Memory SAM 2

Yuwen Chen, Zafer Yildiz, Qihang Li, Yaqian Chen, Haoyu Dong, Hanxue Gu, Nicholas Konz, Maciej A. Mazurowski

Introduction

Annotating 3D medical volumes, such as CT or MRI scans, remains a significant bottleneck in medical AI development. While these volumes consist of stacks of 2D slices, manual labeling of every slice is prohibitively expensive. Foundation models for video object segmentation (VOS), like Meta’s Segment Anything Model 2 (SAM 2), offer a potential solution by propagating masks from a single annotated slice throughout the volume. However, SAM 2 often suffers from "mask drift"—accumulating errors over slices—and "over-propagation," where it continues to segment structures even after they have disappeared from the scan.

Methodology: Short-Long Memory SAM 2

To address these challenges, we introduce Short-Long Memory SAM 2 (SLM-SAM 2). This architecture enhances the standard SAM 2 framework by replacing its uniform memory module with a Dynamic Short-Long Memory Module.

Architecture of SLM-SAM 2 featuring the Dynamic Short-Long Memory Module and dual memory banks.

The core innovation lies in the dual-memory bank system:

  • Short-term Memory Bank: Stores only the most recent slice, allowing the model to adapt quickly to local anatomical variations.
  • Long-term Memory Bank: Retains the original manual annotation and a history of recent slices to ensure global consistency and prevent drift.
  • Dynamic Attention Fuser ($F$): A learnable module based on ConvNeXt blocks that merges outputs from both memory streams. This allows the model to dynamically weigh the importance of recent versus historical context on a slice-by-slice basis.

Experimental Evaluation

The model was evaluated across four diverse datasets: AMOS (MRI/CT), TotalSegmentator (CT), HuashanMyo (MRI), and JNU-IFM (Ultrasound). Performance was measured in both "5-volume" (fine-tuned) and "1-volume" (minimal adaptation) scenarios.

Beyond standard accuracy metrics, the study quantified human-in-the-loop efficiency by measuring the time required for manual correction in 3D Slicer.

Key Results and Insights

SLM-SAM 2 demonstrates significant improvements over the baseline SAM 2:

  • Improved Accuracy: The model achieved an average Dice Similarity Coefficient (DSC) improvement of 0.14 in the 5-volume setup.
  • Mitigation of Over-propagation: By using short-term memory as a "brake," SLM-SAM 2 accurately terminates segmentation when structures disappear, whereas standard SAM 2 often continues erroneously.
  • Efficiency Gains: Manual correction time was reduced by 60.575% per volume compared to the original SAM 2.
  • Real-time Performance: The system operates at approximately 27 FPS on an NVIDIA A6000, making it suitable for interactive clinical workflows.

Conclusion

SLM-SAM 2 effectively adapts VOS foundation models for the unique constraints of medical imaging. By decoupling short-term adaptation from long-term consistency, it provides a robust tool for accelerating the creation of high-quality medical datasets. The project is open-source and includes a 3D Slicer extension for immediate research use.

Summary updated

BibTeX
@article{chen2026accelerating,
  author = {Yuwen Chen and Zafer Yildiz and Qihang Li and Yaqian Chen and Haoyu Dong and Hanxue Gu and Nicholas Konz and Maciej A. Mazurowski},
  title = {{Accelerating Volumetric Medical Image Annotation via Short-Long Memory SAM 2}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2026},
  doi = {10.1109/tmi.2025.3627954},
}
Figure