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.
翻译:视觉变异器在视频分类方面取得了令人印象深刻的成绩,同时由于软体关注机制造成的四重复杂程度而使视觉变异器在视频分类方面表现得令人印象深刻,同时,由于软体关注机制造成的四重复杂程度,有些研究通过减少关注对象数量来减轻计算成本的计算成本,但复杂性仍然是四重体。另一个有希望的方法是用线性关注取代软体关注,这具有线性复杂性,但表现明显下降。我们发现,由于对关键特征的关注不够集中,线性关注的线性下降导致线性关注减少。因此,我们提议了一个功能定型模块,在计算线性关注之前,对查询和关键功能的重要性进行重新加权。具体地说,我们认为查询、关键和价值是投入符号的各种潜在表现,而通过汇总Query-Key-Value信息来学习地貌固定比率。这有利于全面衡量特征的重要性。此外,我们加强了邻里协会的特征定型功能,从而从空间和时间相邻的象征得到更多的指导。因此,我们提议的方法大大改进线性关注基线,并在三个基于流行的视频转换基准的线性视频转换器中达到最先进的状态。我们的表现甚至可以比较。