Semantic Feature Learning for Universal Unsupervised Cross-Domain Retrieval

Lixu Wang, Xinyu Du, Qi Zhu

Abstract

Cross-Domain Retrieval (CDR) typically relies on labeled data and the assumption that query and retrieval domains share identical category spaces. This paper introduces Universal Unsupervised Cross-Domain Retrieval ($U^2$CDR), a more realistic setting where no labels are provided and category spaces may overlap partially or be entirely disjoint. We present the Unified, Enhanced, and Matched (UEM) framework, a two-stage approach that constructs a unified prototypical structure and employs semantic-preserving alignment. Experimental results across multiple benchmarks demonstrate that UEM achieves state-of-the-art performance, particularly in challenging partial and open-set scenarios.

Introduction

Cross-Domain Retrieval (CDR) is a fundamental task in computer vision, aimed at retrieving semantically similar objects across different visual domains, such as matching a sketch to a real-world photograph. Despite significant progress, existing CDR methodologies face two primary bottlenecks. First, they often depend on expensive category labels or paired cross-domain samples for supervision. Second, they typically operate under a "closed-set" assumption, where both domains are assumed to contain the exact same categories.

In practical applications, the categorical composition of unlabeled datasets is often unknown. This leads to three distinct scenarios:

  1. Closed-set: Identical categories in both domains.
  2. Partial: The query domain contains a subset of the retrieval domain's categories.
  3. Open-set: The retrieval domain contains categories not present in the query domain.

To address these challenges, this research defines the Universal Unsupervised Cross-Domain Retrieval ($U^2$CDR) problem and proposes the Unified, Enhanced, and Matched (UEM) framework.

The UEM Framework

The UEM framework is designed to learn robust semantic features without supervision while handling mismatched category spaces. It operates in two sequential stages.

Stage 1: Intra-Domain Semantic-Enhanced Learning (IDSE)

The first stage focuses on capturing the underlying semantic structure within each domain independently before attempting to bridge them.

  • Instance-Prototype-Mixed (IPM) Contrastive Loss: Utilizing MoCo-style instance discrimination, the model incorporates a prototypical layer. It clusters data using K-Means (with the Elbow method for cluster number estimation) and encourages instances to align with their respective cluster centers (prototypes).
  • Universal Prototype Merging: To bridge the domains, prototypes from the retrieval domain are translated into the query domain's feature space. If these prototypes are sufficiently close to existing ones, they are merged; otherwise, they are treated as "private" categories. This process builds a unified map of the combined category space.
  • Semantic-Enhanced Loss (SEL): A soft-assignment mechanism is employed to mitigate the impact of noise during the initial clustering phase.

Stage 2: Cross-Domain Semantic-Matched Learning (CDSM)

The second stage aligns the feature distributions across domains while preserving the semantic structures learned in Stage 1.

  • Semantic-Preserving Domain Alignment (SPDA): Traditional adversarial alignment can cause "semantic collapse," where distinct clusters are merged incorrectly. SPDA introduces a regulation term that ensures the relative distances between instances remain stable during the alignment process.
  • Switchable Nearest Neighboring Match ($SN^2M$): This refined matching algorithm assesses the reliability of cross-domain matches. If an instance's nearest neighbor and its nearest prototype disagree—often the case near category boundaries—the model de-emphasizes the match to prevent misalignment.

Experimental Evaluation

The UEM framework was evaluated on three major benchmarks: Office-31, Office-Home, and DomainNet. These datasets were adapted to simulate closed-set, partial, and open-set scenarios.

Key Results

UEM consistently outperformed state-of-the-art unsupervised baselines, such as UCDIR and CoDA, across all tested scenarios:

  • Closed-Set: On Office-31, UEM achieved a mean Average Precision (mAP) of 81.9%, a 2.6% improvement over the leading baseline.
  • Partial Scenario: UEM demonstrated its greatest strength here, outperforming the second-best method by 12.0% mAP on Office-31 and 12.4% on Office-Home.
  • Open-Set: The framework showed high "detection accuracy" for private labels, effectively distinguishing between shared and domain-specific categories without label supervision.

Discussion and Insights

A critical finding of this work is that domain alignment is a double-edged sword. While necessary for cross-domain retrieval, it can destroy the semantic clustering essential for accuracy. The "Semantic-Preserving" constraint in SPDA is vital for maintaining these structures. Furthermore, the use of prototypes provides a more stable "inter-domain bridge" than noisy individual instances. UEM’s ability to maintain "private" prototypes allows it to handle the "Universal" gap, preventing the forced matching of private categories to shared ones.

Conclusion

The UEM framework represents a significant advancement in unsupervised cross-domain retrieval by addressing the limitations of the closed-set assumption. While the framework relies on the Elbow method for cluster estimation and involves a computationally intensive two-stage process, its performance in partial and open-set scenarios is unprecedented. Future work will focus on refining the identification of private categories to further reduce false positives in open-set environments.

Summary updated

BibTeX
@inproceedings{wang2024semantic,
  author = {Lixu Wang and Xinyu Du and Qi Zhu},
  title = {{Semantic Feature Learning for Universal Unsupervised Cross-Domain Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=zZVqZRXSao},
}
Figure