[Paper Review] Search Based Repair of Deep Neural Networks.
This paper proposes Arachne, a search-based repair technique for deep neural networks (DNNs) that uses sensitivity-based fault localization and particle swarm optimization (PSO) to modify only a small subset of neural weights to correct misclassifications. It reduces the most frequent misclassification type in a CIFAR-10 classifier by 27.5% without additional training data, producing more targeted patches than retraining.
Deep Neural Networks (DNNs) are being adopted in various domains, including safety critical ones. The wide-spread adoption also calls for ways to guide the testing of their accuracy and robustness, for which various test adequacy criteria and input generation methods have been recently introduced. In this paper, we explore the natural subsequent step: given an input that reveals unexpected behaviour in a trained DNN, we propose to repair the DNN using input-output pairs as a specification. This paper introduces Arachne, a novel program repair technique for DNNs. Arachne first performs sensitivity based fault localisation to limit the number of neural weights it has to modify. Subsequently, Arachne uses Particle Swarm Optimisation (PSO) to directly optimise the localised neural weights until the behaviour is corrected. An empirical study using three different benchmark datasets shows that Arachne can reduce the instances of the most frequent misclassification type committed by a pre-trained CIFAR-10 classifier by 27.5%, without any need for additional training data. Patches generated by Arachne tend to be more focused on the targeted misbehaviour than DNN retraining, which is more disruptive to non-targeted behaviour. The overall results suggest the feasibility of patching DNNs using Arachne until they can be retrained properly.
Motivation & Objective
- To address the lack of systematic methods for repairing DNNs after misclassification is detected.
- To develop a technique that corrects DNN behavior using input-output pairs as specifications, avoiding full retraining.
- To minimize disruption to non-targeted behaviors by focusing repairs on only the most sensitive weights.
- To evaluate the feasibility and effectiveness of search-based repair in improving DNN robustness and accuracy.
Proposed method
- Arachne begins with sensitivity-based fault localization to identify the most influential weights contributing to misclassification.
- It then applies Particle Swarm Optimization (PSO) to directly optimize only the localized weights to correct the DNN's behavior.
- The repair process uses input-output pairs as specifications to guide the optimization toward correct outputs.
- PSO iteratively adjusts the selected weights to minimize the loss between predicted and expected outputs.
- The method avoids retraining the entire network, preserving the original model's behavior on non-targeted inputs.
- The approach is evaluated on three benchmark datasets, including CIFAR-10, to assess repair effectiveness and specificity.
Experimental results
Research questions
- RQ1Can a search-based approach effectively repair DNNs using only input-output pairs as specifications?
- RQ2How does the repair quality of Arachne compare to full retraining in terms of reducing targeted misclassifications?
- RQ3To what extent does Arachne minimize unintended side effects on non-targeted inputs?
- RQ4How effective is sensitivity-based fault localization in reducing the search space for repair?
Key findings
- Arachne reduced the most frequent misclassification type in a pre-trained CIFAR-10 classifier by 27.5%.
- The patches generated by Arachne were more focused on correcting only the targeted misbehaviors than full retraining.
- Arachne achieved repair without requiring any additional training data.
- The repair process preserved the original model's behavior on non-targeted inputs more effectively than retraining.
- Sensitivity-based fault localization successfully narrowed the number of weights needing modification, improving efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.