Hierarchical Label Inference for Video Classification

Nelson Nauata, Jonathan Smith, Greg MoriarXiv 2017

Introduction

Standard deep learning models for video classification often treat labels as independent entities. For instance, a model might predict "Mountain" and "Outdoors" as two unrelated tasks. However, real-world labels possess intrinsic dependencies; a video tagged with "Irish Pub" is highly likely to involve "Beer" or "Food." This paper addresses the lack of "semantic awareness" in large-scale video classification by incorporating structured, graph-based inference directly into the neural network architecture.

Methodology

The authors propose a pipeline that integrates traditional visual feature extraction with a novel label-inference module.

Overview of the video classification pipeline featuring hierarchical label inference.

Feature Extraction and Aggregation

Each video frame is processed through a pre-trained InceptionV3 CNN. To manage the temporal dimension, the researchers employ mean pooling, averaging the features across all frames to generate a single representative vector for the entire video.

The Bidirectional Inference Neural Network (BINN)

The core innovation is the Bidirectional Inference Neural Network (BINN). Unlike standard final layers, the BINN organizes labels into "concept layers" based on granularity, such as coarse-grained "Verticals" and fine-grained "Entities."

Detailed architecture of the BINN module showing bidirectional label inference.

The BINN treats these layers as timesteps in a bidirectional Recurrent Neural Network (RNN):

  • Top-down inference captures how general categories influence specific ones.
  • Bottom-up inference allows specific detections to inform broader categories.

The entire system is trained end-to-end using a logistic cross-entropy loss, refining message passing between labels to minimize error across the hierarchy.

Datasets

The model was evaluated on the YouTube-8M (V1 and V2) datasets, which are among the largest multi-label video datasets available. These datasets contain approximately 8 million videos and nearly 4,800 Google Knowledge Graph entities. Labels are associated with up to three "verticals," providing the necessary hierarchical structure for the BINN to exploit.

Key Insights

  • Hierarchies as Sequences: A key innovation is treating a static hierarchy as a sequence traversable by an RNN, leveraging established recurrent architectures for graph inference.
  • Bidirectionality: Information flow is not strictly top-down. High confidence in a specific label (e.g., "Cat") can reinforce a broader label (e.g., "Animal") even when general visual evidence is ambiguous.
  • Normalization: L2-normalization of features proved essential for model convergence in high-dimensional spaces.

Results

The BINN-based model consistently outperformed standard baselines such as Logistic Regression and Mixture-of-Experts.

  • YouTube-8M V1: The BINN achieved a Mean Average Precision (mAP) of 30.17% (up from a 28.1% baseline) and a Global Average Precision (gAP) of 55.76% (up from 49.04%).
  • YouTube-8M V2: Combining visual and audio features with the BINN module resulted in an mAP of 40.91% and a Hit@1 rate of 84.96%.

Notably, the BINN outperformed more complex temporal models like LSTMs on V1, suggesting that modeling label relationships can be more impactful than modeling temporal relationships for this dataset.

Conclusion and Future Work

While effective, the current model uses simple temporal aggregation (mean pooling), which ignores the sequential nature of video events. Future work involves combining the BINN with sophisticated temporal models like LSTMs to capture both hierarchical label relationships and temporal dynamics. The BINN module remains a generic component applicable to any dataset with a defined hierarchy.

Summary updated

BibTeX
@misc{nauata2017hierarchical,
  author = {Nelson Nauata and Jonathan Smith and Greg Mori},
  title = {{Hierarchical Label Inference for Video Classification}},
  year = {2017},
  eprint = {1706.05028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.05028},
}
Figure