Video Test-Time Adaptation for Action Recognition

Wei Lin, Muhammad Jehanzeb Mirza, Mateusz Kozinski, Horst Possegger, Hilde Kuehne, Horst Bischof

Abstract

Action recognition models often suffer significant performance degradation when deployed in real-world environments with video corruptions such as motion blur or heavy compression. We present ViTTA (Video Test-Time Adaptation), a framework designed to adapt pre-trained models to noisy test data on-the-fly. By leveraging temporal dynamics and online feature distribution alignment, ViTTA achieves substantial accuracy gains even with a batch size of one, outperforming existing image-based adaptation methods across multiple benchmarks.

Introduction

Deep learning models for action recognition are typically trained on pristine datasets. However, real-world deployment introduces "distribution shifts" caused by lighting changes, weather conditions, or video compression artifacts (e.g., H.265). While Test-Time Adaptation (TTA) has shown promise for static images, applying it to video introduces three primary challenges: temporal dynamics, resource constraints (often requiring batch size 1), and sensitivity to frame-specific noise.

Overview of ViTTA adaptation process and its impact on classification accuracy under compression.

ViTTA is designed to bridge this gap, providing a spatio-temporal adaptation method that is architecture-agnostic, working effectively with both CNNs (e.g., TANet) and Transformers (e.g., Video Swin).

Methodology

ViTTA's effectiveness stems from three core technical pillars:

Online Feature Distribution Alignment

The framework tracks the means and variances of features during testing. Using an Exponential Moving Average (EMA), it estimates these statistics from even a single video. It then updates model parameters to align these test-time statistics with the "clean" statistics from the original training phase.

Temporal Augmentation and Consistency

ViTTA exploits the temporal nature of video by creating multiple "views" of the same sample through frame resampling at different intervals. The system enforces Prediction Consistency, requiring the model to produce identical classifications for all temporal views. Discrepancies between views trigger parameter updates to resolve contradictions.

Detailed architecture of ViTTA showing temporal augmentation and the feature distribution alignment process across network layers.

Unlike image-based TTA methods that often only update Batch Normalization layers, ViTTA updates the entire parameter vector, allowing for more robust handling of severe corruptions.

Experimental Setup

The authors evaluated ViTTA across three major benchmarks: UCF101, Something-Something v2 (SSv2), and Kinetics 400 (K400). To simulate real-world shifts, 12 types of corruptions (e.g., Gaussian noise, defocus blur, H.265 compression) were applied at maximum severity.

Key Results and Insights

ViTTA consistently outperformed "Source-Only" models and existing image-based TTA baselines like TENT and SHOT.

  • Significant Accuracy Gains: On UCF101 with the TANet architecture, ViTTA improved accuracy from 51.35% (Source-Only) to 78.20%.
  • Efficiency at Batch Size 1: While standard TTA methods require large batches for stable statistics, ViTTA's use of EMA allows it to outperform baselines even when they are given larger batches (e.g., batch size 8).
  • Fast Reactivity: In scenarios where corruptions switch dynamically, ViTTA demonstrates rapid recovery, quickly restoring performance as the data distribution changes.
  • Architecture Agnosticism: The method's success across both CNNs and Transformers suggests that distribution shifts affect internal feature manifolds in similar ways across different architectures.

Conclusion and Future Work

ViTTA provides a robust solution for real-world video action recognition. While it introduces some computational overhead due to full-parameter updates and multiple temporal views, it remains viable for many real-time applications. Future research may focus on optimizing these updates for edge devices and exploring more complex temporal augmentations for tasks like video segmentation.

Summary updated

BibTeX
@inproceedings{lin2022video,
  author = {Wei Lin and Muhammad Jehanzeb Mirza and Mateusz Kozinski and Horst Possegger and Hilde Kuehne and Horst Bischof},
  title = {{Video Test-Time Adaptation for Action Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=WTBHwM81yo},
}
Figure