arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.07171cs.CLcs.LG
收藏

基于自去噪的大语言模型认证鲁棒性

Certified Robustness for Large Language Models with Self-Denoising

UC Santa Barbara(加州大学圣巴巴拉分校);The Hong Kong Polytechnic University(香港理工大学);Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Zhen Zhang, Guanhua Zhang, Bairu Hou, Wenqi Fan, Qing Li, Sijia Liu, Yang Zhang, Shiyu Chang

AI总结:

针对随机平滑用于LLM时依赖噪声数据性能、认证半径较小的问题,本文提出Self-Denoise自去噪方法,无需训练独立模型,并在认证与经验鲁棒性上超越现有方法。

摘要:

尽管大语言模型(LLM)已在大量实际应用中取得巨大成功,但它们对噪声输入的脆弱性严重限制了其使用,尤其是在高风险环境中。在这些情境下,确保大语言模型作出的每个预测都稳定至关重要,即在输入存在细微差异时,LLM预测应保持一致。这在很大程度上属于认证鲁棒LLM的研究范畴,即保证LLM在输入周围局部区域内的所有预测都被认证为正确。随机平滑已在认证LLM的鲁棒性和预测稳定性方面展现出巨大潜力。然而,随机平滑需要在模型预测前向输入添加噪声,其认证性能在很大程度上取决于模型在损坏数据上的表现。因此,将其直接应用于LLM仍具挑战,并且往往只能得到较小的认证半径。为解决该问题,我们利用LLM的多任务特性,提出以自去噪方式使用LLM对损坏输入进行去噪。与denoised smoothing等需要训练独立模型来增强LLM鲁棒性的以往工作不同,我们的方法具有显著更好的效率和灵活性。实验结果表明,在认证鲁棒性和经验鲁棒性两方面,我们的方法均优于现有认证方法。代码可在https://github.com/UCSB-NLP-Chang/SelfDenoise获取。

英文摘要:

Although large language models (LLMs) have achieved great success in vast real-world applications, their vulnerabilities towards noisy inputs have significantly limited their uses, especially in high-stake environments. In these contexts, it is crucial to ensure that every prediction made by large language models is stable, i.e., LLM predictions should be consistent given minor differences in the input. This largely falls into the study of certified robust LLMs, i.e., all predictions of LLM are certified to be correct in a local region around the input. Randomized smoothing has demonstrated great potential in certifying the robustness and prediction stability of LLMs. However, randomized smoothing requires adding noise to the input before model prediction, and its certification performance depends largely on the model's performance on corrupted data. As a result, its direct application to LLMs remains challenging and often results in a small certification radius. To address this issue, we take advantage of the multitasking nature of LLMs and propose to denoise the corrupted inputs with LLMs in a self-denoising manner. Different from previous works like denoised smoothing, which requires training a separate model to robustify LLM, our method enjoys far better efficiency and flexibility. Our experiment results show that our method outperforms the existing certification methods under both certified robustness and empirical robustness. The codes are available at https://github.com/UCSB-NLP-Chang/SelfDenoise.

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

↑