Semantic backdoor detection in the mystery shopper scenarioDetecting Semantic Backdoors in a Mystery Shopping Scenario
The paper proposes a method for detecting semantic backdoors in classification models; such backdoors are activated by natural but out-of-distribution inputs, have no identifiable trigger pattern, and are harder to detect than backdoors based on trigger patterns. The scenario is set as a consumer protection agency testing machine learning service providers as a mystery shopper to see whether they have implanted backdoors in their models, and assumes that the clean training dataset and training recipe are both known. Methodologically, the agency uses trusted infrastructure to train a small pool of reference models consisting of clean and poisoned models, calibrates a model distance threshold to identify clean models, and tests the case where providers use adaptive attacks to evade detection. Experiments show that the most reliable approach is to require providers to perform adversarial training, and that model distance is best measured using a set of input samples generated by an inversion model that maximizes distance from clean samples; under this setting the method can often completely distinguish clean from poisoned models, outperforming state-of-the-art backdoor detectors.