bi-modal textual prompt learning for vision-language models in remote sensing
Pankhi Kashyap, Mainak Singha, Biplab Banerjee
TL;DR
BiMoRS tackles domain generalization in remote sensing by creating image-adaptive prompts that fuse textual descriptions from a frozen image captioning model with visual cues from a frozen VLM (CLIP). A lightweight cross-attention module conditions learnable prompt tokens on this bi-modal context, producing contextualized prompts without altering the CLIP/BLIP-2 backbones. The approach yields consistent gains across base-to-new, cross-dataset, and single-source multi-target settings, with up to a 2% improvement and substantially fewer trainable parameters. This work demonstrates the effectiveness of bi-modal, image-conditioned prompting for RS tasks and points to future extensions to segmentation and retrieval.
Abstract
Prompt learning (PL) has emerged as an effective strategy to adapt vision-language models (VLMs), such as CLIP, for downstream tasks under limited supervision. While PL has demonstrated strong generalization on natural image datasets, its transferability to remote sensing (RS) imagery remains underexplored. RS data present unique challenges, including multi-label scenes, high intra-class variability, and diverse spatial resolutions, that hinder the direct applicability of existing PL methods. In particular, current prompt-based approaches often struggle to identify dominant semantic cues and fail to generalize to novel classes in RS scenarios. To address these challenges, we propose BiMoRS, a lightweight bi-modal prompt learning framework tailored for RS tasks. BiMoRS employs a frozen image captioning model (e.g., BLIP-2) to extract textual semantic summaries from RS images. These captions are tokenized using a BERT tokenizer and fused with high-level visual features from the CLIP encoder. A lightweight cross-attention module then conditions a learnable query prompt on the fused textual-visual representation, yielding contextualized prompts without altering the CLIP backbone. We evaluate BiMoRS on four RS datasets across three domain generalization (DG) tasks and observe consistent performance gains, outperforming strong baselines by up to 2% on average. Codes are available at https://github.com/ipankhi/BiMoRS.
