Metraipolis › archive › dc_04d6fb31af75
Complexity-Aware Evaluation of LLM Comprehension — arXiv:2609.37405
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.37405
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T16:27:13.737Z
- SHA-256 of the archived text
155c0782210279efe0d9e5713c21e24450a4d999b251732d91f173e3e0f8083e- Stable URL of this page
https://metraipolis.com/documento/dc_04d6fb31af75
How to cite
Complexity-Aware Evaluation of LLM Comprehension — arXiv:2609.37405 — arXiv (en), https://arxiv.org/abs/2609.37405 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_04d6fb31af75 (Metraipolis archive dc_04d6fb31af75, sha256 155c0782210279efe0d9e5713c21e24450a4d999b251732d91f173e3e0f8083e)
BibTeX
@misc{dc04d6fb31af75,
title = {Complexity-Aware Evaluation of LLM Comprehension — arXiv:2609.37405},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.37405},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_04d6fb31af75; sha256 155c0782210279efe0d9e5713c21e24450a4d999b251732d91f173e3e0f8083e},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.37405. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language models (LLMs) are increasingly used for software engineering tasks that require understanding existing source code, including behavior prediction, function explanation, debugging, and code review. However, aggregate benchmark accuracy can conceal how model reliability changes as source code becomes structurally more complex. This paper presents a complexity-aware framework for evaluating LLM code comprehension using cyclomatic complexity, nesting depth, branching factor, and Halstead volume. We evaluate DeepSeek-Coder-V2 and Llama through two complementary tasks: automatic input-output prediction over 300 Python functions and manually assessed semantic comprehension over a balanced subset of 60 functions. The functions are grouped into Low-, Medium-, and High-complexity bands. DeepSeek-Coder-V2 achieves an overall automatic accuracy of 78.33%, compared with 70.33% for Llama. However, accuracy decreases substantially from Low to High complexity, from 93.52% to 52.78% for DeepSeek-Coder-V2 and from 87.04% to 47.22% for Llama. Incorrect predictions are consistently associated with higher values of all four complexity metrics, and correlation and logistic-regression analyses confirm broadly comparable negative associations between structural complexity and correctness. Manual semantic comprehension shows the same degradation pattern, with accuracy decreasing from 100.00% to 75.00% for DeepSeek-Coder-V2 and from 90.00% to 60.00% for Llama. These findings demonstrate that complexity-aware evaluation provides a more diagnostic assessment of LLM code-comprehension reliability than aggregate accuracy alone. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-30 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.37405 — 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-07T15:54:53.978Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-30?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).