mlsanityData to 14 Oct 2026

Attack for Defense: Adversarial Agents for Point Prompt Optimization Empowering Segment Anything Model

arXiv 2509.18891 ↗First posted 23 Sep 2025cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Prompt quality plays a critical role in the performance of the Segment Anything Model (SAM), yet existing approaches often rely on heuristic or manually crafted prompts, limiting scalability and generalization. In this paper, we propose Point Prompt Defender, an adversarial reinforcement learning framework that adopts an attack-for-defense paradigm to automatically optimize point prompts. We construct a task-agnostic point prompt environment by representing image patches as nodes in a dual-space graph, where edges encode both physical and semantic distances. Within this environment, an attacker agent learns to activate a subset of prompts that maximally degrade SAM's segmentation performance, while a defender agent learns to suppress these disruptive prompts and restore accuracy. Both agents are trained using Deep Q-Networks with a reward signal based on segmentation quality variation. During inference, only the defender is deployed to refine arbitrary coarse prompt sets, enabling enhanced SAM segmentation performance across diverse tasks without retraining. Extensive experiments show that Point Prompt Defender effectively improves SAM's robustness and generalization, establishing a flexible, interpretable, and plug-and-play framework for prompt-based segmentation.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 31 of its 41 references that are in the map. First posted on arXiv 23 Sep 2025.

Builds on

31 of 41 references.

References · 31

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  3. 2023Segment Anythingcited by 8,234
  4. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  5. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  6. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
  7. 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
  8. 2022Visual Prompt Tuningcited by 1,681
  9. 2022Conditional Prompt Learning for Vision-Language Modelscited by 1,433
  10. 2022MaPLe: Multi-modal Prompt Learningcited by 687
  11. 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 589
  12. 2023Visual-Language Prompt Tuning with Knowledge-guided Context Optimizationcited by 308
19 more
  1. 2023Personalize Segment Anything Model with One Shotcited by 250
  2. 2019FSS-1000: A 1000-Class Dataset for Few-Shot Segmentationcited by 160
  3. 2023Matcher: Segment Anything with One Shot Using All-Purpose Feature Matchingcited by 142
  4. 2023Review of Large Vision Models and Visual Prompt Engineeringcited by 77
  5. 2024VRP-SAM: SAM with Visual Reference Promptcited by 75
  6. 2023AutoSAM: Adapting SAM to Medical Images by Overloading the Prompt Encodercited by 70
  7. 2023A Comprehensive Survey on Segment Anything Model for Vision and Beyondcited by 64
  8. 2023A Survey on Segment Anything Model (SAM): Vision Foundation Model Meets Prompt Engineeringcited by 45
  9. 2023SAMAug: Point Prompt Augmentation for Segment Anything Modelcited by 38
  10. 2024Segment Any Cell: A SAM-based Auto-prompting Fine-tuning Framework for Nuclei Segmentationcited by 24
  11. 2023SAM-PARSER: Fine-tuning SAM Efficiently by Parameter Space Reconstructioncited by 23
  12. 2024UN-SAM: Universal Prompt-Free Segmentation for Generalized Nuclei Imagescited by 22
  13. 2023mathrmSAMMed: A medical image annotation framework based on large vision modelcited by 13
  14. 2024Learning to Prompt Segment Anything Modelscited by 13
  15. 2024AlignSAM: Aligning Segment Anything Model to Open Context via Reinforcement Learningcited by 8
  16. 2024Stitching, Fine-tuning, Re-training: A SAM-enabled Framework for Semi-supervised 3D Medical Image Segmentationcited by 7
  17. 2024Generalized SAM: Efficient Fine-Tuning of SAM for Variable Input Image Sizescited by 6
  18. 2024Feature-prompting GBMSeg: One-Shot Reference Guided Training-Free Prompt Engineering for Glomerular Basement Membrane Segmentationcited by 5
  19. 2024Progressive Multi-modal Conditional Prompt Tuningcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Adversarial Reinforcement Learning for Offensive and Defensive Agents in a Simulated Zero-Sum Network Environment
  2. 2025Prompt Engineering in Segment Anything Model: Methodologies, Applications, and Emerging Challenges
  3. 2025Diversifying Counterattacks: Orthogonal Exploration for Robust CLIP Inference
  4. 2024Safeguarding Vision-Language Models Against Patched Visual Prompt Injectors
  5. 2025Chameleon: Adaptive Adversarial Agents for Scaling-Based Visual Prompt Injection in Multimodal AI Systems
  6. 2025GAPO: Learning Preferential Prompt through Generative Adversarial Policy Optimization
  7. 2024TAPT: Test-Time Adversarial Prompt Tuning for Robust Inference in Vision-Language Models
  8. 2026PinPoint: Prompting with Informative Interior Points