Leveraging Transformers for Weakly Supervised Object Localization in Unconstrained Videos

Shakeeb Murtaza, Marco Pedersoli, Aydin Sarraf, Eric Granger · DOI

TL;DR

This paper introduces TrCAM-V, a novel transformer-based approach for weakly supervised video object localization (WSVOL). By leveraging pseudo-labels generated from a pre-trained CLIP model and a DeiT backbone, TrCAM-V achieves state-of-the-art performance without relying on temporal information or pre-trained classifiers, making it more efficient and scalable.

What Problem Does This Paper Address?

Localizing objects within videos using only video-level labels (tags) is a challenging task known as Weakly Supervised Video Object Localization (WSVOL). Existing methods often rely on pre-trained CNN classifiers and struggle with accuracy due to their tendency to minimize mutual information between object instances and their reliance on temporal information. This temporal dependency can be computationally expensive and problematic for real-world, unconstrained video scenarios where temporal consistency might be disrupted. Furthermore, the absence of bounding box annotations makes it difficult to extract precise object information across frames. The paper aims to overcome these limitations by proposing a more efficient and accurate WSVOL method that doesn't require temporal cues or pre-trained classifiers.

Methods

The core of the proposed method, TrCAM-V, is a DeiT backbone (a vision transformer variant) equipped with two distinct heads:

  • Classification Head: Trained using standard cross-entropy loss with global video-level class labels.
  • Localization Head: This is the novel component. It's trained using pseudo-labels generated by a pre-trained CLIP model. Specifically, CLIP is used with a sharpness-based prompt to create saliency maps. These maps are then processed using Otsu's thresholding to identify potential foreground (FG) and background (BG) regions. To train the localization head, a subset of FG and BG pixels are stochastically sampled from these regions to create "pseudo-pixels." This sampling approach, along with a conditional random field (CRF) loss, helps to align object boundaries and improve localization accuracy.

A key innovation is that TrCAM-V does not require temporal information during training or inference, and it does not need a pre-trained classifier to generate activation maps, unlike many prior WSVOL methods.

Datasets

The paper evaluates TrCAM-V on two challenging datasets of unconstrained videos:

  • YouTube-Objects v1.0 (YTOv1): Contains videos with varying durations and a limited number of frames per video. It has annotated bounding boxes for a subset of frames, used for validation and testing.
  • YouTube-Objects v2.2 (YTOv2.2): An extension of YTOv1 with more frames and bounding box annotations, making it a more challenging benchmark.

Key Insights and Ideas

  • CLIP for Pseudo-Label Generation: Leveraging a pre-trained CLIP model to generate pseudo-labels for localization is a powerful technique, allowing for effective training without explicit pixel-level annotations.
  • Transformer Architecture for WSVOL: Adapting transformer architectures, specifically DeiT, for WSVOL proves beneficial, enabling better capture of global context and long-range dependencies within frames.
  • Decoupling from Temporal Information: Eliminating the need for temporal information during training significantly simplifies the pipeline and makes the model more robust to temporal inconsistencies in unconstrained videos. This also leads to faster inference.
  • Pseudo-Pixel Sampling: Stochastically sampling pseudo-pixels from FG/BG regions, rather than using the entire saliency map, helps the model explore relevant object parts and leads to more robust localization.
  • End-to-End Training: The proposed method allows for end-to-end training of both classification and localization heads, avoiding sub-optimal solutions often encountered in multi-stage approaches.

Key Results

TrCAM-V achieves state-of-the-art performance on both YTOv1 and YTOv2.2 datasets in terms of both classification accuracy and localization accuracy (CorLoc).

  • Classification Accuracy: The paper reports improvements of 4.9% and 12.7% on YTOv1 and YTOv2.2, respectively, compared to baseline methods.
  • Localization Performance (CorLoc): TrCAM-V demonstrates significant gains, with an improvement of 11.8% on YTOv1 and 4.5% on YTOv2.2 compared to the TCAM baseline.
  • Qualitative Results: Visualizations show that TrCAM-V generates robust localization maps with sharp boundaries that effectively enclose objects, outperforming other methods that tend to focus only on discriminative areas.

Limitations and Future Work

  • Limitations: The paper acknowledges that while TrCAM-V outperforms previous methods, it still relies on pseudo-labels derived from CLIP, which can inherit some limitations of the CLIP model itself. The reliance on Otsu's thresholding for FG/BG segmentation might also be a point of improvement.
  • Future Work: The authors suggest that their approach of using pseudo-labels and pseudo-pixel sampling is generic and can be integrated into other WSOL models. Further exploration of more sophisticated pseudo-label generation techniques or alternative transformer architectures could lead to even greater improvements. The real-time inference capability also opens doors for applications in live video analysis.

Summary updated

BibTeX
@misc{murtaza2024leveraging,
  author = {Shakeeb Murtaza and Marco Pedersoli and Aydin Sarraf and Eric Granger},
  title = {{Leveraging Transformers for Weakly Supervised Object Localization in Unconstrained Videos}},
  year = {2024},
  eprint = {2407.06018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.06018},
}
Figure