RTW可视为一种全局自注意力机制,性能优于传统Transformer。
Attention Mechanism in Randomized Time Warping
- 将随机时间扭曲看作全局自注意力,通过权重分配捕捉序列关键部分
- 在Something-Something V2上比Transformer提升5%准确率
- 适合处理长序列动作识别,尤其在全局依赖建模上优势明显
本文揭示了随机时间扭曲(RTW)本质上是一种自注意力机制,这是运动识别中Transformer的核心技术。自注意力能识别并加权输入序列中不同部分的重要性。而RTW是动态时间扭曲(DTW)的通用扩展,用于匹配和比较序列模式。本质上,RTW为输入序列元素寻找最优贡献权重以生成判别性特征。尽管两者表现形式不同,这些权重可被解释为自注意力权重。事实上,两种权重模式具有高度相似性,十组最小典范角的平均相关系数达0.80。然而,二者运作方式不同:RTW注意力作用于整个输入序列,而自注意力受限于局部视图,因自注意力矩阵计算成本高。这一目标差异使RTW在性能上具备优势,在Something-Something V2数据集上实现5%的性能提升。
原文摘要 · Abstract (English)
This paper reveals that we can interpret the fundamental function of Randomized Time Warping (RTW) as a type of self-attention mechanism, a core technology of Transformers in motion recognition. The self-attention is a mechanism that enables models to identify and weigh the importance of different parts of an input sequential pattern. On the other hand, RTW is a general extension of Dynamic Time Warping (DTW), a technique commonly used for matching and comparing sequential patterns. In essence, RTW searches for optimal contribution weights for each element of the input sequential patterns to produce discriminative features. Although the two approaches look different, these contribution weights can be interpreted as self-attention weights. In fact, the two weight patterns look similar, producing a high average correlation of 0.80 across the ten smallest canonical angles. However, they work in different ways: RTW attention operates on an entire input sequential pattern, while self-attention focuses on only a local view which is a subset of the input sequential pattern because of the computational costs of the self-attention matrix. This targeting difference leads to an advantage of RTW against Transformer, as demonstrated by the 5\% performance improvement on the Something-Something V2 dataset.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。