[论文解读] Robust Counterfactual Explanations for Neural Networks With Probabilistic Guarantees
本文提出了一种用于神经网络反事实解释的新稳定性度量,可确保在自然发生的模型变化下保持鲁棒性——即在对预测结果影响有限的参数任意变动下仍保持稳定。通过利用高斯扰动下Lipschitz函数的集中不等式,该方法提供了概率性保证:高稳定性反事实在模型更新后仍保持有效,且在多个数据集上,其在有效性、成本效率和真实性方面优于先前方法。
There is an emerging interest in generating robust counterfactual explanations that would remain valid if the model is updated or changed even slightly. Towards finding robust counterfactuals, existing literature often assumes that the original model $m$ and the new model $M$ are bounded in the parameter space, i.e., $\| ext{Params}(M){-} ext{Params}(m)\|{<}Δ$. However, models can often change significantly in the parameter space with little to no change in their predictions or accuracy on the given dataset. In this work, we introduce a mathematical abstraction termed $ extit{naturally-occurring}$ model change, which allows for arbitrary changes in the parameter space such that the change in predictions on points that lie on the data manifold is limited. Next, we propose a measure -- that we call $ extit{Stability}$ -- to quantify the robustness of counterfactuals to potential model changes for differentiable models, e.g., neural networks. Our main contribution is to show that counterfactuals with sufficiently high value of $ extit{Stability}$ as defined by our measure will remain valid after potential $ extit{naturally-occurring}$ model changes with high probability (leveraging concentration bounds for Lipschitz function of independent Gaussians). Since our quantification depends on the local Lipschitz constant around a data point which is not always available, we also examine practical relaxations of our proposed measure and demonstrate experimentally how they can be incorporated to find robust counterfactuals for neural networks that are close, realistic, and remain valid after potential model changes. This work also has interesting connections with model multiplicity, also known as, the Rashomon effect.
研究动机与目标
- 解决反事实解释在模型更新下的脆弱性问题,即使发生微小变化,也可能导致建议失效。
- 形式化一种新抽象——自然发生的模型变化,允许任意参数变动,只要数据流形上的预测变化保持 bounded。
- 提出一种稳定性度量,用于量化反事实对模型变化的鲁棒性,并提供模型变化后有效性的概率性保证。
- 开发实用算法,将该稳定性度量融入其中,以生成真实、低成本且鲁棒的神经网络反事实。
- 将所提框架与模型多重性(Rashomon效应)相联系,强调自然发生的模型变体的高概率性。
提出的方法
- 引入‘自然发生的模型变化’概念,作为对参数有界假设的放松,允许任意参数变动,只要数据流形上预测变化被限制。
- 定义稳定性度量 $ R_{k, au}^{(x,m)} = \frac{1}{k}\sum_{x_i \in N_{x,k}} \left( m(x_i) - \gamma_x \|x - x_i\| \right) $,其中 $ \gamma_x $ 为模型在反事实点 $ x $ 附近的局部Lipschitz常数。
- 利用独立高斯分布下Lipschitz函数的集中不等式,推导出概率性保证:高稳定性意味着在模型变化后仍具有高概率的有效性。
- 提出稳定性度量的实际松弛形式,避免显式估计Lipschitz常数,从而在神经网络中实现高效优化。
- 开发两种算法:T-Rex:I(用于成本优化的反事实)和 T-Rex:NN(用于数据支持、类似最近邻的反事实),均整合了该稳定性度量。
- 采用基于梯度的优化方法,并结合高斯扰动,以估计并最大化反事实生成过程中的稳定性。
实验结果
研究问题
- RQ1我们能否在理论上保证反事实解释在任意但现实的模型更新后仍保持有效?
- RQ2在不假设参数变动有界的情况下,如何量化反事实对模型变化的鲁棒性?
- RQ3模型多重性(Rashomon效应)与反事实解释鲁棒性之间有何关系?
- RQ4我们能否设计实用算法,生成具有高稳定性、从而在模型变化下保持高有效性的反事实?
- RQ5与基于预测值或平均输出的简单启发式方法相比,所提出的稳定性度量在鲁棒性方面表现如何?
主要发现
- T-Rex:I 在 HELOC、German Credit 和 CTG 数据集上,反事实有效性显著高于最小成本和最近邻基线方法,且成本和 LOF 水平相当或更优。
- T-Rex:I 在保持更低成本和更高 LOF 的同时,有效性与 SNS 和 ROAR 方法相当或更优,展现出鲁棒性与可行性之间更优的权衡。
- T-Rex:NN 算法在保持高数据支持(LOF)的同时,相比标准最近邻反事实显著提升了鲁棒性,但优化成本有所增加。
- 消融研究显示,通过高斯采样引入预测变异性的方法,生成的反事实比仅依赖平均预测或模型输出更鲁棒。
- 所提出的具有概率性保证的稳定性度量,优于简单鲁棒性启发式方法,尤其在数据和权重初始化变化下表现更优。
- 理论分析证实,高稳定性反事实在自然发生的模型变化后极大概率仍保持有效,该结论在多个数据集和指标上得到实证验证。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。