WeatherAgent-SAM: Text-Grounded Agentic Tool Selection for Robust SAM Segmentation
Yifei Zhang, Honglin Sun, Junyang Zhang, Shu Zhao, Kenji Hashimoto
Key points
From the paper's conclusion- We introduce WeatherAgent-SAM, an agentic framework that improves degraded-image segmentation through response-conditioned preprocessing selection while keeping SAM frozen.
Abstract
The Segment Anything Model (SAM) provides a versatile promptable segmentation interface, but adverse weather and image degradation can obscure visual cues and substantially reduce its accuracy. Existing approaches mainly follow two directions to mitigate this issue. The first adapts SAM through fine-tuning or additional trainable modules, which requires model-side optimization. The second preprocesses degraded images before SAM inference, but such methods are generally optimized for perceptual restoration rather than downstream segmentation. We introduce WeatherAgent-SAM, an agentic framework that improves degraded-image segmentation through response-conditioned preprocessing selection while keeping SAM frozen. WeatherAgent-SAM takes SAM’s initial response and a spatial prompt as inputs and uses response-conditioned knowledge to determine which preprocessing method should be applied next. To realize this process, the framework comprises two key modules. First, Fine-Grained Response-Conditioned Knowledge Construction adopts a progressive coarse-to-fine strategy: it first categorizes SAM responses into recurring states and then explores how individual preprocessing methods affect segmentation within each state. This design enables the agent to distinguish methods that pursue similar enhancement objectives but produce different segmentation outcomes. Second, a learnable Mask Verifier estimates the quality of each resulting SAM mask without ground truth and provides feedback to the agent, allowing tool selection to proceed iteratively and stop when a satisfactory prediction is identified. Experiments demonstrate that WeatherAgent-SAM achieves results comparable to those of the evaluated baselines on the Robust-Seg dataset and outperforms SAM, RobustSAM, and GaRA-SAM-Syn on the ACDC dataset.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LiDSeg: Linear DehazeFormer Guidance for Efficient Semantic Segmentation in Adverse Weather ConditionsarXiv · 2026
- Adapt, Generate, and Supervise: Geometry-Aware Diffusion-Guided SAM Framework for Remote Sensing Semantic SegmentationIEEE Transactions on Geoscience and Remote Sensing · 2026
- SegTrans: Transferable Adversarial Examples for Segmentation ModelsIEEE Transactions on Multimedia · 2026
- GeoReason: Bridging Logical Reasoning and Spatial Fidelity in Remote Sensing SegmentationarXiv · 2026
- Robustness of SAM: Segment Anything under Corruptions and beyondIEEE Transactions on Pattern Analysis and Machine Intelligence · 2026
- Adverse Weather Removal via Dynamic Enhancement Diffusion With Weather-Adaptive Prompting.IEEE transactions on image processing : a publication of the IEEE Signal Processing Society · 2026