NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Positional Mask Attention for Video Sequence Modeling

Jiaxuan Wang, Chaoyi Wang, Yang Hua, Tao Song, Zhengui Xue, Ruhui Ma, Haibing GuanCISP-BMEI 2021

Abstract

The attention mechanism has been widely developed in different domains. Some recent studies apply position embedding to encode relative positions in the attention mechanism for learning better representations in both natural language processing and computer vision tasks. However, this position embedding method is limited to the “fixed input size” problem and requires large additional memory to store the position embedding parameters. In this paper, we present the positional mask attention, which is a new approach to incorporate position information into the attention mechanism. Specifically, a positional distance mask is proposed to encode the relative positions as a type of prior knowledge, which is different from the existing position embedding methods. To verify the generality and effectiveness of the proposed method, we evaluate our positional mask attention on two general video understanding tasks, i.e., video object detection and video instance segmentation. Experimental results demonstrate that our method can achieve significant improvement by aggregating the position information.
BibTeX
@inproceedings{wang2021positional,
  author = {Jiaxuan Wang and Chaoyi Wang and Yang Hua and Tao Song and Zhengui Xue and Ruhui Ma and Haibing Guan},
  title = {{Positional Mask Attention for Video Sequence Modeling}},
  booktitle = {CISP-BMEI},
  year = {2021},
  url = {https://openreview.net/forum?id=NaKzmd9fzi},
}

Loading related content...

Figure