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

CFSafety:面向大语言模型的综合细粒度安全评估

CFSafety: Comprehensive Fine-grained Safety Assessment for LLMs

Zhihao Liu, Chenhui Hu

AI总结:

本研究提出了整合5类安全场景与5类指令攻击、含2.5万条提示的安全评估基准CFSafety,以道德判断加1-5级量表评分测试8款主流LLM,发现GPT-4安全性最优但整体仍需提升,相关资源已开源。

摘要:

随着大语言模型(LLMs)快速发展,它们为我们的工作和日常生活带来了极大便利,但也引入了相当大的安全风险。这些模型可能生成带有社会偏见或不道德内容的文本,在特定对抗性指令下,甚至可能煽动非法活动。因此,对大语言模型进行严格的安全评估至关重要。在本研究中,我们提出了一个安全评估基准CFSafety,它整合了5种经典安全场景和5类指令攻击,共10个类别的安全问题,形成了包含2.5万条提示词的测试集。该测试集用于评估大语言模型的自然语言生成(NLG)能力,采用简单道德判断与1-5分安全等级量表相结合的方式进行评分。利用该基准,我们测试了包括GPT系列在内的8款主流大语言模型。结果表明,尽管GPT-4展现出了更优的安全性能,但包括该模型在内的大语言模型的安全有效性仍有待提升。本研究相关的数据和代码已在GitHub上公开。

英文摘要:

As large language models (LLMs) rapidly evolve, they bring significant conveniences to our work and daily lives, but also introduce considerable safety risks. These models can generate texts with social biases or unethical content, and under specific adversarial instructions, may even incite illegal activities. Therefore, rigorous safety assessments of LLMs are crucial. In this work, we introduce a safety assessment benchmark, CFSafety, which integrates 5 classic safety scenarios and 5 types of instruction attacks, totaling 10 categories of safety questions, to form a test set with 25k prompts. This test set was used to evaluate the natural language generation (NLG) capabilities of LLMs, employing a combination of simple moral judgment and a 1-5 safety rating scale for scoring. Using this benchmark, we tested eight popular LLMs, including the GPT series. The results indicate that while GPT-4 demonstrated superior safety performance, the safety effectiveness of LLMs, including this model, still requires improvement. The data and code associated with this study are available on GitHub.

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

↑