Don't Judge by the Look: Towards Motion Coherent Video Representation

Yitian Zhang, Yue Bai, Huan Wang, Yizhou Wang, Yun Fu

Abstract

Current training pipelines in object recognition neglect Hue Jittering when doing data augmentation as it not only brings appearance changes that are detrimental to classification, but also the implementation is inefficient in practice. In this study, we investigate the effect of hue variance in the context of video understanding and find this variance to be beneficial since static appearances are less important in videos that contain motion information. Based on this observation, we propose a data augmentation method for video understanding, named Motion Coherent Augmentation (MCA), that introduces appearance variation in videos and implicitly encourages the model to prioritize motion patterns, rather than static appearances. Concretely, we propose an operation SwapMix to efficiently modify the appearance of video samples, and introduce Variation Alignment (VA) to resolve the distribution shift caused by SwapMix, enforcing the model to learn appearance invariant representations. Comprehensive empirical evaluation across various architectures and different datasets solidly validates the effectiveness and generalization ability of MCA, and the application of VA in other augmentation methods.

Introduction

In computer vision, data augmentation techniques like "Hue Jittering" (randomly shifting colors) are typically avoided in static object recognition. Changing a polar bear's color to purple makes it "unrealistic," potentially confusing classifiers that rely heavily on appearance cues. Furthermore, standard hue manipulation requires computationally expensive conversions between RGB and HSV color spaces.

However, video understanding presents a different paradigm. To recognize an action such as "catching a ball," the specific color of the ball or the actor's clothing is irrelevant; the critical information lies in the motion. Current video models often overfit by relying on static background cues or object colors—effectively "cheating" rather than learning the actual movement. This research explores how intentionally introducing appearance variance can force models to prioritize motion patterns, leading to more robust representations.

Comparison of Hue Jittering effects on object recognition versus video recognition. While it degrades static image classification (left), it improves video action recognition (right) by emphasizing motion over appearance.

Methods: Motion Coherent Augmentation (MCA)

The authors propose Motion Coherent Augmentation (MCA), a framework designed to break the model's reliance on static appearance through two key components:

SwapMix

To simulate hue changes efficiently without the overhead of RGB-to-HSV conversion, the authors introduce SwapMix. This operation randomly permutes the color channels (e.g., swapping Red for Green) and applies linear interpolation between the original and swapped versions using a coefficient $\lambda$. This creates a continuous spectrum of "unrealistic" appearances entirely within the RGB space, making it significantly faster and more GPU-friendly than traditional methods.

Example of video frames after Motion Coherent Augmentation (MCA), showing the 'unrealistic' appearance that forces the model to focus on temporal dynamics.

Variation Alignment (VA)

Training on highly augmented, "unrealistic" videos can lead to a distribution shift, where the model struggles with standard-looking inputs. Variation Alignment (VA) addresses this by feeding both the original and the augmented video into the network simultaneously. The model is then trained with a consistency loss, enforcing that the representation of a "green-skinned" person performing an action matches that of the "normal-looking" person. This encourages the learning of appearance-invariant features.

Experimental Evaluation

The effectiveness of MCA was evaluated across several major video benchmarks, including Something-Something V1 & V2 (high temporal dependency), UCF101, HMDB51, Kinetics400, and ActivityNet. Additionally, CIFAR10 was used to contrast the negative impact of hue jittering on static object recognition with its positive impact on video tasks.

Key Results and Insights

  • Performance Gains: On the motion-centric Something-Something V1 dataset, MCA improved Top-1 accuracy for the TSM model by 1.94% and the UniFormer model by 2.03%. On smaller datasets like HMDB51, it provided a 3.00% boost, effectively mitigating overfitting.
  • Appearance as a Distractor: The results confirm that static appearance often acts as a shortcut. By corrupting these cues via SwapMix, the model is forced to extract motion-invariant features.
  • Improved Calibration: Models trained with MCA exhibited lower Expected Calibration Error (ECE), meaning their confidence scores more accurately reflect their actual performance, reducing overconfident errors.
  • Architecture Agnostic: MCA proved effective across various backbones, including 2D CNNs (TSM), 3D CNNs (SlowFast), and Transformers (UniFormer).
  • Efficiency: SwapMix demonstrated superior processing speeds compared to standard library implementations of Hue Jittering on both CPU and GPU.

Conclusion

This study demonstrates that "unrealistic" appearance augmentation is a powerful tool for video representation learning. By forcing models to ignore static appearance shortcuts, MCA promotes the learning of true motion patterns. While the current implementation of Variation Alignment increases memory overhead and training time due to processing video pairs, the resulting models are more accurate, better calibrated, and more robust. Future work will focus on optimizing training efficiency and extending this "motion-first" approach to other temporal tasks like tracking and prediction.

Summary updated

BibTeX
@inproceedings{zhang2024don,
  author = {Yitian Zhang and Yue Bai and Huan Wang and Yizhou Wang and Yun Fu},
  title = {{Don't Judge by the Look: Towards Motion Coherent Video Representation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=RIcYTbpO38},
}
Figure