Incorporating Domain Knowledge Graph into Multimodal Movie Genre Classification with Self-Supervised Attention and Contrastive Learning

Jiaqi Li

TL;DR

This paper introduces IDKG, a novel framework for multimodal movie genre classification that leverages domain knowledge graphs to overcome limitations in existing methods. By integrating knowledge graph embeddings, a self-supervised attention mechanism, and a genre-centroid anchored contrastive learning approach, IDKG significantly improves genre prediction accuracy, especially on challenging, imbalanced datasets.

What Problem Does This Paper Address?

Classifying movie genres from multiple data sources (posters, plot summaries, metadata) is a complex multi-label task. Current approaches struggle with three key issues:

  1. Underutilization of metadata: Group relations within metadata (e.g., director-actor co-occurrences) are often ignored, missing valuable contextual information.
  2. Unreliable attention allocation: Standard attention mechanisms, when trained without supervision, can assign irrational weights to different modalities, leading to suboptimal fusion.
  3. Indiscriminative fused features: Simply combining features from different modalities can result in a feature space that lacks discriminative power for accurate genre prediction.

Methods

The proposed IDKG framework tackles these issues through a multi-pronged approach:

  • Domain Knowledge Graph Construction and Embedding: Metadata (directors, actors, titles, genres) is used to build a knowledge graph. A translate model (e.g., TransH) embeds entities and relations within this graph. Crucially, group relations from metadata are used to retrieve relevant embeddings, which are then integrated as a new modality.
  • Attention Teacher (AT) Module: To ensure reliable attention allocation, an AT module is introduced. It uses self-supervised learning, deriving pseudo-labels for attention scores from the distribution and degree of entities within the knowledge graph. This guides the attention mechanism to assign more rational weights to each modality.
  • Genre-Centroid Anchored Contrastive Learning (G-CACL): To enhance the discriminative ability of fused features, G-CACL is proposed. For multi-label scenarios, it defines a "genre centroid" (the average embedding of all genres for a sample) as a positive anchor. This approach addresses the difficulty of defining positive pairs in multi-genre contexts and uses contrastive learning to push fused features closer to their respective genre centroids while repelling them from negative samples.

Datasets

  • MM-IMDb: The standard dataset used for evaluation.
  • MM-IMDb 2.0: A newly created, larger, and more challenging dataset designed to address class imbalance issues present in MM-IMDb. It contains 33,742 movies with a more pronounced distribution of head and tail genres.

Key Insights and Ideas

  • Knowledge Graphs as a Rich Source of Context: The paper demonstrates that domain-specific knowledge graphs, built from movie metadata, can provide crucial relational information that significantly boosts multimodal classification performance.
  • Self-Supervision for Attention Reliability: Using the inherent structure of the knowledge graph to generate pseudo-labels for attention scores is an effective way to achieve more reliable and interpretable modality weighting, even for modalities not directly supervised.
  • Genre Centroids for Multi-Label Contrastive Learning: The novel idea of using a centroid of genre embeddings as a positive anchor in contrastive learning offers a robust solution for multi-label classification, improving feature discriminability.
  • Addressing Class Imbalance: The creation of MM-IMDb 2.0 highlights the practical challenge of genre imbalance and provides a benchmark for evaluating models on more realistic, skewed data distributions.

Key Results

The proposed IDKG framework achieved state-of-the-art results on both MM-IMDb and the new MM-IMDb 2.0 datasets.

  • On MM-IMDb, IDKG surpassed the best graphical method (MM-GATBT) by at least 15% across all evaluation metrics.
  • On MM-IMDb 2.0, IDKG outperformed competitors by at least 12%, demonstrating its robustness on a more challenging dataset.
  • Ablation studies confirmed the significant contributions of each component: removing the knowledge graph integration resulted in the largest performance drop (over 10%), while the AT and G-CACL modules also provided substantial improvements.
  • The Macro-F1 analysis on MM-IMDb 2.0 showed that IDKG significantly improved the classification of tail genres, bringing their performance closer to that of head genres, thus effectively addressing class imbalance.

Limitations and Future Work

  • Limitations: The paper acknowledges that while the AT module is soft-supervised, the attention scores for text and image modalities are not directly supervised. The performance of the translate model for knowledge graph embedding can influence the overall IDKG performance.
  • Future Work: The authors plan to construct a multimodal domain knowledge graph for the movie field and apply their framework to more downstream tasks. They also suggest exploring more advanced translate models and further investigating the interplay between different components.

Summary updated

BibTeX
@inproceedings{li2023incorporating,
  author = {Jiaqi Li},
  title = {{Incorporating Domain Knowledge Graph into Multimodal Movie Genre Classification with Self-Supervised Attention and Contrastive Learning}},
  booktitle = {ACM Multimedia},
  year = {2023},
}
Figure