arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00422cs.SEcs.LG
收藏

基于Shapley的神经修复方法通过无导数优化

Shapley-Guided Neural Repair Approach via Derivative-Free Optimization

National University of Defense Technology(国防科技大学);Nanjing University(南京大学);Zhejiang University(浙江大学)

Xinyu Sun, Wanwei Liu, Haoang Chi, Tingyu Chen, Xiaoguang Mao, Shangwen Wang, Lei Bu, Jingyi Wang, Yang Tan, Zhenyi Qi

AI总结:

本文提出SHARPEN方法,结合可解释故障定位与无导数优化策略,有效修复深度神经网络的缺陷,提升鲁棒性和泛化能力。

摘要:

DNNs容易受到后门、对抗攻击和不公平性等缺陷的影响,削弱其可靠性。现有方法主要涉及重新训练、优化、约束求解或搜索算法。然而,大多数方法依赖梯度计算,限制了其在特定激活函数(如ReLU)上的应用,或使用不可解释的定位和修复搜索算法。此外,它们通常缺乏在多种属性上的泛化能力。我们提出SHARPEN,整合可解释的故障定位与无导数优化策略。首先,SHARPEN引入基于深度SHAP的定位策略,量化每个层和神经元对错误输出的边际贡献。具体而言,一种自上而下的粗到细方法通过聚合影响重新排序层,然后通过分析违反属性状态和良性状态之间的激活差异来定位故障神经元/滤波器。随后,SHARPEN结合CMA-ES来修复识别的神经元。CMA-ES利用协方差矩阵捕捉变量依赖性,实现无梯度搜索和耦合神经元的协调调整。通过结合可解释的定位与进化优化,SHARPEN在多种架构上实现无导数修复,对梯度异常和超参数更不敏感。我们在三个修复任务上展示了SHARPEN的有效性。在平衡属性修复和准确性保持方面,它在后门移除(+10.56%)、对抗性缓解(+5.78%)和不公平性修复(+11.82%)方面优于基线。值得注意的是,SHARPEN能够处理多样任务,其模块化设计可与不同无导数优化器插件,突显其灵活性。

英文摘要:

DNNs are susceptible to defects like backdoors, adversarial attacks, and unfairness, undermining their reliability. Existing approaches mainly involve retraining, optimization, constraint-solving, or search algorithms. However, most methods rely on gradient calculations, restricting applicability to specific activation functions (e.g., ReLU), or use search algorithms with uninterpretable localization and repair. Furthermore, they often lack generalizability across multiple properties. We propose SHARPEN, integrating interpretable fault localization with a derivative-free optimization strategy. First, SHARPEN introduces a Deep SHAP-based localization strategy quantifying each layer's and neuron's marginal contribution to erroneous outputs. Specifically, a hierarchical coarse-to-fine approach reranks layers by aggregated impact, then locates faulty neurons/filters by analyzing activation divergences between property-violating and benign states. Subsequently, SHARPEN incorporates CMA-ES to repair identified neurons. CMA-ES leverages a covariance matrix to capture variable dependencies, enabling gradient-free search and coordinated adjustments across coupled neurons. By combining interpretable localization with evolutionary optimization, SHARPEN enables derivative-free repair across architectures, being less sensitive to gradient anomalies and hyperparameters. We demonstrate SHARPEN's effectiveness on three repair tasks. Balancing property repair and accuracy preservation, it outperforms baselines in backdoor removal (+10.56%), adversarial mitigation (+5.78%), and unfairness repair (+11.82%). Notably, SHARPEN handles diverse tasks, and its modular design is plug-and-play with different derivative-free optimizers, highlighting its flexibility.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑