Imitation Attacks and Defenses for Black-box Machine Translation Systems
Abstract
Adversaries may look to steal or attack blackbox NLP systems, either for financial gain or to exploit model errors. One setting of particular interest is machine translation (MT), where models have high commercial value and errors can be costly. We investigate possible exploitations of black-box MT systems and explore a preliminary defense against such threats. We first show that MT systems can be stolen by querying them with monolingual sentences and training models to imitate their outputs. Using simulated experiments, we demonstrate that MT model stealing is possible even when imitation models have different input data or architectures than their target models. Applying these ideas, we train imitation models that reach within 0.6 BLEU of three production MT systems on both high-resource and low-resource language pairs. We then leverage the similarity of our imitation models to transfer adversarial examples to the production systems. We use gradient-based attacks that expose inputs which lead to semanticallyincorrect translations, dropped content, and vulgar model outputs. To mitigate these vulnerabilities, we propose a defense that modifies translation outputs in order to misdirect the optimization of imitation models. This defense degrades the adversary's BLEU score and attack success rate at some cost in the defender's BLEU and inference speed. Transfer Solve Eq. (2) Save me it's over 100F Phase One: Model Imitation
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
34 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Protecting Language Generation Models via Invisible Watermarking cites Protecting Intellectual Property of Language Generation APIs with Lexical Watermark
- Protecting Language Generation Models via Invisible Watermarking cites Stealing Machine Learning Models via Prediction APIs
- Protecting Language Generation Models via Invisible Watermarking cites CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks
- Protecting Intellectual Property of Language Generation APIs with Lexical Watermark cites Thieves on Sesame Street! Model Extraction of BERT-based APIs
- Protecting Intellectual Property of Language Generation APIs with Lexical Watermark cites Stealing Machine Learning Models via Prediction APIs
- Thieves on Sesame Street! Model Extraction of BERT-based APIs cites Stealing Machine Learning Models via Prediction APIs
- CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks cites Protecting Intellectual Property of Language Generation APIs with Lexical Watermark
- CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks cites Thieves on Sesame Street! Model Extraction of BERT-based APIs
- CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks cites Stealing Machine Learning Models via Prediction APIs
Cited by top-tier papers34
- Adversarial examples for models of codeNoam Yefet, Uri Alon, Eran YahavOOPSLA 2020 · 162 citations
- Protecting Intellectual Property of Language Generation APIs with Lexical WatermarkXuanli He, Qiongkai Xu, Lingjuan Lyu, Fangzhao Wu et al.AAAI 2022 · 124 citations
- Protecting Language Generation Models via Invisible WatermarkingXuandong Zhao, Yu-Xiang Wang, Lei LiICML 2023 · 117 citations
- Hidden Backdoors in Human-Centric Language ModelsShaofeng Li, Hui Liu, Tian Dong, Benjamin Zi Hao Zhao et al.CCS 2021 · 108 citations
- CATER: Intellectual Property Protection on Text Generation APIs via Conditional WatermarksXuanli He, Qiongkai Xu, Yi Zeng, Lingjuan Lyu et al.NeurIPS 2022 · 106 citations
Builds on9
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- Stealing Machine Learning Models via Prediction APIsFlorian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter et al.USENIX Security 2016 · 2,088 citations
- Self-Distillation Amplifies Regularization in Hilbert SpaceHossein Mobahi, Mehrdad Farajtabar, Peter L. BartlettNeurIPS 2020 · 298 citations
- Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial ExamplesMinhao Cheng, Jinfeng Yi, Pin-Yu Chen, Huan Zhang et al.AAAI 2020 · 268 citations
- Thieves on Sesame Street! Model Extraction of BERT-based APIsKalpesh Krishna, Gaurav Singh Tomar, Ankur P. Parikh, Nicolas Papernot et al.ICLR 2020 · 244 citations
Related papers
- A Targeted Attack on Black-Box Neural Machine Translation with Parallel Data PoisoningChang Xu, Jun Wang, Yuqing Tang, Francisco Guzmán et al.WWW 2021 · 37 citations
- Putting words into the system's mouth: A targeted attack on neural machine translation using monolingual data poisoningJun Wang, Chang Xu, Francisco Guzmán, Ahmed El-Kishky et al.ACL Findings 2021 · 20 citations
- Defending Against Model Stealing Attacks With Adaptive MisinformationSanjay Kariyappa, Moinuddin K. QureshiCVPR 2020
- Bad Characters: Imperceptible NLP AttacksNicholas Boucher, Ilia Shumailov, Ross Anderson, Nicolas PapernotS&P 2022 · 133 citations
- Foiling Training-Time Attacks on Neural Machine Translation SystemsJun Wang, Xuanli He, Benjamin I. P. Rubinstein, Trevor CohnEMNLP Findings 2022 · 1 citation
