[Paper Review] Imitation Attacks and Defenses for Black-box Machine Translation Systems
This paper demonstrates that black-box machine translation (MT) systems can be stolen via query-based imitation learning, achieving near-production performance (within 0.6 BLEU) on high- and low-resource language pairs. It further shows that adversarial examples generated on these imitation models successfully transfer to production systems, and proposes a defense that degrades imitation model quality and attack transferability by injecting alternate translations, at the cost of reduced BLEU and inference speed.
Adversaries may look to steal or attack black-box 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 exploits 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 semantically-incorrect 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.
Motivation & Objective
- To investigate whether black-box MT systems can be reverse-engineered through query-based imitation learning.
- To evaluate the feasibility of transferring adversarial examples from imitation models to production MT systems.
- To develop a defense mechanism that mitigates model stealing and adversarial transfer while preserving core model functionality.
- To assess the trade-offs between security, performance, and inference efficiency in defending against imitation attacks.
Proposed method
- Train imitation models using monolingual sentences queried from a black-box MT API, labeling outputs for supervised fine-tuning.
- Use gradient-based attacks on the imitation model to generate adversarial examples that transfer to the production system.
- Implement a defense that generates multiple translation hypotheses per input and selects alternate outputs to mislead the imitation model’s optimization.
- Apply BLEU match thresholds (70, 80, 90) to control the degree of output perturbation and measure trade-offs in model performance.
- Evaluate defense efficacy by measuring degradation in imitation model BLEU and transfer rate of adversarial examples.
- Use a validation set of 400 IWSLT examples to measure attack transfer success rates before and after defense application.
Experimental results
Research questions
- RQ1Can an adversary successfully steal a production MT model using only query access and monolingual data?
- RQ2To what extent can adversarial examples generated on an imitation model transfer to the original production MT system?
- RQ3How effective is a defense that alters translation outputs to misdirect imitation model training?
- RQ4What is the trade-off between defense effectiveness and the performance (BLEU) and speed of the original MT system?
Key findings
- Imitation models achieved within 0.6 BLEU of three production MT systems (Google, Bing, Systran) on both high- and low-resource language pairs.
- Adversarial attacks transferred from imitation models to production systems at a success rate of 38% without defense.
- The proposed defense reduced adversarial transfer rates to 27.0% at the 70 BLEU match threshold, indicating a 26% relative reduction in attack success.
- The defense degraded the imitation model’s BLEU by up to 1.8 points (from 34.5 to 32.7), while the victim model’s BLEU dropped only 0.8 points (from 34.6 to 33.8).
- The inter-system BLEU between victim and imitation models decreased from 69.7 to 53.5 under the defense, indicating reduced functional similarity.
- The defense introduced a 100-hypothesis generation step, increasing inference cost and reducing the defender’s BLEU, but provided a measurable competitive advantage to the defender.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.