Counterfactual Explanations for Models of Code

被引:0
|
作者
Cito, Juergen [1 ,2 ]
Dillig, Isil [3 ,4 ]
Murali, Vijayaraghavan [2 ]
Chandra, Satish [2 ]
机构
[1] TU Wien, Vienna, Austria
[2] Meta Platforms Inc, Menlo Pk, CA USA
[3] UT Austin, Austin, TX USA
[4] Meta, Menlo Pk, CA USA
关键词
D O I
10.1145/3510457.3513081
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Machine learning (ML) models play an increasingly prevalent role in many software engineering tasks. However, because most models are now powered by opaque deep neural networks, it can be difficult for developers to understand why the model came to a certain conclusion and how to act upon the model's prediction. Motivated by this problem, this paper explores counterfactual explanations for models of source code. Such counterfactual explanations constitute minimal changes to the source code under which the model "changes its mind". We integrate counterfactual explanation generation to models of source code in a real-world setting. We describe considerations that impact both the ability to find realistic and plausible counterfactual explanations, as well as the usefulness of such explanation to the developers that use the model. In a series of experiments we investigate the efficacy of our approach on three different models, each based on a BERT-like architecture operating over source code.
引用
收藏
页码:125 / 134
页数:10
相关论文
共 50 条
  • [1] Diffusion Models for Counterfactual Explanations
    Jeanneret, Guillaume
    Simon, Loic
    Jurie, Fredric
    [J]. COMPUTER VISION - ACCV 2022, PT VII, 2023, 13847 : 219 - 237
  • [2] Counterfactual Models for Fair and Adequate Explanations
    Asher, Nicholas
    De Lara, Lucas
    Paul, Soumya
    Russell, Chris
    [J]. MACHINE LEARNING AND KNOWLEDGE EXTRACTION, 2022, 4 (02): : 371 - 396
  • [3] Understanding Survival Models Through Counterfactual Explanations
    Alabdallah, Abdallah
    Jakubowski, Jakub
    Pashami, Sepideh
    Bobek, Szymon
    Ohlsson, Mattias
    Rognvaldsson, Thorsteinn
    Nalepa, Grzegorz J.
    [J]. COMPUTATIONAL SCIENCE, ICCS 2024, PT IV, 2024, 14835 : 310 - 324
  • [4] The Skyline of Counterfactual Explanations for Machine Learning Decision Models
    Wang, Yongjie
    Ding, Qinxu
    Wang, Ke
    Liu, Yue
    Wu, Xingyu
    Wang, Jinglong
    Liu, Yong
    Miao, Chunyan
    [J]. PROCEEDINGS OF THE 30TH ACM INTERNATIONAL CONFERENCE ON INFORMATION & KNOWLEDGE MANAGEMENT, CIKM 2021, 2021, : 2030 - 2039
  • [5] ViCE: Visual Counterfactual Explanations for Machine Learning Models
    Gomez, Oscar
    Holter, Steffen
    Yuan, Jun
    Bertini, Enrico
    [J]. PROCEEDINGS OF THE 25TH INTERNATIONAL CONFERENCE ON INTELLIGENT USER INTERFACES, IUI 2020, 2020, : 531 - 535
  • [6] DECE: Decision Explorer with Counterfactual Explanations for Machine Learning Models
    Cheng, Furui
    Ming, Yao
    Qu, Huamin
    [J]. IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2021, 27 (02) : 1438 - 1447
  • [7] Counterfactual Visual Explanations
    Goyal, Yash
    Wu, Ziyan
    Ernst, Jan
    Batra, Dhruv
    Parikh, Devi
    Lee, Stefan
    [J]. INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 97, 2019, 97
  • [8] CSSE - An agnostic method of counterfactual, selected, and social explanations for classification models
    Balbino, Marcelo de Sousa
    Galvez, Luis Enrique Zarate
    Nobre, Cristiane Neri
    [J]. EXPERT SYSTEMS WITH APPLICATIONS, 2023, 228
  • [9] Counterfactual Causality and Historical Explanations
    Gerber, Doris
    [J]. EXPLANATION IN ACTION THEORY AND HISTORIOGRAPHY: CAUSAL AND TELEOLOGICAL APPROACHES, 2019, : 167 - 178
  • [10] PreCoF: counterfactual explanations for fairness
    Sofie Goethals
    David Martens
    Toon Calders
    [J]. Machine Learning, 2024, 113 : 3111 - 3142