Learning to Better Segment Objects from Unseen Classes with Unlabeled Videos

Yuming Du, Yang Xiao, Vincent Lepetit

TL;DR

This paper introduces a novel Bayesian framework that leverages unlabeled videos to automatically generate high-quality training masks for unseen object classes. By combining background, motion, and temporal consistency cues, the method filters out false positives from a class-agnostic detector, allowing models to learn to segment new objects without any human annotation.

What Problem Does This Paper Address?

Modern instance segmentation models excel at detecting objects they have encountered during training, but their performance plummets when facing novel, unseen classes. Expanding a model's vocabulary typically requires massive, expensive, pixel-level manual annotations.

While unlabeled video is an abundant alternative source of data, existing video object segmentation (VOS) tools fail to generate clean training targets automatically. They either introduce too many false positives or struggle to separate adjacent objects. The authors tackle this gap by developing a method that cleanly mines high-quality object masks from raw, unlabeled video sequences to autonomously expand an image-level segmentation model's repertoire.

Overview of the pipeline for learning from unlabeled videos

Methods

The authors propose a three-step pipeline: Mask Generation, Mask Selection, and Model Refinement.

  1. Mask Generation: They use a class-agnostic Mask R-CNN (trained on COCO) and drop its confidence threshold to 0. This ensures that objects from unseen classes are captured, but it also generates a massive amount of noise and false positives.
  2. Mask Selection (Bayesian Framework): To filter out the noise, they optimize a global objective function based on an "analysis-by-synthesis" approach using three main video cues:
  3. Background Cue: A binary segmentation network estimates background regions, penalizing mask selections that overlap with known background elements (like sky or grass).
  4. Flow Cue: They compare the video's actual optical flow against a "synthetic optical flow" generated purely from the moving candidate masks.
  5. Consistency Cue: A regularization term penalizes abrupt changes in object masks between consecutive frames using Intersection-over-Union (IoU).
  6. Non-overlapping Constraint: A strict physical rule ensuring that a single pixel cannot belong to more than one object mask simultaneously.
  7. Two-Stage Optimization: Evaluating all frame combinations across a video is computationally prohibitive ($O(2^{NT})$). To solve this efficiently, they use Dijkstra's algorithm in two stages: first, finding the top-$K$ best mask combinations per frame locally, and second, finding the shortest path across the entire video sequence.
Lowering the confidence threshold captures unseen classes at the cost of false positives

Datasets

  • Unseen-VIS: A new benchmark curated by the authors from the YouTube Video Instance Segmentation (YouTube-VIS) dataset. They removed 24 classes that overlap with COCO, leaving 16 completely "unseen" classes (such as pandas, rabbits, lizards, and turtles). It contains 595 unlabeled training videos and 200 labeled static test images.
  • DAVIS: A standard video object segmentation dataset used to evaluate the method's downstream benefits for zero-shot video object segmentation tasks.

Key Insights and Ideas

  • The Power of Zero Thresholds: Instead of trying to make a detector confident about things it has never seen, it is better to accept all proposals (threshold = 0) and let physics-based video constraints (motion and background consistency) filter out the noise.
  • Analysis-by-Synthesis for Flow: Rather than just tracking bounding boxes, synthesizing what the optical flow should look like based on selected masks—and comparing it to the actual flow—provides a powerful, self-supervised error signal.
  • Combinatorial Optimization over Individual Tracking: Traditional tracking tracks single boxes or tracklets. This method optimizes over combinations of masks per frame, which naturally enforces the physical constraint that objects cannot occupy the same space simultaneously.

Key Results

  • Performance Boost: Fine-tuning the baseline model on the automatically selected masks improved its performance on the Unseen-VIS test set from 35.8 AP to 39.0 AP without a single human label.
  • Outperforming Baselines: The approach significantly outperformed state-of-the-art self-training methods like Data Distillation (36.6 AP) and tracking-based methods like UnOVOST (31.1 AP).
  • No Catastrophic Forgetting: When retrained from scratch on both COCO and the mined masks, the model retained its performance on seen COCO classes (35.2 AP vs 35.3 AP baseline) while boosting unseen class performance.

Limitations and Future Work

  • Defining an "Object": In an unsupervised setting, the boundary between "things" and "stuff" is inherently ambiguous. For instance, should a rock be segmented as an object, or part of the background? What if a person picks up and moves the rock?
  • Granularity: The model struggles with semantic granularity (e.g., deciding whether to segment a person as a single object or split them into individual clothing items). The authors note that future work needs to rethink the definition of an object based on shape or function to make unsupervised evaluation more meaningful.

Summary updated

Abstract

The ability to localize and segment objects from unseen classes would open the door to new applications, such as autonomous object learning in active vision. Nonetheless, improving the performance on unseen classes requires additional training data, while manually annotating the objects of the unseen classes can be labor-extensive and expensive. In this paper, we explore the use of unlabeled video sequences to automatically generate training data for objects of unseen classes. It is in principle possible to apply existing video segmentation methods to unlabeled videos and automatically obtain object masks, which can then be used as a training set even for classes with no manual labels available. However, our experiments show that these methods do not perform well enough for this purpose. We therefore introduce a Bayesian method that is specifically designed to automatically create such a training set: Our method starts from a set of object proposals and relies on (non-realistic) analysis-by-synthesis to select the correct ones by performing an efficient optimization over all the frames simultaneously. Through extensive experiments, we show that our method can generate a high-quality training set which significantly boosts the performance of segmenting objects of unseen classes. We thus believe that our method could open the door for open-world instance segmentation using abundant Internet videos.
BibTeX
@inproceedings{du2022learning,
  author = {Yuming Du and Yang Xiao and Vincent Lepetit},
  title = {{Learning to Better Segment Objects from Unseen Classes with Unlabeled Videos}},
  booktitle = {HAL},
  year = {2022},
}
Figure