52
1

Improving Transformer Based Line Segment Detection with Matched Predicting and Re-ranking

Abstract

Classical Transformer-based line segment detection methods have delivered impressive results. However, we observe that some accurately detected line segments are assigned low confidence scores during prediction, causing them to be ranked lower and potentially suppressed. Additionally, these models often require prolonged training periods to achieve strong performance, largely due to the necessity of bipartite matching. In this paper, we introduce RANK-LETR, a novel Transformer-based line segment detection method. Our approach leverages learnable geometric information to refine the ranking of predicted line segments by enhancing the confidence scores of high-quality predictions in a posterior verification step. We also propose a new line segment proposal method, wherein the feature point nearest to the centroid of the line segment directly predicts the location, significantly improving training efficiency and stability. Moreover, we introduce a line segment ranking loss to stabilize rankings during training, thereby enhancing the generalization capability of the model. Experimental results demonstrate that our method outperforms other Transformer-based and CNN-based approaches in prediction accuracy while requiring fewer training epochs than previous Transformer-based models.

View on arXiv
@article{tong2025_2502.17766,
  title={ Improving Transformer Based Line Segment Detection with Matched Predicting and Re-ranking },
  author={ Xin Tong and Shi Peng and Baojie Tian and Yufei Guo and Xuhui Huang and Zhe Ma },
  journal={arXiv preprint arXiv:2502.17766},
  year={ 2025 }
}
Comments on this paper