arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.13676cs.LGcs.AIcs.CL
收藏

有界 Levenshtein 距离下的认证鲁棒性

Certified Robustness Under Bounded Levenshtein Distance

École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Elias Abad Rocamora, Grigorios G. Chrysos, Volkan Cevher

AI总结:

针对文本分类器在 Levenshtein 距离对抗扰动下的验证难题,提出 LipsLev 估计卷积分类器的 Lipschitz 常数并训练 1-Lipschitz 模型,实现单次前向传播的认证半径计算,显著提升速度与验证准确率。

摘要:

文本分类器会受到微小扰动的影响:如果这些扰动是经对抗性方式选择的,就可能显著改变模型的输出。验证方法可以通过计算鲁棒准确率的可靠下界,为此类对抗扰动提供鲁棒性认证。然而,现有验证方法会产生难以承受的成本,实际上无法处理 Levenshtein 距离约束。我们提出了首个用于计算卷积分类器关于 Levenshtein 距离的 Lipschitz 常数的方法。我们使用这些 Lipschitz 常数估计来训练 1-Lipschitz 分类器。这使得只需一次前向传播即可计算分类器的认证半径。我们的方法 LipsLev 在 AG-News 数据集上,于距离 1 和距离 2 时分别能够获得 38.80% 和 13.93% 的验证准确率,同时比现有方法快 4 个数量级。我们相信,本工作能够为文本领域中更高效的验证打开大门。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑