InstructSAM: A Training-Free Framework for Instruction-Oriented Remote Sensing Object Recognition

Yi-Jie Zheng, Wei-Jie Wu, Qing-Yun Li, Xue-Hui Wang, Xu Zhou +5 more
5/1/2025
15 citations

Official code: VoyagerXvoyagerx/InstructSAM (118 stars, Python, last commit 2026-02-28).

Abstract

Language-Guided object recognition in remote sensing imagery is crucial for large-scale mapping and automated data annotation. However, existing open-vocabulary and visual grounding methods rely on explicit category cues, limiting their ability to handle complex or implicit queries that require advanced reasoning.

Show full abstract

To address this issue, we introduce a new suite of tasks, including Instruction-Oriented Object Counting, Detection, and Segmentation (InstructCDS), covering open-vocabulary, open-ended, and open-subclass scenarios. We further present EarthInstruct, the first InstructCDS benchmark for earth observation. It is constructed from two diverse remote sensing datasets with varying spatial resolutions and annotation rules across 20 categories, necessitating models to interpret dataset-specific instructions. Given the scarcity of semantically rich labeled data in remote sensing, we propose InstructSAM, a training-free framework for instruction-driven object recognition. InstructSAM leverages large vision-language models to interpret user instructions and estimate object counts, employs SAM2 for mask proposal, and formulates mask-label assignment as a binary integer programming problem. By integrating semantic similarity with counting constraints, InstructSAM efficiently assigns categories to predicted masks without relying on confidence thresholds. Experiments demonstrate that InstructSAM matches or surpasses specialized baselines across multiple tasks while maintaining near-constant inference time regardless of object count, reducing output tokens by 89% and overall runtime by over 32% compared to direct generation approaches. We believe the contributions of the proposed tasks, benchmark, and effective approach will advance future research in developing versatile object recognition systems.

View on arXivView PDF

Code Implementations(1)

InstructSAM: A Training-Free Framework for Instruction-Oriented Remote Sensing Object Recognition (NeurIPS 2025)

11811PythonMay 18, 20259 months ago
object-countingobject-detectionobject-segmentationremote-sensing

Similar Papers

Cite this paper

@article{zheng2025instructsam,
  title  = {InstructSAM: A Training-Free Framework for Instruction-Oriented Remote Sensing Object Recognition},
  author = {Yi-Jie Zheng and Wei-Jie Wu and Qing-Yun Li and Xue-Hui Wang and Xu Zhou and Ai-Ai Ren and Jun Shen and Long Zhao and Guoqing Li and Xue Yang},
  year   = {2025},
  eprint = {2505.15818},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.15818},
  url    = {https://doi.org/10.48550/arXiv.2505.15818},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.15818.svg)](https://codeofpaper.com/paper/2505.15818)

Discussion