[Paper Review] Robustness to Programmable String Transformations via Augmented Abstract Training
This paper proposes Augmented Abstract Adversarial Training (A3T), a hybrid method that combines search-based augmentation and abstraction-based techniques to train neural networks robust to user-defined string transformations—such as typos, synonym substitutions, and deletions. By programmatically specifying perturbation spaces and decomposing them into augmentable and abstractable components, A3T achieves superior robustness on AG and SST2 datasets, outperforming pure augmentation or abstraction methods.
Deep neural networks for natural language processing tasks are vulnerable to adversarial input perturbations. In this paper, we present a versatile language for programmatically specifying string transformations -- e.g., insertions, deletions, substitutions, swaps, etc. -- that are relevant to the task at hand. We then present an approach to adversarially training models that are robust to such user-defined string transformations. Our approach combines the advantages of search-based techniques for adversarial training with abstraction-based techniques. Specifically, we show how to decompose a set of user-defined string transformations into two component specifications, one that benefits from search and another from abstraction. We use our technique to train models on the AG and SST2 datasets and show that the resulting models are robust to combinations of user-defined transformations mimicking spelling mistakes and other meaning-preserving transformations.
Motivation & Objective
- To address the vulnerability of NLP models to adversarial input perturbations such as spelling mistakes and synonym substitutions.
- To develop a scalable method for adversarial training over large, discrete perturbation spaces in natural language sequences.
- To combine the strengths of search-based augmentation and abstraction-based techniques for improved robustness.
- To enable programmable specification of complex, meaning-preserving string transformations for adversarial training.
- To evaluate the effectiveness of the proposed method on real-world NLP benchmarks like AG and SST2.
Proposed method
- The method introduces a domain-specific language to specify string transformations as a set of operations (e.g., insertions, deletions, substitutions) with bounded application counts.
- It decomposes the user-defined perturbation space into two disjoint subsets: one for concrete search (augmentation) and one for symbolic abstraction (e.g., interval abstraction).
- For the augmentation component, it uses gradient-based search (e.g., HotFlip) or enumeration to find worst-case perturbations.
- For the abstraction component, it applies symbolic overapproximation (e.g., interval analysis) to bound the worst-case loss over transformation sets.
- The adversarial loss is computed as a hybrid: lower bound from search, upper bound from abstraction, enabling efficient yet robust training.
- The approach is applied to both character-level and word-level models, with evaluation on AG and SST2 datasets.
Experimental results
Research questions
- RQ1Can A3T train models robust to complex, user-defined string transformations that include both insertion/deletion and substitution operations?
- RQ2How does A3T compare in robustness to pure augmentation or abstraction-based adversarial training techniques?
- RQ3Does the scalability of A3T hold as the size of the perturbation space increases?
- RQ4How does the performance of A3T vary across different model architectures and transformation types?
- RQ5Can A3T maintain high normal accuracy while achieving high robustness under diverse perturbation sets?
Key findings
- A3T(HotFlip) achieved an exhaustive accuracy of 86.4 on the AG dataset for the transformation set {(T_SwapPair,2),(T_SubAdj,2)}, outperforming both pure augmentation and abstraction methods.
- On the SST2 dataset, A3T(HotFlip) maintained a normal accuracy of 73.6, significantly higher than the 58.8 achieved by pure abstraction due to overapproximation.
- When increasing perturbation space size, A3T(HotFlip) and A3T(search) showed only 1.6% and 1.1% drops in exhaustive accuracy, respectively, compared to larger drops in other methods.
- For the transformation set {(T_DelStop,2),(T_SubSyn,2)}, A3T(search) achieved 86.8 exhaustive accuracy on AG, close to A3T(HotFlip) and better than pure abstraction.
- Pure abstraction failed to scale effectively on SST2 with smaller perturbation bounds, achieving only 47.0 exhaustive accuracy, indicating overapproximation issues.
- The method demonstrates that combining augmentation and abstraction enables robustness without sacrificing normal accuracy, even under large and complex perturbation spaces.
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.