Knowledge Guided Entity-aware Video Captioning and A Basketball Benchmark

Zeyu Xi, Ge Shi, Xuefen Li, Junchi Yan, Zun Li, Lifang Wu, Zilin Liu, Liang Wang

TL;DR

This paper introduces KEBVC (Knowledge Guided Entity-aware Basketball Video Captioning), a task aimed at generating sports captions with specific player names and fine-grained actions. The authors contribute a new multimodal basketball knowledge graph and dataset (VC_NBA_2022) and propose KEANet, a model that leverages external player metadata to significantly outperform generic video captioning systems.

What Problem Does This Paper Address?

Standard video captioning models typically produce generic, macroscopic descriptions like "a man makes a shot." While technically correct, these are useless for practical applications like automated live sports broadcasting, where fans expect specific details: "Brandon Ingram misses the 2pt jump shot and Justise Winslow gets the defensive rebound."

The challenge lies in the fact that video pixels alone don't contain player names or detailed career stats. Existing benchmarks (like MSR-VTT or ActivityNet) simplify the problem by using indefinite pronouns and coarse action labels. To bridge this gap, models need access to external knowledge—a way to link visual features to specific identities and specialized terminology.

Comparison of generic vs. knowledge-grounded captioning

Methods

The authors propose a two-pronged solution: a structured knowledge base and a specialized neural architecture.

  1. Multimodal Basketball Game Knowledge Graph (KG_NBA_2022): They constructed a graph containing over 11,000 events and 42,000 relationships, linking video clips to player images, names, team affiliations, and play-by-play data.
  2. KEANet (Knowledge Guided Entity-aware Network):
    • Multimodal Encoders: The model uses ResNet-18 to extract features from both video frames and player images. A T5 encoder processes player names into embeddings.
  3. Temporal Context: A Bi-directional GRU (Bi-GRU) module encodes the video features to better capture the dynamics of sports actions.
  4. Entity-aware Module: This is the "secret sauce." It uses cross-attention to ground player features (images + names) within the specific video scene and self-attention to model the relationships between candidate players (e.g., who is shooting vs. who is assisting).
  5. Decoder: A T5 decoder generates the final caption, conditioned on the fused video and player features.
Fig. 3. Data sample from the proposed dataset. Each video is annotated by fileid, action type, caption, player images and player names. Each of the players involved in caption as well as their teammates serve as candidate players.

Datasets

  • VC_NBA_2022 (New): A benchmark derived from 25 full NBA games. it includes 3,977 video clips, 9 fine-grained shooting/rebound event types, and metadata for 286 players. It boasts a much higher "verb ratio" than standard datasets, reflecting its focus on complex actions.
  • Goal (Revised): A soccer commentary dataset used to evaluate the model's generalization across different sports.

Key Insights and Ideas

  • Names > Images: Ablation studies revealed that providing the model with a list of candidate player names yielded the biggest performance jump. Adding player images further refined the results, helping the model "see" which name belonged to which athlete in the frame.
  • The RoleF1 Metric: The authors argue that standard metrics like CIDEr can be misleading if a model gets the sentence structure right but the player name wrong. They introduce RoleF1 to specifically measure the accuracy of entity name generation.
  • Linear Correlation: Interestingly, they found an approximately linear relationship between CIDEr and RoleF1 in this domain, suggesting that in specialized captioning, getting the "who" right is a primary driver of overall caption quality.

Key Results

KEANet achieved state-of-the-art performance on the new basketball benchmark, nearly doubling the scores of advanced generic models:

  • CIDEr Score: KEANet reached 138.5, compared to 70.4 for Clip4Caption and 69.1 for SwinBert.
  • RoleF1: It achieved 20.6%, a significant lead over the ~8% achieved by other models.
  • Generalization: On the soccer-based Goal dataset, KEANet also outperformed competitors across all metrics (CIDEr, METEOR, Rouge-L, BLEU-1).

Limitations and Future Work

Despite the gains, the authors identified three primary error modes:

  1. Player Mismatching: When multiple players are active, the model sometimes assigns the wrong name to the wrong action.
  2. Action Confusion: Visually similar actions, like a layup versus a close-range jump shot, still trip the model up.
  3. Spatial Awareness: The model struggles with distance-based logic, such as distinguishing a long 2-pointer from a 3-pointer when the player is near the line.

Future work will focus on improving the model's spatial reasoning and scaling the dataset to include a wider variety of game events beyond shooting and rebounding.

Examples of common model errors

Summary updated

BibTeX
@misc{xi2024knowledge,
  author = {Zeyu Xi and Ge Shi and Xuefen Li and Junchi Yan and Zun Li and Lifang Wu and Zilin Liu and Liang Wang},
  title = {{Knowledge Guided Entity-aware Video Captioning and A Basketball Benchmark}},
  year = {2024},
  eprint = {2401.13888},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.13888},
}
Figure