Cross Domain Image Matching in Presence of Outliers

Xin Liu, Seyran Khademi, Jan van GemertOpenReview 2022

TL;DR

This paper tackles the challenging problem of matching images across different domains (e.g., different lighting, viewpoints) when the target domain contains "outlier" images that don't correspond to anything in the source domain. They propose a novel end-to-end deep learning framework that simultaneously adapts to the target domain and identifies these outliers, achieving state-of-the-art performance.

What Problem Does This Paper Address?

Cross-domain image matching is crucial for many applications, like recognizing locations from different photos taken over time or matching product images across different online stores. However, this task is difficult for several reasons:

  1. Varying Image Conditions: Images of the same object or scene can look very different due to changes in lighting, weather, or camera angles.
  2. Lack of Paired Labels: Typically, you have labeled pairs of matching images only in the source domain. The target domain often has unlabeled images.
  3. Outliers: The target domain might contain images that are completely unrelated to the source domain's content. These "outliers" can significantly degrade the performance of standard matching algorithms.

Existing methods struggle with these challenges, especially when dealing with the presence of outliers in the target domain, which can lead to incorrect matches and reduced accuracy.

Methods

The authors propose an end-to-end deep learning architecture that combines three key components:

  1. Siamese Network for Image Matching: They use a Siamese network architecture, which is common for learning similarity metrics. This network is trained on paired images from the source domain using a contrastive loss. This helps the network learn to distinguish between matching and non-matching pairs, creating representations that are good for image matching.
  2. Weighted Multi-Kernel Maximum Mean Discrepancy (MK-MMD) for Domain Adaptation: To bridge the gap between the source and target domains, they employ a weighted MK-MMD loss. This loss encourages the feature distributions of the source domain and the inlier (non-outlier) images in the target domain to align. The "weighted" aspect is crucial here, as it allows the model to focus the adaptation on the relevant target data.
  3. Entropy Loss for Outlier Detection: To identify and handle outliers in the target domain, they introduce an entropy loss. This loss encourages the model to assign a high probability to target images that are similar to the source domain (inliers) and low probabilities to those that are not (outliers). This is done iteratively, allowing the model to refine its understanding of what constitutes an inlier versus an outlier.

The core idea is to jointly train these components. The contrastive loss learns matching features, the weighted MK-MMD adapts these features to the target domain while ignoring outliers, and the entropy loss actively identifies and down-weights the outliers during training.

Datasets

The authors introduce two new synthetic datasets for evaluating their method:

  • Shape Dataset: This dataset consists of 60,000 source domain images and 30,000 target domain images, with 2,800 outliers. Source images are geometric shapes, and matching pairs share the same shape combination. Outliers are single alphabets or digits.
  • Pitts-CycleGAN Dataset: This dataset uses 204,000 Pittsburgh Google Street View images as the source domain. Target domain images (157,000, with 52,000 outliers) are generated by applying CycleGAN to the source images, creating a "painting" style. Outliers are sky images or city views lacking useful landmarks.

They also evaluate on the standard Office dataset [17], using the "Dslr" domain as source and "Amazon" as target.

Key Insights and Ideas

  • Outliers are a major hurdle: The paper clearly demonstrates that the presence of outliers significantly degrades cross-domain image matching performance, even for sophisticated domain adaptation techniques.
  • Joint learning is key: Instead of treating domain adaptation and outlier detection as separate problems, the authors show that jointly learning them leads to superior results. The outlier detection informs the domain adaptation, and vice-versa.
  • Iterative outlier refinement: The entropy loss allows for an iterative process where the model learns to re-weight target samples, progressively improving its ability to distinguish inliers from outliers.
  • Weighted adaptation matters: Simply applying domain adaptation without considering outliers is insufficient. The weighted MK-MMD specifically targets inlier samples for adaptation, making the process more robust.

Key Results

  • State-of-the-art performance: The proposed method, "DA+OutlierDetection," achieves state-of-the-art results on the proposed Shape and Pitts-CycleGAN datasets, as well as the Office dataset, for cross-domain image matching in the presence of outliers.
  • Significant improvement over baselines: In Table 3, the DA+OutlierDetection method shows a substantial improvement in Mean Average Precision (MAP) compared to a baseline that uses domain adaptation but doesn't explicitly handle outliers (SiameseDAOut). For example, on the Shape dataset, it goes from 5.4 to 11.9.
  • Robustness to outlier proportion: Figure 5 demonstrates that the F1-score for outlier detection remains consistently high across different percentages of outliers in the target domain, indicating the method's robustness.

Limitations and Future Work

  • Inlier misclassification: The authors acknowledge that their method sometimes misclassifies inlier samples as outliers during training. This is attributed to the initialization of target domain sample probabilities.
  • Future work: Improving the accuracy of inlier/outlier classification and further refining the outlier detection mechanism are suggested areas for future research.

Summary updated

BibTeX
@misc{liu2022cross,
  author = {Xin Liu and Seyran Khademi and Jan van Gemert},
  title = {{Cross Domain Image Matching in Presence of Outliers}},
  year = {2022},
  url = {https://openreview.net/forum?id=-AnOzSJu2Yi},
  howpublished = {OpenReview},
}
Figure