arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.11079cs.CLcs.AI
收藏

从红队测试中学习:大型语言模型中的性别偏见激发与缓解

Learning from Red Teaming: Gender Bias Provocation and Mitigation in Large Language Models

National Taiwan University(国立台湾大学);Intel Labs(英特尔实验室)

Hsuan Su, Cheng-Chu Cheng, Hua Farn, Shachi H Kumar, Saurav Sahay, Shang-Tse Chen, Hung-yi Lee

AI总结:

提出自动生成测试用例检测LLM性别偏见的方法,并利用这些用例作为上下文学习演示进行缓解,无需参数微调,实验显示回应更公平。

摘要:

近年来,随着ChatGPT和GPT-4等大型语言模型(LLMs)的进展,研究人员在对话系统方面取得了相当大的改进。这些基于LLM的聊天机器人编码了潜在的偏见,同时保留了可能在交互过程中伤害人类的差异。传统的偏见调查方法往往依赖于人工编写的测试用例。然而,这些测试用例通常昂贵且有限。在这项工作中,我们提出了一种首创的方法,自动生成测试用例以检测LLMs潜在的性别偏见。我们将我们的方法应用于三个知名的LLMs,并发现生成的测试用例有效地识别了偏见的存在。为了解决识别出的偏见,我们提出了一种缓解策略,该策略使用生成的测试用例作为上下文学习的演示,以避免参数微调的需要。实验结果表明,采用所提出的方法,LLMs生成了更公平的回应。

英文摘要:

Recently, researchers have made considerable improvements in dialogue systems with the progress of large language models (LLMs) such as ChatGPT and GPT-4. These LLM-based chatbots encode the potential biases while retaining disparities that can harm humans during interactions. The traditional biases investigation methods often rely on human-written test cases. However, these test cases are usually expensive and limited. In this work, we propose a first-of-its-kind method that automatically generates test cases to detect LLMs' potential gender bias. We apply our method to three well-known LLMs and find that the generated test cases effectively identify the presence of biases. To address the biases identified, we propose a mitigation strategy that uses the generated test cases as demonstrations for in-context learning to circumvent the need for parameter fine-tuning. The experimental results show that LLMs generate fairer responses with the proposed approach.

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

↑