arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.01962cs.CV
收藏

面向密集预测的内存高效Transformer适配器

Memory Efficient Transformer Adapter for Dense Predictions

The Hong Kong University of Science and Technology(香港科技大学);InnoHK AI Chip Center for Smart Emerging Systems(InnoHK智能新兴系统AI芯片中心);Nanjing University(南京大学)

Dong Zhang, Rui Yan, Pingcheng Dong, Kwang-Ting Cheng

AI总结:

本文提出META,一种内存高效的ViT适配器,通过共享层归一化、十字形自注意力、轻量级卷积分支和级联头部特征设计,在密集预测任务上实现新的精度-效率最优权衡。

摘要:

尽管当前的视觉Transformer(ViT)适配器方法已展现出可观的精度,但其推理速度仍隐式地受到低效内存访问操作(如标准归一化和频繁的形状变换)的制约。本文提出META,一种简单且快速的ViT适配器,通过减少低效的内存访问操作来提升模型的内存效率并降低内存耗时。该方法的核心是一个内存高效的适配器模块,它使层归一化能够在自注意力层和前馈网络层之间共享,从而减少模型对归一化操作的依赖。在该模块中,采用十字形自注意力以减少模型频繁的形状变换操作。此外,我们为适配器模块增加了一个轻量级卷积分支,以增强局部归纳偏置,这对目标检测、实例分割和语义分割等密集预测任务尤为有益。该适配器模块最终以级联方式构建,用于计算多样化的头部特征,从而丰富特征表示的多样性。实验上,在多个代表性数据集上的广泛评估验证了META显著提升了预测质量,同时实现了新的最先进的精度-效率权衡。理论上,我们证明了META具有更优的泛化能力和更强的适应性。

英文摘要:

While current Vision Transformer (ViT) adapter methods have shown promising accuracy, their inference speed is implicitly hindered by inefficient memory access operations, e.g., standard normalization and frequent reshaping. In this work, we propose META, a simple and fast ViT adapter that can improve the model's memory efficiency and decrease memory time consumption by reducing the inefficient memory access operations. Our method features a memory-efficient adapter block that enables the common sharing of layer normalization between the self-attention and feed-forward network layers, thereby reducing the model's reliance on normalization operations. Within the proposed block, the cross-shaped self-attention is employed to reduce the model's frequent reshaping operations. Moreover, we augment the adapter block with a lightweight convolutional branch that can enhance local inductive biases, particularly beneficial for the dense prediction tasks, e.g., object detection, instance segmentation, and semantic segmentation. The adapter block is finally formulated in a cascaded manner to compute diverse head features, thereby enriching the variety of feature representations. Empirically, extensive evaluations on multiple representative datasets validate that META substantially enhances the predicted quality, while achieving a new state-of-the-art accuracy-efficiency trade-off. Theoretically, we demonstrate that META exhibits superior generalization capability and stronger adaptability.

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

↑