arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.02626cs.SEcs.AIcs.HC
收藏

“哎呀,我刚才说的是这个吗?”:采用建议-批判-反思流程测试与修复大语言模型的不道德建议

"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Process

The Hong Kong University of Science and Technology(香港科技大学)

Pingchuan Ma, Zongjie Li, Ao Sun, Shuai Wang

AI总结:

本文提出首个LLM不道德建议测试修复框架,含ETHICSSUITE测试套件、SCR检测流程与OTF实时修复方案,在7款主流LLM中发现超10万条不道德建议,且OTF方案可有效修复其中大量内容。

摘要:

随着大语言模型(LLMs)在各类应用中的普及度飙升,确保其与人类价值观对齐已成为首要关切。尤其是考虑到LLMs在日常生活中作为通用AI助手的巨大潜力,其隐蔽的不道德建议已成为严峻且现实的问题,因此应对自动测试与修复不道德建议的挑战迫在眉睫。\n 本文提出了首个用于测试和修复LLMs生成的不道德建议的框架。我们首先提出ETHICSSUITE(伦理测试套件),这是一套呈现复杂、情境化且贴合现实的道德场景的测试套件,用于测试LLMs。随后我们提出了新颖的建议-批判-反思(suggest-critic-reflect, SCR)流程,作为自动测试预言机来检测不道德建议。我们将判断LLMs是否生成不道德建议这一难题(通常需要人类专业知识且判定成本高昂)重构为PCR任务,可自动检查是否存在违规情况。此外,我们提出了新颖的即时(on-the-fly, OTF)修复方案,可实时修复LLMs生成的不道德建议。OTF方案适用于黑盒API设置下的LLMs,成本适中。借助ETHICSSUITE,我们对七款主流LLMs(如ChatGPT、GPT-4)的研究共发现了109824条不道德建议。我们将OTF方案应用于两款LLMs(Llama-13B和ChatGPT),为相当数量的不道德建议生成了有效修复,为打造更具伦理意识的LLMs铺平了道路。

英文摘要:

As the popularity of large language models (LLMs) soars across various applications, ensuring their alignment with human values has become a paramount concern. In particular, given that LLMs have great potential to serve as general-purpose AI assistants in daily life, their subtly unethical suggestions become a serious and real concern. Tackling the challenge of automatically testing and repairing unethical suggestions is thus demanding. This paper introduces the first framework for testing and repairing unethical suggestions made by LLMs. We first propose ETHICSSUITE, a test suite that presents complex, contextualized, and realistic moral scenarios to test LLMs. We then propose a novel suggest-critic-reflect (SCR) process, serving as an automated test oracle to detect unethical suggestions. We recast deciding if LLMs yield unethical suggestions (a hard problem; often requiring human expertise and costly to decide) into a PCR task that can be automatically checked for violation. Moreover, we propose a novel on-the-fly (OTF) repairing scheme that repairs unethical suggestions made by LLMs in real-time. The OTF scheme is applicable to LLMs in a black-box API setting with moderate cost. With ETHICSSUITE, our study on seven popular LLMs (e.g., ChatGPT, GPT-4) uncovers in total 109,824 unethical suggestions. We apply our OTF scheme on two LLMs (Llama-13B and ChatGPT), which generates valid repair to a considerable amount of unethical ones, paving the way for more ethically conscious LLMs.

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

↑