arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.05350cs.LGcs.CR
收藏

认证的 PEFTSmoothing:结合随机平滑的参数高效微调

Certified PEFTSmoothing: Parameter-Efficient Fine-Tuning with Randomized Smoothing

School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院)

Chengyan Fu, Wenjie Wang

AI总结:

本文提出 PEFTSmoothing,用 PEFT 在白盒与黑盒设置下适配基模型学习高斯噪声数据,避免全量重训,并在 CIFAR-10 和 ImageNet 上取得更高认证准确率。

摘要:

随机平滑是评估深度学习模型对 l2 范数对抗扰动鲁棒性的主要认证鲁棒性方法,其做法是向输入图像添加各向同性高斯噪声,并返回基分类器的多数投票。理论上,它提供一个认证范数界,确保对抗样本的预测在该界内保持稳定。限制其广泛采用的一个显著约束是,必须完全从头重新训练基模型以获得鲁棒版本。这是因为基模型无法学习含噪声增强的数据分布,从而无法给出准确投票。克服该挑战的一种直观方法是引入定制训练的去噪器来消除噪声。然而,这种方法效率低且非最优。受近期大模型训练流程启发,我们探索了一种名为 PEFTSmoothing 的替代方法,在白盒和黑盒两种设置下使用参数高效微调(PEFT)方法,使基模型适应并学习高斯噪声增强的数据。大量结果证明了 PEFTSmoothing 的有效性和效率:它使我们能够在 CIFAR-10 上为 ViT 认证超过 98% 的准确率,比 SoTA 去噪平滑高 20%;在 ImageNet 上准确率超过 61%,比基于 CNN 的去噪器高 30%,并与基于 Diffusion 的去噪器相当。

英文摘要:

Randomized smoothing is the primary certified robustness method for accessing the robustness of deep learning models to adversarial perturbations in the l2-norm, by adding isotropic Gaussian noise to the input image and returning the majority votes over the base classifier. Theoretically, it provides a certified norm bound, ensuring predictions of adversarial examples are stable within this bound. A notable constraint limiting widespread adoption is the necessity to retrain base models entirely from scratch to attain a robust version. This is because the base model fails to learn the noise-augmented data distribution to give an accurate vote. One intuitive way to overcome this challenge is to involve a custom-trained denoiser to eliminate the noise. However, this approach is inefficient and sub-optimal. Inspired by recent large model training procedures, we explore an alternative way named PEFTSmoothing to adapt the base model to learn the Gaussian noise-augmented data with Parameter-Efficient Fine-Tuning (PEFT) methods in both white-box and black-box settings. Extensive results demonstrate the effectiveness and efficiency of PEFTSmoothing, which allow us to certify over 98% accuracy for ViT on CIFAR-10, 20% higher than SoTA denoised smoothing, and over 61% accuracy on ImageNet which is 30% higher than CNN-based denoiser and comparable to the Diffusion-based denoiser.

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

↑