ml_privacy_meter icon indicating copy to clipboard operation
ml_privacy_meter copied to clipboard

Question regarding ussage of ModelIntermediateOutput class in information_source_signal.py

Open GowriRamshankar opened this issue 1 year ago • 1 comments

Hi I have a question with regards to the implementation of ModelIntermediateOutput class in information_source_signal.py. The class uses a dictionary with key "layers" to determine which layer's output must be extracted as input sihnal to the attack. Should the dictionary be passed as a parameter to the constructor? If yes, It does not have an init method.

I assume we need to define an init function.

Also, in get_intermediate_outputs method in PytorchModelTensor in model.py, self.intermediate_output is a dictionary that is not defined. Can you explain what is expected to be implemented here?

Thanks so much for the help!

GowriRamshankar avatar Jun 07 '23 18:06 GowriRamshankar

Hi @GowriRamshankar , At the moment, we do not offer support for attacks that utilize the model's intermediate output (activation of the model from each layer). We are currently working on this, and we plan to include this function in future versions.

changhongyan123 avatar Jun 20 '23 11:06 changhongyan123