Panoptic Video Scene Graph Generation

Jingkang Yang, Wenxuan Peng, Xiangtai Li, Zujin Guo, Liangyu Chen, Bo Li, Zheng Ma, Kaiyang Zhou, Wayne Zhang, Chen Change Loy, Ziwei Liu

Abstract

Traditional Video Scene Graph Generation (VidSGG) relies on coarse bounding boxes to represent objects, which often fails to capture the spatial nuances of non-rigid entities and background "stuff." This paper introduces Panoptic Video Scene Graph Generation (PVSG), a novel task that grounds relationships in pixel-level panoptic masks. By contributing a comprehensive dataset of 400 videos and 150,000 annotated frames, the authors establish a benchmark for fine-grained scene understanding. They propose a two-stage framework and demonstrate that while temporal modeling via Transformers is effective, long-term tracking remains a significant bottleneck.

Introduction: Beyond Bounding Boxes

The goal of Video Scene Graph Generation is to map dynamic interactions within a scene—identifying "who is doing what to whom" over time. Historically, this has been achieved using bounding boxes. However, bounding boxes are ill-suited for amorphous background elements like water, grass, or the sky (often referred to as "stuff"). For instance, a box around "grass" in a "walking on grass" interaction provides poor spatial context and lacks the precision needed for holistic scene perception.

Figure 1: An example of the PVSG task, where relationships like "standing in water" are grounded by precise pixel-level masks across video frames.

The PVSG task addresses this by requiring models to generate panoptic segmentation masks for every object and background element involved in a relationship. This allows for a much richer understanding of the environment and the complex, fine-grained interactions within it.

The PVSG Dataset

To facilitate research in this new domain, the authors introduced the PVSG Dataset, the first of its kind to provide panoptic-level annotations for video scene graphs.

  • Scale and Diversity: The dataset comprises 400 long-duration videos (averaging 76.5 seconds) totaling 150,000 frames. It includes both third-person and egocentric (first-person) perspectives sourced from VidOR, Ego4D, and EPIC-KITCHENS.
  • Rich Annotations: It features 126 object classes and 57 relation classes.
  • Annotation Pipeline: A "human-machine collaborative" approach was employed, using a video object segmentation model (AOT) to propagate initial manual masks, followed by iterative human refinement to ensure high-quality ground truth.

Methodology: A Two-Stage Framework

The researchers propose a flexible two-stage architecture to tackle the complexities of PVSG.

Figure 6: The proposed two-stage framework for PVSG, featuring Video Panoptic Segmentation followed by temporal Relation Classification.

Stage 1: Video Panoptic Segmentation (VPS)

The first stage involves segmenting and tracking every pixel across the video. Two primary paths were explored:

  1. IPS+T: An image-level segmentation model (e.g., Mask2Former) paired with an external tracker (e.g., UniTrack).
  2. End-to-End VPS: A unified model, such as Video K-Net, designed to handle segmentation and tracking simultaneously.

Stage 2: Relation Classification

Once object trajectories are established, the model predicts relationships. The authors benchmarked several temporal modeling techniques, including simple fully-connected layers (Vanilla), handcrafted windows, 1D convolutions, and Transformer Encoders. The Transformer Encoder proved most effective at capturing long-range dependencies and evolving actions.

Key Results and Insights

  • The Superiority of Transformers: Attention-based models significantly outperformed simpler temporal aggregators, highlighting the need for global context in predicting complex video relations.
  • Tracking as a Bottleneck: Interestingly, the "Image + Tracker" (IPS+T) approach outperformed end-to-end VPS models. This suggests that current end-to-end architectures struggle with the long-term consistency required for real-world video analysis.
  • The Importance of "Stuff": Including background classes allows the model to capture essential contextual relations (e.g., "sitting on a rock") that are typically ignored by box-based methods.
  • Benchmark Difficulty: The best-performing model achieved a Recall@20 of 3.88% at a strict 0.5 IoU threshold. While seemingly low, this reflects the task's inherent difficulty—requiring both accurate relationship identification and pixel-perfect temporal tracking.

Conclusion and Future Directions

PVSG represents a significant step toward human-like video perception. However, several challenges remain. The "long-tail" distribution of objects and relations makes it difficult for models to learn rare interactions. Additionally, predicate ambiguity and the heavy dependence on segmentation quality present ongoing hurdles. Future work will likely focus on more robust long-term tracking, better handling of egocentric camera shifts, and advanced time-series modeling to further bridge the gap in machine scene understanding.

Summary updated

BibTeX
@inproceedings{yang2023panoptic,
  author = {Jingkang Yang and Wenxuan Peng and Xiangtai Li and Zujin Guo and Liangyu Chen and Bo Li and Zheng Ma and Kaiyang Zhou and Wayne Zhang and Chen Change Loy and Ziwei Liu},
  title = {{Panoptic Video Scene Graph Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure