Transferability of features for neural networks links to adversarial attacks and defences

PLoS One. 2022 Apr 27;17(4):e0266060. doi: 10.1371/journal.pone.0266060. eCollection 2022.

Abstract

The reason for the existence of adversarial samples is still barely understood. Here, we explore the transferability of learned features to Out-of-Distribution (OoD) classes. We do this by assessing neural networks' capability to encode the existing features, revealing an intriguing connection with adversarial attacks and defences. The principal idea is that, "if an algorithm learns rich features, such features should represent Out-of-Distribution classes as a combination of previously learned In-Distribution (ID) classes". This is because OoD classes usually share several regular features with ID classes, given that the features learned are general enough. We further introduce two metrics to assess the transferred features representing OoD classes. One is based on inter-cluster validation techniques, while the other captures the influence of a class over learned features. Experiments suggest that several adversarial defences decrease the attack accuracy of some attacks and improve the transferability-of-features as measured by our metrics. Experiments also reveal a relationship between the proposed metrics and adversarial attacks (a high Pearson correlation coefficient and low p-value). Further, statistical tests suggest that several adversarial defences, in general, significantly improve transferability. Our tests suggests that models having a higher transferability-of-features have generally higher robustness against adversarial attacks. Thus, the experiments suggest that the objectives of adversarial machine learning might be much closer to domain transfer learning, as previously thought.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Correlation of Data
  • Machine Learning*
  • Neural Networks, Computer*

Grants and funding

DV, JST, ACT-I Grant Number JP-50243, https://www.jst.go.jp/kisoken/act-i/index.html DV, JSPS KAKENHI Grant Number JP20241216, https://www.jsps.go.jp/english/e-grants/.