SCHOLIA- An XAI Framework for APR
Automated Program Repair (APR) can assist developers by automatically generating patches for buggy code. However, as recent techniques leverage deep learning models, developers do not know why the model generated a particular patch. Existing Explainable AI (XAI) techniques, such as SHAP, can be applied to APR, however, their complexity raises questions about whether developers find such explanations understandable. In this work, we develop a novel framework Scholia, with two extensions to feature attribution methods to make them more understandable to the developers. First generates a text explanation based on attribution scores. Second creates a visualization capturing the transformation of the patch based on the impact of code tokens, named patch transformation. We evaluated the proposed new two explanations types compared to SHAP, using a user survey. The survey received responses from 106 participants. Accordingly, 68.9% <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$(\mathrm{P} <. 05)$</tex> and 64.2% <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$(\mathrm{P} <. 05)$</tex> of participants agreed that text explanation and patch transformation methods are easy to understand, while only 17.9% <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$(\mathrm{P} <. 05)$</tex> agreed with the original SHAP explanation. The survey responses indicate, with statistical significance, that our extensions to SHAP are easier to understand than the original SHAP explanations.
Authors
- Ridwan Shariffdeen (ORCID: https://orcid.org/0000-0001-5409-4864)
- Nisansa de Silva (ORCID: https://orcid.org/0000-0002-5361-4810)
- Sandareka Wickramanayake (ORCID: https://orcid.org/0000-0003-0314-5988)
- Nimantha Cooray
- Nethum Lamahewage
Institutions
- National University of Singapore (SG)
- University of Moratuwa (LK)
Publication Details
- Published
- 2025-04-29
- DOI
- https://doi.org/10.1109/apr66717.2025.00008
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00