Skip to content

Robust Encoding (RobEn): A Framework for Defending Against Adversarial Typo AttacksRobust Encodings: A Framework for Combating Adversarial Typos

arXiv· arXiv:2005.01229· ACL 2020· Erik Jones, Robin Jia, Aditi Raghunathan, Percy Liang·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The paper proposes a robust encoding framework, RobEn, which uses an encoding function to map sentences into a smaller discrete encoding space and uses it as a bottleneck so that the model obtains guaranteed adversarial robustness under standard training without changing the model architecture. The authors note that previous defenses are either heuristic methods that are easily broken by stronger attacks, or, although they provide guarantees against worst-case attacks, are incompatible with state-of-the-art models such as BERT; RobEn's encoding can be reused across tasks, and its construction must satisfy two criteria: stability (various perturbations of a sentence map to a small set of encodings) and fidelity (models using the encoding still perform well). After instantiating it against a large class of adversarial typos, on six GLUE tasks, RobEn with BERT achieves an average robust accuracy of 71.3% against all adversarial typos in that family, whereas a previous defense using a typo corrector reached only 35.3% against a simple greedy attack.

Read originalACL 2020