Skip to main content
QUICK REVIEW

[Paper Review] Contrast and Mix: Temporal Contrastive Video Domain Adaptation with Background Mixing

Aadarsh Sahoo, Rutav Shah|arXiv (Cornell University)|Oct 28, 2021
Domain Adaptation and Few-Shot LearningComputer Science10 citations
TL;DR

This paper proposes CoMix, a temporal contrastive video domain adaptation framework that uses background mixing and pseudo-labeling to learn invariant, discriminative features across domains without adversarial training. By maximizing similarity between multi-speed views and introducing mixed-background videos as additional positives, CoMix achieves state-of-the-art performance on UCF-HMDB and Jester benchmarks, outperforming prior methods by up to 10.7% over source-only baselines.

ABSTRACT

Unsupervised domain adaptation which aims to adapt models trained on a labeled source domain to a completely unlabeled target domain has attracted much attention in recent years. While many domain adaptation techniques have been proposed for images, the problem of unsupervised domain adaptation in videos remains largely underexplored. In this paper, we introduce Contrast and Mix (CoMix), a new contrastive learning framework that aims to learn discriminative invariant feature representations for unsupervised video domain adaptation. First, unlike existing methods that rely on adversarial learning for feature alignment, we utilize temporal contrastive learning to bridge the domain gap by maximizing the similarity between encoded representations of an unlabeled video at two different speeds as well as minimizing the similarity between different videos played at different speeds. Second, we propose a novel extension to the temporal contrastive loss by using background mixing that allows additional positives per anchor, thus adapting contrastive learning to leverage action semantics shared across both domains. Moreover, we also integrate a supervised contrastive learning objective using target pseudo-labels to enhance discriminability of the latent space for video domain adaptation. Extensive experiments on several benchmark datasets demonstrate the superiority of our proposed approach over state-of-the-art methods. Project page: https://cvir.github.io/projects/comix

Motivation & Objective

  • To address the lack of effective unsupervised domain adaptation methods for video action recognition, particularly those that leverage temporal dynamics and shared action semantics.
  • To overcome limitations of adversarial learning in video domain adaptation, such as training instability and poor convergence.
  • To improve feature alignment across domains by exploiting invariant action semantics, especially when backgrounds differ but actions remain the same.
  • To enhance discriminative power in the latent space using pseudo-labels from the target domain, enabling self-supervised contrastive learning without ground-truth labels.

Proposed method

  • The method represents videos as graphs using a Graph Convolutional Network (GCN) to capture temporal dependencies.
  • It employs temporal contrastive learning (TCL) to maximize similarity between different speed versions of the same video and minimize similarity between different videos at different speeds.
  • Background mixing is introduced to create synthetic videos by swapping backgrounds between source and target domains, generating additional positive samples for contrastive learning.
  • Pseudo-labels from the target domain are used in a supervised contrastive learning objective to push features of the same action class closer in the embedding space.
  • The framework unifies temporal contrastive loss, background mixing loss, and pseudo-label contrastive loss into a single end-to-end training objective.
  • Background extraction uses temporal median filtering, which is shown to outperform more complex methods like Gaussian Mixture Models.

Experimental results

Research questions

  • RQ1Can temporal contrastive learning effectively align features across video domains without adversarial training?
  • RQ2How can background mixing be used to generate meaningful positive samples that reflect shared action semantics across domains?
  • RQ3To what extent does incorporating target pseudo-labels improve discriminative feature learning in unsupervised video domain adaptation?
  • RQ4Does the use of graph representations enhance temporal feature learning compared to standard RNNs or MLPs in domain adaptation?
  • RQ5How does the proposed method compare to adversarial and feature-matching approaches in terms of accuracy and robustness?

Key findings

  • CoMix improves the source-only baseline by 5.2% on UCF-HMDB and 10.7% on Jester, demonstrating strong domain adaptation gains.
  • CoMix outperforms DANN by 7.1% on UCF-HMDB and 1.8% on Jester when both use GCN, showing superiority over adversarial training.
  • The use of GCN for graph representation yields 90.3% accuracy on UCF-HMDB, outperforming MLP (88.1%) and LSTM (84.3%), proving its effectiveness in capturing temporal dependencies.
  • Background extraction via temporal median filtering outperforms GMM by 2.3% on average, indicating its efficiency and effectiveness.
  • Feature visualization using t-SNE confirms that domain alignment and class discriminability improve progressively with each component: TCL, BGM, and TPL.
  • The ablation study shows that combining all components (TCL, BGM, TPL) yields the best performance, validating the complementary role of each module.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.