LAGUNA: LAnguage Guided UNsupervised Adaptation with structured spaces

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

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 LAGUNA - LAnguage Guided UNsupervised Adaptation with structured spaces, a novel approach that shifts the focus from aligning representations in absolute coordinates to aligning the relative positioning of equivalent concepts in latent spaces. LAGUNA 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 LAGUNA's superiority in domain adaptation tasks across four diverse images and video datasets. Remarkably, LAGUNA surpasses 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

In the world of computer vision, "domain shift" is a persistent challenge. A model trained on crisp, professional photos of chairs (the source domain) often fails when asked to identify a cartoon drawing of a chair (the target domain). Traditionally, researchers have addressed this by forcing the model to map both domains into the exact same "spot" in a mathematical latent space—a process known as absolute alignment.

However, a new approach titled "LAGUNA: LAnguage Guided UNsupervised Adaptation with structured spaces" suggests this strategy may be counterproductive. Instead of forcing different domains to overlap perfectly, LAGUNA ensures they share the same internal logic. By aligning the relative relationships between concepts rather than their absolute coordinates, LAGUNA preserves domain-specific nuances while enabling robust knowledge transfer.

Rethinking Domain Alignment

Unsupervised Domain Adaptation (UDA) aims to teach a model to work in a new environment without new labels. The standard approach of "absolute alignment" tries to make the feature vector for a "real-world dog" identical to the vector for a "clipart dog."

Contrast between previous UDA alignment (absolute coordinates) and LAGUNA's relative space alignment.

As illustrated in Figure 3, forcing disparate domains into the same coordinate space often washes out domain-specific "peculiarities"—like the fur texture of a real dog or the flat shapes of a clipart version. This results in a generic representation that loses the fine-grained details necessary for high-accuracy classification. LAGUNA shifts this paradigm by focusing on the "geometric blueprint" of the latent space. If the relationship between "chair," "mug," and "TV" is consistent across domains, the model can generalize without sacrificing domain-specific features.

The LAGUNA Framework

LAGUNA (LAnguage Guided UNsupervised Adaptation) operates in three distinct stages to build and align these relative spaces:

The three stages of the LAGUNA framework: Reference Structure Definition, Text Supervisor Training, and Cross-Domain Visual Classifier.
  1. Stage 1: Reference Structure Definition: The model uses a pre-trained SentenceTransformer to encode class labels into a domain-agnostic language space. This creates a set of "anchors" that define how classes relate to each other geometrically (e.g., a "stool" is naturally closer to a "chair" than to a "mug").
  2. Stage 2: Text Supervisor Training: A language model is trained to map image captions to this reference space. This allows the model to generate high-quality "pseudo-labels" for unlabeled target domain images based on their textual descriptions, providing a bridge between visual and semantic concepts.
  3. Stage 3: Cross-Domain Visual Classifier: This is the core innovation. Instead of forcing source and target images into the same coordinates, LAGUNA trains the visual encoder to ensure that the relative distance between a sample and its domain-specific anchors matches the language reference. A Volume Regularization Loss ($L_{Reg}$) is employed to prevent the learned anchors from collapsing, ensuring the latent "map" remains discriminative.

Experimental Results and Benchmarks

LAGUNA was evaluated across 18 different adaptation scenarios using four diverse datasets:

  • DomainNet: 400K images across 345 classes and 4 domains (Real, Clipart, Sketch, Painting).
  • GeoPlaces & GeoImnet: Subsets of the GeoNet dataset focusing on geographic disparities (e.g., USA vs. Asia).
  • EgoExo4D: A video dataset comparing first-person (egocentric) and third-person (exocentric) views.

Across these benchmarks, LAGUNA demonstrated significant performance leaps over previous state-of-the-art (SOTA) methods. It achieved average accuracy improvements of +3.32% on DomainNet, +5.75% on GeoPlaces, and +4.77% on GeoImnet.

One of the most remarkable findings was LAGUNA's efficiency. Despite being roughly 100x smaller in parameter count, it outperformed massive "zero-shot" Multimodal Large Language Models (MLLMs) like LLaVA-Next and Qwen2.5-VL on fine-grained adaptation tasks. This highlights the power of structured, task-specific adaptation over brute-force scaling.

Conclusion

LAGUNA introduces a fundamental shift in how we approach domain adaptation. By treating language as a "North Star" to define relative geometric structures, it allows models to maintain domain-specific nuances while achieving superior generalization. While the method currently relies on textual descriptions for the target domain, its robustness—even with low-quality or sparse captions—suggests a promising path forward for efficient, high-performance unsupervised adaptation in increasingly diverse real-world environments.

Summary updated

BibTeX
@misc{diko2024laguna,
  author = {Anxhelo Diko and Antonino Furnari and Luigi Cinque and Giovanni Maria Farinella},
  title = {{LAGUNA: LAnguage Guided UNsupervised Adaptation with structured spaces}},
  year = {2024},
  eprint = {2411.15557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15557},
}
Figure