Certified Robustness Under Bounded Levenshtein Distance

Elias Abad Rocamora, Grigorios G. Chrysos, Volkan Cevher
1/23/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: LIONS-EPFL/LipsLev (2 stars, MIT, last commit 2025-02-19).

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.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.

View on arXivView PDF

Code Implementations(1)

LIONS-EPFL/LipsLevCommunity100%
MIT

Official implementation of the ICLR 2025 paper "Certified Robustness Under Bounded Levenshtein Distance"

22Shell, PythonJan 23, 20251 years agoMIT

Similar Papers

Cite this paper

@article{rocamora2025certified,
  title  = {Certified Robustness Under Bounded Levenshtein Distance},
  author = {Elias Abad Rocamora and Grigorios G. Chrysos and Volkan Cevher},
  year   = {2025},
  eprint = {2501.13676},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.13676v2},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.13676.svg)](https://codeofpaper.com/paper/2501.13676)

Discussion