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

Exploiting Long-Term Dependencies for Generating Dynamic Scene Graphs

Shengyu Feng, Hesham Mostafa, Marcel Nassar, Somdeb Majumdar, Subarna Tripathi

Abstract

Dynamic Scene Graph (DSG) generation is a critical task for video understanding, requiring the identification of objects and their evolving relationships over time. Traditional methods often suffer from temporal instability due to occlusions and motion blur. We present DSG-DETR (Dynamic Scene Graph Detection Transformer), a framework that leverages long-term temporal dependencies through object tracklets and transformers. By moving beyond short-term sliding windows, DSG-DETR maintains consistent object recognition and relationship tracking across extended sequences. Our approach achieves significant improvements on the Action Genome benchmark, demonstrating that long-term context is essential for robust video scene graph generation.

Introduction

Generating a Dynamic Scene Graph involves mapping the shifting landscape of a video—for instance, tracking a "person holding a broom" as they transition to "person sweeping the floor." The primary obstacle in this field is temporal instability. In dynamic environments, objects may be clearly visible in one frame but obscured by motion or hidden behind other objects in the next.

Most existing models rely on a "sliding window" approach, typically analyzing only 3 to 5 frames at a time. This limited horizon causes models to "forget" or misclassify objects during brief occlusions, leading to fragmented and inaccurate scene graphs. DSG-DETR addresses this by capturing long-term dependencies, looking back several seconds to ensure consistent understanding throughout a video's duration.

Methods

DSG-DETR decomposes the scene graph generation process into three distinct stages designed to maximize temporal coherence:

  1. Online Tracklet Construction: Rather than treating frames in isolation, the model employs a coarse tracking algorithm (Hungarian matching) to link detections across time into "tracklets." This groups all appearances of a specific object instance together.
  2. Object Transformer for Consistency: Once tracklets are established, an Object Transformer processes the entire sequence. If an object (e.g., a broom) is occluded in the middle of a sequence but visible at the start and end, the transformer uses the high-confidence frames to "fix" the predictions in the degraded frames.
  3. Spatio-Temporal Relationship Transformer: To decode relationships (predicates), the model uses a two-step transformer. A spatial encoder analyzes context within a single frame, while a temporal encoder tracks how the relationship between a subject-object pair evolves over the entire tracklet.
The DSG-DETR architecture utilizes Object and Relationship Transformers to process tracklets and generate consistent scene graphs.

Key Insights and Ideas

  • The "Upper Bound" Gap: Experiments using ground-truth object tracks revealed that perfect temporal consistency alone can improve performance by up to 46% in certain tasks. This suggests that the primary bottleneck in video scene graph generation is object consistency rather than relationship logic.
  • Coarse Tracking is Sufficient: The model does not require a state-of-the-art tracker. A "noisy" tracklet provides enough signal for the Transformer to learn how to smooth out errors and identify correct labels.
  • Contextual Recovery: The Object Transformer can recover from catastrophic detector failures. For example, if a detector misidentifies a blanket as a person in a single frame, the model uses the surrounding temporal context to override the error.

Results and Evaluation

The model was evaluated on Action Genome, the gold-standard benchmark for dynamic scene graphs, which includes 35 object categories and 25 relationship categories. DSG-DETR significantly outperformed previous state-of-the-art (SOTA) methods like STTran:

  • Scene Graph Classification (SGCls): Achieved 50.8% (R@10), a ~10% improvement over previous benchmarks.
  • Scene Graph Detection (SGDet): Achieved 30.3% (R@10), outperforming the baseline by ~20%.

Qualitative analysis shows that while previous models failed to recognize objects during fast movement, DSG-DETR maintains stable, correct predictions by "remembering" objects from earlier frames.

Qualitative comparison showing DSG-DETR maintaining a consistent 'Broom' label despite motion and occlusion, where other labels are correctly rejected.

Limitations and Future Work

While robust, DSG-DETR still depends on the initial Hungarian matching; if detections are too poor to form a tracklet, the long-term benefits are lost. Additionally, processing long-term tracklets with transformers is more memory-intensive than sliding window methods, posing a challenge for high-resolution or extremely long footage. Future work will focus on improving the diversity of predicted relationships and optimizing the model for real-time applications.

Summary updated

BibTeX
@inproceedings{feng2023exploiting,
  author = {Shengyu Feng and Hesham Mostafa and Marcel Nassar and Somdeb Majumdar and Subarna Tripathi},
  title = {{Exploiting Long-Term Dependencies for Generating Dynamic Scene Graphs}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00510},
}
Figure