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.
Metamodel-Guided Model Generation with Layered Constraints
University of Science and Technology of China(中国科学技术大学);Hefei Institutes of Physical Science, Chinese Academy of Sciences(中国科学院合肥物质科学研究院);Anhui University(安徽大学)
K. N. Toosi University of Technology(肯恩·托基大学);Ferdowsi University of Mashhad(马什哈德费尔多西大学);Simon Fraser University(西蒙菲莎大学);Amirkabir University of Technology(阿米尔卡比尔理工大学)
Repeton: Structured Bug Repair with ReAct-Guided Patch-and-Test Cycles
Uppsala University Sweden;Hanoi University of Science \& Technology Vietnam;Knovel Engineering Lab Singapore;The University of Alabama at Birmingham USA;Uppsala University;Hanoi University of Science \& Technology;Knovel Engineering Lab;The University of Alabama at Birmingham;Institute for Clarity in Documentation Dublin Ohio USA;Inria Paris-Rocquencourt Rocquencourt France;Rajiv Gandhi University Doimukh Arunachal Pradesh India;Tsinghua University Haidian Qu Beijing Shi China;Palmer Research Laboratories San Antonio Texas USA;Institute for Clarity in Documentation;Inria Paris-Rocquencourt;Rajiv Gandhi University;Tsinghua University;Palmer Research Laboratories
本文提出开源框架 Repeton,用 ReAct 引导的结构化补丁与测试循环替代整体修复生成,在 SWE-bench Lite 上提升补丁有效性与可解释性。