arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10400cs.CL
收藏

自我反思使大型语言模型更安全、更少偏见且意识形态中立

Self-Reflection Makes Large Language Models Safer, Less Biased, and Ideologically Neutral

New York University Abu Dhabi(纽约大学阿布扎比分校);University of Copenhagen(哥本哈根大学)

Fengyuan Liu, Nouar AlDahoul, Gregory Eady, Yasir Zaki, Talal Rahwan

AI总结:

本文通过多模型、多提示词实验揭示自我反思效果受措辞影响,并证明其可显著提升 LLM 回答的安全性、降低性别偏见与党派倾向。

摘要:

以往研究提出,大型语言模型(LLM)的推理能力可以通过自我反思得到提升,即让 LLM 反思自身输出,以识别并纠正初始回答中的错误。然而,关于自我反思的益处,早期实验得出的结果并不一致。此外,以往关于自我反思的研究主要关注模型的推理能力,忽视了自我反思在安全性、偏见和意识形态倾向方面的潜力。本文通过一系列实验,使用多种提示词和不同的 LLM,在各类任务中测试 LLM 的自我反思能力,为相关文献作出了若干贡献。首先,我们调和了关于自我反思益处的相互矛盾发现,证明自我反思的结果对提示词措辞十分敏感——无论是用于引出初始答案的原始提示词,还是随后用于自我反思的提示词。具体而言,尽管当初始回答较为简单时,自我反思可能提升 LLM 的推理能力,但该技术无法在最先进的思维链(CoT)提示基础上进一步改进。其次,我们表明,自我反思能够带来更安全的回答(有毒回答减少 75.8%,同时保留 97.8% 的无毒回答)、更少偏见的回答(性别偏见回答减少 77%,同时保留 94.3% 的无偏见回答)以及更意识形态中立的回答(党派倾向回答减少 100%,同时保留 87.7% 的无党派倾向回答)。论文最后讨论了我们的发现对大型语言模型部署的影响。我们在 https://github.com/Michael98Liu/self-reflection 发布了实验。

英文摘要:

Previous studies proposed that the reasoning capabilities of large language models (LLMs) can be improved through self-reflection, i.e., letting LLMs reflect on their own output to identify and correct mistakes in the initial responses. However, earlier experiments offer mixed results when it comes to the benefits of self-reflection. Furthermore, prior studies on self-reflection are predominantly concerned with the reasoning capabilities of models, ignoring the potential for self-reflection in safety, bias, and ideological leaning. Here, by conducting a series of experiments testing LLM's self-reflection capability in various tasks using a variety of prompts and different LLMs, we make several contributions to the literature. First, we reconcile conflicting findings regarding the benefit of self-reflection, by demonstrating that the outcome of self-reflection is sensitive to prompt wording -- both the original prompt that are used to elicit an initial answer and the subsequent prompt used to self-reflect. Specifically, although self-reflection may improve the reasoning capability of LLMs when the initial response is simple, the technique cannot improve upon the state-of-the-art chain-of-thought (CoT) prompting. Second, we show that self-reflection can lead to safer (75.8\% reduction in toxic responses while preserving 97.8\% non-toxic ones), less biased (77\% reduction in gender biased responses, while preserving 94.3\% unbiased ones), and more ideologically neutral responses (100\% reduction in partisan leaning response, while preserving 87.7\% non-partisan ones). The paper concludes by discussing the implications of our findings on the deployment of large language models. We release our experiments at https://github.com/Michael98Liu/self-reflection.

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

↑