Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of PRBCD and GRBCD attacks #9

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

@EdisonLeeeee EdisonLeeeee added the enhancement New feature or request label Dec 3, 2022
@EdisonLeeeee EdisonLeeeee self-assigned this Dec 3, 2022
@EdisonLeeeee EdisonLeeeee removed their assignment Mar 3, 2023
# Attacking (PRBCDAttack) #
# ================================================================== #
attacker = PRBCDAttack(data, device=device)
attacker.setup_surrogate(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it confusing to call it surrogate. Rather call it victim, target, or similar. I think it should not be the default to use surrogates, but rather the exception. See our paper "Are Defenses for GNNs robust?"

logs = trainer_before.evaluate(attacker.data(), splits.test_nodes)
print(f"After evasion attack\n {logs}")
# ================================================================== #
# After poisoning Attack #

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make clear that these poisoning attacks are heuristic in the sense that you are transferring the evasion attack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants