Skip to content

These codes are about "GradCAM-AE: A New Shield Defense Against Poisoning Attacks on Federated Learning"

License

Notifications You must be signed in to change notification settings

jjzgeeks/GradCAM-AE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GradCAM-AE

These codes are about "GradCAM-AE: A New Shield Defense Against Poisoning Attacks on Federated Learning"

Here is a structure of FL_GradCAM:

Image alt text. GradCAM-assisted defense against poisoning attacks on FL. The server arbitrarily selects an image (e.g., an image with the label "bird") from the global model testing dataset to create GradCAM heat maps for every uploaded local model update. These GradCAM heat maps flow into an autoencoder for malicious model detection.

Image alt text. Autoencoder-based abnormal GradCAM heat map identification. The server flattens and concatenates GradCAM heat maps as input to the encoder neural network, which compresses the GradCAM heat maps from a high dimension to a low dimension Z. The decoder neural network takes Z as its input to reconstruct the original input GradCAM heat maps.

Requirements

  • Install requirements via pip install -r requirements.txt

How to run 👇

Enter into each folder and run the following command:

python FL_GradCAM_main.py 

References

  1. https://github.com/shyam671/Federated-Learning/tree/main/code/FedAvg

About

These codes are about "GradCAM-AE: A New Shield Defense Against Poisoning Attacks on Federated Learning"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages