Skip to main content
QUICK REVIEW

[论文解读] DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Models

Boxin Wang, Weixin Chen|arXiv (Cornell University)|Jun 20, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 59
一句话总结

本论文在八个信任度维度(毒性、偏见、鲁棒性、隐私、伦理和公正)上对GPT-3.5和GPT-4进行了全面评估,并在标准基准和对抗条件下揭示了优势与脆弱性。

ABSTRACT

Generative Pre-trained Transformer (GPT) models have exhibited exciting progress in their capabilities, capturing the interest of practitioners and the public alike. Yet, while the literature on the trustworthiness of GPT models remains limited, practitioners have proposed employing capable GPT models for sensitive applications such as healthcare and finance -- where mistakes can be costly. To this end, this work proposes a comprehensive trustworthiness evaluation for large language models with a focus on GPT-4 and GPT-3.5, considering diverse perspectives -- including toxicity, stereotype bias, adversarial robustness, out-of-distribution robustness, robustness on adversarial demonstrations, privacy, machine ethics, and fairness. Based on our evaluations, we discover previously unpublished vulnerabilities to trustworthiness threats. For instance, we find that GPT models can be easily misled to generate toxic and biased outputs and leak private information in both training data and conversation history. We also find that although GPT-4 is usually more trustworthy than GPT-3.5 on standard benchmarks, GPT-4 is more vulnerable given jailbreaking system or user prompts, potentially because GPT-4 follows (misleading) instructions more precisely. Our work illustrates a comprehensive trustworthiness evaluation of GPT models and sheds light on the trustworthiness gaps. Our benchmark is publicly available at https://decodingtrust.github.io/ ; our dataset can be previewed at https://huggingface.co/datasets/AI-Secure/DecodingTrust ; a concise version of this work is at https://openreview.net/pdf?id=kaHpo8OZw2 .

研究动机与目标

  • 评估GPT-3.5和GPT-4在八个信任度维度(毒性、刻板印象偏见、对抗鲁棒性、分布外鲁棒性、对抗性演示鲁棒性、隐私、机器伦理和公正性)上的表现。
  • 在标准基准和对抗/系统提示下比较GPT-4和GPT-3.5的性能。
  • 识别尚未公开的漏洞并为未来改进以及更安全部署GPT模型提供信息。
  • 提供开源评估平台和数据集,以支持更广泛的信任度基准评估。

提出的方法

  • 使用标准基准(例如RealToxicityPrompts、AdvGLUE)以及新设计的提示和数据集,对GPT-3.5和GPT-4进行多维度评估。
  • 设计多样的系统提示以及对抗性/用户提示,以探测毒性、偏见、鲁棒性及其他维度。
  • 通过风格变换、时事查询以及带有OOD示例的上下文学习,评估分布外鲁棒性。
  • 通过追踪训练数据(如Enron)及对话中的泄露,以及测试PII披露来评估隐私。
  • 结合标准基准以及破解/规避提示,并加入条件行动场景,检视机器伦理。
  • 通过零-shot和少-shot设定,结合人口统计变异和基线比率的不同,评估公正性。
Figure 1: Examples of undesirable responses of GPT-4 given benign system prompts from different trustworthiness perspectives. Offensive or sensitive information is masked.
Figure 1: Examples of undesirable responses of GPT-4 given benign system prompts from different trustworthiness perspectives. Offensive or sensitive information is masked.

实验结果

研究问题

  • RQ1GPT-4和GPT-3.5在标准基准下的毒性、偏见、对抗鲁棒性、OOD鲁棒性、隐私、机器伦理和公正性方面有何差异?
  • RQ2系统提示和用户提示如何影响这些维度的信任性结果?
  • RQ3在对抗性演示和后门提示下,会暴露出哪些漏洞,模型版本在易感性方面有何不同?
  • RQ4在对话中GPT模型在多大程度上会泄露训练数据或私密信息?
  • RQ5我们能否识别出提升未来大模型可靠性与安全性的可操作方向?

主要发现

  • GPT-4在标准基准上通常显示出比GPT-3.5更高的信任度,但对系统或用户提示的锁定/越狱更易被利用。
  • 在精心设计的对抗性提示下,GPT模型可能产生有毒或有偏见的输出,GPT-4在某些提示中更易受到影响。
  • GPT-4对定向对抗性提示更易受影响,且更能按指示行动,在某些提示下毒性增加。
  • 对训练数据(如Enron)及对话历史的隐私泄露是可检测的,除隐私泄露演示外,GPT-4在保护个人可识别信息方面更具鲁棒性。
  • 对抗性演示可通过反事实、虚假相关性和后门等方式误导模型,GPT-4对带后门的演示通常更易受攻击。
  • 公正性与偏见存在权衡:在数据平衡时准确性更高,但在不平衡情境下可能出现更大程度的不公;平衡的少样本提示可以改善公正性。
Figure 2: Examples of undesirable responses of GPT-4 given adversarial system prompts from different trustworthiness perspectives. (The word cf is a backdoor trigger added in the context.)
Figure 2: Examples of undesirable responses of GPT-4 given adversarial system prompts from different trustworthiness perspectives. (The word cf is a backdoor trigger added in the context.)

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。