STAR-GNN: Spatial-Temporal Video Representation for Content-Based Retrieval

Guoping Zhao, Bingqing Zhang, Mingyu Zhang, Yaxian Li, Jiajun Liu, Ji-Rong Wen

Abstract

Content-Based Video Retrieval (CBVR) faces a persistent trade-off between the granular accuracy of frame-level analysis and the computational efficiency of video-level pooling. This paper presents STAR-GNN (Spatial-TemporAl video Representation Graph Neural Network), a novel framework that models videos as multi-scale lattice graphs. By representing spatial regions as nodes and their temporal relationships as edges, STAR-GNN employs Graph Neural Networks to learn a dynamic attention mechanism. This approach effectively prioritizes semantically rich, moving content while suppressing redundant backgrounds. Experimental results on the VCDB and SVD benchmarks show that STAR-GNN achieves state-of-the-art performance, particularly in large-scale scenarios with significant visual noise.

Introduction

The explosion of short-form and long-form video content on platforms like YouTube and TikTok has made efficient Content-Based Video Retrieval (CBVR) essential for copyright protection, recommendation engines, and search. Traditional retrieval methods generally fall into two categories: frame-level methods, which are accurate but computationally prohibitive for large datasets, and video-level methods, which collapse videos into single vectors. The latter often suffer from "visual noise"—static logos, background scenery, or repetitive frames—that can obscure the actual content of the video.

STAR-GNN addresses these challenges by introducing a "lattice" representation that captures the spatial-temporal evolution of a video. This allows the model to distinguish between informative motion and static redundancy, creating a compact yet highly descriptive video representation.

Methodology

The STAR-GNN pipeline transforms raw video data into a structured graph representation through four primary stages:

1. Multi-scale Region Extraction

To capture features at various levels of granularity, each video frame is divided into grids of different scales: 3x3, 4x4, and 7x7. This multi-scale approach ensures that the model can simultaneously process fine-grained details and broader contextual information.

2. Lattice Graph Construction

The extracted regions are treated as nodes in a "lattice graph." The connectivity of this graph is defined by two types of edges:

  • Spatial Edges: These connect all regions within a single frame, capturing the layout of the scene.
  • Temporal Edges: These connect regions at the same spatial location and scale across consecutive frames, capturing the flow of motion.

Edges are weighted based on the cosine similarity of their features, allowing the graph to represent the strength of relationships between different parts of the video.

3. Pluggable GNN Modules

The framework is designed to be flexible, allowing for various GNN architectures—such as Graph Convolutional Networks (GCN), Cluster-GCN, or Simplified GCN (SGCN)—to be "plugged in." These modules process the lattice graph to aggregate information across spatial and temporal dimensions.

4. Metric Learning

The network is trained using metric learning objectives, specifically Triplet Loss or Contrastive Loss. This training regime ensures that similar videos (e.g., edited versions or copies) are mapped to nearby points in the feature space, while dissimilar videos are pushed apart.

Experimental Results

The performance of STAR-GNN was evaluated on two major benchmarks: the VCDB dataset (for partial video copy detection) and the SVD dataset (featuring over 500,000 short videos).

Performance and Scalability

STAR-GNN achieved a mean Average Precision (mAP) of 0.9329 on the SVD dataset, representing a 2.67% improvement over existing supervised methods. Notably, the model demonstrated exceptional stability; as the number of "distractor" videos increased to over half a million, STAR-GNN's performance declined much more gracefully than competing models, highlighting its suitability for real-world, large-scale applications.

Data Efficiency

The model also exhibited high efficiency with limited supervision. When trained on only 10% of the labeled data, STAR-GNN maintained competitive results, suggesting that the graph-based inductive bias is highly effective for learning video representations.

Discussion and Key Insights

A significant finding of this research is the emergence of dynamic attention via topology. By analyzing self-attention maps, the authors observed that the model naturally de-emphasizes static elements (such as a person's face in a stationary shot) and focuses on the regions where the action occurs (such as the movement of a hand drawing). This ability to filter out redundancy is a direct result of modeling the relationships between regions rather than treating them as independent entities.

Furthermore, ablation studies confirmed that the multi-scale approach is essential. Using 14 regions across multiple scales significantly outperformed single-scale representations, proving that video context is inherently multi-layered.

Limitations and Future Work

Despite its performance, STAR-GNN faces challenges regarding the computational cost of calculating similarity-based edge weights for every node pair. This overhead may impact real-time deployment. Additionally, the current model utilizes a VGG16 backbone; future iterations could benefit from more modern architectures like Vision Transformers (ViTs). The authors intend to explore the application of this lattice-graph representation to other domains, including automated video captioning and recommendation systems.

Conclusion

STAR-GNN provides a robust and intelligent framework for video retrieval by treating videos as dynamic graphs. By focusing on the relationships between spatial regions over time, it overcomes the limitations of traditional pooling and frame-level methods, offering a scalable solution for the modern video landscape.

Summary updated

BibTeX
@inproceedings{zhao2022star,
  author = {Guoping Zhao and Bingqing Zhang and Mingyu Zhang and Yaxian Li and Jiajun Liu and Ji-Rong Wen},
  title = {{STAR-GNN: Spatial-Temporal Video Representation for Content-Based Retrieval}},
  booktitle = {ICME},
  year = {2022},
  url = {https://openreview.net/forum?id=nFSgD_8TaE},
}
Figure