Preprint · 2026 · Open access
Hallucination Inspector: A Fact-Checking Judge for API Migration
arXiv · Published 22 April 2026 · DOI 10.48550/arxiv.2604.20202
In brief
“Hallucination Inspector: A Fact-Checking Judge for API Migration” is a 2026 preprint by Marcos Tileria and 3 co-authors, published in arXiv. OpenAlex counts 2 citations as of 30 November 2026, which puts it in the top 5% of works published in 2026 by citations. It is open access under a CC BY licence: the full text is free to read at arXiv.
- Citations
- 2
- Most cited in
- 2026 (2)
- References
- 28
- Authors
- 4
Abstract
Large Language Models (LLMs) are increasingly deployed in automated software engineering for tasks such as API migration. While LLMs are able to identify migration patterns, they often make mistakes and fail to produce correct glue code to invoke the new API in place of the old one. We call this issue Scaffolding Hallucination, a failure mode where models generate incorrect calling contexts by inventing Phantom Symbols -- such as imaginary imports, constructors, and constants -- that do not exist in the API specification. In this paper, we show that standard metrics cannot be relied upon to detect these instances of hallucination. We propose Hallucination Inspector, a static analysis tool to detect Scaffolding Hallucination in LLM-generated code. Our approach includes a lightweight evaluation framework that verifies symbols extracted from the abstract syntax tree against a knowledge base derived directly from software documentation for the API. A preliminary evaluation on Android API migrations demonstrates that our approach successfully identifies hallucinations and significantly reduces false positives compared to standard metrics and probabilistic judges
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Tileria, M., Dash, S. K., Pârţachi, P.-P., & Barr, E. T. (2026). Hallucination Inspector: A Fact-Checking Judge for API Migration. arXiv. https://doi.org/10.48550/arxiv.2604.20202
MLA 9
Tileria, Marcos, et al. “Hallucination Inspector: A Fact-Checking Judge for API Migration.” arXiv, 2026. https://doi.org/10.48550/arxiv.2604.20202.
Chicago
Tileria, Marcos, Santanu Kumar Dash, Profir-Petru Pârţachi, and Earl T. Barr. 2026. “Hallucination Inspector: A Fact-Checking Judge for API Migration.” arXiv. https://doi.org/10.48550/arxiv.2604.20202.
Harvard
Tileria, M. et al. (2026) ‘Hallucination Inspector: A Fact-Checking Judge for API Migration’, arXiv. doi:10.48550/arxiv.2604.20202.
IEEE
M. Tileria, S. K. Dash, P.-P. Pârţachi, and E. T. Barr, “Hallucination Inspector: A Fact-Checking Judge for API Migration,” arXiv, 2026, doi: 10.48550/arxiv.2604.20202.
BibTeX
@misc{tileria2026hallucination,
title = {{Hallucination Inspector: A Fact-Checking Judge for API Migration}},
author = {Tileria, Marcos and Dash, Santanu Kumar and Pârţachi, Profir-Petru and Barr, Earl T.},
howpublished = {arXiv},
year = {2026},
doi = {10.48550/arxiv.2604.20202},
url = {https://doi.org/10.48550/arxiv.2604.20202}
}
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 migration
- large language models
- hallucination detection
- static analysis
- LLM-generated code
- abstract syntax tree
- glue code
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Tileria, M., Dash, S. K., Pârţachi, P.-P., & Barr, E. T. (2026). Hallucination Inspector: A Fact-Checking Judge for API Migration. arXiv. https://doi.org/10.48550/arxiv.2604.20202
How many times has this paper been cited?
2 times, according to OpenAlex on 30 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: sign in and open the PDF from this page.
Who wrote this paper?
Marcos Tileria, Santanu Kumar Dash, Profir-Petru Pârţachi, Earl T. Barr.
What is the DOI of this paper?
10.48550/arxiv.2604.20202, permanently at https://doi.org/10.48550/arxiv.2604.20202. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 30 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.