arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.09827eess.IVcs.CV
收藏

FastSAM3D:一种用于三维体医学图像的高效分割一切模型

FastSAM3D: An Efficient Segment Anything Model for 3D Volumetric Medical Images

Johns Hopkins University(约翰斯·霍普金斯大学);University of Maryland School of Medicine(马里兰大学医学院);R Adams Cowley Shock Trauma Center(R·亚当斯·考利休克创伤中心)

Yiqing Shen, Jingxing Li, Xinyuan Shao, Blanca Inigo Romillo, Ankush Jindal, David Dreizin, Mathias Unberath

AI总结:

针对三维医学图像分割中SAM推理慢、内存高的问题,提出FastSAM3D,通过逐层渐进蒸馏和三维稀疏闪存注意力,在A100上将推理加速至8毫秒每体积,较2D SAM快527倍,性能几乎无损。

摘要:

分割一切模型(SAMs)因其在适当提示下对未见类别和未见域中的物体进行分割的零样本泛化能力而受到关注。交互性是SAMs的一个关键优势,允许用户迭代地提供指定感兴趣对象的提示以优化输出。然而,为了实现SAMs在三维医学成像任务中的交互式使用,快速推理时间是必要的。高内存需求和长处理延迟仍然是阻碍SAMs用于此目的的限制因素。具体而言,虽然应用于三维体积的二维SAMs需要重复计算以独立处理所有切片,但三维SAMs面临模型参数和FLOPS的指数增长。为了解决这些挑战,我们提出了FastSAM3D,它在NVIDIA A100 GPU上将SAM推理加速至每张128*128*128三维体积图像8毫秒。这种加速通过以下方式实现:1)一种新颖的逐层渐进蒸馏方案,能够将知识从复杂的12层ViT-B传输到轻量级的6层ViT-Tiny变体编码器,而无需从头训练;2)一种新颖的三维稀疏闪存注意力替代普通注意力算子,大幅减少内存需求并改善并行化。在三个不同数据集上的实验表明,与二维SAMs相比,FastSAM3D在同一体积上实现了527.38倍的显著加速,与三维SAMs相比实现了8.75倍的加速,且性能没有显著下降。因此,FastSAM3D为使用常用GPU硬件进行低成本、真正交互式的基于SAM的三维医学成像分割打开了大门。代码可在https://github.com/arcadelab/FastSAM3D获取。

英文摘要:

Segment anything models (SAMs) are gaining attention for their zero-shot generalization capability in segmenting objects of unseen classes and in unseen domains when properly prompted. Interactivity is a key strength of SAMs, allowing users to iteratively provide prompts that specify objects of interest to refine outputs. However, to realize the interactive use of SAMs for 3D medical imaging tasks, rapid inference times are necessary. High memory requirements and long processing delays remain constraints that hinder the adoption of SAMs for this purpose. Specifically, while 2D SAMs applied to 3D volumes contend with repetitive computation to process all slices independently, 3D SAMs suffer from an exponential increase in model parameters and FLOPS. To address these challenges, we present FastSAM3D which accelerates SAM inference to 8 milliseconds per 128*128*128 3D volumetric image on an NVIDIA A100 GPU. This speedup is accomplished through 1) a novel layer-wise progressive distillation scheme that enables knowledge transfer from a complex 12-layer ViT-B to a lightweight 6-layer ViT-Tiny variant encoder without training from scratch; and 2) a novel 3D sparse flash attention to replace vanilla attention operators, substantially reducing memory needs and improving parallelization. Experiments on three diverse datasets reveal that FastSAM3D achieves a remarkable speedup of 527.38x compared to 2D SAMs and 8.75x compared to 3D SAMs on the same volumes without significant performance decline. Thus, FastSAM3D opens the door for low-cost truly interactive SAM-based 3D medical imaging segmentation with commonly used GPU hardware. Code is available at https://github.com/arcadelab/FastSAM3D.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑