Purification Of Contaminated Convolutional Neural Networks Via Robust Recovery: An Approach with Theoretical Guarantee in One-Hidden-Layer Case

Hanxiao Lu, Zeyu Huang, Ren Wang · DOI

Introduction: The Vulnerability of CNNs

Deep learning models, particularly Convolutional Neural Networks (CNNs), are surprisingly fragile. They can be "contaminated" through natural noise—such as errors introduced during model transmission in federated learning or low-precision quantization—and malicious attacks. "Backdoor" or "poisoning" attacks are especially insidious; an adversary manipulates training data so the model behaves normally on most inputs but fails when a specific "trigger" pattern is present.

Existing defenses often rely on detecting poisoned data or fine-tuning on clean datasets. However, retraining is computationally expensive, and fine-tuning may not completely erase the "memory" of a backdoor. This paper proposes a method to directly "clean" the model's weights and biases without retraining or requiring labeled data.

The Robust Recovery Framework

The core of this approach is a Robust Recovery framework. The authors observe that when a CNN is trained using gradient descent, the updates to its weights lie within a specific mathematical subspace defined by the input data. By identifying this "clean" subspace, one can mathematically distinguish between learned features and injected noise.

Conceptual diagram of the CNN purification process.

The purification process involves several key components:

  • $\\ell_1$-norm Optimization: Instead of standard least-squares, the method uses $\\ell_1$ minimization. This is effective because noise and backdoor perturbations are often "sparse" or do not align with the natural subspace of the model's learned features.
  • Design Matrices ($A_W$ and $A_\\beta$): Special matrices are constructed based on a small set of benign (clean) input samples. These matrices represent the subspace where the "true" weights should reside.
  • Purification Algorithm: Contaminated weights are projected onto this benign subspace. The $\\ell_1$ optimization effectively "strips away" the noise that doesn't fit the subspace, leaving behind the purified parameters.

While the mathematical proofs focus on a one-hidden-layer, non-overlapping CNN with ReLU activation, the authors provide an algorithmic path to apply this to deeper networks.

Experimental Validation

The researchers validated their approach using synthetic data to verify theoretical guarantees, as well as the MNIST and CIFAR-10 datasets to test against backdoor attacks in practical settings.

Remarkably, the purification process only requires a small amount of unlabeled benign data. For instance, on MNIST, using as few as 9 to 36 clean samples was sufficient to significantly mitigate poisoning effects.

Key Findings and Theoretical Guarantees

The paper provides a rigorous proof that for one-hidden-layer CNNs, weights and biases can be exactly recovered under "overparameterization" (when the model has many more neurons than training samples).

Recovery error vs. contamination level for different sample sizes.

In experiments, the method significantly reduced the Attack Success Rate (ASR) of backdoors—often bringing it down to near-random levels—while maintaining the model's accuracy on clean data. Although the theory is developed for a single layer, empirical tests showed success in purifying CNNs with two and three hidden layers.

Conclusion and Future Directions

This research demonstrates that direct parameter detox is a viable alternative to fine-tuning. By leveraging subspace constraints, the mathematical influence of poisoning can be directly removed from the model's parameters.

However, limitations remain. Current theoretical guarantees are restricted to one-hidden-layer, non-overlapping CNNs. Real-world architectures like ResNets or Transformers are more complex. Future work will focus on extending this framework to deeper models and larger datasets, and refining the optimization to handle more diverse types of poisoning attacks.

Summary updated

BibTeX
@article{lu2025purification,
  author = {Hanxiao Lu and Zeyu Huang and Ren Wang},
  title = {{Purification Of Contaminated Convolutional Neural Networks Via Robust Recovery: An Approach with Theoretical Guarantee in One-Hidden-Layer Case}},
  journal = {IEEE J. Sel. Top. Signal Process.},
  year = {2025},
  doi = {10.1109/jstsp.2025.3549950},
}
Figure