TAPIR: Tracking Any Point with per-frame Initialization and temporal Refinement

Carl Doersch, Yi Yang, Mel Vecerík, Dilara Gokay, Ankush Gupta, Yusuf Aytar, João Carreira, Andrew Zisserman

Abstract

Tracking Any Point (TAP) is a fundamental computer vision task that requires following physical surface points across video sequences, regardless of occlusions or camera motion. Traditional approaches often struggle to balance temporal smoothness with robustness to long-term disappearances. TAPIR addresses these challenges through a novel two-stage architecture that combines global matching for per-frame initialization with a local temporal refinement module. By utilizing a fully convolutional design in the temporal domain, TAPIR achieves state-of-the-art accuracy on the TAP-Vid benchmark—improving performance by 20% over previous methods—while maintaining faster-than-real-time inference speeds.

Introduction

In the landscape of motion estimation, researchers have historically navigated a trade-off between the short-term precision of optical flow and the long-term robustness of keypoint matching. Optical flow excels at capturing fine-grained motion between adjacent frames but accumulates error rapidly over time. Conversely, keypoint matching can re-identify objects after occlusions but often results in jittery trajectories because it treats frames independently.

Recent models like TAP-Net and PIPs attempted to bridge this gap, but each brought specific limitations: TAP-Net remained prone to spatial imprecision, while PIPs, though smooth, was computationally expensive and struggled with points that moved off-camera. TAPIR (Tracking Any Point with per-frame Initialization and temporal Refinement) resolves these issues by hybridizing global search with local temporal smoothing in a computationally efficient framework.

The TAPIR Architecture

TAPIR’s effectiveness stems from its two-stage processing pipeline, which separates the "discovery" of a point from its "refinement."

1. Matching Stage (Initialization)

To handle occlusions and large displacements, TAPIR first performs a global search. For a given query point, the model computes a "cost volume"—a dense table of feature similarities—between the query and every possible location in a target frame. This allows the model to re-locate a point even if it disappears for several frames and reappears in a different part of the image. This stage provides a rough but robust estimate of the point's position across the entire video sequence.

2. Refinement Stage

Once initial estimates are established, TAPIR applies a temporal refinement module to ensure trajectory smoothness and spatial precision. Unlike previous models that used sequential processing (like RNNs or MLPs), TAPIR introduces a temporal depthwise-convolutional network. This network examines a local spatial neighborhood around the initial estimate across multiple frames simultaneously.

Because this stage is fully convolutional in time, it can process frames in parallel. This architectural choice is a key driver of TAPIR’s speed, allowing it to scale to long videos without the linear increase in latency associated with sequential models.

Training and Uncertainty Estimation

TAPIR is trained primarily on Kubric MOVi-E, a synthetic dataset featuring photorealistic objects. A critical insight during development was the importance of camera motion; the authors found that adding synthetic "panning" to the training data significantly improved the model's ability to generalize to real-world videography.

Furthermore, TAPIR introduces a self-supervised uncertainty estimate. The model is trained to predict its own tracking error, allowing it to output a confidence score for every point. In evaluation metrics like Average Jaccard (AJ), this allows the model to suppress low-confidence predictions during occlusions, preventing "hallucinated" tracks from degrading the final score.

Results and Performance

TAPIR sets a new standard for the TAP-Vid benchmark across several diverse datasets:

  • Accuracy: On the DAVIS benchmark, TAPIR achieved a 20% absolute improvement in Average Jaccard (AJ) compared to prior state-of-the-art models.
  • Efficiency: The model is exceptionally fast. On a modern GPU, it can track 50 points at approximately 150 frames per second (FPS). This is orders of magnitude faster than models like PIPs, which can take significantly longer to process the same data.
  • Scalability: Through an image pyramid approach, TAPIR can be extended to high-resolution 1080p video, maintaining its feature-matching precision even at higher scales.

Beyond standard tracking, the authors demonstrated that TAPIR’s high-quality tracks can be used to condition generative models. By providing precise motion paths, TAPIR can guide diffusion models to animate static images with realistic, physically consistent movement.

Discussion and Future Work

While TAPIR represents a major leap in point tracking, certain edge cases remain. Extreme changes in an object's appearance—such as rapid rotation or drastic lighting shifts—can still cause the initial matching stage to fail. Additionally, distinguishing between a foreground object and the background at high-contrast boundaries remains a challenge. Future research may focus on integrating multi-resolution features to further refine occlusion logic and boundary precision.

Nevertheless, by combining global initialization with parallelized temporal refinement, TAPIR provides a robust, fast, and highly accurate solution for the next generation of video analysis tasks.

Summary updated

BibTeX
@inproceedings{doersch2023tapir,
  author = {Carl Doersch and Yi Yang and Mel Vecerík and Dilara Gokay and Ankush Gupta and Yusuf Aytar and João Carreira and Andrew Zisserman},
  title = {{TAPIR: Tracking Any Point with per-frame Initialization and temporal Refinement}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure