TL;DR
The Spatial-Temporal Knowledge-Embedded Transformer (STKET) significantly advances video scene graph generation by explicitly integrating statistical "common sense" into a transformer architecture. By leveraging prior knowledge of how objects co-occur and how their relationships transition over time, STKET achieves state-of-the-art performance, particularly in identifying rare, long-tail interactions where visual data alone is often ambiguous.
What Problem Does This Paper Address?
Video Scene Graph Generation (VidSGG) aims to map a video into a structured graph where nodes represent objects and edges represent their dynamic relationships (e.g., "person holding cup" transitioning to "person drinking from cup"). While static image scene graph generation is already difficult due to spatial ambiguity, video adds a temporal dimension that makes the task "formidable."
Current models primarily rely on aggregating visual features across frames. However, visual cues can be noisy or insufficient. Humans overcome this by using accumulated prior knowledge: we know that a "person" and a "sandwich" are more likely to be in an "eating" relationship than a "wiping" one (spatial co-occurrence), and we know that "holding" an object often precedes "drinking from" or "putting down" that object (temporal transition). The gap addressed here is the lack of explicit, structured prior knowledge in existing VidSGG frameworks.
Methods
The authors propose STKET, a framework that distills statistical priors from training data and injects them into a transformer-based pipeline.
- Knowledge Distillation: The model first learns two types of statistical matrices from the training set:
- Spatial Co-occurrence: The frequency of specific predicates given a subject-object category pair.
- Temporal Transition: The probability of one relationship (e.g., holding) transitioning to another (e.g., drinking from) between consecutive frames for the same object pair.
- Knowledge-Embedded Layers: These statistical correlations are mapped into learnable embeddings and integrated via multi-head cross-attention:
- SKEL (Spatial Knowledge-Embedded Layer): Fuses visual relationship features with spatial co-occurrence priors to regularize the prediction space within a single frame.
- TKEL (Temporal Knowledge-Embedded Layer): Incorporates temporal transition priors from the previous frame and spatial priors from the current frame, helping the model "parse" dynamic changes.
- STA (Spatial-Temporal Aggregation) Module: To capture long-term context, this module aggregates the spatial and temporal representations of identical subject-object pairs across a sliding window of frames using self-attention.
Datasets
The model was evaluated on Action Genome, the most widely used benchmark for VidSGG. It contains over 1.7 million relationship instances across 35 object classes and 26 relationship types, annotated across more than 234,000 video frames.
Key Insights and Ideas
- Knowledge as a Regularizer: Explicitly training the knowledge embeddings to predict predicates ($L_{spk}$ and $L_{tpk}$ losses) ensures they capture meaningful statistical patterns rather than just acting as extra parameters.
- Solving the Long-Tail Problem: One of the biggest hurdles in SGG is the "long-tail" distribution, where a few relationships (like "in front of") dominate, and many others (like "twisting" or "wiping") are rare. By providing statistical "hints," STKET helps the model make correct predictions even when it has seen very few visual examples of a specific rare interaction.
- Temporal Consistency: The transition priors act as a "sanity check" for the model. If a person is holding a cup in frame $t-1$, the model is statistically guided away from predicting an impossible relationship in frame $t$.
Key Results
STKET consistently outperformed existing state-of-the-art methods (like APT and STTran) across all standard metrics:
- Mean Recall (mR@50): Improved by 8.1% on Predicate Classification (Pred Cls), 4.7% on Scene Graph Classification (SG Cls), and 2.1% on Scene Graph Generation (SG Gen).
- Rare Relationships: The most impressive gains were in the "tail" of the distribution. For the top-10 least frequent relationships, STKET improved R@50 by 9.98% to 23.98% compared to the previous best-performing algorithm.
Limitations and Future Work
Despite its success, the authors note that STKET still struggles in "extreme scenarios" where specific subject-predicate-object triplets are exceedingly rare. In these cases, the statistical regularization can be weak, leading the model to fall back on more frequent but incorrect predicates (e.g., predicting "sit on" instead of the rare "lean on").
Future directions include:
- Integrating knowledge from even broader distributions, such as large-scale web text or other diverse video datasets.
- Exploring ways to leverage abundant contextual information from large language models (LLMs) to further enhance the regularization of rare relationships.
Summary updated