Skip to main content
QUICK REVIEW

[Paper Review] Sound and Complete Neural Network Repair with Minimality and Locality Guarantees

Feisi Fu, Wenchao Li|arXiv (Cornell University)|Oct 14, 2021
Adversarial Robustness in Machine LearningComputer Science21 references7 citations
TL;DR

This paper proposes REASSURE, a sound and complete neural network repair method for ReLU networks that guarantees minimal, localized function-space changes by constructing a patch network tailored to the linear region of buggy inputs. The approach ensures correctness on buggy inputs while preserving original behavior on all other inputs, outperforming existing methods in locality and side-effect minimization.

ABSTRACT

We present a novel methodology for repairing neural networks that use ReLU activation functions. Unlike existing methods that rely on modifying the weights of a neural network which can induce a global change in the function space, our approach applies only a localized change in the function space while still guaranteeing the removal of the buggy behavior. By leveraging the piecewise linear nature of ReLU networks, our approach can efficiently construct a patch network tailored to the linear region where the buggy input resides, which when combined with the original network, provably corrects the behavior on the buggy input. Our method is both sound and complete -- the repaired network is guaranteed to fix the buggy input, and a patch is guaranteed to be found for any buggy input. Moreover, our approach preserves the continuous piecewise linear nature of ReLU networks, automatically generalizes the repair to all the points including other undetected buggy inputs inside the repair region, is minimal in terms of changes in the function space, and guarantees that outputs on inputs away from the repair region are unaltered. On several benchmarks, we show that our approach significantly outperforms existing methods in terms of locality and limiting negative side effects. Our code is available on GitHub: https://github.com/BU-DEPEND-Lab/REASSURE.

Motivation & Objective

  • To address the lack of formal guarantees in existing neural network repair methods, particularly in preserving correct behavior on non-buggy inputs.
  • To develop a repair methodology that limits changes to the function space to only the linear region containing buggy inputs, ensuring minimal and localized modifications.
  • To guarantee that repairs are both sound (correctly fix buggy inputs) and complete (a repair exists for any buggy input).
  • To preserve the original network's performance on all inputs outside the repair region, avoiding catastrophic forgetting or unintended side effects.
  • To enable efficient, scalable repair without requiring retraining or access to original training data.

Proposed method

  • Leverages the continuous piecewise linear (CPWL) property of ReLU networks to identify the linear region containing each buggy input.
  • Constructs a patch network specifically for the linear region of the buggy input, using linear constraints derived from the ReLU network's activation patterns.
  • Combines the patch network with the original network via a weighted sum, ensuring the repaired output is provably correct on the buggy input.
  • Uses linear programming to synthesize the patch network, ensuring minimal changes in the function space and preserving outputs on inputs outside the repair region.
  • Supports both point-wise and area-wise repairs, with optional feature-space repairs to reduce parameter overhead.
  • Applies to general CPWL networks, including CNNs, by expressing max-pooling layers as ReLU-based linear operations.

Experimental results

Research questions

  • RQ1Can a neural network repair method guarantee both soundness and completeness in correcting buggy inputs without retraining?
  • RQ2How can repair be localized to the function space to minimize unintended side effects on non-buggy inputs?
  • RQ3Can the repair process be made minimal in terms of function-space changes while preserving original network behavior?
  • RQ4To what extent can the repair be generalized to other inputs within the same linear region?
  • RQ5How does the parameter overhead of the repair compare to existing architectures, especially in high-dimensional input spaces?

Key findings

  • REASSURE guarantees soundness and completeness: every buggy input is repaired, and a valid patch is always constructible.
  • The method ensures locality by altering only the function space within the linear region of the buggy input, leaving all other inputs unchanged.
  • On ImageNet benchmarks, REASSURE achieved 82.5% accuracy with only 0.0015 average $L_{∞}$ norm difference on validation data, outperforming retraining and fine-tuning in both accuracy and side-effect control.
  • For point-wise repairs, REASSURE introduced only 500k new parameters on average when using feature-space repairs—just 0.1% of the overhead from input-space repairs—demonstrating significant efficiency gains.
  • In the HCAS benchmark, the average number of constraints per repair region was reduced to 3.28 (3% of original 125), minimizing parameter overhead through redundant constraint removal.
  • REASSURE outperforms PRDNN and fine-tuning in minimizing $L_{∞}$ and $L_{2}$ norm differences on non-buggy inputs, indicating superior locality and robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.