19
0

Differentiable NMS via Sinkhorn Matching for End-to-End Fabric Defect Detection

Abstract

Fabric defect detection confronts two fundamental challenges. First, conventional non-maximum suppression disrupts gradient flow, which hinders genuine end-to-end learning. Second, acquiring pixel-level annotations at industrial scale is prohibitively costly. Addressing these limitations, we propose a differentiable NMS framework for fabric defect detection that achieves superior localization precision through end-to-end optimization. We reformulate NMS as a differentiable bipartite matching problem solved through the Sinkhorn-Knopp algorithm, maintaining uninterrupted gradient flow throughout the network. This approach specifically targets the irregular morphologies and ambiguous boundaries of fabric defects by integrating proposal quality, feature similarity, and spatial relationships. Our entropy-constrained mask refinement mechanism further enhances localization precision through principled uncertainty modeling. Extensive experiments on the Tianchi fabric defect dataset demonstrate significant performance improvements over existing methods while maintaining real-time speeds suitable for industrial deployment. The framework exhibits remarkable adaptability across different architectures and generalizes effectively to general object detection tasks.

View on arXiv
@article{lu2025_2505.07040,
  title={ Differentiable NMS via Sinkhorn Matching for End-to-End Fabric Defect Detection },
  author={ Zhengyang Lu and Bingjie Lu and Weifan Wang and Feng Wang },
  journal={arXiv preprint arXiv:2505.07040},
  year={ 2025 }
}
Comments on this paper