arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.08164cs.CVcs.MM
收藏

具有特征固定的线性视频Transformer

Linear Video Transformer with Feature Fixation

SenseTime Research(商汤科技研究院);Australian National University(澳大利亚国立大学);Shanghai AI Lab(上海人工智能实验室);Northwestern Polytechnical University(西北工业大学)

Kaiyue Lu, Zexiang Liu, Jianyuan Wang, Weixuan Sun, Zhen Qin, Dong Li, Xuyang Shen, Hui Deng, Xiaodong Han, Yuchao Dai, Yiran Zhong

摘要:

视觉Transformer在视频分类方面取得了令人印象深刻的性能,同时遭受Softmax注意力机制导致的二次复杂度。一些研究通过减少注意力计算中的标记数量来减轻计算成本,但复杂度仍然是二次的。另一种有前途的方法是用线性注意力代替Softmax注意力,它具有线性复杂度,但表现出明显的性能下降。我们发现,这种线性注意力的下降是由于缺乏对关键特征的注意力集中。因此,我们提出了一个特征固定模块,在计算线性注意力之前重新加权查询和关键字的特征重要性。具体来说,我们将查询、键和值视为输入令牌的各种潜在表示,并通过聚合查询-键-值信息来学习特征固定率。这有利于对特征重要性进行全面的度量。此外,我们通过邻域关联来增强特征固定,这利用了空间和时间相邻标记的额外指导。所提出的方法显着提高了线性注意力基线,并实现了最先进的性能之间的线性视频Transformers三个流行的视频分类基准。由于参数少,效率高,我们的性能甚至可以与一些基于Softmax的二次Transformers相媲美。

英文摘要:

Vision Transformers have achieved impressive performance in video classification, while suffering from the quadratic complexity caused by the Softmax attention mechanism. Some studies alleviate the computational costs by reducing the number of tokens in attention calculation, but the complexity is still quadratic. Another promising way is to replace Softmax attention with linear attention, which owns linear complexity but presents a clear performance drop. We find that such a drop in linear attention results from the lack of attention concentration on critical features. Therefore, we propose a feature fixation module to reweight the feature importance of the query and key before computing linear attention. Specifically, we regard the query, key, and value as various latent representations of the input token, and learn the feature fixation ratio by aggregating Query-Key-Value information. This is beneficial for measuring the feature importance comprehensively. Furthermore, we enhance the feature fixation by neighborhood association, which leverages additional guidance from spatial and temporal neighbouring tokens. The proposed method significantly improves the linear attention baseline and achieves state-of-the-art performance among linear video Transformers on three popular video classification benchmarks. With fewer parameters and higher efficiency, our performance is even comparable to some Softmax-based quadratic Transformers.

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

↑