Metraipolis › archive › dc_015032769419
Code Detectors Have a Half-Life: Obsolescence and Metric Illusions in LLM-Generated Code Detection — arXiv:2610.01664
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.01664
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-06T15:17:10.881Z
- SHA-256 of the archived text
cef339a483db858e170f31d63d62eed5fde0179134205130f6b1031d64005b4f- Stable URL of this page
https://metraipolis.com/documento/dc_015032769419
How to cite
Code Detectors Have a Half-Life: Obsolescence and Metric Illusions in LLM-Generated Code Detection — arXiv:2610.01664 — arXiv (en), https://arxiv.org/abs/2610.01664 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_015032769419 (Metraipolis archive dc_015032769419, sha256 cef339a483db858e170f31d63d62eed5fde0179134205130f6b1031d64005b4f)
BibTeX
@misc{dc015032769419,
title = {Code Detectors Have a Half-Life: Obsolescence and Metric Illusions in LLM-Generated Code Detection — arXiv:2610.01664},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.01664},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_015032769419; sha256 cef339a483db858e170f31d63d62eed5fde0179134205130f6b1031d64005b4f},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.01664. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Code detectors can become obsolete as code-generating models evolve: a detector validated on one generation of models may not transfer to the next. We call this limited useful life a detector half-life. We evaluate eight general-purpose LLM judges and three dedicated detectors on human-written code and code produced by seven generators across C++, Java, and Python. Our results reveal two problems. First, performance varies considerably across generators and prompting strategies, suggesting that some detectors rely on generator-specific patterns rather than general evidence of code provenance. Second, accuracy can conceal severe prediction bias. DetectCodeGPT and GPT-Sniffer achieved an accuracy of 0.50 but an F1 score of 0.00 across all generators because they classified almost every sample as AI-generated. However, general-purpose LLM judges achieved stronger accuracy and F1 scores. Our results show that general-purpose LLMs are promising training-free judges of code provenance and can outperform dedicated detectors. However, their reliability depends on the judge model, the code generator, and the prompting strategy. We therefore recommend evaluating LLM judges across multiple generators and reporting macro-F1 alongside class-specific precision and recall. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-10-02 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.01664 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-06T15:11:52.292Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-10-02?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).