Abstract
Remote sensing cross-modal text-image retrieval (RSCTIR) faces significant challenges in integrating multi-scale information and managing complex modal interactions. We propose CMPAGL, a framework featuring a Gswin Transformer for global-local feature synergy and a pre-alignment mechanism to bridge the semantic gap before modal fusion. Our approach, complemented by a Similarity Matrix Reweighting (SMR) reranking algorithm and an optimized triplet loss, achieves state-of-the-art performance on major remote sensing benchmarks.
Introduction
Remote sensing imagery presents unique challenges for cross-modal retrieval due to significant variations in object scales and the inherent semantic gap between visual and textual modalities. Traditional methods often struggle to balance fine-grained local details with broader geographic context, or they fail to adequately prepare features before fusion, leading to inefficient learning. CMPAGL addresses these issues by synergizing global and local visual information and introducing a pre-alignment phase that "warms up" features in a shared embedding space, significantly reducing the training difficulty of subsequent modal fusion.
The CMPAGL Framework
The CMPAGL architecture is designed to extract robust multi-scale features and align them effectively across modalities before final fusion in a multi-modal encoder.
Gswin Transformer Block
The core of the visual encoder is the Gswin Transformer. It utilizes a Global-Win Generation (GWG) module to create a global summary of the image, which is then cross-referenced with local windows. By combining local window self-attention with global-local window cross-attention, the model ensures that local features are understood within their broader geographic context, effectively capturing multi-scale features.
Pre-Alignment and Optimized Loss
Before entering the multi-modal encoder, image and text features are projected into a shared space. We employ Image-Text Contrastive (ITC) loss and an optimized triplet loss that includes an intra-class distance term. This term explicitly minimizes the distance between matched image-text pairs, facilitating easier fusion and more accurate retrieval by tightening clusters in the embedding space.
Similarity Matrix Reweighting (SMR)
To further enhance accuracy, the SMR reranking algorithm exploits bidirectional consistency. By analyzing the symmetry between image-to-text and text-to-image rankings and using an extreme difference ratio to filter noise, SMR refines the final similarity scores, deeply exploiting information from the similarity matrix during the retrieval process.
Experimental Evaluation
We evaluated CMPAGL on four public datasets: RSICD, RSITMD, UCM-Captions, and Sydney-Captions.
- Performance: CMPAGL consistently outperformed state-of-the-art methods, notably achieving a 2.28% increase in mean Recall (mR) on RSITMD and a significant 4.65% improvement in R@1 on RSICD.
- Qualitative Analysis: Attention maps demonstrate the model's ability to focus on specific, small-scale targets mentioned in text descriptions, such as aircraft on an apron or specific building configurations, validating the effectiveness of the global-local synergy.
Conclusion
CMPAGL advances remote sensing retrieval by aligning modalities before fusion and effectively integrating multi-scale visual information through the Gswin Transformer. While the model's complexity presents a computational challenge, its superior accuracy across diverse benchmarks establishes it as a robust solution for RSCTIR. Future work will focus on optimizing the architecture for real-time deployment and exploring more efficient attention mechanisms.
Summary updated