Exploiting Temporal Coherence for Multi-modal Video Categorization

Palash Goyal, Saurabh Sahu, Shalini Ghosh, Chul LeearXiv 2020

Introduction

Video categorization is a fundamental task for content recommendation and scene understanding. However, videos are complex, multi-modal (audio, visual, text), and high-dimensional. While modern deep learning models like Recurrent Neural Networks (RNNs) and Transformers capture sequences well, they often overlook a fundamental property of video: temporal smoothness. In a typical video segment, semantic content changes gradually; if a guitar is present in one frame, it is highly likely to be in the next. Standard models often produce "jittery" internal representations or attention weights that ignore this local consistency, hindering performance on fine-grained categories.

The Temporal Coherence (TC) Layer

To address this, researchers from Samsung Research America proposed a regularization technique called Temporal Coherence (TC). The objective is to ensure that a model’s internal state—whether its attention weights or its final predictions—remains consistent within a small neighborhood of frames.

The implementation is elegantly simple: temporal coherence is enforced using a 1D convolutional layer followed by average pooling. This simple addition acts as a powerful, efficient regularizer without requiring complex new loss functions.

Conceptual illustration of temporal coherence in attention variables.

Multi-modal Architectures

The TC layer was integrated into three distinct architectures to evaluate its versatility:

  1. TC-RNN: The 1D convolution is applied to the attention variables, forcing the model to focus on contiguous video segments rather than isolated, potentially noisy frames.
  2. TC-NetV (NetVLAD): NetVLAD is typically a "bag-of-features" approach that ignores temporal order. By applying the TC layer to the prediction vectors, the researchers injected a "sense of time" into the model.
  3. TC-TM (Transformer): Similar to the RNN approach, the convolution is applied to the multi-headed attention mechanism to ensure temporal smoothness.

To maximize performance, these models were combined into an ensemble, TC-Ens, which leverages the strengths of each architecture while maintaining temporal consistency across the board.

The TC-Ensemble architecture, integrating TC-RNN, TC-TM, and TC-NetV models.

Experimental Results

The models were evaluated on the YouTube-8M dataset, which contains 5 million videos and 3,800 labels. The researchers also introduced a hierarchical taxonomy of 640 nodes to better assess fine-grained classification.

Key findings include:

  • Performance Gains: The TC-Ensemble achieved a Global Average Precision (GAP) of 92.1%, outperforming baseline ensembles.
  • NetVLAD Improvement: NetVLAD benefited most, seeing a 1.4% increase in GAP and a 1.9% increase in Mean Average Precision (MAP), confirming that temporal awareness is a significant missing piece for bag-of-features models.
  • Efficiency: The TC layer is highly practical, only increasing training time by 2 to 8 minutes per epoch on a massive dataset.
  • Robustness: Qualitative analysis showed that TC-Ens is more robust to transient noise and better at identifying specific activities (e.g., distinguishing "Swimming" from generic "Music") by relying on the coherence of surrounding frames.

Conclusion

Enforcing temporal coherence via a simple 1D convolutional layer is a highly effective method for improving video categorization. By smoothing internal representations, models become more robust to noise and more accurate at fine-grained classification. Future work may involve integrating scene boundary detection to handle abrupt transitions and developing hierarchical loss functions to further refine classification accuracy.

Summary updated

BibTeX
@misc{goyal2020exploiting,
  author = {Palash Goyal and Saurabh Sahu and Shalini Ghosh and Chul Lee},
  title = {{Exploiting Temporal Coherence for Multi-modal Video Categorization}},
  year = {2020},
  eprint = {2002.03844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03844},
}
Figure