arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.15889cs.CV
收藏

CAD:用于Segment Anything的内存高效卷积适配器

CAD: Memory Efficient Convolutional Adapter for Segment Anything

School of Information Convergence, Kwangwoon University(光云大学信息融合学院)

Joohyeok Kim, Joonhyeon Song, Seohwan Yun, Seongho Yoon, Sangmin Lee

AI总结:

本文提出一种内存高效的并行卷积适配器架构CAD,通过与SAM图像编码器并行连接避免存储激活值和梯度,在保持竞争力的同时将GPU内存消耗降至SAM Adapter的一半以下。

摘要:

自提出以来,图像分割的基础模型Segment Anything(SAM)已在各个领域被积极研究。已有各种研究提出将SAM适应到特定领域,其中一种显著方法是添加并训练轻量级适配器模块。尽管基于适配器的微调方法报告了参数效率和显著的性能提升,但它们面临一个常被忽视的问题:相对于可训练参数的数量,GPU内存消耗过多。针对这一问题,本文提出了一种内存高效的并行卷积适配器架构。该架构与SAM的图像编码器并行连接,消除了在模型训练期间存储图像编码器的激活值和梯度的需要。我们提出的架构展示了具有竞争力的实验结果,同时与SAM Adapter相比使用了不到一半的GPU内存,这表明当硬件限制排除了基于适配器的学习时,它作为简单解码器微调的替代方案具有价值。我们的代码实现可在我们的github获取。

英文摘要:

The Foundation model for image segmentation, Segment Anything (SAM), has been actively researched in various fields since its proposal. Various researches have been proposed to adapt SAM to specific domains, with one notable approach involving the addition and training of lightweight adapter modules. While adapter-based fine-tuning approaches have reported parameter efficiency and significant performance improvements, they face a often overlooked issue: the excessive consumption of GPU memory relative to the number of trainable parameters. Addressing this issue, this paper proposes a memory-efficient parallel convolutional adapter architecture. This architecture connects in parallel with SAM's image encoder, eliminating the need to store activations and gradients of the image encoder during model training. Our proposed architecture demonstrated competitive experimental results while using less than half the GPU memory compared to SAM Adapter, indicating its value as an alternative to simple decoder fine-tuning when hardware limitations preclude adapter-based learning. Our code implementation is available at our github.

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

↑