English

Certified Robustness Under Bounded Levenshtein Distance

Machine Learning 2025-02-21 v2 Artificial Intelligence Computation and Language

Abstract

Text classifiers suffer from small perturbations, that if chosen adversarially, can dramatically change the output of the model. Verification methods can provide robustness certificates against such adversarial perturbations, by computing a sound lower bound on the robust accuracy. Nevertheless, existing verification methods incur in prohibitive costs and cannot practically handle Levenshtein distance constraints. We propose the first method for computing the Lipschitz constant of convolutional classifiers with respect to the Levenshtein distance. We use these Lipschitz constant estimates for training 1-Lipschitz classifiers. This enables computing the certified radius of a classifier in a single forward pass. Our method, LipsLev, is able to obtain 38.8038.80% and 13.9313.93% verified accuracy at distance 11 and 22 respectively in the AG-News dataset, while being 44 orders of magnitude faster than existing approaches. We believe our work can open the door to more efficient verification in the text domain.

Keywords

Cite

@article{arxiv.2501.13676,
  title  = {Certified Robustness Under Bounded Levenshtein Distance},
  author = {Elias Abad Rocamora and Grigorios G. Chrysos and Volkan Cevher},
  journal= {arXiv preprint arXiv:2501.13676},
  year   = {2025}
}

Comments

Accepted in ICLR 2025

R2 v1 2026-06-28T21:14:50.720Z