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

MaiT:利用注意力面具实现更高效的图像转换器Transformers

MaiT: Leverage Attention Masks for More Efficient Image Transformers

Samsung Semiconductor Inc.(三星半导体公司)

Ling Li, Ali Shafiee Ardestani, Joseph Hassoun

摘要:

尽管图像Transformers在计算机视觉任务中显示出与卷积神经网络竞争的结果,但缺乏诸如局部性的归纳偏差仍然在模型效率方面带来问题,特别是对于嵌入式应用。在这项工作中,我们解决这个问题,通过引入注意掩模,将空间局部性到自我注意头。局部依赖性被有效地捕获与掩蔽的注意力头以及全局依赖性捕获的未掩蔽的注意力头。使用掩蔽注意力图像Transformer - MaiT,与CaiT相比,top-1准确度提高了1.7%,参数和FLOP更少,吞吐量提高了1.5倍。使用注意掩码对局部性进行编码是模型不可知的,因此它适用于单片、分层或其他新颖的Transformer架构。

英文摘要:

Though image transformers have shown competitive results with convolutional neural networks in computer vision tasks, lacking inductive biases such as locality still poses problems in terms of model efficiency especially for embedded applications. In this work, we address this issue by introducing attention masks to incorporate spatial locality into self-attention heads. Local dependencies are captured efficiently with masked attention heads along with global dependencies captured by unmasked attention heads. With Masked attention image Transformer - MaiT, top-1 accuracy increases by up to 1.7% compared to CaiT with fewer parameters and FLOPs, and the throughput improves by up to 1.5X compared to Swin. Encoding locality with attention masks is model agnostic, and thus it applies to monolithic, hierarchical, or other novel transformer architectures.

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

↑