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

Blazingly Fast Video Object Segmentation With Pixel-Wise Metric Learning

Yuhua Chen, Jordi Pont-Tuset, Alberto Montes, Luc Van Gool

Abstract

This paper tackles the problem of video object segmentation, given some user annotation which indicates the object of interest. The problem is formulated as pixel-wise retrieval in a learned embedding space: we embed pixels of the same object instance into the vicinity of each other, using a fully convolutional network trained by a modified triplet loss as the embedding model. Then the annotated pixels are set as reference and the rest of the pixels are classified using a nearest-neighbor approach. The proposed method supports different kinds of user input such as segmentation mask in the first frame (semi-supervised scenario), or a sparse set of clicked points (interactive scenario). In the semi-supervised scenario, we achieve results competitive with the state of the art but at a fraction of computation cost (275 milliseconds per frame). In the interactive scenario where the user is able to refine their input iteratively, the proposed method provides instant response to each input, and reaches comparable quality to competing methods with much less interaction.

Introduction

Video Object Segmentation (VOS)—the task of tracking and masking specific objects across a video—is traditionally a tug-of-war between speed and accuracy. Existing "semi-supervised" methods, which utilize a mask from the initial frame, often rely on slow test-time fine-tuning that can take seconds or even minutes per video. Conversely, "interactive" VOS requires near-instant feedback to be practical for human users. This paper introduces a unified framework that addresses these challenges by formulating VOS as a pixel-wise retrieval problem in a learned embedding space, achieving high performance without the need for slow adaptation steps.

Methodology: Pixel-Wise Metric Learning

The core of the proposed approach is a Fully Convolutional Network (FCN) trained for pixel-wise metric learning. Instead of training a standard classifier, the network is trained to act as an embedding model.

Embedding Space and Modified Triplet Loss

The network maps every pixel into a 128-dimensional embedding space. Ideally, pixels belonging to the same object instance cluster together while pixels from different objects are separated. To accommodate the diverse visual parts of a single object (e.g., different colors or textures), the authors employ a modified triplet loss. Unlike standard triplet losses that enforce global similarity, this version ensures the closest positive sample is nearby and pushes the closest negative sample away, allowing for flexible, multi-modal clusters.

Spatio-Temporal Awareness and Inference

To handle identical-looking objects in different locations, the model incorporates spatial $(x, y)$ and temporal $(t)$ coordinates into the embedding head. At test time, user-annotated pixels serve as reference points. For every new frame, the model performs a nearest-neighbor search in the embedding space to classify each pixel. This approach is agnostic to the input type, supporting both full masks and sparse clicks.

Interactive VOS scenario where a user provides a sparse set of clicked points (white circles) to define the object of interest.

Key Results and Performance

The proposed method achieves "blazingly fast" performance, processing frames in approximately 275 milliseconds. This makes it one of the fastest high-performing VOS algorithms available at the time of publication.

  • Semi-Supervised Accuracy: On the DAVIS 2016 benchmark, the model achieved a $\mathcal{J}\&\mathcal{F}$ score of 77.5%. While slightly lower than the top-tier OnAVOS (85.5%), it is 43x faster and requires no slow test-time fine-tuning.
  • Interactive Efficiency: In interactive settings, the model provides instant feedback, reaching 74.5% accuracy with only 10 clicks across an entire video. A human user can segment a video in roughly 24 seconds, a significant improvement over manual annotation tools.
Segmentation results on a jumping horse sequence, demonstrating the model's ability to track objects through rapid motion and deformation.

Conclusion

By treating video object segmentation as a retrieval task in a learned embedding space, this work decouples user input from heavy computation. This allows for a unified, high-speed framework suitable for both semi-supervised and interactive scenarios. While the model currently faces challenges with "drift" over long sequences and the entry of new objects, its efficiency and flexibility represent a significant step forward for real-time video analysis and interactive annotation tools.

Summary updated

BibTeX
@inproceedings{chen2018blazingly,
  author = {Yuhua Chen and Jordi Pont-Tuset and Alberto Montes and Luc Van Gool},
  title = {{Blazingly Fast Video Object Segmentation With Pixel-Wise Metric Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=rJbMgTWOWB},
}
Figure