评测大模型在化学领域的安全与准确,防范危险建议。
ChemSafetyBench: Benchmarking LLM Safety on Chemistry Domain
- 构建三类化学任务评估大模型响应安全性和准确性。
- 覆盖超3万样本,包含高危化学品合成等复杂场景。
- 适合关注化学AI安全的科研人员与开发者使用。
大语言模型在科学辅助领域应用广泛,但常生成不准确或不安全的内容,甚至诱导危险行为。为解决化学领域的安全性问题,我们提出ChemSafetyBench,一个用于评估大模型在化学领域响应准确性和安全性的基准测试。该基准涵盖三类任务:查询化学性质、评估化学用途合法性、描述合成方法,需逐步深入化学知识。数据集包含超过3万条样本,覆盖多种化学物质。通过手工设计模板和高级越狱攻击场景增强任务多样性。我们开发了自动化评估框架,全面检测模型响应的安全性、准确性和适当性。对主流大模型的大量实验揭示了显著优势与关键漏洞,凸显加强安全措施的紧迫性。ChemSafetyBench旨在推动化学领域更安全的AI技术发展。代码与数据集见 https://github.com/HaochenZhao/SafeAgent4Chem。注意:本文涉及使用AI模型合成受控化学品的讨论。
原文摘要 · Abstract (English)
The advancement and extensive application of large language models (LLMs) have been remarkable, including their use in scientific research assistance. However, these models often generate scientifically incorrect or unsafe responses, and in some cases, they may encourage users to engage in dangerous behavior. To address this issue in the field of chemistry, we introduce ChemSafetyBench, a benchmark designed to evaluate the accuracy and safety of LLM responses. ChemSafetyBench encompasses three key tasks: querying chemical properties, assessing the legality of chemical uses, and describing synthesis methods, each requiring increasingly deeper chemical knowledge. Our dataset has more than 30K samples across various chemical materials. We incorporate handcrafted templates and advanced jailbreaking scenarios to enhance task diversity. Our automated evaluation framework thoroughly assesses the safety, accuracy, and appropriateness of LLM responses. Extensive experiments with state-of-the-art LLMs reveal notable strengths and critical vulnerabilities, underscoring the need for robust safety measures. ChemSafetyBench aims to be a pivotal tool in developing safer AI technologies in chemistry. Our code and dataset are available at https://github.com/HaochenZhao/SafeAgent4Chem. Warning: this paper contains discussions on the synthesis of controlled chemicals using AI models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。