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 (APN), 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 (RADA) that can bridge different video domains by improving the diversity and quality of augmented data. VideoDG consistently outperforms the combinations of previous video classification models and existing domain generalization methods on all benchmarks.
Introduction: The Challenge of Temporal Domain Shift
Most video recognition models assume that training and test data come from the same distribution. However, when these models encounter a "domain shift"—such as a change in camera angle, background, or the specific way an actor performs a movement—their performance often plummets. While Image Domain Generalization is well-studied, videos introduce a unique challenge: temporal domain shift.
For example, in a "playing basketball" category, a source domain video might show a sequence of dribble → layup, while a target domain shows run → shoot. Existing models often overfit to the specific global sequence of the source domain. A fundamental dilemma exists: local, short-term temporal relations are more generalizable across domains but less useful for distinguishing between similar categories (low discriminability), whereas global relations are highly discriminative but fail to generalize to new domains.
Using the $\mathcal{A}$-distance (a measure of how different two distributions are), we demonstrate that local features have a significantly lower domain gap than global ones. This insight serves as the foundation for our approach: using local features as a bridge for generalization while maintaining global context for discriminability.
The VideoDG Framework
To address the temporal domain shift, we propose VideoDG, which consists of two main components: the Adversarial Pyramid Network and Robust Adversarial Domain Augmentation.
Adversarial Pyramid Network (APN)
Instead of a flat feature extractor, APN uses a three-level hierarchy to capture features progressively:
- Level I (Local-Relation Attention): Captures short-term relations from consecutive frames. These serve as the "building blocks" of actions and are highly generalizable.
- Level II (Cross-Relation Attention): Uses an attention mechanism to align these local features with a global representation ($R_{Global}$), ensuring the local snippets remain relevant to the overall action.
- Level III (Cross-Relation Sum): Aggregates the multi-level information into a final discriminative representation for classification.
Robust Adversarial Domain Augmentation (RADA)
To make the model robust to unseen variations, RADA generates adversarial video examples on-the-fly. It perturbs the source data to create "hard" examples that mimic potential target domains. By generating perturbations at multiple levels of the pyramid, RADA creates more realistic and effective synthetic domain shifts than standard image-based pixel perturbations. Crucially, it includes a robustness regularization term that prevents the model from becoming confused by these diverse augmented samples, ensuring it stays focused on the correct class labels.
Additionally, we introduce a One-class SVM source validation protocol. Since we cannot access the target domain to tune hyperparameters, we use an SVM to identify "outlier" samples within the source domain to simulate a domain shift for validation purposes.
Experimental Evaluation
We evaluated VideoDG on three distinct benchmarks designed to test different types of domain shift:
- UCF-HMDB: Cross-dataset generalization (different lighting, backgrounds, and video quality).
- Multi-view NTU: Cross-view generalization (training on side views, testing on front views).
- Something-Something: Cross-consequence generalization (e.g., training on "tearing something" and testing on "pretending to tear something").
VideoDG consistently outperformed state-of-the-art video models (like I3D, TSM, and TRN) combined with standard domain generalization techniques. On UCF $\to$ HMDB, it achieved 59.1% accuracy, a significant jump over the 54.0% of the strongest baseline (NL-I3D). On the hardest NTU split (Left/Right $\to$ Center), VideoDG reached 76.1%, outperforming existing multi-source DG methods by over 5%.
Conclusion
VideoDG effectively balances the trade-off between generalizability and discriminability in video action recognition. By prioritizing local temporal relations through the Adversarial Pyramid Network and diversifying training via RADA, we can bridge the gap between disparate video domains. While computational overhead during training remains a factor, the significant gains in zero-shot target domain performance mark a substantial step forward for robust video understanding.
Summary updated