[논문 리뷰] Defending against the Label-flipping Attack in Federated Learning
이 논문은 연합학습에서 라벨 뒤집기 공격에 대한 방어를 제시합니다. 소스 및 대상 출력 뉴런에 해당하는 그래디언트를 추출하고, 이를 클러스터링하여 악의적 업데이트를 식별한 뒤 집계에서 제외합니다. 이 접근법은 데이터 분포 및 모델 크기 변화에 강건하며 여러 선행 방어를 능가합니다.
Federated learning (FL) provides autonomy and privacy by design to participating peers, who cooperatively build a machine learning (ML) model while keeping their private data in their devices. However, that same autonomy opens the door for malicious peers to poison the model by conducting either untargeted or targeted poisoning attacks. The label-flipping (LF) attack is a targeted poisoning attack where the attackers poison their training data by flipping the labels of some examples from one class (i.e., the source class) to another (i.e., the target class). Unfortunately, this attack is easy to perform and hard to detect and it negatively impacts on the performance of the global model. Existing defenses against LF are limited by assumptions on the distribution of the peers' data and/or do not perform well with high-dimensional models. In this paper, we deeply investigate the LF attack behavior and find that the contradicting objectives of attackers and honest peers on the source class examples are reflected in the parameter gradients corresponding to the neurons of the source and target classes in the output layer, making those gradients good discriminative features for the attack detection. Accordingly, we propose a novel defense that first dynamically extracts those gradients from the peers' local updates, and then clusters the extracted gradients, analyzes the resulting clusters and filters out potential bad updates before model aggregation. Extensive empirical analysis on three data sets shows the proposed defense's effectiveness against the LF attack regardless of the data distribution or model dimensionality. Also, the proposed defense outperforms several state-of-the-art defenses by offering lower test error, higher overall accuracy, higher source class accuracy, lower attack success rate, and higher stability of the source class accuracy.
연구 동기 및 목표
- 연합학습(Federated Learning, FL)에서 라벨 뒤집기 공격의 보안 위험을 동기 부여하고 해결한다.
- 악의적 업데이트와 정직한 업데이트를 구분하는 판별 가능한 그래디언트 패턴을 식별한다.
- 동적이고 분포에 구애받지 않는 방어책 제안으로 고차원 모델에서도 효과적이다.
- 다양한 데이터셋, 모델 규모, 공격자 비율에 걸쳐 방어를 평가하고 최신 방어와 비교한다.
제안 방법
- 로컬 업데이트에서 출력 계층의 그래디언트만 추출한다.
- 두 개의 뉴런(가장 큰 그래디언트 크기를 가진)을 소스 및 대상 클래스로 동적으로 식별하고 이들의 연결된 그래디언트를 추출한다.
- 추출된 그래디언트를 iid 및 경미한 비 IID 데이터에 대해 k-means로 클러스터링하고, 극단적인 비 IID 데이터에는 HDABSCANC(밀도 기반)로 클러스터링한다.
- 클러스터 크기/밀도(또는 극단적 비 IID에서의 클러스터 근접성)를 분석하여 잠재적으로 악의적 클러스터를 표시한다.
- 전역 모델 업데이트 전에 식별된 악성 클러스터의 업데이트를 집계에서 제외한다.
- 데이터 분포나 공격자 비율에 대한 사전 지식이 필요 없으며 모델 차원에 적응한다.
실험 결과
연구 질문
- RQ1라벨 뒤집기 공격자는 출력 계층의 그래디언트에 어떤 영향을 미치며, 이러한 신호를 악의적 업데이트와 정상 업데이트를 구분하는 데 사용할 수 있는가?
- RQ2그래디언트 기반 클러스터링 방식이 iid, 경미한 비 IID, 극단적 비 IID 데이터 분포에서 LF 공격을 로버스트하게 탐지할 수 있는가?
- RQ3소스/타겟 출력 뉴런에 집중하는 것이 전체 업데이트 그래디언트나 다른 부분 분석을 사용하는 방법보다 성능이 우수한가?
- RQ4제안된 방법이 다양한 데이터셋과 공격자 비율에서 정확도, 테스트 오차, 공격 성공률 등 주요 FL 성능 지표에 미치는 영향은 무엇인가?
주요 결과
- 소스 및 대상 출력 뉴런의 그래디언트가 공격자를 정직한 동료와 구분하는 판별적 패턴을 나타낸다.
- 관련 그래디언트에 집중하면 특히 고차원 모델에서 정직한 업데이트와 악성 업데이트의 구분이 더 잘 된다.
- 정직한 업데이트와 악성 업데이트에 대해 두 개의 뚜렷한 그래디언트 클러스터가 나타나며, 공격자의 그래디언트는 클러스터 간에 더 조밀한 경향이 있다.
- 제안된 방어는 세 가지 데이터셋과 다양한 모델 크기에서 여전히 효과적이며, 여러 지표에서 여러 최신 방어를 능가한다.
- 데이터 분포나 공격자 비율에 대한 가정에 의존하지 않으며 극단적 비 IID 설정에 적응한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.