DUDE: Diffusion-Based Unsupervised Cross-Domain Image Retrieval

Peng Hu (胡鹏), Ruohong Yang, Peng Hu, Yunfan Li, Xi PengarXiv 2025 · DOI

Introduction

Cross-domain image retrieval (CIR) aims to retrieve images of a specific object category from a target domain (e.g., real photos) using a query from a different source domain (e.g., sketches or artistic paintings). This task is foundational for applications in e-commerce, digital forensics, and creative design. However, traditional CIR methods rely heavily on paired, labeled data across domains, which is often expensive or impossible to obtain.

Unsupervised CIR (UCIR) addresses this by attempting to align domains without explicit labels. The primary hurdle in UCIR is the substantial domain gap: domain-specific styles, such as the brushstrokes of a painting or the sparse lines of a sketch, often dominate the feature representation, overshadowing the underlying object semantics.

Comparison of traditional domain gaps versus the DUDE approach to disentanglement.

Methodology: The DUDE Framework

The proposed framework, DUDE (Diffusion-based Unsupervised cross-Domain image rEtrieval), introduces a novel "disentangle-then-align" paradigm. It leverages the generative power of pre-trained diffusion models to separate style from content before performing alignment.

1. Object Disentanglement Module

Rather than training a feature extractor from scratch, DUDE utilizes a frozen Stable Diffusion (SD) model as a semantic disentangler. The core idea is to represent an image using a text prompt structure: "an {style} of a [z]".

  • Mechanism: The {style} token is fixed based on the known domain (e.g., "sketch"), while [z] is a learnable embedding representing the object.
  • Objective: By training the feature extractor to produce a [z] that allows the SD model to reconstruct the original image, the model is forced to pack all non-style information (the "clean" object semantics) into the [z] token. Because the style is already accounted for by the text prompt, the learnable token naturally strips away domain-specific noise.

2. Progressive Alignment Module

After extracting style-invariant object features, DUDE employs a three-stage alignment strategy to bridge the remaining gap in the embedding space.

The DUDE architecture, highlighting the Object Disentanglement and Progressive Alignment modules.
  • Instance Alignment: Establishes basic feature consistency by matching an image with its augmented versions.
  • In-Domain Mutual Neighbor Alignment: Refines clusters within a single domain by pulling together images that are mutual top-k neighbors.
  • Cross-Domain Mutual Neighbor Alignment: The final stage aligns features across domains. By focusing on mutual neighbors—where two images from different domains both identify each other as top matches—the system filters out the noise inherent in unsupervised cross-domain matching.

Experimental Evaluation

The researchers evaluated DUDE across three major benchmarks: PACS (Photo, Art, Cartoon, Sketch), Office-Home (Art, Clipart, Product, Real), and DomainNet (Clipart, Infograph, Painting, Real, Sketch).

Key Results

DUDE demonstrates a significant performance leap over previous state-of-the-art unsupervised methods like ProtoOT and CoDA:

  • PACS: Achieved an average improvement of 20.83% in P@50 (Precision at top 50).
  • DomainNet: Showed an average improvement of 18.78% in P@200.
  • Office-Home: Consistently outperformed leading baselines by 8-10% across various metrics.

Qualitative analysis via t-SNE visualizations confirms that DUDE produces much tighter and more distinct object clusters, effectively bridging the gap between disparate domains like "Clipart" and "Sketch."

Conclusion and Future Work

DUDE redefines the approach to unsupervised cross-domain retrieval by treating generative models as discriminative tools. By "stripping" style via diffusion-based reconstruction, it provides a cleaner signal for alignment.

While highly effective, the method currently faces computational overhead due to the diffusion backbone and requires predefined domain-style tokens. Future research may focus on automating style discovery and optimizing the inference speed of the disentanglement process.

Summary updated

BibTeX
@misc{2025dude,
  author = {Peng Hu (胡鹏) and Ruohong Yang and Peng Hu and Yunfan Li and Xi Peng},
  title = {{DUDE: Diffusion-Based Unsupervised Cross-Domain Image Retrieval}},
  year = {2025},
  eprint = {2509.04193},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.04193},
}
Figure