Journal article · 2026 · Open access

Identifying and Mitigating API Misuse in Large Language Models

Terry Yue Zhuo, Junda He, Jiamou Sun, Zhenchang Xing, David Lo, John Grundy, Xiaoning Du

IEEE Transactions on Software Engineering, 52(3), 855–873 · Published 12 January 2026 · DOI 10.1109/tse.2026.3651566

Open PDFView at the publisherCite this paper

In brief

“Identifying and Mitigating API Misuse in Large Language Models” is a 2026 journal article by Terry Yue Zhuo and 6 co-authors, published in IEEE Transactions on Software Engineering. OpenAlex counts 25 citations as of 17 November 2026, which puts it in the top 5% of works published in 2026 by citations. It is open access: the full text is free to read at arXiv (Cornell University).

Citations
25
Most cited in
2026 (22)
Field-weighted impact
49.86
References
89
Authors
7

Abstract

API misuse in code generated by large language models (LLMs) presents a serious and growing challenge in software development. While LLMs demonstrate impressive code generation capabilities, their interactions with complex library APIs are often error-prone, potentially leading to software failures and vulnerabilities. In this paper, we conduct a large-scale study of API misuse patterns in LLM-generated code, analyzing both method selection and parameter usage across Python and Java, using three representative LLMs (StarCoder-7B, Qwen2.5-Coder-7B, and GitHub Copilot). Based on extensive manual annotation of 3,209 method-level and 3,492 parameter-level misuses, we identify and categorize four recurring misuse types by building on and refining prior API misuse taxonomies. Our evaluation of three widely used LLMs, StarCoder-7B, Qwen2.5-Coder-7B, and GitHub Copilot, reveals persistent challenges in API usage, particularly hallucination and intent misalignment. To address these issues, we propose Dr.Fix, an LLM-based automatic repair approach guided by our taxonomy. Dr.Fix improves repair accuracy compared to baseline prompting and existing repair methods, with gains of up to 38.4 BLEU and 40% in exact match on benchmark datasets. This work offers important insights into the current limitations of LLMs in API usage and provides insights into current limitations and points to directions for improving automated misuse repair in code generation systems.

Cite this paper

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

APA 7

Zhuo, T. Y., He, J., Sun, J., Xing, Z., Lo, D., Grundy, J., & Du, X. (2026). Identifying and Mitigating API Misuse in Large Language Models. IEEE Transactions on Software Engineering, 52(3), 855–873. https://doi.org/10.1109/tse.2026.3651566

MLA 9

Zhuo, Terry Yue, et al. “Identifying and Mitigating API Misuse in Large Language Models.” IEEE Transactions on Software Engineering, vol. 52, no. 3, 2026, pp. 855–873. https://doi.org/10.1109/tse.2026.3651566.

Chicago

Zhuo, Terry Yue, Junda He, Jiamou Sun, Zhenchang Xing, David Lo, John Grundy, and Xiaoning Du. 2026. “Identifying and Mitigating API Misuse in Large Language Models.” IEEE Transactions on Software Engineering 52 (3): 855–873. https://doi.org/10.1109/tse.2026.3651566.

Harvard

Zhuo, T. Y. et al. (2026) ‘Identifying and Mitigating API Misuse in Large Language Models’, IEEE Transactions on Software Engineering, 52(3), pp. 855–873. doi:10.1109/tse.2026.3651566.

IEEE

T. Y. Zhuo et al., “Identifying and Mitigating API Misuse in Large Language Models,” IEEE Transactions on Software Engineering, vol. 52, no. 3, pp. 855–873, 2026, doi: 10.1109/tse.2026.3651566.

BibTeX

@article{zhuo2026identifying,
  title     = {{Identifying and Mitigating API Misuse in Large Language Models}},
  author    = {Zhuo, Terry Yue and He, Junda and Sun, Jiamou and Xing, Zhenchang and Lo, David and Grundy, John and Du, Xiaoning},
  journal   = {IEEE Transactions on Software Engineering},
  year      = {2026},
  volume    = {52},
  number    = {3},
  pages     = {855--873},
  doi       = {10.1109/tse.2026.3651566},
  url       = {https://doi.org/10.1109/tse.2026.3651566}
}

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

Topic and keywords

Physical Sciences › Computer Science › Information Systems › Software Engineering Research

  • API misuse
  • large language models
  • LLM-generated code
  • method selection
  • hallucinations
  • StarCoder
  • Qwen2.5-Coder
  • GitHub Copilot

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?

Zhuo, T. Y., He, J., Sun, J., Xing, Z., Lo, D., Grundy, J., & Du, X. (2026). Identifying and Mitigating API Misuse in Large Language Models. IEEE Transactions on Software Engineering, 52(3), 855–873. https://doi.org/10.1109/tse.2026.3651566

How many times has this paper been cited?

25 times, according to OpenAlex on 17 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?

Terry Yue Zhuo, Junda He, Jiamou Sun, Zhenchang Xing, David Lo, John Grundy, Xiaoning Du.

What is the DOI of this paper?

10.1109/tse.2026.3651566, permanently at https://doi.org/10.1109/tse.2026.3651566. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 17 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.