Natural Language-Programming Language Software Traceability Link Recovery Needs More than Textual Similarity

Zhiyuan Zou, Bangchao Wang, Peng Liang, Tingting Bi, Huan Jin
9/6/2025
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

In the field of software traceability link recovery (TLR), textual similarity has long been regarded as the core criterion. However, in tasks involving natural language and programming language (NL-PL) artifacts, relying solely on textual similarity is limited by their semantic gap.

Show full abstract

To this end, we conducted a large-scale empirical evaluation across various types of TLR tasks, revealing the limitations of textual similarity in NL-PL scenarios. To address these limitations, we propose an approach that incorporates multiple domain-specific auxiliary strategies, identified through empirical analysis, into two models: the Heterogeneous Graph Transformer (HGT) via edge types and the prompt-based Gemini 2.5 Pro via additional input information. We then evaluated our approach using the widely studied requirements-to-code TLR task, a representative case of NL-PL TLR. Experimental results show that both the multi-strategy HGT and Gemini 2.5 Pro models outperformed their original counterparts without strategy integration. Furthermore, compared to the current state-of-the-art method HGNNLink, the multi-strategy HGT and Gemini 2.5 Pro models achieved average F1-score improvements of 3.68% and 8.84%, respectively, across twelve open-source projects, demonstrating the effectiveness of multi-strategy integration in enhancing overall model performance for the requirements-code TLR task.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zou2025natural,
  title  = {Natural Language-Programming Language Software Traceability Link Recovery Needs More than Textual Similarity},
  author = {Zhiyuan Zou and Bangchao Wang and Peng Liang and Tingting Bi and Huan Jin},
  year   = {2025},
  eprint = {2509.05585},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.05585v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.05585.svg)](https://codeofpaper.com/paper/2509.05585)

Discussion