Improve Video Representation with Temporal Adversarial Augmentation

Jinhao Duan, Quanfu Fan, Hao Cheng, Xiaoshuang Shi, Kaidi Xu

Introduction

Deep learning models for video understanding often suffer from a phenomenon termed "tunnel vision." Despite being provided with a full video clip, these models frequently overfit by focusing on a narrow subset of highly discriminative frames while ignoring the broader temporal context. This leads to a significant performance gap between training and validation—often as high as 40% on datasets like Something-Something—where temporal order and long-term context are paramount.

The TAF Framework

To address this, the authors propose Temporal Adversarial Augmentation (TA) and a corresponding training recipe called Temporal Video Adversarial Fine-tuning (TAF). The core idea is to use adversarial noise not to fool the classifier, but to redirect the model's attention. By identifying "easy" frames via Class Activation Mapping (CAM) and applying perturbations that maximize attention on previously ignored frames, the model is forced to learn a more distributed and robust representation of the action.

The TAF training framework utilizes a dual-path architecture with shared weights and auxiliary batch normalization to integrate adversarial noise as a regularization tool.

The TAF framework employs a dual-path approach during training, as illustrated in the figure above. A "Clean Path" processes natural video frames to establish baseline predictions and CAM maps. Simultaneously, an "Adversarial Path" processes frames augmented with TA noise. To manage the differing data distributions between clean and adversarial inputs, the researchers utilize Auxiliary Batch Normalization. This technique maintains separate statistics for each path during training but is discarded during inference, ensuring no additional computational cost for the final model.

Visualizing Temporal Attention

The impact of TAF is most visible when examining the model's attention maps. Baseline models often fail on complex actions that involve a "holding" or "stationary" phase following a motion. For instance, in the action "lifting up one end of something without letting it drop down," a baseline model might only attend to the initial lifting frames, failing to recognize the subsequent "not dropping" state.

Comparison of baseline and TAF attention. TAF forces the model to distribute its attention across the entire sequence, capturing the "holding" phase that baseline models ignore.

As shown in the comparison above, TAF successfully shifts the model's focus. While the baseline model's attention (CAM) is concentrated on the early frames of the lift, the TAF-enhanced model maintains high activation throughout the clip, correctly identifying both the "lifting" and the "holding" components of the long-term motion.

Experimental Results and Robustness

The effectiveness of TAF was validated across several state-of-the-art architectures, including TSM, GST, TAM, and TPN, on datasets like Something-Something V1 & V2 and Diving48. TAF consistently improved Top-1 accuracy; for example, it provided a 1.3% boost to TSM on Something-Something V1.

The most dramatic improvements were observed in "long-term motions." For the specific action "Pretending to pour something," TAF outperformed the baseline by a remarkable 25.8%. Beyond raw accuracy, TAF-trained models demonstrated superior robustness to natural corruptions such as Gaussian noise, motion blur, and adverse weather conditions, outperforming standard models by 1.5–3% in out-of-distribution scenarios.

Conclusion

Temporal Adversarial Augmentation offers a powerful, "inference-free" method for improving video representation. By treating adversarial noise as a sophisticated form of data augmentation that targets temporal attention, TAF mitigates the "tunnel vision" problem and encourages models to capture the full temporal evolution of actions. While training costs are slightly higher (roughly 15-25%) due to the generation of adversarial examples, the gains in accuracy, long-term motion modeling, and robustness make it a compelling strategy for modern video recognition tasks.

Summary updated

BibTeX
@inproceedings{duan2023improve,
  author = {Jinhao Duan and Quanfu Fan and Hao Cheng and Xiaoshuang Shi and Kaidi Xu},
  title = {{Improve Video Representation with Temporal Adversarial Augmentation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/79},
}
Figure