Abstract
Cross-domain image retrieval (CDIR) typically relies on large-scale labeled and paired datasets, which are costly to obtain. This paper presents a novel framework for Unsupervised Cross-domain Image Retrieval (UCDIR) that eliminates the need for labels or paired data during training. By integrating cluster-wise contrastive learning with a unique "distance-of-distance" (DD) loss, the proposed method aligns disparate data distributions through order-invariant structural consistency. Experimental results on Office-Home and DomainNet benchmarks demonstrate significant improvements over existing unsupervised baselines.
Introduction
The ability to retrieve images across different domains—such as finding a photograph based on a hand-drawn sketch—has significant applications in e-commerce and digital asset management. However, the performance of traditional CDIR systems is heavily dependent on supervised learning, requiring precise category labels and cross-domain pairings. Collecting this data is often impractical for large-scale applications.
Unsupervised Cross-domain Image Retrieval (UCDIR) presents a more scalable but challenging alternative. It faces two primary hurdles: the in-domain gap, where the model must group semantically similar images within a single domain without labels, and the cross-domain gap, where it must align these groups across domains without knowing their correspondence.
Methodology
The proposed framework addresses these gaps through two main components: Cluster-wise Contrastive Learning and Distance-of-Distance (DD) alignment.
Cluster-wise Contrastive Learning
While instance-wise contrastive learning is common in unsupervised settings, it is often too granular for category-level retrieval. The authors employ K-means clustering to generate "pseudo-labels" for each domain. By pulling images within the same cluster closer together in the feature space, the model learns to capture broader semantic concepts (like "bird-ness"), effectively bridging the in-domain gap.
Distance-of-Distance (DD) Loss
Aligning two domains without labels is difficult because cluster assignments are arbitrary (e.g., Cluster 1 in the "Sketch" domain may not correspond to Cluster 1 in the "Photo" domain). The authors introduce the Distance-of-Distance (DD) loss, which leverages the insight that the internal geometric structure of a domain should be preserved across domains. By minimizing the discrepancy between the relative distances of samples in Domain A and their counterparts in Domain B, the model achieves order-invariant alignment.
To prevent the model from collapsing into a uniform distribution where all images are assigned to all clusters equally, a self-entropy loss is incorporated to encourage distinct and confident cluster assignments.
Experimental Results
The framework was evaluated on the Office-Home (4 domains, 65 categories) and DomainNet (6 domains) benchmarks.
On the Office-Home dataset, the method achieved an average Precision at 1 (P@1) of 40.67%, surpassing the previous state-of-the-art by 2.6%. The gains were even more pronounced on DomainNet, particularly in cross-domain tasks involving highly disparate styles, such as "Painting to Quickdraw," where the model outperformed baselines by up to 14.6% in P@50. Visual results indicate that the model successfully ignores domain-specific styles, such as brushstrokes or line thickness, to focus on the underlying category of the object.
Conclusion
This research demonstrates that effective cross-domain retrieval can be achieved without the need for expensive manual labeling. By focusing on global feature space geometry rather than individual cluster labels, the Distance-of-Distance approach provides a robust mechanism for unsupervised domain alignment. Future work will focus on addressing the sensitivity to the number of clusters ($K$) and extending the framework to open-set retrieval scenarios.
Summary updated