利用因果推理实现可解释的程序自动修复
Leveraging Causal Inference for Explainable Automatic Program Repair
摘要:
深度学习模型在自动程序修复方面取得了重大进展。然而,这些方法的黑箱性质限制了它们的实际应用。为了解决这个问题,本文提出了一种可解释的方法,程序修复的基础上的序列到序列模型的因果推理和我们的方法被称为CPR,短期因果程序修复。我们的CPR可以在决策过程中生成解释,它由因果相关的输入输出令牌组组成。首先,我们的方法推断这些关系查询模型与输入干扰数据增强。其次,它从响应中生成令牌图,并解决分区问题以选择最相关的组件。在Java、C、Python和JavaScript四种程序设计语言上的实验表明,CPR可以生成合理解释的因果图,提高程序自动修复中的错误修复性能。
英文摘要:
Deep learning models have made significant progress in automatic program repair. However, the black-box nature of these methods has restricted their practical applications. To address this challenge, this paper presents an interpretable approach for program repair based on sequence-to-sequence models with causal inference and our method is called CPR, short for causal program repair. Our CPR can generate explanations in the process of decision making, which consists of groups of causally related input-output tokens. Firstly, our method infers these relations by querying the model with inputs disturbed by data augmentation. Secondly, it generates a graph over tokens from the responses and solves a partitioning problem to select the most relevant components. The experiments on four programming languages (Java, C, Python, and JavaScript) show that CPR can generate causal graphs for reasonable interpretations and boost the performance of bug fixing in automatic program repair.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。