Large Language Models for Captioning and Retrieving Remote Sensing Images
João Daniel Silva, João Magalhães, Devis Tuia, Bruno Martins
TL;DR
This work tackles captioning and cross-modal retrieval for remote sensing images under limited data by freezing a large language model and a remote-sensing-tuned visual encoder, aligning them via linear projections and a [RET] token. It introduces RS-CapRet, which jointly trains image-captioning and contrastive retrieval objectives while keeping most parameters frozen, yielding competitive or state-of-the-art results on NWPU-Captions and RSICD and enabling dialogue-style multi-modal interactions. A key design choice is finetuning CLIP on Cap-4 data (Cap-4) to form a strong RS-capable vision backbone (CLIP-Cap-4), with LLamaV2-7B as the decoder, and using a lightweight projection network to bridge modalities. The results, analyses, and qualitative examples underscore the model’s potential for practical RS data exploration and multi-turn querying, while highlighting the importance of dataset scale and domain-specific embeddings for generalization and performance gains.
Abstract
Image captioning and cross-modal retrieval are examples of tasks that involve the joint analysis of visual and linguistic information. In connection to remote sensing imagery, these tasks can help non-expert users in extracting relevant Earth observation information for a variety of applications. Still, despite some previous efforts, the development and application of vision and language models to the remote sensing domain have been hindered by the relatively small size of the available datasets and models used in previous studies. In this work, we propose RS-CapRet, a Vision and Language method for remote sensing tasks, in particular image captioning and text-image retrieval. We specifically propose to use a highly capable large decoder language model together with image encoders adapted to remote sensing imagery through contrastive language-image pre-training. To bridge together the image encoder and language decoder, we propose training simple linear layers with examples from combining different remote sensing image captioning datasets, keeping the other parameters frozen. RS-CapRet can then generate descriptions for remote sensing images and retrieve images from textual descriptions, achieving SOTA or competitive performance with existing methods. Qualitative results illustrate that RS-CapRet can effectively leverage the pre-trained large language model to describe remote sensing images, retrieve them based on different types of queries, and also show the ability to process interleaved sequences of images and text in a dialogue manner.
