Spatio-Temporal Graph for Video Captioning With Knowledge Distillation

Boxiao Pan, Haoye Cai, De-An Huang, Kuan-Hui Lee, Adrien Gaidon, Ehsan Adeli, Juan Carlos Niebles

Spatio-Temporal Graph for Video Captioning With Knowledge Distillation

Video captioning—the task of generating natural language descriptions for video clips—requires a deep understanding of object interactions over time. For instance, to accurately describe "a cat jumping into a box," a model must not only identify the cat and the box but also track their evolving spatial relationship. Traditional methods often rely on global scene features or simple object pooling, which can lead to "hallucinations" where the model predicts words based on dataset biases rather than visual evidence. Furthermore, incorporating object-level features is challenging due to the varying number of objects per frame and the noise introduced by detectors.

Methodology

The proposed framework addresses these challenges using a two-branch "teacher-student" architecture. This design allows the model to leverage detailed object-level information during training while maintaining high efficiency during inference by discarding the complex object branch.

The proposed two-branch architecture featuring an Object Branch (teacher) and a Scene Branch (student) with knowledge distillation.

Spatio-Temporal Graph (The Object Branch)

The core of the "teacher" model is a Spatio-Temporal Graph that explicitly models object dynamics.

  • Nodes: Represent individual objects detected using Faster R-CNN.
  • Spatial Edges: Connect objects within the same frame based on their Intersection over Union (IoU), capturing physical proximity.
  • Temporal Edges: Connect semantically similar objects across adjacent frames using cosine similarity, enabling the model to track an object’s transformation through time.
  • Graph Convolutional Networks (GCN): Update object features by aggregating information from neighboring nodes in the graph.
Visualization of the Spatio-Temporal Graph tracking a cat jumping into a box across multiple video frames.

Scene Branch and Knowledge Distillation

The Scene Branch is a streamlined component that processes global 2D (ResNet) and 3D (I3D) features. To transfer the "privileged" knowledge from the complex graph model to this simpler branch, the authors employ Object-Aware Knowledge Distillation. During training, the model minimizes the KL divergence between the word probability distributions (logits) of both branches. This "soft regularization" allows the Scene Branch to mimic the reasoning of the Object Branch. At test time, only the Scene Branch is used, ensuring fast inference without the need for real-time object detection.

Experimental Results

The model was evaluated on the MSVD (Microsoft Video Description) and MSR-VTT (Microsoft Research Video-to-Text) datasets.

  • State-of-the-Art Performance: On MSVD, the model achieved a CIDEr score of 93.0, outperforming previous benchmarks like MARN and OA-BTG. On MSR-VTT, it achieved a competitive CIDEr of 47.1.
  • Inductive Bias and Sparsity: Ablation studies revealed that a sparse graph based on IoU and similarity significantly outperforms a fully connected dense graph, highlighting the importance of structured relational modeling.
  • Efficiency: By distilling knowledge into the Scene Branch, the model achieves the accuracy of object-based methods with the speed of global-feature methods during inference.
  • Improved Grounding: Qualitative analysis via saliency maps showed that the distilled model focuses more accurately on interacting objects compared to baseline scene-only models.

Conclusion

This research demonstrates that spatio-temporal graphs are highly effective for capturing the relational dynamics necessary for video captioning. By combining graph modeling with knowledge distillation, the authors provide a path toward high-performance models that remain efficient enough for real-world applications. Future work may focus on improving robustness for non-natural video styles, such as animations, where standard object detectors often struggle.

Summary updated

BibTeX
@inproceedings{pan2020spatio,
  author = {Boxiao Pan and Haoye Cai and De-An Huang and Kuan-Hui Lee and Adrien Gaidon and Ehsan Adeli and Juan Carlos Niebles},
  title = {{Spatio-Temporal Graph for Video Captioning With Knowledge Distillation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01088},
}
Figure