VideoDG: Generalizing Temporal Relations in Videos to Novel Domains

Zhiyu Yao, Yunbo Wang, Jianmin Wang, Philip S. Yu, Mingsheng Long · DOI

Abstract

Action recognition models often struggle when deployed in real-world environments that differ from their training data. This paper introduces the problem of video domain generalization, where models must handle target domains with divergent distributions without prior exposure. We observe that global temporal features are less generalizable due to temporal domain shifts—misalignments or absences of expected temporal relations in unseen domains. To address this, we propose the VideoDG framework, which balances discriminative global features with highly generalizable local-relation features across different timescales. Our approach features the Adversarial Pyramid Network (APN) for progressive feature capture and Robust Adversarial Domain Augmentation (RADA) to bridge domain gaps. Evaluated across three diverse benchmarks, VideoDG consistently outperforms existing video classification and domain generalization methods.

The Challenge of Temporal Domain Shift

Standard video classification networks typically assume that training and testing data are independent and identically distributed (i.i.d.). However, a model trained on high-quality studio clips (e.g., UCF101) often fails when tested on real-world datasets like HMDB51 due to differences in lighting, background, and action execution. This is known as the domain shift problem.

In the context of video, the authors identify a unique "temporal domain shift." They discover a fundamental trade-off:

  1. Local temporal relations (short-term snippets, like the motion of a limb) are highly generalizable across domains but lack the context needed to distinguish complex actions.
  2. Global temporal relations (the full sequence of an action) provide high discriminative power but are brittle; the exact sequence of sub-events often changes between domains (e.g., the transition from "dribbling" to "shooting" in basketball might look different across camera views).
Motivation for VideoDG: Local temporal relations exhibit lower A-distance (domain gap) than global ones.

Using the A-distance metric—a proxy for measuring the divergence between two distributions—the researchers empirically confirmed that local features have a significantly smaller domain gap than global ones. This insight serves as the foundation for the VideoDG architecture.

The VideoDG Framework

To exploit the stability of local features while maintaining the accuracy of global ones, VideoDG introduces two primary technical contributions.

1. Adversarial Pyramid Network (APN)

The APN is a hierarchical architecture that processes video features through three distinct levels of attention:

  • Level I (Local-relation): Focuses on short, consecutive frame segments to extract fundamental motion building blocks.
  • Level II (Cross-relation): Aligns these local building blocks with the broader global context, ensuring that local features remain relevant to the overall action category.
  • Level III (Global-relation): Aggregates the multi-scale information into a final representation for classification.

2. Robust Adversarial Domain Augmentation (RADA)

Traditional data augmentation (e.g., cropping, flipping) often fails to account for complex temporal shifts. RADA addresses this by generating "hard" adversarial examples during the training process. By perturbing features at different levels of the pyramid, RADA creates a diverse set of synthetic "target domains."

The Adversarial Pyramid Network (APN) architecture and Robust Adversarial Domain Augmentation (RADA) process.

Crucially, RADA includes a robustness regularization term. This ensures that the model's predictions remain consistent even when faced with these difficult adversarial perturbations, effectively "bridging" the gap between the source and potential unseen domains.

Experimental Validation

The authors established three benchmarks to test different facets of domain generalization:

  • Cross-Dataset (UCF ↔ HMDB): Tests general robustness across different data collection sources.
  • Cross-View (Multi-view NTU): Evaluates performance when training on one camera angle and testing on others.
  • Cross-Consequence (Something-Something): Splits domains by the intent or outcome of an action (e.g., "tearing" vs. "pretending to tear").

VideoDG demonstrated superior performance across all tasks. For instance, on the UCF → HMDB benchmark, it achieved an accuracy of 59.1%, significantly outperforming standard backbones like TRN (52.4%) and other state-of-the-art domain generalization methods. The A-distance analysis further confirmed that the features learned by VideoDG are more domain-invariant than those of traditional models.

Conclusion

VideoDG addresses the critical "temporal dilemma" in video action recognition. By prioritizing generalizable local relations and reinforcing them with robust adversarial augmentation, the framework provides a path toward models that can truly operate "in the wild." While the adversarial training process adds some computational overhead, the gains in cross-domain reliability represent a significant step forward for robust video understanding.

Summary updated

Abstract

This paper introduces video domain generalization where most video classification networks degenerate due to the lack of exposure to the target domains of divergent distributions. We observe that the global temporal features are less generalizable, due to the temporal domain shift that videos from other unseen domains may have an unexpected absence or misalignment of the temporal relations. This finding has motivated us to solve video domain generalization by effectively learning the local-relation features of different timescales that are more generalizable, and exploiting them along with the global-relation features to maintain the discriminability. This paper presents the VideoDG framework with two technical contributions. The first is a new deep architecture named the Adversarial Pyramid Network, which improves the generalizability of video features by capturing the local-relation, global-relation, and cross-relation features progressively. On the basis of pyramid features, the second contribution is a new and robust approach of adversarial data augmentation that can bridge different video domains by improving the diversity and quality of augmented data. We construct three video domain generalization benchmarks in which domains are divided according to different datasets, different consequences of actions, or different camera views, respectively. VideoDG consistently outperforms the combinations of previous video classification models and existing domain generalization methods on all benchmarks.
BibTeX
@article{yao2022videodg,
  author = {Zhiyu Yao and Yunbo Wang and Jianmin Wang and Philip S. Yu and Mingsheng Long},
  title = {{VideoDG: Generalizing Temporal Relations in Videos to Novel Domains}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  url = {https://openreview.net/forum?id=xGOfXGzNh0},
}
Figure