[논문 리뷰] Self-Ensemble Adversarial Training for Improved Robustness
이 논문은 자기-앙상블 적대적 훈련(SEAT)을 제안하며, 표준 적대적 훈련 과정에서 다수의 이전 모델의 가중치를 평균화하여 CIFAR-10과 CIFAR-100에서 최신 기술 수준의 강건성을 달성한다. 이는 단일 훈련 런과 표준 교차 엔트로피 손실만을 사용한다.
Due to numerous breakthroughs in real-world applications brought by machine intelligence, deep neural networks (DNNs) are widely employed in critical applications. However, predictions of DNNs are easily manipulated with imperceptible adversarial perturbations, which impedes the further deployment of DNNs and may result in profound security and privacy implications. By incorporating adversarial samples into the training data pool, adversarial training is the strongest principled strategy against various adversarial attacks among all sorts of defense methods. Recent works mainly focus on developing new loss functions or regularizers, attempting to find the unique optimal point in the weight space. But none of them taps the potentials of classifiers obtained from standard adversarial training, especially states on the searching trajectory of training. In this work, we are dedicated to the weight states of models through the training process and devise a simple but powerful \emph{Self-Ensemble Adversarial Training} (SEAT) method for yielding a robust classifier by averaging weights of history models. This considerably improves the robustness of the target model against several well known adversarial attacks, even merely utilizing the naive cross-entropy loss to supervise. We also discuss the relationship between the ensemble of predictions from different adversarially trained models and the prediction of weight-ensembled models, as well as provide theoretical and empirical evidence that the proposed self-ensemble method provides a smoother loss landscape and better robustness than both individual models and the ensemble of predictions from different classifiers. We further analyze a subtle but fatal issue in the general settings for the self-ensemble model, which causes the deterioration of the weight-ensembled method in the late phases.
연구 동기 및 목표
- 표준 적대적 훈련이 최적의 단일 가중치 점을 찾는 데 집중하면서 중간 훈련 상태를 활용하지 않는 한계를 해결한다.
- 다수의 별도 모델을 훈련해야 하는 전통적 앙상블 방법의 높은 계산 비용과 중복 문제를 해결한다.
- 최적화 궤적을 따라 모델 가중치를 앙상블하는 것이 예측 기반 앙상블이나 개별 모델보다 더 나은 강건성을 제공할 수 있는지 탐색한다.
- 후기 단계에서 자기-앙상블 모델의 성능 저하를 유발하는 학습률 스케줄링의 미묘하지만 핵심적인 문제를 식별하고 해결한다.
- 가중치 앙상블이 여러 공격 유형에 걸쳐 더 부드러운 손실 곡면을 만들어내고 강건성이 향상됨을 보여준다.
제안 방법
- 표준 적대적 훈련 과정에서 수집한 다수의 스크래치샷(snapshot)에서의 모델 가중치를 평균화하는 자기-앙상블 방법인 SEAT를 제안한다.
- 이전 모델 가중치를 조합하기 위해 지수이동평균(EMA)을 사용하며, 초기에 잘 훈련되지 않은 모델을 제외하기 위해 설정 가능한 초기 보호 기간을 제공한다.
- 에포크 기반 또는 반복 기반의 앙상블 전략을 도입하여 모델 스크래치샷 수집 빈도를 제어한다.
- 이 방법은 복수의 모델을 재훈련할 필요 없이 단일 종단 간 적대적 훈련 런만으로도 구현 가능하다.
- 이론적 분석을 통해 가중치 앙상블이 개별 모델이나 예측 기반 앙상블보다 더 부드러운 손실 곡면을 만들어내는 것으로 나타났다.
- 학습률 스케줄링이 자기-앙상블 성능에 미치는 영향을 조사하고, 표준 전략에서 후기 단계 성능 저하를 유발하는 잠재적 결함을 규명했다.
실험 결과
연구 질문
- RQ1적대적 훈련 중 중간 모델 상태를 활용하면 최종 모델 가중치에 의존하는 것보다 강건성이 더 효과적으로 향상될 수 있는가?
- RQ2가중치 기반 앙상블과 예측 기반 앙상블 간의 강건성 및 일반화 능력에서의 성능 차이는 어떠한가?
- RQ3학습률 스케줄링이 자기-앙상블 모델의 성능에 미치는 영향은 무엇이며, 표준 설정에 내재된 결함이 존재하는가?
- RQ4가중치 앙상블를 적용한 단일 적대적 훈련 런이 복수의 독립적 훈련 모델과 비교해 유사하거나 더 뛰어난 강건성을 달성할 수 있는가?
- RQ5제안된 SEAT 방법이 더 부드러운 손실 곡면을 만들어내는가? 그리고 이는 어떻게 강건성 향상과 관련이 있는가?
주요 결과
- SEAT는 표준 교차 엔트로피 손실만을 사용하여 ResNet18를 사용해 CIFAR-10에서 AutoAttack에 대해 57.77%의 강건 정확도를 달성했으며, 개별 모델과 예측 기반 앙상블을 모두 초월했다.
- MART와 CutMix를 SEAT와 조합하면 CIFAR-10에서 모든 공격에 대해 최고 또는 2위의 강건성을 확보했으며, AutoAttack 하에서 58.01%의 강건 정확도를 기록했다.
- 반복 기반 앙상블이 에포크 기반 앙상블보다 자연 정확도와 강건성 저하 비율에서 略로 뛰어나지만, 두 전략 간 성능은 거의 동일했다.
- 큰 초기 보호 기간(c) 설정은 너무 많은 초기 훈련 상태를 기각하기 때문에 악영향을 미쳐 역사적 모델의 충분한 수를 유지하는 것이 중요함을 확인했다.
- 이론적 및 실증적 분석을 통해 SEAT가 개별 모델이나 예측 기반 앙상블보다 더 부드러운 손실 곡면을 만들어내며, 이는 강건성 향상에 기여한다.
- 학습률 스케줄링에 존재하는 미묘하지만 핵심적인 문제를 규명했다: 표준 전략은 후기 단계에서 자기-앙상블 모델의 성능 저하를 유발하며, 적절한 데이터 증강 또는 재훈련 전략으로 이를 완화할 수 있다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.