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

论大型语言模型的对抗鲁棒性与分布外鲁棒性

On Adversarial Robustness and Out-of-Distribution Robustness of Large Language Models

Carnegie Mellon University(卡内基梅隆大学)

April Yang, Jordan Tab, Parth Shah, Paul Kotchavong

AI总结:

本研究探讨了大型语言模型中对抗鲁棒性与分布外鲁棒性的相关性,发现两者间可迁移性有限,并揭示了不同模型规模下的相关性趋势,强调了混合鲁棒性框架的必要性。

摘要:

随着大型语言模型(LLMs)在各类应用中的日益普及,有必要深入了解其对对抗性扰动和分布外(OOD)输入的鲁棒性。在本研究中,我们探讨了LLMs中对抗鲁棒性与分布外鲁棒性之间的相关性,填补了鲁棒性评估中的一个关键空白。通过将原本旨在提升一种鲁棒性的方法应用于两种情境,我们分析了这些方法在对抗性和分布外基准数据集上的表现。模型输入为文本样本,输出预测在多种自然语言推理任务中通过准确率、精确率、召回率和F1分数进行评估。我们的发现凸显了对抗鲁棒性与分布外鲁棒性之间微妙的相互作用,结果表明两种鲁棒性之间的可迁移性有限。通过有针对性的消融实验,我们评估了这些相关性如何随不同模型规模和架构而变化,揭示了特定于模型的趋势:较小的模型如LLaMA2-7b表现出中性相关性,较大的模型如LLaMA2-13b显示出负相关性,而Mixtral则表现出正相关性,这可能归因于领域特定的对齐。这些结果强调了混合鲁棒性框架的重要性,该框架整合了针对特定模型和领域定制的对抗性与分布外策略。需要进一步研究以评估这些相互作用在更大模型和多样化架构中的表现,为更可靠和可泛化的LLMs提供途径。

英文摘要:

The increasing reliance on large language models (LLMs) for diverse applications necessitates a thorough understanding of their robustness to adversarial perturbations and out-of-distribution (OOD) inputs. In this study, we investigate the correlation between adversarial robustness and OOD robustness in LLMs, addressing a critical gap in robustness evaluation. By applying methods originally designed to improve one robustness type across both contexts, we analyze their performance on adversarial and out-of-distribution benchmark datasets. The input of the model consists of text samples, with the output prediction evaluated in terms of accuracy, precision, recall, and F1 scores in various natural language inference tasks. Our findings highlight nuanced interactions between adversarial robustness and OOD robustness, with results indicating limited transferability between the two robustness types. Through targeted ablations, we evaluate how these correlations evolve with different model sizes and architectures, uncovering model-specific trends: smaller models like LLaMA2-7b exhibit neutral correlations, larger models like LLaMA2-13b show negative correlations, and Mixtral demonstrates positive correlations, potentially due to domain-specific alignment. These results underscore the importance of hybrid robustness frameworks that integrate adversarial and OOD strategies tailored to specific models and domains. Further research is needed to evaluate these interactions across larger models and varied architectures, offering a pathway to more reliable and generalizable LLMs.

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

↑