A Renaissance of Explicit Motion Information Mining from Transformers for Action Recognition
Peiqin Zhuang, Lei Bai, Yichao Wu, Ding Liang, Luping Zhou, Yali Wang, Wanli Ouyang
TL;DR
This work targets the gap in transformer-based action recognition for motion-sensitive tasks by introducing Explicit Motion Information Mining (EMIM). EMIM incorporates a cost-volume–style affinity matrix $\mathbf{A}$ constructed from a query-based neighborhood in the next frame with displacement offsets $\Delta x$ and $\Delta y$, plus a relative bias, enabling simultaneous appearance aggregation and explicit motion representation $\mathbf{M}$. The module outputs appearance features $\mathbf{F}$ and motion features $\mathbf{M}$, which are fused and propagated through the network, preserving standard contextual cues while enhancing motion modeling. Empirical results on four datasets including Something-Something V1/V2, SSV1/SSV2, and Diving-48 V2 show clear gains on motion-sensitive data and competitive performance on scene-focused data, with extensive ablations validating design choices such as neighborhood size, sampling strategy, and block replacement strategy.
Abstract
Recently, action recognition has been dominated by transformer-based methods, thanks to their spatiotemporal contextual aggregation capacities. However, despite the significant progress achieved on scene-related datasets, they do not perform well on motion-sensitive datasets due to the lack of elaborate motion modeling designs. Meanwhile, we observe that the widely-used cost volume in traditional action recognition is highly similar to the affinity matrix defined in self-attention, but equipped with powerful motion modeling capacities. In light of this, we propose to integrate those effective motion modeling properties into the existing transformer in a unified and neat way, with the proposal of the Explicit Motion Information Mining module (EMIM). In EMIM, we propose to construct the desirable affinity matrix in a cost volume style, where the set of key candidate tokens is sampled from the query-based neighboring area in the next frame in a sliding-window manner. Then, the constructed affinity matrix is used to aggregate contextual information for appearance modeling and is converted into motion features for motion modeling as well. We validate the motion modeling capacities of our method on four widely-used datasets, and our method performs better than existing state-of-the-art approaches, especially on motion-sensitive datasets, i.e., Something-Something V1 & V2. Our project is available at https://github.com/PeiqinZhuang/EMIM .
