Countermeasure sample defense method based on image gradient calculation
Патент · CN B
Полный текст
The invention discloses an anti-sample defense method based on image gradient calculation, which is used for detecting gradient information after an edge gradient is obtained on an input sample to meet the requirement of identifying the anti-sample, reducing the risk of being subjected to anti-attack, and further evaluating the robustness of a model. By extracting edge gradients from the input image, training a main task model based on a classifier, and because of the large difference between gradient information of the countermeasure sample and the normal sample, the countermeasure sample can be well recognized by the main task model; the invention can better identify the countermeasure sample by training a main task model to classify the image of the input sample after the edge gradient extraction, has the advantage of quick response speed because the invention adopts the shallow neural network, and can greatly improve the classification accuracy because the invention adopts the image edge information as the detection standard.