Certified Robustness Under Bounded Levenshtein Distance

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Rocamora, Elias Abad, Chrysos, Grigorios G., Cevher, Volkan
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910836560232448
author Rocamora, Elias Abad
Chrysos, Grigorios G.
Cevher, Volkan
author_facet Rocamora, Elias Abad
Chrysos, Grigorios G.
Cevher, Volkan
contents 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.80$% and $13.93$% verified accuracy at distance $1$ and $2$ respectively in the AG-News dataset, while being $4$ orders of magnitude faster than existing approaches. We believe our work can open the door to more efficient verification in the text domain.
format Preprint
id arxiv_https___arxiv_org_abs_2501_13676
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Certified Robustness Under Bounded Levenshtein Distance
Rocamora, Elias Abad
Chrysos, Grigorios G.
Cevher, Volkan
Machine Learning
Artificial Intelligence
Computation and Language
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.80$% and $13.93$% verified accuracy at distance $1$ and $2$ respectively in the AG-News dataset, while being $4$ orders of magnitude faster than existing approaches. We believe our work can open the door to more efficient verification in the text domain.
title Certified Robustness Under Bounded Levenshtein Distance
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2501.13676