Bugs in AutoAttack implementation #2109
-
Describe the bug To Reproduce Expected behavior System information (please complete the following information):
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
In the process of attempting to fix the vulnerability, I initially thought it was a simple data type error, and I completed the data type conversion at the corresponding position. However, I discovered a new bug. The input of the "target" parameter in the function "torch._C._nn.nll_loss" does not conform to the dimensional specification. The function "self.reduce_labels(y_preprocessed)" clearly checks the dimensions, but it appears that the check was bypassed due to some conditional settings. Therefore, I believe this is a system-level bug in the auto pgd implementation. I don't have any more time to fix it, so I am temporarily reporting the bug here. |
Beta Was this translation helpful? Give feedback.
-
Hi @SignedQiu Thank you for using ART! What is the dtype of variable |
Beta Was this translation helpful? Give feedback.
-
I'm converting this issue into a discussion on the Discussion tab to continue. |
Beta Was this translation helpful? Give feedback.
Hi @SignedQiu I think you have found a bug! Actually two. It looks like the order of prediction and label arguments is wrong in the custom loss class and the PyTorchClassifier does not recognize the custom loss class to set internal attributes correctly. I have opened issue #2116 and we'll include the solution in ART 1.14.1. Thank you for report this issue!