Skip to main content
QUICK REVIEW

[Paper Review] Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features

Mingli Zhu, Shaokui Wei|arXiv (Cornell University)|Jun 29, 2023
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

This paper proposes Neural Polarizer, a lightweight backdoor defense that inserts a learnable linear transformation layer into a backdoored model to filter trigger features while preserving benign features. It achieves state-of-the-art defense performance with minimal clean data and low computational cost by solving a bi-level optimization problem to purify poisoned inputs without fine-tuning the entire model.

ABSTRACT

Recent studies have demonstrated the susceptibility of deep neural networks to backdoor attacks. Given a backdoored model, its prediction of a poisoned sample with trigger will be dominated by the trigger information, though trigger information and benign information coexist. Inspired by the mechanism of the optical polarizer that a polarizer could pass light waves with particular polarizations while filtering light waves with other polarizations, we propose a novel backdoor defense method by inserting a learnable neural polarizer into the backdoored model as an intermediate layer, in order to purify the poisoned sample via filtering trigger information while maintaining benign information. The neural polarizer is instantiated as one lightweight linear transformation layer, which is learned through solving a well designed bi-level optimization problem, based on a limited clean dataset. Compared to other fine-tuning-based defense methods which often adjust all parameters of the backdoored model, the proposed method only needs to learn one additional layer, such that it is more efficient and requires less clean data. Extensive experiments demonstrate the effectiveness and efficiency of our method in removing backdoors across various neural network architectures and datasets, especially in the case of very limited clean data.

Motivation & Objective

  • To address the limitations of existing post-training backdoor defenses that require extensive clean data and high computational cost.
  • To develop a defense mechanism that selectively filters backdoor-trigger features while preserving benign feature representations.
  • To minimize model fine-tuning by learning only one additional layer, reducing computational overhead.
  • To ensure robustness under low-data regimes, especially when only a few clean samples are available.
  • To inspire a new paradigm of lightweight, modular defense layers that do not alter the original model's parameters.

Proposed method

  • A learnable neural polarizer is inserted as an intermediate layer in the backdoored model, acting as a feature filter to suppress trigger-related activations.
  • The neural polarizer is instantiated as a lightweight linear transformation using a 1×1 convolutional layer followed by batch normalization.
  • A bi-level optimization framework is formulated: the upper-level optimizes the polarizer to minimize backdoor success rate while maximizing benign accuracy, and the lower-level uses model confidence to estimate target labels.
  • The trigger is approximated via targeted adversarial perturbations to simulate backdoored inputs during training.
  • The method only updates the polarizer’s parameters, leaving all other layers of the backdoored model fixed, ensuring efficiency.
  • The defense is trained using a limited clean dataset, making it practical for real-world deployment with scarce clean data.

Experimental results

Research questions

  • RQ1Can a lightweight, learnable layer effectively purify poisoned features in a backdoored model without fine-tuning the entire network?
  • RQ2How well does the proposed method perform when only a small number of clean samples are available?
  • RQ3Can the neural polarizer maintain high benign accuracy while drastically reducing backdoor success rate across diverse attacks and architectures?
  • RQ4How does the method compare in efficiency and robustness to existing post-training defenses under low-data and high-complexity settings?
  • RQ5Can the bi-level optimization framework effectively learn a polarizer without direct access to triggers or labels?

Key findings

  • On CIFAR-10 with ResNet-18, the method achieved 94.09% defense effectiveness (DER) using only 500 clean samples, outperforming i-BAU and ANP.
  • With just 50 clean samples, the method maintained 92.37% DER on BadNets-A2O, demonstrating strong low-data robustness.
  • On PreActResNet18, the method ran in 55.16 seconds for 50 epochs, outperforming i-BAU (57.23 sec, 5 epochs) and other baselines in speed.
  • For WaNet attacks, the method achieved 97.12% DER with 250 clean samples, significantly outperforming i-BAU (88.29%) and ANP (80.17%) under the same conditions.
  • The method showed stable performance across varying poisoning ratios, with only a slight drop in accuracy as poisoning increased, indicating resilience to data contamination levels.
  • The defense maintained high benign accuracy (e.g., 87.58% on BadNets-A2O with 500 clean samples) while reducing ASR to below 2%, proving effective backdoor mitigation.

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.