[Paper Review] Repairing Neural Networks by Leaving the Right Past Behind
This paper proposes a Bayesian continual learning framework for repairing neural networks by identifying and erasing harmful training examples responsible for model failures. By approximating counterfactual posteriors through data deletion, the method outperforms influence functions and data deletion baselines in both failure cause identification and model repair, with EWC-influence enabling accurate, efficient detection and EWC-deletion achieving superior trade-offs between failure set accuracy and generalization.
Prediction failures of machine learning models often arise from deficiencies in training data, such as incorrect labels, outliers, and selection biases. However, such data points that are responsible for a given failure mode are generally not known a priori, let alone a mechanism for repairing the failure. This work draws on the Bayesian view of continual learning, and develops a generic framework for both, identifying training examples that have given rise to the target failure, and fixing the model through erasing information about them. This framework naturally allows leveraging recent advances in continual learning to this new problem of model repairment, while subsuming the existing works on influence functions and data deletion as specific instances. Experimentally, the proposed approach outperforms the baselines for both identification of detrimental training data and fixing model failures in a generalisable manner.
Motivation & Objective
- To develop a generic, data-centric approach for repairing machine learning models after deployment, without requiring model retraining from scratch.
- To identify the most detrimental training examples causing specific failure modes in test data, even when the root cause is unknown a priori.
- To enable model repair by efficiently erasing the model's 'memories' of these harmful examples using a Bayesian continual learning perspective.
- To unify and extend existing methods like influence functions and data deletion under a single principled framework.
- To demonstrate that data-level intervention—specifically, targeted deletion—can effectively repair model failures while preserving performance on non-failure cases.
Proposed method
- The framework models the counterfactual posterior distribution by assuming the absence of selected training data, formalized as a Bayesian continual (un)learning problem.
- It uses approximate inference to estimate the posterior over model parameters when specific training examples are removed, enabling identification of influential data points.
- The method extends Elastic Weight Consolidation (EWC) to estimate influence scores (EWC-influence), which identify the most harmful training examples for a given failure mode.
- For model repair, it applies EWC-deletion—a variant of EWC—to fine-tune the model after removing the top influential examples identified via EWC-influence.
- The approach is agnostic to the source of failure, handling both label noise and input-level corruption (e.g., adversarial examples) uniformly.
- Hyperparameters are tuned via early stopping on a query set to balance performance on failure cases and the rest of the test distribution.
Experimental results
Research questions
- RQ1Can we automatically identify which training examples are responsible for specific model failures in deployed systems?
- RQ2How can we repair a model’s performance on failure cases without retraining from scratch or modifying the model architecture?
- RQ3To what extent can data deletion, guided by influence estimation, improve model robustness while maintaining generalization?
- RQ4How does the proposed framework compare to existing influence function and data deletion methods in identifying and removing harmful data?
- RQ5Can continual learning techniques like EWC be repurposed for model repair through influence estimation and selective deletion?
Key findings
- EWC-influence outperformed baseline influence functions and random selection in identifying the most harmful training examples, especially in detecting ambiguous or mislabeled instances.
- On MNIST with annotation noise, EWC-deletion achieved a better trade-off between failure set accuracy and remaining set performance than Newton-update-deletion, approaching the performance of full fine-tuning.
- On CIFAR-10 with adversarial poisoning, EWC-deletion improved failure set accuracy by 5% over Newton-update-deletion, with less than 1% degradation on the remaining test set.
- The method achieved comparable or faster runtime than baselines, demonstrating practical efficiency for real-world deployment.
- Removing all corrupted inputs via retraining did not significantly improve failure set accuracy, indicating that EWC-influence successfully isolated the most harmful outliers rather than just noisy data.
- The framework subsumes influence functions and data deletion as special cases, revealing their limitations and unifying them under a common Bayesian continual learning perspective.
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.