Backdoor / Trojan Lab
Trigger visualisation, Neural Cleanse detection, and pruning / fine-tuning mitigation.
- 4Experiments
- 3Lessons
Lessons
Backdoor attack (BadNets)
A small trigger t is stamped on some samples and labelled with a target class; the model learns to follow the trigger while clean accuracy stays normal.
Read the lessonDetection with Neural Cleanse
Reverse-engineers, for each class, the smallest trigger that turns any image into it; a class with a much smaller trigger is suspect.
Read the lessonMitigation by fine-pruning
Prunes neurons dormant on clean data (which may carry the backdoor) then fine-tunes on a few clean samples.
Read the lesson