Metraipolis › archive › dc_735b5d5b23c0
Introspective Uncertainty Estimation for LLM-Based Code Generation — arXiv:2609.13975
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.13975
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T00:15:16.906Z
- SHA-256 of the archived text
09f60bca465574596f481df60138da28940f2d5d5bad4657ab386a5a844ac28d- Stable URL of this page
https://metraipolis.com/documento/dc_735b5d5b23c0
How to cite
Introspective Uncertainty Estimation for LLM-Based Code Generation — arXiv:2609.13975 — arXiv (en), https://arxiv.org/abs/2609.13975 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_735b5d5b23c0 (Metraipolis archive dc_735b5d5b23c0, sha256 09f60bca465574596f481df60138da28940f2d5d5bad4657ab386a5a844ac28d)
BibTeX
@misc{dc735b5d5b23c0,
title = {Introspective Uncertainty Estimation for LLM-Based Code Generation — arXiv:2609.13975},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.13975},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_735b5d5b23c0; sha256 09f60bca465574596f481df60138da28940f2d5d5bad4657ab386a5a844ac28d},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.13975. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large Language Models (LLMs) are increasingly used for code generation but can produce fluent yet functionally incorrect outputs, which limits trust in their usage for practical software engineering workflows. This thesis investigates whether Introspective Uncertainty Estimation (IUE), based on internal hidden-state representations of LLMs, can reliably indicate correctness at the response and line levels for code generation tasks. The objective is to determine the extent to which hidden states encode information about functional code correctness and how this can be leveraged for practical risk assessment and fault localization. Methodologically, this thesis combines response-level evaluation on LiveCodeBench (LCB) and BigCodeBench (BCB) with an augmentation pipeline that derives token- and line-level labels from incorrect programs. In this setup, it compares static and dynamic response-level features, evaluates generalization across tasks, programming domains, and token positions, and studies line-level fault localization. The results show that hidden states contain a strong response-level correctness signal. Static single-token probes perform best, while more elaborate dynamic strategies yield no consistent gains. While generalization across tasks, domains, and token positions is feasible, setting-dependent degradation largely remains for real-world software projects. At a fine granularity, line-level prediction is substantially harder than response-level estimation. However, in a conditional localization setup with known-incorrect programs, Top-K point-of-failure ranking remains effective. Overall, the findings suggest that hidden states are a robust and informative resource for estimating functional code correctness, supporting a two-stage workflow that combines response-level risk screening with targeted line-level prioritization. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-15 in cs.LG). Categorie arXiv: Software Engineering (cs.SE) ; Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2609.13975 — 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-15T23:54:14.873Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).