LGA

July 6, 2025 ยท View on GitHub

This repository contains the Official Pytorch Implementation for [ICCV25]'Stealthy Backdoor Attack in Federated Learning via Adaptive Layer-wise Gradient Alignment'

Preparation

Install packages

pip install -r requirements.txt

Datasets

For CIFAR-10 and CIFAR-100 datasets, they will be download automatically during runtime.

Example Usage

python main.py --epochs 300 --model resnet --defence flame --dataset cifar --lr 0.1 --attack LGA --frequency 1 --p 0.5 --attackT 0 --lr_mal 0.1