Semantically Guided Action Anticipation

Anxhelo Diko, Antonino Furnari, Luigi Cinque, Giovanni Maria Farinella · DOI

Abstract

Unsupervised domain adaptation remains a critical challenge in enabling the knowledge transfer of models across unseen domains. Existing methods struggle to balance the need for domain-invariant representations with preserving domain-specific features, which is often due to alignment approaches that impose the projection of samples with similar semantics close in the latent space despite their drastic domain differences. We introduce a novel approach that shifts the focus from aligning representations in absolute coordinates to aligning the relative positioning of equivalent concepts in latent spaces. Our method defines a domain-agnostic structure upon the semantic/geometric relationships between class labels in language space and guides adaptation, ensuring that the organization of samples in visual space reflects reference inter-class relationships while preserving domain-specific characteristics. We empirically demonstrate our method's superiority in domain adaptation tasks across four diverse image and video datasets. Remarkably, we surpass previous works in 18 different adaptation scenarios across four diverse image and video datasets with average accuracy improvements of +3.32% on DomainNet, +5.75% in GeoPlaces, +4.77% on GeoImnet, and +1.94% mean class accuracy improvement on EgoExo4D.

Introduction: The Pitfalls of Absolute Alignment

In computer vision, models trained on one domain (e.g., real-world photos) often suffer from significant performance drops when applied to another (e.g., sketches or clipart), a phenomenon known as domain shift. Unsupervised Domain Adaptation (UDA) seeks to mitigate this by transferring knowledge from a labeled source domain to an unlabeled target domain.

Traditional UDA methods typically rely on "absolute alignment," which forces feature vectors of the same class from different domains to overlap in the same coordinate space. However, this approach can be counterproductive, as it often washes out domain-specific nuances—such as textures in real images or edges in sketches—leading to generic and less discriminative representations. LAGUNA addresses this by moving away from forcing source and target representations to overlap in absolute coordinates.

Comparison between traditional absolute alignment and LAGUNA's relative alignment.

Methodology: Relative Alignment via Language Guidance

LAGUNA (LAnguage Guided UNsupervised Adaptation) proposes a paradigm shift: aligning domains relatively based on language-derived geometric relationships. The process unfolds in three distinct stages:

  1. Reference Structure Definition: Using a pre-trained SentenceTransformer, the model embeds class labels (e.g., "Chair," "TV") into a language space. The cosine similarities between these embeddings form a domain-agnostic "geometric map" of conceptual relationships.
  2. Language Supervisor Training: A BERT-based model is trained to map image captions to this reference structure, enabling the generation of high-quality pseudo-labels for the target domain.
  3. Cross-Domain Visual Classifier: This stage aligns relative encodings rather than raw features. The model maintains separate "anchors" (class prototypes) for each domain and ensures that the relationship between a sample and its anchors mirrors the reference language structure.

Architecture of the Visual Classifier

The core innovation lies in the Cross-Domain Visual Classifier. It utilizes a novel attention layer to ground target features using source anchors, bridging the gap between domains while a residual connection preserves domain-specific "peculiarities."

The Stage 3 architecture of LAGUNA, showing the cross-domain attention and relative similarity alignment.

To prevent the learnable anchors from collapsing into a single point, the authors employ Volume Regularization based on the determinant of the Gram matrix, ensuring the anchors occupy a meaningful volume in the latent space.

Experimental Evaluation and Results

LAGUNA was evaluated across 18 adaptation scenarios using four diverse benchmarks: DomainNet, GeoPlaces, GeoImnet, and the EgoExo4D video dataset. It consistently outperformed state-of-the-art (SOTA) methods:

  • DomainNet: Achieved an average accuracy improvement of +3.32% using Swin-B backbones.
  • Geographic Adaptation: Saw gains of up to +5.75% on GeoPlaces and +4.77% on GeoImnet.
  • Video (EgoExo4D): Improved mean class accuracy by +1.94%, significantly narrowing the gap with the fully supervised "Oracle" model.

Notably, LAGUNA outperformed massive 7B-parameter multi-modal models like LLaVA-Next by over 11% on fine-grained tasks, demonstrating that task-specific adaptation is more effective than raw scale for specialized domains.

Discussion and Conclusion

The success of LAGUNA highlights that semantic consistency does not require coordinate overlap. By using language as a universal ruler, the model preserves domain-specific features that are often vital for accurate classification. While the method relies on the availability of captions, it remains robust even with low-quality or sparse textual data.

In conclusion, LAGUNA introduces a robust framework for UDA that prioritizes relative topological alignment over absolute coordinate projection. By leveraging the domain-agnostic nature of language, it achieves superior performance across diverse benchmarks while maintaining the integrity of domain-specific features.

Summary updated

BibTeX
@misc{diko2024semantically,
  author = {Anxhelo Diko and Antonino Furnari and Luigi Cinque and Giovanni Maria Farinella},
  title = {{Semantically Guided Action Anticipation}},
  year = {2024},
  eprint = {2411.15557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15557},
}
Figure