[Paper Review] Effective Transfer of Pretrained Large Visual Model for Fabric Defect Segmentation via Specifc Knowledge Injection
This paper proposes a knowledge injection framework that enhances the Segment Anything Model (SAM) for fabric defect segmentation by training a small, specialized set of parameters to embed domain-specific defect knowledge, achieving state-of-the-art performance with minimal parameter updates and high efficiency in few-shot and cross-dataset settings.
Fabric defect segmentation is integral to textile quality control. Despite this, the scarcity of high-quality annotated data and the diversity of fabric defects present significant challenges to the application of deep learning in this field. These factors limit the generalization and segmentation performance of existing models, impeding their ability to handle the complexity of diverse fabric types and defects. To overcome these obstacles, this study introduces an innovative method to infuse specialized knowledge of fabric defects into the Segment Anything Model (SAM), a large-scale visual model. By introducing and training a unique set of fabric defect-related parameters, this approach seamlessly integrates domain-specific knowledge into SAM without the need for extensive modifications to the pre-existing model parameters. The revamped SAM model leverages generalized image understanding learned from large-scale natural image datasets while incorporating fabric defect-specific knowledge, ensuring its proficiency in fabric defect segmentation tasks. The experimental results reveal a significant improvement in the model's segmentation performance, attributable to this novel amalgamation of generic and fabric-specific knowledge. When benchmarking against popular existing segmentation models across three datasets, our proposed model demonstrates a substantial leap in performance. Its impressive results in cross-dataset comparisons and few-shot learning experiments further demonstrate its potential for practical applications in textile quality control.
Motivation & Objective
- Address the challenge of limited high-quality annotated data in fabric defect segmentation, which hinders model generalization and performance.
- Overcome the poor transferability of general-purpose large vision models like SAM to fabric defect tasks due to lack of domain-specific knowledge.
- Develop an efficient fine-tuning strategy that preserves SAM’s generalization while injecting fabric-specific defect understanding through a minimal, trainable parameter set.
- Improve segmentation accuracy, especially in few-shot and cross-dataset scenarios, without retraining the entire model.
- Enable practical deployment in industrial textile quality control by reducing computational cost and enhancing annotation efficiency.
Proposed method
- Introduce a novel set of trainable parameters specific to fabric defects, injected into the prompt encoder of the pre-trained SAM model.
- Train only these newly introduced parameters using a constrained optimization strategy that emphasizes learning fabric defect characteristics.
- Preserve all pre-trained weights of the original SAM, minimizing computational cost and avoiding catastrophic forgetting.
- Leverage SAM’s strong generalization ability to handle diverse fabric types and defect patterns, even with limited training data.
- Utilize the model’s inherent robustness to annotation errors to improve training stability and support automated annotation assistance.
- Apply the model in both zero-shot and few-shot settings to evaluate generalization and adaptability across different datasets.
Experimental results
Research questions
- RQ1Can a small, specialized set of trainable parameters effectively inject fabric defect-specific knowledge into a large-scale vision model like SAM without extensive retraining?
- RQ2How does the proposed knowledge injection method improve segmentation performance compared to standard fine-tuning or direct application of SAM on fabric defect data?
- RQ3To what extent does the model generalize across different fabric types and defect categories in cross-dataset evaluation?
- RQ4How effective is the model in few-shot learning scenarios with limited annotated examples?
- RQ5Can the model serve as an effective tool for reducing annotation effort and correcting errors in manual labeling?
Key findings
- The proposed method achieves state-of-the-art performance on three benchmark fabric defect segmentation datasets, significantly outperforming existing models.
- The model demonstrates strong generalization in cross-dataset evaluation, maintaining high accuracy even when tested on data from different fabric types and defect categories.
- In few-shot learning experiments, the model achieves superior performance with only a small number of annotated samples, highlighting its data efficiency.
- The total number of trainable parameters is drastically reduced—only 657,442 for SAM-B, 903,202 for SAM-L, and 1,165,346 for SAM-H—resulting in high training efficiency and low computational cost.
- The model exhibits high tolerance to annotation errors, producing smoother, more accurate segmentation masks than manual annotations, and can assist in generating reliable annotation suggestions.
- The method successfully preserves the generalization capacity of the original SAM while significantly enhancing its performance on fabric-specific segmentation tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.