cs.CVSep 18, 2026

P3^3-SAM: SAM with Perceptual Parallel Prompt for Few-Shot Strip Steel Surface Defect Segmentation

Authors: Qian Xu, Hang Xiong, Anpeng Wang, Sam Kwong, Cong Zhang, Runmin Cong

Organizations: Shandong University Jinan, China · Alibaba International Digital Commercial Group Beijing, China · Lingnan University Hong Kong, China

Abstract

Few-shot semantic segmentation (FSS) of strip steel surface defects (S3^3D) has posed significant challenges distinct from natural scenes. Unlike natural images, S3^3D task exhibits unique characteristics including low local contrast, uneven illumination, and complex fine-grained texture patterns. Although recent methods based on Segment Anything Model (SAM) have shown promise in FSS on natural images by leveraging SAM's powerful pre-trained representations, these unique industrial characteristics of S3^3D images lead to performance drop when directly applying SAM to industrial defect scenarios. In this paper, we propose a novel Perceptual Parallel Prompt (P3^3) framework that empowers SAM, creating the P3^3-SAM model to address these challenges through two core strategies. First, we develop a Perceptual-Optimized Encoding (POE) strategy that enhances local contrast and preserves critical texture details for S3^3D segmentation. Second, we introduce the Parallel Prompt Generator (PPG) strategy that simultaneously generates both semantic and spatial prompts, enabling comprehensive guidance for SAM's decoder across varying images. Extensive experiments on three few-shot S3^3D benchmarks demonstrate that P3^3-SAM achieves state-of-the-art performance, with particularly notable improvements of 12.00% in mIoU on Surface Defects-4i dataset.

Figures & tables

Explore similar work

CardsList
  1. Few-Shot Semantic Segmentation Meets SAM3

    Apr 7, 2026Yi-Jen Tsai, Yen-Yu Lin, Chien-Yao WangFew-Shot Semantic SegmentationVision Foundation Models

  2. SPDCN: Strip-based Deformable Convolutional Network for Steel Surface Defect Segmentation

    Jul 23, 2026Zhongming Liu, Bingbing Jiang, Guangxin Wan +1Image SegmentationIndustrial Inspection

  3. Boxes2Pixels: Learning Defect Segmentation from Noisy SAM Masks

    Apr 13, 2026Camile Lendering, Erkut Akdag, Egor BondarevWeakly Supervised Image SegmentationSemantic Segmentation