Modeling Robust Ukrainian Text Classification Through Synonym Augmentation
Robustness of text classifiers to lexical perturbations depends on how augmented examples are generated and selected. We formulate adversarial synonym augmentation as a computational model with configurable candidate source, contextual filtering, and selection operator. Eight model configurations, including a clean reference, are investigated on Ukrainian text classification. The main experiment uses five class reviews, XLM RoBERTa and Ukr RoBERTa, three training seeds, and TextFooler and BERT Attack evaluations on 1,500 fixed test items. The same training budget and candidate pool are maintained in controlled contrasts. On XLM R, sense filtered adversarial selection reduces mean conditional attack success rate (cASR) from 0.387 to 0.296; on Ukr RoBERTa, from 0.598 to 0.414. Reversing the selection operator within the same dictionary candidate pool increases cASR to 0.547 and 0.776. This contrast identifies selection direction as a major determinant of the observed model behavior. The incremental value of contextual filtering varies with architecture and search width. Dictionary-based augmentation provides little transfer to masked language model attacks, and the converse also holds. Additional experiments vary the candidate search size, augmentation ratio, and classification task. In full data training, an apparent gain from unfiltered adversarial selection coincides with lower clean macro F1, demonstrating that a conditional robustness measure can mask classifier degradation. The computational experiments show that selecting difficult lexical directions can strengthen the tested sentiment classifiers, but robustness and clean utility must be evaluated together and across perturbation generators. Automatic contextual filtering does not guarantee that every substitution preserves the original label.
Authors
- Volodymyr Mudryi (ORCID: https://orcid.org/0009-0000-9902-2362)
Institutions
- Ukrainian Catholic University (UA)
Publication Details
- Journal
- Mathematical and computer modelling Series Technical sciences
- Published
- 2026-11-30
- DOI
- https://doi.org/10.32626/2308-5916.2026-30.159-171
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00