Promptable Anomaly Segmentation with SAM Through Self-Perception Tuning

Abstract

Segment Anything Model (SAM) has made great progress in anomaly segmentation tasks due to its impressive generalization ability. However, existing methods that directly apply SAM through prompting often overlook the domain shift issue, where SAM performs well on natural images but struggles in industrial scenarios. Parameter-Efficient Fine-Tuning (PEFT) offers a promising solution, but it may yield suboptimal performance by not adequately addressing the perception challenges during adaptation to anomaly images. In this paper, we propose a novel Self-Perception Tuning (SPT) method, aiming to enhance SAM's perception capability for anomaly segmentation. The SPT method incorporates a self-drafting tuning strategy, which generates an initial coarse draft of the anomaly mask, followed by a refinement process. Additionally, a visual-relation-aware adapter is introduced to improve the perception of discriminative relational information for mask generation. Extensive experimental results on several benchmark datasets demonstrate that our SPT method can significantly outperform baseline methods, validating its effectiveness.

Cite

Text

Yang et al. "Promptable Anomaly Segmentation with SAM Through Self-Perception Tuning." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I12.33420

Markdown

[Yang et al. "Promptable Anomaly Segmentation with SAM Through Self-Perception Tuning." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/yang2025aaai-promptable/) doi:10.1609/AAAI.V39I12.33420

BibTeX

@inproceedings{yang2025aaai-promptable,
  title     = {{Promptable Anomaly Segmentation with SAM Through Self-Perception Tuning}},
  author    = {Yang, Hui-Yue and Chen, Hui and Wang, Ao and Chen, Kai and Lin, Zijia and Tang, Yongliang and Gao, Pengcheng and Quan, Yuming and Han, Jungong and Ding, Guiguang},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {13017-13025},
  doi       = {10.1609/AAAI.V39I12.33420},
  url       = {https://mlanthology.org/aaai/2025/yang2025aaai-promptable/}
}