Closed Oklahomawhore closed 9 months ago
Hi big brother, I'm a graduate student from sjtu doing research on backdoor learning, thank you for the project it is of great help to my study. I've experimented with different timing of injecting backdoor trigger in torchvision transforms previously, and I'm curious that do you have empirical results on the effect of injecting backdoor triggers at different stage of image augmentation?
Thank you very much for your time.
Hi, thanks for reaching out and using our toolbox! Could you provide more details about 'at different stage of image augmentation'?
Sorry for not making it clear! Here is a simplified explanation of my problem, hope it helps!
Say the train transform includes RandomHorizontalFlip and Normalize, and the dataset is CIFAR10, and the attack method is BadNets. From image file to network input, there are a number of points we can patch backdoor trigger onto the image, and we can add the trigger at point A, B or C explained below,
Original Image
➤ [Point A] Trigger Insertion (Before RandomHorizontalFlip)
➤ RandomHorizontalFlip
➤ [Point B] Trigger Insertion (After RandomHorizontalFlip, Before Normalization)
➤ Normalization
➤ [Point C] Trigger Insertion (After Normalization)
There are three choice of trigger insertion points, my problem is that is there any difference between them?
Sorry for not making it clear! Here is a simplified explanation of my problem, hope it helps!
Say the train transform includes RandomHorizontalFlip and Normalize, and the dataset is CIFAR10, and the attack method is BadNets. From image file to network input, there are a number of points we can patch backdoor trigger onto the image, and we can add the trigger at point A, B or C explained below,
Image Transformation Pipeline with Trigger Insertion Points
Original Image
- The raw image from the CIFAR-10 dataset.
➤ [Point A] Trigger Insertion (Before RandomHorizontalFlip)
- At this point, a trigger can be added to the original image before applying any augmentation.
➤ RandomHorizontalFlip
- Data augmentation step that randomly flips the image horizontally.
➤ [Point B] Trigger Insertion (After RandomHorizontalFlip, Before Normalization)
- Here, the trigger can be added after the RandomHorizontalFlip but before normalization.
➤ Normalization
- Standardizing the pixel values of the image.
➤ [Point C] Trigger Insertion (After Normalization)
- Finally, a trigger can be added after the normalization process.
There are three choice of trigger insertion points, my problem is that is there any difference between them?
I see. This is an interesting question. Although I do not evaluate it comprehensively (I believe there is no paper did it), I have some analyses, as follows.
Thank you very much for your great insight, it's of tremendous help!
Hi big brother, I'm a graduate student from sjtu doing research on backdoor learning, thank you for the project it is of great help to my study. I've experimented with different timing of injecting backdoor trigger in torchvision transforms previously, and I'm curious that do you have empirical results on the effect of injecting backdoor triggers at different stage of image augmentation?
Thank you very much for your time.