Preprint · 2023 · Open access

Evaluating Pre-trained Language Models for Repairing API Misuses

Ting Zhang, Ivana Clairine Irsan, Ferdian Thung, David Lo, Asankhaya Sharma, Lingxiao Jiang

arXiv (Cornell University) · Published 25 October 2023 · DOI 10.48550/arxiv.2310.16390

Open PDFView at the publisherCite this paper

In brief

“Evaluating Pre-trained Language Models for Repairing API Misuses” is a 2023 preprint by Ting Zhang and 5 co-authors, published in arXiv (Cornell University). OpenAlex counts 12 citations as of 19 November 2026. It is open access: the full text is free to read at arXiv (Cornell University).

Citations
12
Most cited in
2025 (6)
References
75
Authors
6

Abstract

API misuses often lead to software bugs, crashes, and vulnerabilities. While several API misuse detectors have been proposed, there are no automatic repair tools specifically designed for this purpose. In a recent study, test-suite-based automatic program repair (APR) tools were found to be ineffective in repairing API misuses. Still, since the study focused on non-learning-aided APR tools, it remains unknown whether learning-aided APR tools are capable of fixing API misuses. In recent years, pre-trained language models (PLMs) have succeeded greatly in many natural language processing tasks. There is a rising interest in applying PLMs to APR. However, there has not been any study that investigates the effectiveness of PLMs in repairing API misuse. To fill this gap, we conduct a comprehensive empirical study on 11 learning-aided APR tools, which include 9 of the state-of-the-art general-purpose PLMs and two APR tools. We evaluate these models with an API-misuse repair dataset, consisting of two variants. Our results show that PLMs perform better than the studied APR tools in repairing API misuses. Among the 9 pre-trained models tested, CodeT5 is the best performer in the exact match. We also offer insights and potential exploration directions for future research.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Zhang, T., Irsan, I. C., Thung, F., Lo, D., Sharma, A., & Jiang, L. (2023). Evaluating Pre-trained Language Models for Repairing API Misuses. arXiv (Cornell University). https://doi.org/10.48550/arxiv.2310.16390

MLA 9

Zhang, Ting, et al. “Evaluating Pre-trained Language Models for Repairing API Misuses.” arXiv (Cornell University), 2023. https://doi.org/10.48550/arxiv.2310.16390.

Chicago

Zhang, Ting, Ivana Clairine Irsan, Ferdian Thung, David Lo, Asankhaya Sharma, and Lingxiao Jiang. 2023. “Evaluating Pre-trained Language Models for Repairing API Misuses.” arXiv (Cornell University). https://doi.org/10.48550/arxiv.2310.16390.

Harvard

Zhang, T. et al. (2023) ‘Evaluating Pre-trained Language Models for Repairing API Misuses’, arXiv (Cornell University). doi:10.48550/arxiv.2310.16390.

IEEE

T. Zhang, I. C. Irsan, F. Thung, D. Lo, A. Sharma, and L. Jiang, “Evaluating Pre-trained Language Models for Repairing API Misuses,” arXiv (Cornell University), 2023, doi: 10.48550/arxiv.2310.16390.

BibTeX

@misc{zhang2023evaluating,
  title     = {{Evaluating Pre-trained Language Models for Repairing API Misuses}},
  author    = {Zhang, Ting and Irsan, Ivana Clairine and Thung, Ferdian and Lo, David and Sharma, Asankhaya and Jiang, Lingxiao},
  howpublished = {arXiv (Cornell University)},
  year      = {2023},
  doi       = {10.48550/arxiv.2310.16390},
  url       = {https://doi.org/10.48550/arxiv.2310.16390}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Citations by year

YearCitationsShare of the best year
202422
202566
202644

Topic and keywords

Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques

  • API misuse
  • automated program repair
  • pre-trained language models
  • CodeT5
  • software defects
  • API misuse detection

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Zhang, T., Irsan, I. C., Thung, F., Lo, D., Sharma, A., & Jiang, L. (2023). Evaluating Pre-trained Language Models for Repairing API Misuses. arXiv (Cornell University). https://doi.org/10.48550/arxiv.2310.16390

How many times has this paper been cited?

12 times, according to OpenAlex on 19 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv (Cornell University): sign in and open the PDF from this page.

Who wrote this paper?

Ting Zhang, Ivana Clairine Irsan, Ferdian Thung, David Lo, Asankhaya Sharma, Lingxiao Jiang.

What is the DOI of this paper?

10.48550/arxiv.2310.16390, permanently at https://doi.org/10.48550/arxiv.2310.16390. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 19 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.