On the Reliability and Explainability of Language Models for Program Generation
Not on the map. Why?
Abstract (arXiv)
Recent studies have adopted pre-trained language models, such as CodeT5 and CodeGPT, for automated program generation tasks like code generation, repair, and translation. Numerous language model-based approaches have been proposed and evaluated on various benchmark datasets, demonstrating promising performance. However, there is still uncertainty about the reliability of these models, particularly their realistic ability to consistently transform code sequences. This raises the question: are these techniques sufficiently trustworthy for automated program generation? Consequently, Further research is needed to understand model logic and assess reliability and explainability. To bridge these research gaps, we conduct a thorough empirical study of eight popular language models on five representative datasets to determine the capabilities and limitations of automated program generation approaches. We further employ advanced explainable AI approaches to highlight the tokens that significantly contribute to the code transformation. We discover that state-of-the-art approaches suffer from inappropriate performance evaluation stemming from severe data duplication, causing over-optimistic results. Our explainability analysis reveals that, in various experimental scenarios, language models can recognize code grammar and structural information, but they exhibit limited robustness to changes in input sequences. Overall, more rigorous evaluation approaches and benchmarks are critical to enhance the reliability and explainability of automated program generation moving forward. Our findings provide important guidelines for this goal.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). First posted on arXiv 19 Feb 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 7; 2025: 9; 2026: 1.
17 papers.
Sort:
By area:
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarioscited by 16
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 10
- 2024An Empirical Study on Capability of Large Language Models in Understanding Code Semanticscited by 7
- 2025Towards Transparent AI: A Survey on Explainable Large Language Modelscited by 7
- 2024Looking into Black Box Code Language Modelscited by 5
- 2025Can LLMs Handle WebShell Detection? Overcoming Detection Challenges with Behavioral Function-Aware Frameworkcited by 5
- 2025How Programming Concepts and Neurons Are Shared in Code Language Modelscited by 4
- 2025Towards Transparent AI: A Survey on Explainable Language Modelscited by 3
- 2025Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?cited by 3
- 2024Icing on the Cake: Automatic Code Summarization at Ericssoncited by 2
5 more
- 2024Protect Your Secrets: Understanding and Measuring Data Exposure in VSCode Extensionscited by 1
- 2025Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generationcited by 1
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectivescited by 0
- 2025Automated Code Review Using Large Language Models with Symbolic Reasoningcited by 0
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Studycited by 0
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2025Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?23 Dec 2025
- 2025Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation10 Oct 2025
- 2025Towards Transparent AI: A Survey on Explainable Language Models25 Sep 2025
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunities15 Aug 2025
- 2025Automated Code Review Using Large Language Models with Symbolic Reasoning24 Jul 2025
- 2025Towards Transparent AI: A Survey on Explainable Large Language Models26 Jun 2025
- 2025How Programming Concepts and Neurons Are Shared in Code Language Models1 Jun 2025
- 2025Can LLMs Handle WebShell Detection? Overcoming Detection Challenges with Behavioral Function-Aware Framework14 Apr 2025
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectives18 Mar 2025
- 2024Protect Your Secrets: Understanding and Measuring Data Exposure in VSCode Extensions1 Dec 2024
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios16 Oct 2024
5 more
- 2024Icing on the Cake: Automatic Code Summarization at Ericsson19 Aug 2024
- 2024Selective Prompt Anchoring for Code Generation17 Aug 2024
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanations12 Jul 2024
- 2024Looking into Black Box Code Language Models5 Jul 2024
- 2024An Empirical Study on Capability of Large Language Models in Understanding Code Semantics4 Jul 2024
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 10
- 2024An Empirical Study on Capability of Large Language Models in Understanding Code Semanticscited by 7
- 2025Towards Transparent AI: A Survey on Explainable Large Language Modelscited by 7
- 2024Looking into Black Box Code Language Modelscited by 5
- 2025Can LLMs Handle WebShell Detection? Overcoming Detection Challenges with Behavioral Function-Aware Frameworkcited by 5
- 2025How Programming Concepts and Neurons Are Shared in Code Language Modelscited by 4
- 2025Towards Transparent AI: A Survey on Explainable Language Modelscited by 3
- 2025Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?cited by 3
- 2024Icing on the Cake: Automatic Code Summarization at Ericssoncited by 2
- 2024Protect Your Secrets: Understanding and Measuring Data Exposure in VSCode Extensionscited by 1
- 2025Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generationcited by 1
12 most cited of 14 All 14 (JSON)
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2025Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?23 Dec 2025
- 2025Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation10 Oct 2025
- 2025Towards Transparent AI: A Survey on Explainable Language Models25 Sep 2025
- 2025Towards Transparent AI: A Survey on Explainable Large Language Models26 Jun 2025
- 2025How Programming Concepts and Neurons Are Shared in Code Language Models1 Jun 2025
- 2025Can LLMs Handle WebShell Detection? Overcoming Detection Challenges with Behavioral Function-Aware Framework14 Apr 2025
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectives18 Mar 2025
- 2024Protect Your Secrets: Understanding and Measuring Data Exposure in VSCode Extensions1 Dec 2024
- 2024Icing on the Cake: Automatic Code Summarization at Ericsson19 Aug 2024
- 2024Selective Prompt Anchoring for Code Generation17 Aug 2024
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanations12 Jul 2024
12 newest of 14 All 14 (JSON)