VideoMix: Rethinking Data Augmentation for Video Classification

Sangdoo Yun, Seong Joon Oh, Byeongho Heo, Dongyoon Han, Jinhyung KimarXiv 2020

Abstract

State-of-the-art video action classifiers often suffer from overfitting, tending to be biased towards specific objects and scene cues rather than foreground action content. While data augmentation has addressed similar issues in static image classifiers, it has rarely been studied for videos. We systematically analyze various augmentation strategies and propose VideoMix, a powerful strategy that creates new training videos by inserting a video cuboid from one source into another. By mixing ground truth labels proportionally to the number of voxels, VideoMix encourages models to learn robust cues beyond scene biases. Our method consistently outperforms baselines on Kinetics and Something-Something-V2, and improves performance in weakly-supervised action localization (THUMOS'14) and spatio-temporal detection (AVA).

Introduction: The Challenge of Scene Bias

Modern video action classifiers, typically based on 3D CNNs, are prone to scene bias. Instead of identifying the motion of a "slam dunk," a model might simply recognize a basketball court and predict the action based on the environment. While techniques like CutMix have revolutionized 2D image classification by forcing models to recognize objects from partial views, extending these strategies to the temporal dimension without destroying motion cues is non-trivial. VideoMix addresses this gap by providing a systematic way to apply region-mixing to video data.

The VideoMix Method

VideoMix generalizes the CutMix algorithm for the 3D video domain. The process involves taking two training videos (A and B), defining a 3D binary mask (a cuboid), and replacing the pixels in Video A with those from Video B within that mask. The resulting label is a weighted average of the two original labels, proportional to the volume (voxels) each video contributes to the new sample.

Variants of VideoMix: Spatial (S), Temporal (T), and Spatio-temporal (ST).

Researchers explored three primary variants:

  • Spatial VideoMix (S-VideoMix): The cuboid spans the entire duration but only a partial spatial area.
  • Temporal VideoMix (T-VideoMix): The cuboid covers the full spatial frame but only a segment of time.
  • Spatio-temporal VideoMix (ST-VideoMix): A random 3D box in both space and time.

Empirical results showed that Spatial VideoMix is the most effective. By preserving temporal continuity throughout the clip, the model maintains the semantic flow necessary to understand the action, whereas cutting across time can disrupt the motion sequence.

Empirical Evaluation

VideoMix was evaluated across several diverse benchmarks to demonstrate its versatility:

  • Kinetics-400 & Mini-Kinetics: Standard large-scale benchmarks for general action recognition.
  • Something-Something-V2: A dataset focused on fine-grained human-object interactions where motion is critical.
  • THUMOS’14 & AVA: Used to test weakly-supervised localization and spatio-temporal detection, respectively.

VideoMix consistently outperformed "vanilla" training and other augmentation baselines like Mixup or Cutout. Notably, it improved Top-1 accuracy on Kinetics-400 by up to +1.3% and Mini-Kinetics by +2.4%. It also improved mean Average Precision (mAP) in localization tasks by +1.5% and detection tasks by +1.7%, indicating that the learned features are more robust and transferable.

Analysis: Beyond Background Cues

A key insight of VideoMix is its ability to break scene bias. Using Class Activation Maps (CAM), the authors demonstrated that baseline models often focus on static background elements. In contrast, VideoMix-trained models learn to attend to multiple discriminative regions simultaneously, such as both the hands and the instrument in a "playing harmonica" clip.

Visualizing VideoMix samples and Class Activation Maps (CAM) showing improved focus on action regions compared to baselines.

Furthermore, the study revealed that temporal continuity is king. Applying different masks to every frame ("Per-frame VideoMix") destroys motion consistency and hurts performance. S-VideoMix succeeds because it preserves the "story" of the action within the cropped region while providing a powerful regularization effect without additional computational overhead.

Conclusion

VideoMix is a simple, parameter-free upgrade for existing 3D CNN architectures. While it is highly effective, future work may explore more "semantic" ways to select cuboids rather than random sampling to further enhance the model's focus on foreground actions. Currently, mixing two source videos remains the optimal balance for performance and complexity.

Summary updated

BibTeX
@misc{yun2020videomix,
  author = {Sangdoo Yun and Seong Joon Oh and Byeongho Heo and Dongyoon Han and Jinhyung Kim},
  title = {{VideoMix: Rethinking Data Augmentation for Video Classification}},
  year = {2020},
  eprint = {2012.03457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.03457},
}
Figure