Introduction
Deep neural networks (DNNs) are increasingly integrated into safety-critical systems, ranging from autonomous vehicles to airborne collision avoidance. However, these models remain susceptible to significant defects, including adversarial vulnerabilities, backdoors, and safety property violations. While "neural network repair" has emerged as a field to address these post-deployment issues, existing provable repair methods—which provide mathematical guarantees that a fix holds across an entire range of inputs—face critical bottlenecks. Specifically, they suffer from poor scalability in high-dimensional spaces, high computational overhead, and a tendency to degrade the model's original accuracy (fidelity) by over-correcting the final classification layers.
To address these challenges, this research introduces ProRepair, a novel framework designed to fix DNN defects with formal guarantees while maintaining high efficiency and model fidelity. By shifting the focus from the final decision layers to the early feature extraction layers, ProRepair achieves significant performance gains over previous state-of-the-art methods.
Methodology: The ProRepair Framework
ProRepair departs from traditional repair strategies that modify the classifier's weights. Instead, it adopts an "inverse perspective" focused on the feature extractor. The framework consists of several key technical innovations:
1. Proxy Box Synthesis
Calculating the exact "preimage"—the complete set of features that lead to a correct output—is computationally intractable for complex networks. ProRepair overcomes this by synthesizing a "proxy box" within the feature space. This box serves as a precise target zone; if the feature extractor can be tuned to map problematic inputs into this zone, the subsequent layers of the network will naturally produce the correct classification.
2. Bounded Distance Measure
The authors derived a new loss function based on the geometry of these proxy boxes. Unlike standard loss functions that may stall as features approach a target, this bounded distance measure ensures the optimization process remains effective, allowing for a more surgical and stable repair of the network's weights.
3. Adaptive Property Refinement
For "region-wise" repairs (fixing a continuous volume of input space rather than individual points), ProRepair employs an iterative refinement process. When a counterexample is identified, the framework uses a specialized Refine Score to determine which input dimension to split. This score accounts for both the magnitude of the input range and its specific impact on the output, allowing the tool to navigate high-dimensional spaces without the exponential complexity that typically plagues formal verification.
4. Formal Guarantees
ProRepair integrates with formal verifiers, such as auto-LiRPA, to provide mathematical proof that the repaired model satisfies the desired safety or correctness properties. This ensures that the fix is not merely a heuristic adjustment but a provable guarantee.
Experimental Evaluation
The effectiveness of ProRepair was evaluated across 76 different models and several standard benchmarks, covering four distinct repair tasks:
- Backdoor & Adversarial Attacks: Tested on SVHN, GTSRB (Traffic Signs), CIFAR-10, and CIFAR-100.
- Natural Corruption: Evaluated using MNIST-C (corrupted handwritten digits).
- Safety Property Violation: Tested on the ACAS Xu benchmark, a real-world airborne collision avoidance system for unmanned aircraft.
Key Results and Insights
ProRepair consistently outperformed existing provable methods, such as APRNN and PRDNN, across several metrics:
- Unprecedented Efficiency: The framework achieved speedups ranging from 5× to 2000× compared to existing provable approaches. Point-wise repairs were often completed in under two seconds.
- Superior Scalability: In region-wise repair tasks, ProRepair successfully handled input spaces with up to 160 dimensions. For context, previous state-of-the-art tools struggled to scale beyond 9–16 dimensions.
- Robust Effectiveness: On the ACAS Xu safety benchmark, ProRepair successfully repaired all 36 property violations. The best existing baseline managed to fix only 8 of the 36.
- High Fidelity and Generalization: By fixing the "why" (the feature extraction) rather than just the "what" (the final label), ProRepair preserved the model's original performance on clean data. Repaired models showed a 30-40% improvement in generalization on unseen data compared to baselines.
Conclusion and Future Work
ProRepair represents a significant advancement in the field of provable neural network repair. By utilizing proxy box synthesis and adaptive refinement, it overcomes the scalability and efficiency barriers that have previously limited the practical application of formal repair methods.
While highly effective, the authors note that ProRepair's scalability remains linked to the underlying performance of neural network verifiers. Future research directions include extending the framework to handle non-box constraints (such as $L_2$-balls) and applying the methodology to broader ethical defects in AI, such as algorithmic bias and fairness violations.
Summary updated