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

随机时间规整中的注意力机制

Attention Mechanism in Randomized Time Warping

The Japan Research Institute, Limited(日本研究机构有限公司);Graduate School of Science and Technology, University of Tsukuba(筑波大学科学技术研究生院);Tsukuba Institute for Advanced Research, Department of Computer Science, University of Tsukuba(筑波先进研究所计算机科学系,筑波大学)

Yutaro Hiraoka, Kazuya Okamura, Kota Suto, Kazuhiro Fukui

AI总结:

本文揭示了随机时间规整可视为一种自注意力机制,其注意力作用于整个输入序列模式,相比Transformer的局部自注意力具有优势,并在Something-Something V2数据集上实现了5%的性能提升。

摘要:

本文揭示,我们可以将随机时间规整(Randomized Time Warping, RTW)的基本功能解释为一种自注意力机制,而自注意力是Transformer在运动识别中的核心技术。自注意力是一种使模型能够识别并加权输入序列模式中不同部分重要性的机制。另一方面,RTW是动态时间规整(Dynamic Time Warping, DTW)的一种通用扩展,DTW是一种常用于匹配和比较序列模式的技术。本质上,RTW为输入序列模式的每个元素搜索最优贡献权重,以产生具有判别性的特征。尽管这两种方法看起来不同,但这些贡献权重可以被解释为自注意力权重。事实上,这两种权重模式看起来相似,在十个最小规范角上产生了0.80的高平均相关性。然而,它们的工作方式不同:RTW注意力作用于整个输入序列模式,而自注意力由于自注意力矩阵的计算成本,只关注输入序列模式的一个局部视图,即输入序列模式的一个子集。这种目标差异使RTW相对于Transformer具有优势,这一点通过在Something-Something V2数据集上5%的性能提升得到了证明。

英文摘要:

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.

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

↑