Introduction
Generating Dynamic Scene Graphs (DSG) is a critical task in computer vision that involves identifying objects within a video and tracking their evolving relationships over time. Unlike static scene graphs, DSGs must capture transitions such as a person moving from "holding a cup" to "placing a cup." However, current models often struggle to distinguish between subtle relationship changes and distracting background motion. To address these challenges, researchers have introduced the $TR^2$ (Time-variant Relation-aware TRansformer) framework, which leverages cross-modality guidance to better capture temporal dynamics.
The Challenge of Time-Variant Relations
In dynamic environments, relationships between entities are rarely static. Existing models for DSG generation typically face two primary hurdles:
- Subtle Temporal Changes: Small physical movements, such as a hand slightly releasing a handle, may not be captured by standard visual backbones. This leads to "state sticking," where the model incorrectly predicts the previous relationship persists.
- Distracting Motion: Significant physical movement that does not change the underlying relationship (e.g., a person walking while holding a phone) can cause models to hallucinate relationship transitions where none exist.
Most current methods treat frames with a degree of independence or fail to explicitly model the semantic "delta" between adjacent frames, making it difficult to pinpoint the exact moment a relationship changes.
The $TR^2$ Framework
The $TR^2$ framework introduces two complementary strategies to handle these temporal complexities: one explicit and one implicit.
1. Explicit Cross-Modality Feature Guidance
This represents the paper’s most significant contribution. The authors utilize a pre-trained vision-language model (CLIP) to provide a stable semantic anchor. During the training phase, the model generates text prompts describing the state of relationships in consecutive frames (e.g., "a photo of a person sitting on a bed" followed by "a photo of a person lying on a bed").
By calculating the difference between these text embeddings, the framework creates a supervision signal that represents the semantic transition. This process "distills" high-level knowledge from the language domain into the visual model, teaching it to recognize the specific feature-space signatures of relationship changes. Because text embeddings are less susceptible to visual noise like lighting or camera angles, they provide a cleaner target for learning transitions.
2. Implicit Relation Feature Fusion with Message Tokens
To complement the text-based guidance, $TR^2$ employs a spatial-temporal transformer that incorporates a short-term message token ($m_{t-1}$). This token acts as a temporal bridge, calculating the degree of influence the previous frame should have on the current one. This allows the model to focus on modifications in the scene rather than re-processing static features from scratch, effectively filtering out irrelevant motion.
Experimental Evaluation
The framework was evaluated on the Action Genome (AG) benchmark, the gold standard for dynamic scene graph generation. Built upon the Charades dataset, Action Genome contains approximately 234,000 frames across 10,000 video clips, covering 36 entity types and 26 relation types (categorized into attention, spatial, and contacting relations).
Key Results
$TR^2$ was compared against established baselines such as STTran and TRACE across three standard tasks: Predicate Classification (PredCls), Scene Graph Classification (SgCls), and Scene Graph Detection (SgDet).
- State-of-the-Art Performance: In the PredCls task—the most direct measure of a model's ability to label relations—$TR^2$ achieved a Recall@20 of 73.8% (With Constraints), representing a 2.1% improvement over the previous state-of-the-art.
- No Constraints Setting: When allowing multiple relationship predictions per pair, the model showed a 2.6% improvement in PredCls.
- Robustness to Change: Analysis revealed that $TR^2$ performs best in highly dynamic scenes. In video segments with frequent relationship shifts, the model outperformed baselines by up to 3.13%, confirming its efficacy in capturing "the delta."
Conclusion and Future Directions
The $TR^2$ framework demonstrates that supervising the change between frames is more effective than supervising individual frames in isolation. By using text as a semantic anchor, the model overcomes the inherent noise of visual data in dynamic videos.
While the model sets a new benchmark, it remains dependent on the quality of the underlying object detector (e.g., Faster R-CNN); if an object is not detected, its relationships cannot be mapped. Future work may focus on improving the interpretability of temporal modeling within transformer layers and applying these dynamic graphs to complex downstream tasks such as robotic task planning and autonomous navigation.
Summary updated