A transfer learning approach for automatic conflicts detection in software requirement sentence pairs based on dual encoders
Yizheng Wang,
Tao Jiang,
Jinyan Bai,
Zhengbin Zou,
Tiancheng Xue,
Nan Zhang and
Jie Luan
PLOS ONE, 2026, vol. 21, issue 3, 1-21
Abstract:
Software Requirement Document (RD) typically contains tens of thousands of individual requirements, and ensuring consistency among these requirements is a critical prerequisite for the success of software engineering projects. Automated detection methods can significantly enhance efficiency and reduce costs; however, existing approaches still face several challenges, including low detection accuracy on imbalanced data, limited semantic extraction due to the use of a single encoder, and poor performance in cross-domain transfer learning. To address these issues, this paper proposes a Transferable Software Requirement Conflicts Detection Framework based on SBERT and SimSCE, termed TSRCDF-SS. First, the framework employs two independent encoders named Sentence-BERT (SBERT) and Simple Contrastive Sentence Embedding (SimCSE) to generate sentence embeddings for requirement pairs, followed by a six-element concatenation strategy. Furthermore, the classifier is enhanced by incorporating a two-layer fully connected, alongside a hybrid loss function optimization strategy for feedforward neural network (FFNN) that integrates a variant of Focal Loss, domain-specific constraints, and a confidence-based penalty term. Finally, the framework synergistically integrates sequential and cross-domain transfer learning. Experimental results demonstrate that, compared with other advanced classical methods, our framework achieves an improvement ranging from 4.9% to 12.1% in macro-F1 and weighted-F1 under non-cross-domain conditions, and an average enhancement of 6% in macro-F1 under optimal cross-domain scenarios.
Date: 2026
References: Add references at CitEc
Citations:
Downloads: (external link)
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0344174 (text/html)
https://journals.plos.org/plosone/article/file?id= ... 44174&type=printable (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:plo:pone00:0344174
DOI: 10.1371/journal.pone.0344174
Access Statistics for this article
More articles in PLOS ONE from Public Library of Science
Bibliographic data for series maintained by plosone ().