Fine-grained Video Classification and Captioning

Farzaneh Mahdisoltani, Guillaume Berger, Waseem Gharbieh, David J. Fleet, Roland MemisevicarXiv 2018

Abstract We describe a DNN for video classification and captioning, trained end-to-end, with shared features, to solve tasks at different levels of granularity. We explore the link between granularity in a source task and the quality of learned features for transfer learning. For solving the new task domain in transfer learning, we freeze the trained encoder and fine-tune a neural net on the target domain. We train on the Something-Something dataset with over 220,000 videos, and multiple levels of target granularity, including 50 action groups, 174 fine-grained action categories, and captions. Classification and captioning with Something-Something are challenging because of the subtle differences between actions, applied to thousands of different object classes, and the diversity of captions penned by crowd actors. Our model performs better than existing classification baselines for Something-Something, with impressive fine-grained results. And it yields a strong baseline on the new Something-Something captioning task. Experiments reveal that training with more fine-grained tasks tends to produce better features for transfer learning.

Introduction

In the field of computer vision, coarse recognition—such as distinguishing between cooking and playing sports—has reached high levels of maturity. However, fine-grained discrimination remains a significant challenge. Distinguishing between "putting a pen beside a cup" and "pretending to put a pen in a cup" requires a model to understand subtle interactions and temporal dynamics rather than relying on static background cues.

This research investigates whether the "granularity" of a source task—the level of detail required by its labels—correlates with the quality of features learned for transfer learning. By training models on highly descriptive tasks like video captioning, the authors aim to produce richer representations that transfer more effectively to specialized domains.

Methodology: The Space-Time Encoder

The authors propose a unified Encoder-Decoder architecture designed to capture the complex temporal and spatial relationships inherent in video data.

The unified architecture featuring a Space-Time video Encoder, Action Classifier, and Caption Decoder.

Encoder Architecture

The encoder employs a dual-channel approach to process visual information:

  1. 2D-CNN Channel: Captures spatial and object-level information from individual frames.
  2. 3D-CNN Channel: Captures spatiotemporal motion, serving as a more efficient alternative to pre-computing optical flow.
Detailed breakdown of the dual-channel Convolutional and Recurrent layers.

Features from these channels are fused and processed by a two-layer bidirectional LSTM, resulting in a fixed-length "video encoding." This encoding is then shared by two distinct decoders: an Action Classifier (a fully-connected layer) and a Caption Decoder (an LSTM that generates text sequentially). The model is trained using a joint loss function, forcing the encoder to create representations descriptive enough to satisfy both classification and linguistic description.

Datasets and Evaluation

The model was primarily trained on Something-Something (V1 & V2), a massive dataset of human-object interactions. Unlike datasets that allow models to "cheat" by identifying backgrounds (e.g., a kitchen for cooking), Something-Something uses action templates (e.g., "Dropping [something] onto [something]") that necessitate a true understanding of motion and interaction.

To test transfer learning, the authors introduced 20bn-kitchenware, a small-scale dataset containing 390 videos of 13 kitchen-specific actions. This served as a target domain to evaluate how well features learned from different levels of granularity on Something-Something could adapt to a new, specialized context.

Key Insights and Results

The Granularity Spectrum

The research identifies a clear hierarchy in feature quality based on task granularity. Features learned from Action Groups (Coarse) were less effective than those from Action Categories (Fine), which were in turn surpassed by features learned from Captions (Richest). This suggests that the more a model is forced to describe, the more it learns about the underlying physical world.

Performance Metrics

  • Classification: The dual-channel architecture achieved 38.8% accuracy on Something-Something-V1, outperforming original baselines.
  • Transfer Learning: In 10-shot transfer learning tests on the kitchenware dataset, models pre-trained on fine-grained captions significantly outperformed those pre-trained on ImageNet or Kinetics.
  • Joint Training Benefit: Models trained simultaneously on classification and captioning outperformed those trained on either task in isolation, indicating a beneficial regularizing effect.

Conclusion

By treating video captioning not just as an end goal but as a source task for feature learning, this work demonstrates that task granularity is a powerful lever for improving video understanding. While challenges remain—such as the high variance in crowd-sourced captions making exact-match evaluation difficult—the results suggest that forcing models to engage with the physical and temporal nuances of a scene leads to more robust and transferable visual representations.

Summary updated

BibTeX
@misc{mahdisoltani2018fine,
  author = {Farzaneh Mahdisoltani and Guillaume Berger and Waseem Gharbieh and David J. Fleet and Roland Memisevic},
  title = {{Fine-grained Video Classification and Captioning}},
  year = {2018},
  eprint = {1804.09235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.09235},
}
Figure