This repo contains the source code of the paper Complex Backdoor Detection by Symmetric Feature Differencing.
The code of ABS+ExRay for the TrojAI competition submission is in https://github.com/naiyeleo/ABS/tree/master/TrojAI_competition
This repo also contains the appendix of paper Complex Backdoor Detection by Symmetric Feature Differencing.
The file abs_pytorch1_both_batch_inner_both_with_prune.py
contains the source code ABS+ExRay
for TrojAI round 3.
The mask_prune_by_neuron_mask
and filter_prune_by_neuron_mask
two functions are the functions the peforman ExRay on mask and filter triggers.