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

面向视觉和语言任务的基于分组转换的轻量级Transformer

Towards Lightweight Transformer via Group-wise Transformation for Vision-and-Language Tasks

Xiamen University(厦门大学);Microsoft(微软);Tencent Technology (Shanghai) Co., Ltd(腾讯科技(上海)有限公司)

Gen Luo, Yiyi Zhou, Xiaoshuai Sun, Yan Wang, Liujuan Cao, Yongjian Wu, Feiyue Huang, Rongrong Ji

摘要:

尽管Transformer具有令人兴奋的性能,但其过多的参数和计算成本受到批评。然而,由于层设计的内部复杂性,压缩Transformer仍然是一个悬而未决的问题,即,多头注意力(MHA)和前馈网络(FFN)。为了解决这个问题,我们引入了一个通用的,但轻量级的Transformer的视觉和语言任务,称为LW-Transformer的组明智的转换。LW-Transformer应用分组变换来减少Transformer的参数和计算,同时还保留其两个主要属性,即,在MHA的不同子空间上的有效注意建模,以及FFN的扩展-缩放特征变换。我们将LW-Transformer应用于一组基于Transformer的网络,并在三个视觉和语言任务和六个基准数据集上对其进行定量测量。实验结果表明,LW-Transformer在节省大量参数和计算量的同时,与原有的Transformer网络相比,在视觉和语言任务上取得了非常有竞争力的性能。为了检验算法的泛化能力,我们还将优化策略应用于最近提出的一个图像Transformer算法Swin-Transformer,并用于图像分类,其有效性也得到了验证

英文摘要:

Despite the exciting performance, Transformer is criticized for its excessive parameters and computation cost. However, compressing Transformer remains as an open problem due to its internal complexity of the layer designs, i.e., Multi-Head Attention (MHA) and Feed-Forward Network (FFN). To address this issue, we introduce Group-wise Transformation towards a universal yet lightweight Transformer for vision-and-language tasks, termed as LW-Transformer. LW-Transformer applies Group-wise Transformation to reduce both the parameters and computations of Transformer, while also preserving its two main properties, i.e., the efficient attention modeling on diverse subspaces of MHA, and the expanding-scaling feature transformation of FFN. We apply LW-Transformer to a set of Transformer-based networks, and quantitatively measure them on three vision-and-language tasks and six benchmark datasets. Experimental results show that while saving a large number of parameters and computations, LW-Transformer achieves very competitive performance against the original Transformer networks for vision-and-language tasks. To examine the generalization ability, we also apply our optimization strategy to a recently proposed image Transformer called Swin-Transformer for image classification, where the effectiveness can be also confirmed

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

↑