Counterfactuals have become a popular technique nowadays for interacting with black-box machine learning models and understanding how to change a particular instance to obtain a desired outcome from the model. However, most existing approaches assume instant materialization of these changes, ignoring that they may require effort and a specific order of application. Recently, methods have been proposed that also consider the order in which actions are applied, leading to the so-called sequential counterfactual generation problem. In this work, we propose a model-agnostic method for sequential counterfactual generation. We formulate the task as a multi-objective optimization problem and present a genetic algorithm approach to find optimal sequences of actions leading to the counterfactuals. Our cost model considers not only the direct effect of an action, but also its consequences. Experimental results show that compared to state-of-the-art, our approach generates less costly solutions, is more efficient and provides the user with a diverse set of solutions to choose from.
翻译:反事实现已成为一种流行的技术,用于与黑盒机器学习模型互动,并了解如何改变某个特定实例,以获得该模型的预期结果。然而,大多数现有方法假定这些变化会立即实现,忽视这些变化可能需要努力和具体应用顺序。最近,提出了一些方法,也考虑到行动实施顺序,导致所谓的相继反事实生成问题。在这项工作中,我们提出了一种对相继反事实生成的模型-不可知方法。我们把这项任务设计成一个多目标优化问题,并提出了一种基因算法方法,以找到导致反事实发生的最佳行动序列。我们的成本模型不仅考虑行动的直接效果,而且考虑其后果。实验结果显示,与最新技术相比,我们的方法产生的成本较低,更高效,为用户提供了一套可供选择的多样化解决方案。