GLRT-Based Metric Learning for Remote Sensing Object Retrieval

Linping Zhang, Yu Liu, Xueqian Wang, Gang Li, You HearXiv 2024 · DOI · arXiv

Abstract

This paper introduces GLRTML, a novel metric learning framework that treats remote sensing object retrieval as a statistical hypothesis testing problem. By incorporating global data distributions and a fast adaptation mechanism (CPLFPA), the approach overcomes the limitations of batch-based training, focusing on "hard" samples and achieving state-of-the-art performance even across different data domains.

Introduction

Content-Based Remote Sensing Object Retrieval (CBRSOR) aims to find specific objects, such as particular classes of ships or aircraft, within massive satellite image databases. Unlike scene-level retrieval, which identifies broad contexts like "harbor" or "forest," CBRSOR requires fine-grained discrimination between similar-looking objects.

Current deep learning approaches for this task face two major hurdles:

  1. Local vs. Global Information: GPU memory constraints limit models to training on small "batches." This forces the network to focus on local relationships within a batch, often overfitting to "easy" sample pairs while failing to learn the complex global distribution of the entire dataset.
  2. Domain Shift: Models trained on one dataset frequently underperform on another due to changes in feature distributions (e.g., different sensors or lighting). Standard Unsupervised Domain Adaptation (UDA) methods typically require expensive, iterative fine-tuning of the entire neural network.
The standard batch-based training process often fails to capture global data relationships, leading to suboptimal metric learning.

Methodology

The authors propose a two-pronged solution to address these limitations: GLRTML for robust metric learning and CPLFPA for rapid domain adaptation.

GLRTML: Generalized Likelihood Ratio Test-based Metric Learning

Inspired by the Neyman-Pearson theorem, the authors model retrieval as a hypothesis test:

  • Null Hypothesis ($H_0$): The query and gallery images are unpaired (different objects).
  • Alternative Hypothesis ($H_1$): The query and gallery images are paired (same object).

Instead of standard Euclidean distance or Cosine similarity, GLRTML calculates a similarity score based on the likelihood ratio between these two distributions. By using "differential embeddings" (the vector difference between two image features) and estimating their global mean and covariance, the loss function accounts for the "difficulty" of a sample pair relative to the entire dataset's statistics. This approach effectively separates positive and negative samples that are otherwise indistinguishable in standard metric spaces.

Comparison between standard Cosine similarity and the proposed GLRT-based distance, showing improved separation of positive and negative sample distributions.

CPLFPA: Clustering Pseudo-Labels-based Fast Parameter Adaptation

To handle domain shift without heavy re-training, CPLFPA performs a "quick fix" by updating the metric space rather than the neural network weights:

  1. Feature Extraction: Extract features from the new (target) domain using the pre-trained model.
  2. Pseudo-Labeling: Use K-means clustering to assign pseudo-labels to these features.
  3. Parameter Re-estimation: Re-estimate the statistical parameters ($\mu, \Sigma$) for the GLRT metric based on these clusters.

Experimental Results

The authors evaluated their approach on two fine-grained recognition datasets reorganized for retrieval tasks: CBRSOR-FGSRSI (ships) and CBRSOR-MAR (aircraft).

  • State-of-the-Art Performance: On the CBRSOR-FGSRSI dataset, GLRTML achieved a mean Average Precision (mAP) of 81.0%, significantly outperforming established losses like Triplet Loss (76.4%) and Circle Loss (73.3%).
  • Superior Domain Adaptation: In UDA scenarios, CPLFPA provided a massive boost. For example, on the ship dataset, mAP jumped from 44.9% (without adaptation) to 53.3% with CPLFPA.
  • Efficiency: CPLFPA is highly efficient; adapting to a dataset with 40,000 sample pairs takes less than 10 seconds on a standard CPU, making it viable for real-time edge computing applications.

Discussion and Conclusion

A key insight of this work is the "Hard Sample" advantage. By leveraging global statistics, GLRTML naturally identifies "difficult" samples—those with low probability under the estimated distributions. The gradient of the loss function becomes larger for these samples, forcing the network to learn more discriminative features. Furthermore, the use of differential embeddings ensures symmetry, meaning the similarity between image A and B is identical to that between B and A.

While the method assumes feature embeddings follow a Multivariate Gaussian or GMM distribution, t-SNE visualizations suggest this holds for most remote sensing data. Future work may explore more complex distribution models and the integration of this statistical approach into other vision tasks like object detection or tracking.

Summary updated

Abstract

With the improvement in the quantity and quality of remote sensing images, content-based remote sensing object retrieval (CBRSOR) has become an increasingly important topic. However, existing CBRSOR methods neglect the utilization of global statistical information during both training and test stages, which leads to the overfitting of neural networks to simple sample pairs of samples during training and suboptimal metric performance. Inspired by the Neyman-Pearson theorem, we propose a generalized likelihood ratio test-based metric learning (GLRTML) approach, which can estimate the relative difficulty of sample pairs by incorporating global data distribution information during training and test phases. This guides the network to focus more on difficult samples during the training process, thereby encourages the network to learn more discriminative feature embeddings. In addition, GLRT is a more effective than traditional metric space due to the utilization of global data distribution information. Accurately estimating the distribution of embeddings is critical for GLRTML. However, in real-world applications, there is often a distribution shift between the training and target domains, which diminishes the effectiveness of directly using the distribution estimated on training data. To address this issue, we propose the clustering pseudo-labels-based fast parameter adaptation (CPLFPA) method. CPLFPA efficiently estimates the distribution of embeddings in the target domain by clustering target domain instances and re-estimating the distribution parameters for GLRTML. We reorganize datasets for CBRSOR tasks based on fine-grained ship remote sensing image slices (FGSRSI-23) and military aircraft recognition (MAR20) datasets. Extensive experiments on these datasets demonstrate the effectiveness of our proposed GLRTML and CPLFPA.
BibTeX
@misc{zhang2024glrt,
  author = {Linping Zhang and Yu Liu and Xueqian Wang and Gang Li and You He},
  title = {{GLRT-Based Metric Learning for Remote Sensing Object Retrieval}},
  year = {2024},
  eprint = {2410.05773},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.05773},
}
Figure