Skip to content

Integrates malicious weight sending with get_model_weights#154

Open
joyce-yuan wants to merge 10 commits intomainfrom
joyce_malicious_attacks_exp_3
Open

Integrates malicious weight sending with get_model_weights#154
joyce-yuan wants to merge 10 commits intomainfrom
joyce_malicious_attacks_exp_3

Conversation

@joyce-yuan
Copy link
Collaborator

Integrated malicious weight sending with get_model_weights by introducing new parameter get_external_repr: bool.

    def get_model_weights(self, get_external_repr:bool=True) -> Dict[str, Tensor]:
        """
        Share the model weights

        Args:
            get_external_repr (bool): Whether to get the external representation of the model, 
            used for malicious attacks where the model weights are modified before sharing.
        """

If we are trying to get the external representation of a malicious node, it'll call get_malicious_model_weights. If internal representation, it'll just return model weight (i.e. for training)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant