Skip to main content
QUICK REVIEW

[Paper Review] To Transfer or Not to Transfer: Misclassification Attacks Against Transfer Learned Text Classifiers

Bijeeta Pal, Shruti Tople|arXiv (Cornell University)|Jan 8, 2020
Topic ModelingComputer Science31 references8 citations
TL;DR

This paper presents the first adversarial misclassification attacks against transfer-learned text classifiers, exploiting unintended features from public teacher models (e.g., GloVe, BERT) to generate adversarial examples. By leveraging a grey-box setting with white-box access to the teacher and black-box access to the student, the authors achieve 97% attack accuracy on IMDB and 78% on Fake News Detection using novel word-score and length-based attack methods, demonstrating that standard defenses fail to mitigate these threats.

ABSTRACT

Transfer learning --- transferring learned knowledge --- has brought a paradigm shift in the way models are trained. The lucrative benefits of improved accuracy and reduced training time have shown promise in training models with constrained computational resources and fewer training samples. Specifically, publicly available text-based models such as GloVe and BERT that are trained on large corpus of datasets have seen ubiquitous adoption in practice. In this paper, we ask, "can transfer learning in text prediction models be exploited to perform misclassification attacks?" As our main contribution, we present novel attack techniques that utilize unintended features learnt in the teacher (public) model to generate adversarial examples for student (downstream) models. To the best of our knowledge, ours is the first work to show that transfer learning from state-of-the-art word-based and sentence-based teacher models increase the susceptibility of student models to misclassification attacks. First, we propose a novel word-score based attack algorithm for generating adversarial examples against student models trained using context-free word-level embedding model. On binary classification tasks trained using the GloVe teacher model, we achieve an average attack accuracy of 97% for the IMDB Movie Reviews and 80% for the Fake News Detection. For multi-class tasks, we divide the Newsgroup dataset into 6 and 20 classes and achieve an average attack accuracy of 75% and 41% respectively. Next, we present length-based and sentence-based misclassification attacks for the Fake News Detection task trained using a context-aware BERT model and achieve 78% and 39% attack accuracy respectively. Thus, our results motivate the need for designing training techniques that are robust to unintended feature learning, specifically for transfer learned models.

Motivation & Objective

  • To investigate whether transfer learning in text classification increases susceptibility to adversarial misclassification attacks.
  • To develop efficient, query-light attack methods that exploit unintended features learned from public teacher models.
  • To evaluate the robustness of existing defenses—such as fine-tuning, dropout, and adversarial training—against these novel attacks.
  • To demonstrate that unintended features (e.g., sentence length, word presence) can be systematically leveraged to mislead student models.

Proposed method

  • Proposes a word-score based attack for context-free word embeddings (e.g., GloVe), quantifying each word’s contribution to classification probability using a shadow model.
  • Employs a shadow model trained on the student’s task to predict word scores, reducing the number of queries to the student model to a constant regardless of input size.
  • Introduces length-based and sentence-based attacks for context-aware models (e.g., BERT), exploiting features like sentence length and semantic structure.
  • Uses the teacher model’s feature space to approximate the student model’s decision boundary, enabling efficient adversarial example generation with limited queries.
  • Designs attacks that are robust to common defenses such as spell checkers and standard adversarial training.
  • Validates attack success through empirical evaluation on IMDB, Fake News, and Newsgroup datasets across binary and multi-class settings.

Experimental results

Research questions

  • RQ1Can transfer learning in text classification models be exploited to generate adversarial examples that misclassify inputs to a target class?
  • RQ2How do unintended features—such as word presence or sentence length—impact the vulnerability of student models trained via transfer learning?
  • RQ3To what extent do standard defenses like fine-tuning, dropout, and adversarial training mitigate these transfer-based misclassification attacks?
  • RQ4Can efficient, low-query attack methods be designed for transfer-learned text models by leveraging a grey-box threat model?

Key findings

  • The proposed word-score attack achieved an average attack accuracy of 97% on the IMDB Movie Reviews dataset and 80% on the Fake News Detection task using GloVe-based transfer learning.
  • For multi-class Newsgroup tasks, the attack achieved 75% accuracy on 6-class and 41% on 20-class variants, demonstrating scalability across label spaces.
  • The length-based attack on BERT-based Fake News Detection reached 78% attack accuracy, while the sentence-based attack achieved 39%, showing vulnerability to structural features.
  • The sentence-based attack exploited semantic and structural patterns in BERT embeddings, indicating that context-aware models are susceptible to feature-based manipulation.
  • Standard defenses such as adversarial training, dropout, and fine-tuning failed to mitigate the attacks, indicating a fundamental vulnerability in transfer-learned models.
  • The use of a shadow model enabled query-efficient attacks independent of input length, reducing the number of queries required compared to prior methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.