Skip to main content
QUICK REVIEW

[Paper Review] Backdoor Learning on Sequence to Sequence Models

Lichang Chen, Minhao Cheng|arXiv (Cornell University)|May 3, 2023
Digital Media Forensic DetectionComputer Science3 citations
TL;DR

This paper proposes novel backdoor attacks on sequence-to-sequence (seq2seq) models for machine translation and text summarization, using name substitution and BPE-based subword triggers to create dynamic, stealthy backdoors. The attacks achieve over 90% success rates with only 0.2% poisoning, evading state-of-the-art detection methods like ONION.

ABSTRACT

Backdoor learning has become an emerging research area towards building a trustworthy machine learning system. While a lot of works have studied the hidden danger of backdoor attacks in image or text classification, there is a limited understanding of the model's robustness on backdoor attacks when the output space is infinite and discrete. In this paper, we study a much more challenging problem of testing whether sequence-to-sequence (seq2seq) models are vulnerable to backdoor attacks. Specifically, we find by only injecting 0.2\% samples of the dataset, we can cause the seq2seq model to generate the designated keyword and even the whole sentence. Furthermore, we utilize Byte Pair Encoding (BPE) to create multiple new triggers, which brings new challenges to backdoor detection since these backdoors are not static. Extensive experiments on machine translation and text summarization have been conducted to show our proposed methods could achieve over 90\% attack success rate on multiple datasets and models.

Motivation & Objective

  • To investigate the vulnerability of seq2seq models to backdoor attacks in tasks with infinite output spaces, such as machine translation and text summarization.
  • To develop stealthy backdoor triggers that preserve syntactic fluency and evade detection by existing defense mechanisms.
  • To demonstrate that subword-level triggers via BPE enable multiple dynamic triggers, increasing attacker flexibility and stealth.
  • To evaluate the effectiveness of keyword and sentence-level backdoor attacks under realistic conditions, including position-dependent trigger effects.
  • To expose the limitations of current backdoor detection methods like ONION when applied to dynamic, subword-level backdoors in seq2seq models.

Proposed method

  • Propose a name substitution technique to inject backdoor triggers into the source input, preserving syntactic structure and fluency to evade detection.
  • Utilize Byte Pair Encoding (BPE) to inject triggers at the subword level, enabling multiple dynamic triggers from a single poisoned sample.
  • Design two attack types: keyword attack (targeting specific output tokens) and sentence attack (targeting entire output sequences).
  • Implement poisoning by injecting only 0.2% of backdoored samples into the training data, maintaining model performance on clean inputs.
  • Use perplexity-based outlier detection (ONION) as a defense baseline to evaluate the stealthiness of the proposed backdoors.
  • Evaluate attack success rate (ASR) across multiple datasets (e.g., EN-DE, EN-CS, CNN-DM) and model architectures under varying trigger positions.

Experimental results

Research questions

  • RQ1Can backdoor attacks be effectively mounted on seq2seq models with infinite output spaces, such as machine translation and summarization?
  • RQ2How does the position of the trigger within the input sentence affect the attack success rate?
  • RQ3Can BPE-based subword triggers create dynamic, non-static backdoors that evade detection by existing defense mechanisms?
  • RQ4To what extent do state-of-the-art backdoor detection methods like ONION fail to detect these dynamic, fluency-preserving backdoors?
  • RQ5How does the proposed poisoning strategy compare to existing backdoor attacks in terms of poison rate and attack effectiveness?

Key findings

  • The proposed backdoor attacks achieve over 90% attack success rate on multiple seq2seq datasets, including EN-DE, EN-CS, and CNN-DM, across diverse architectures.
  • The attack success rate drops significantly when the trigger is placed at the end of the sentence (e.g., 46.0% for 'R+B' method at position -1), but remains high when placed at the beginning (nearly 100% at position 0).
  • The 'random word + Brunson' poisoning method achieves the highest success rate across all test sets and trigger positions, indicating optimal stealth and effectiveness.
  • ONION-based detection fails to detect the backdoored examples, with recall rates below 4% across all datasets, demonstrating the stealthiness of the proposed dynamic triggers.
  • The use of BPE enables multiple dynamic triggers from a single poisoned sample, significantly increasing the attacker's capability and evading static detection mechanisms.
  • The method requires only 0.2% poisoning rate, which is 10x lower than state-of-the-art backdoor attacks on text classification, highlighting its efficiency and potency.

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.