Pith. sign in

REVIEW 1 cited by

Counterfactual Explanations for Models of Code

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2111.05711 v1 pith:5I2CXUXL submitted 2021-11-10 cs.SE cs.AIcs.LG

classification cs.SEcs.AIcs.LG
keywords modelscodecounterfactualexplanationsmodelsourcechangesexplanation
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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 user of 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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. CodeSCM: Causal Analysis for Multi-Modal Code Generation

    cs.CL 2025-02 conditional novelty 5.0 of 10

    A causal framework with latent mediators quantifies how prompt modalities affect code LLMs, finding that input-output examples and function-header names are influential beyond natural language instructions.

Pith tools