Replies: 1 comment
-
Hi @Amrusama, Currently, we do not have optimal support for using the model intermediate output to perform attacks. However, with some slight modifications to the code, you can achieve your objectives. Here is one possible workaround. First, you can check out the tutorial on how to use the gradient norm to perform attacks here, which has a similar logic to the attack you want to perform. In terms of how to obtain the Model Intermediate Output, here is a brief introduction to the logic, and you can follow the necessary steps to achieve your goal: In the ModelIntermediateOutput class, the intermediate output is computed by calling When computing the signal, you would need to modify the code by inputting the At the same time, we are also working on improving the support for using the model intermediate output to perform attacks. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to use the ModelIntermediateOutput to perform membership attacks on specific layers and it's not clear to me how can i pass the parameter extra to ModelIntermediateOutput.
Beta Was this translation helpful? Give feedback.
All reactions