Investigating Explainability of Generative AI for Code through Scenario-based Design
Jiao Sun, Q. Vera Liao, Michael Muller, Mayank Agarwal, Stephanie, Houde, Kartik Talamadupula, Justin D. Weisz

TL;DR
This paper explores how to make generative AI models for coding more explainable by understanding user needs through scenario-based design and workshops with software engineers.
Contribution
It introduces a human-centered approach to identify explainability needs for GenAI in software engineering and proposes four types of XAI features for code generation models.
Findings
Identified key explainability needs for GenAI in coding tasks
Proposed four types of XAI features for GenAI models
Gathered design ideas from software engineers through workshops
Abstract
What does it mean for a generative AI model to be explainable? The emergent discipline of explainable AI (XAI) has made great strides in helping people understand discriminative models. Less attention has been paid to generative models that produce artifacts, rather than decisions, as output. Meanwhile, generative AI (GenAI) technologies are maturing and being applied to application domains such as software engineering. Using scenario-based design and question-driven XAI design approaches, we explore users' explainability needs for GenAI in three software engineering use cases: natural language to code, code translation, and code auto-completion. We conducted 9 workshops with 43 software engineers in which real examples from state-of-the-art generative AI models were used to elicit users' explainability needs. Drawing from prior work, we also propose 4 types of XAI features for GenAI…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Explainable Artificial Intelligence (XAI) · Scientific Computing and Data Management
