Skip to main navigation Skip to search Skip to main content

Learning Spatial-Frequency Transformer for Visual Object Tracking

  • Chuanming Tang
  • , Xiao Wang*
  • , Yuanchao Bai
  • , Zhe Wu
  • , Jianlin Zhang
  • , Yongmei Huang*
  • *Corresponding author for this work
  • University of Chinese Academy of Sciences
  • CAS - Institute of Optics and Electronics
  • School of Computer Science and Technology, Anhui University
  • School of Computer Science and Technology, Harbin Institute of Technology
  • Peng Cheng Laboratory

Research output: Contribution to journalArticlepeer-review

Abstract

Recently, some researchers have begun to adopt the Transformer to combine or replace the widely used ResNet as their new backbone network. As the Transformer captures the long-range relations between pixels well using the self-attention scheme, which complements the issues caused by the limited receptive field of CNN. Although their trackers work well in regular scenarios, they simply flatten the 2D features into a sequence to better match the Transformer. We believe these operations ignore the spatial prior of the target object, which may lead to sub-optimal results only. In addition, many works demonstrate that self-attention is actually a low-pass filter, which is independent of input features or keys/queries. That is to say, it may suppress the high-frequency component of the input features and preserve or even amplify the low-frequency information. To handle these issues, in this paper, we propose a unified Spatial-Frequency Transformer that models the Gaussian spatial Prior and High-frequency emphasis Attention (GPHA) simultaneously. To be specific, Gaussian spatial prior is generated using dual Multi-Layer Perceptrons (MLPs) and injected into the similarity matrix produced by multiplying Query and Key features in self-attention. The output will be fed into a softmax layer and then decomposed into two components, i.e., the direct and high-frequency signal. The low- and high-pass branches are rescaled and combined to achieve all-pass, therefore, the high-frequency features will be protected well in stacked self-attention layers. We further integrate the Spatial-Frequency Transformer into the Siamese tracking framework and propose a novel tracking algorithm termed SFTransT. The cross-scale fusion based SwinTransformer is adopted as the backbone, and also a multi-head cross-attention module is used to boost the interaction between search and template features. The output will be fed into the tracking head for target localization. Extensive experiments on short-term and long-term tracking benchmarks all demonstrate the effectiveness of our proposed framework. Source code will be released at https://github.com/Tchuanm/SFTransT.git.

Original languageEnglish
Pages (from-to)5102-5116
Number of pages15
JournalIEEE Transactions on Circuits and Systems for Video Technology
Volume33
Issue number9
DOIs
StatePublished - 1 Sep 2023
Externally publishedYes

Keywords

  • Gaussian-prior
  • Visual tracking
  • frequency-emphasis
  • siamese network
  • spatial-frequency transformer

Fingerprint

Dive into the research topics of 'Learning Spatial-Frequency Transformer for Visual Object Tracking'. Together they form a unique fingerprint.

Cite this