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

Remove Cosine Window From Correlation Filter-Based Visual Trackers: When and How

Feng Li, Xiaohe Wu, Wangmeng Zuo, David Zhang, Lei Zhang

TL;DR

This paper challenges a long-standing convention in visual tracking: the use of a "cosine window" to handle image boundaries in Correlation Filters (CF). The authors demonstrate that for modern trackers using spatial regularization, the cosine window actually does more harm than good by "contaminating" training data; by replacing it with a clever masking strategy, they achieve state-of-the-art results on major tracking benchmarks.

What Problem Does This Paper Address?

Most visual trackers based on Correlation Filters (CF) rely on a mathematical trick: they treat a small image patch as if it repeats infinitely (a circulant matrix). This allows them to use the Fast Fourier Transform (FFT) for incredibly high-speed processing. However, this "periodic" assumption creates a problem: the top edge of the image doesn't naturally match the bottom edge, creating a "jump" or boundary discontinuity that confuses the filter.

To fix this, researchers have traditionally used a cosine window—a pre-processing step that fades the edges of the image to zero. While this smooths the boundaries, it has a major side effect: it destroys information in the background (negative samples) and over-emphasizes the center. This "sample contamination" prevents the tracker from learning what the background actually looks like, leading to drift and failure.

Methods

The authors investigate whether we can ditch the cosine window entirely, specifically for trackers that already use spatial regularization (a technique that penalizes filter coefficients near the boundaries).

They propose two new ways to handle boundaries without distorting the image:

  1. Binary Mask ($M$): Instead of changing the image pixels, they modify the loss function. They identify which shifted samples suffer from boundary "jumps" and simply assign them a weight of zero. This allows the tracker to learn from "real" image patches only.
  2. Gaussian Mask ($M_G$): A more refined version that smoothly reweights the estimation error, giving more importance to samples near the target center while still excluding the corrupted boundary samples.

The authors provide mathematical frameworks to integrate these masks into popular trackers like BACF and ECO, solving the resulting optimization problems using the Alternating Direction Method of Multipliers (ADMM).

Datasets

The researchers evaluated their approach on three major computer vision benchmarks:

  • OTB-2015: 100 videos featuring various challenges like occlusion and fast motion.
  • Temple-Color: 129 color video sequences.
  • VOT-2018: A challenging dataset of 60 videos where trackers are re-initialized upon failure.

Key Insights and Ideas

  • Redundancy: The paper reveals that the cosine window and spatial regularization serve similar purposes. When spatial regularization is active, the cosine window becomes redundant and its negative side effects (data distortion) outweigh its benefits.
  • Masking the Error vs. Masking the Image: The "aha moment" is realizing that we shouldn't change the input data to fit the math; we should change the optimization objective to ignore the mathematically "broken" parts of the data.
  • Sample Contamination is Real: By removing the window, the filter sees much more realistic negative samples, which significantly improves its ability to distinguish the target from a cluttered background.

Key Results

The proposed modifications consistently improved the performance of five different baseline trackers (BACF, STRCF, ECOhc, ECO, and UPDT):

  • VOT-2018: Their modified version of the UPDT tracker achieved an EAO (Expected Average Overlap) of 0.391, outperforming the 2018 challenge winner (LADCF).
  • Performance Gain: Simply replacing the cosine window with their Gaussian mask led to a 3.9% EAO gain for the UPDT tracker.
  • Robustness: The "RCG" (Removing window + Gaussian mask) variants showed significantly lower failure rates across all benchmarks compared to standard versions.
  • Speed: While the mask adds some computational complexity, the trackers remain efficient. For example, the BACF variant still runs at over 22 FPS, maintaining real-time or near-real-time performance.

Limitations and Future Work

The authors note that removing the cosine window without adding their proposed masks actually hurts performance, as the boundary discontinuities are too severe to ignore entirely. Additionally, while the optimization is efficient, the introduction of the mask function does result in a slight decrease in tracking speed (e.g., from 26.7 FPS to 22.2 FPS for BACF).

Future work could involve exploring more adaptive mask shapes that change based on the target's appearance or the complexity of the background clutter.

Summary updated

BibTeX
@article{li2020remove,
  author = {Feng Li and Xiaohe Wu and Wangmeng Zuo and David Zhang and Lei Zhang},
  title = {{Remove Cosine Window From Correlation Filter-Based Visual Trackers: When and How}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  doi = {10.1109/tip.2020.2997521},
}
Figure