A Generative Adversarial Attack for Multilingual Text Classifiers
Tom Roth, Inigo Jauregi Unanue, Alsharif Abuadbba, Massimo Piccardi
TL;DR
This work tackles adversarial robustness for multilingual text classifiers by training a multilingual generative attack model. Starting from a pre-trained mT5 base, the method first learns multilingual paraphrasing, then fine-tunes the generator with an adversarial objective that jointly optimizes against the victim model while enforcing linguistic quality and language-consistency via auxiliary components. Key innovations include vocabulary-mapping matrices that preserve end-to-end differentiability across heterogeneous vocabularies and a loss function that balances attack strength, semantic fidelity, and language adherence, regulated by a KL term. Empirical results on MARC and TSM across five languages show the approach achieves strong attack effectiveness with relatively few queries, outperforming multilingual baselines and highlighting language-specific challenges, notably for Arabic.
Abstract
Current adversarial attack algorithms, where an adversary changes a text to fool a victim model, have been repeatedly shown to be effective against text classifiers. These attacks, however, generally assume that the victim model is monolingual and cannot be used to target multilingual victim models, a significant limitation given the increased use of these models. For this reason, in this work we propose an approach to fine-tune a multilingual paraphrase model with an adversarial objective so that it becomes able to generate effective adversarial examples against multilingual classifiers. The training objective incorporates a set of pre-trained models to ensure text quality and language consistency of the generated text. In addition, all the models are suitably connected to the generator by vocabulary-mapping matrices, allowing for full end-to-end differentiability of the overall training pipeline. The experimental validation over two multilingual datasets and five languages has shown the effectiveness of the proposed approach compared to existing baselines, particularly in terms of query efficiency. We also provide a detailed analysis of the generated attacks and discuss limitations and opportunities for future research.
