Toward Explaining Large Language Models in Software Engineering Tasks
Not on the map. Why?
Abstract (arXiv)
Recent progress in Large Language Models (LLMs) has substantially advanced the automation of software engineering (SE) tasks, enabling complex activities such as code generation and code summarization. However, the black-box nature of LLMs remains a major barrier to their adoption in high-stakes and safety-critical domains, where explainability and transparency are vital for trust, accountability, and effective human supervision. Despite increasing interest in explainable AI for software engineering, existing methods lack domain-specific explanations aligned with how practitioners reason about SE artifacts. To address this gap, we introduce FeatureSHAP, the first fully automated, model-agnostic explainability framework tailored to software engineering tasks. Based on Shapley values, FeatureSHAP attributes model outputs to high-level input features through systematic input perturbation and task-specific similarity comparisons, while remaining compatible with both open-source and proprietary LLMs. We evaluate FeatureSHAP on two bi-modal SE tasks: code generation and code summarization. The results show that FeatureSHAP assigns less importance to irrelevant input features and produces explanations with higher fidelity than baseline methods. A practitioner survey involving 37 participants shows that FeatureSHAP helps practitioners better interpret model outputs and make more informed decisions. Collectively, FeatureSHAP represents a meaningful step toward practical explainable AI in software engineering. FeatureSHAP is available at https://github.com/deviserlab/FeatureSHAP.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 45 of its 69 references that are in the map. First posted on arXiv 23 Dec 2025.
Builds on
45 of 69 references.
References · 45
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 988
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
33 more
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2025Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAscited by 491
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 127
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
- 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferencescited by 56
- 2020Interpretability and Explainability: A Machine Learning Zoo Mini-tourcited by 55
- 2024Explainable Artificial Intelligence: A Survey of Needs, Techniques, Applications, and Future Directioncited by 46
- 2024TokenSHAP: Interpreting Large Language Models with Monte Carlo Shapley Value Estimationcited by 41
- 2024Can LLMs Replace Manual Annotation of Software Engineering Artifacts?cited by 40
- 2024The Future of AI-Driven Software Engineeringcited by 23
- 2021An Empirical Study on the Usage of Transformer Models for Code Completioncited by 22
- 2022Are We Building on the Rock? On the Importance of Data Preprocessing for Code Summarizationcited by 22
- 2024Do Machines and Humans Focus on Similar Code? Exploring Explainability of Large Language Models in Code Summarizationcited by 16
- 2022An Exploratory Study on Code Attention in BERTcited by 12
- 2023Toward a Theory of Causation for Interpreting Neural Code Modelscited by 12
- 2024Calibration of Large Language Models on Code Summarizationcited by 12
- 2024SyntaxShap: Syntax-aware Explainability Method for Text Generationcited by 11
- 2025Teaching Your Models to Understand Code via Focal Preference Alignmentcited by 10
- 2024Enhancing Large Language Models for Text-to-Testcase Generationcited by 7
- 2025Optimizing Datasets for Code Summarization: Is Code-Comment Coherence Enough?cited by 4
- 2025Explainable Artificial Intelligence Techniques for Software Development Lifecycle: A Phase-specific Surveycited by 2
Built on by
Not cited yet.