arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.08517cs.SEcs.AIcs.CLcs.CRcs.LG
收藏

大语言模型在线安全分析:基准、评估与未来路径

Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward

University of Alberta(阿尔伯塔大学);The University of Tokyo(东京大学)

Xuan Xie, Jiayang Song, Zhehua Zhou, Yuheng Huang, Da Song, Lei Ma

AI总结:

本研究针对LLMs生成阶段在线安全分析的空白,构建首个公开基准,全面评估现有方法在开源与闭源LLMs上的性能,探索混合方法的潜力,为LLMs质量保障与可靠部署提供方向。

摘要:

尽管大语言模型(LLMs)已在众多领域得到广泛应用,但其可解释性有限的问题在真实性、鲁棒性、公平性等多个方面给安全运行带来了隐患。近期研究已开始为LLMs开发质量保障方法,推出了基于离线检测器或不确定性估计等技术。然而,这些方法主要聚焦于生成后分析,使得生成阶段的LLMs在线安全分析成为尚未被探索的领域。为填补这一空白,本研究对现有LLMs在线安全分析方法的有效性开展了全面评估。我们首先通过预实验验证了在生成早期阶段检测不安全输出的可行性。在此基础上,我们构建了首个公开可用的LLMs在线安全分析基准,涵盖了丰富的方法、模型、任务、数据集及评估指标。利用该基准,我们对当前最先进的在线安全分析方法在开源与闭源LLMs上的性能进行了广泛分析。该分析揭示了各类方法的优缺点,为根据具体应用场景和任务需求选择最合适的方法提供了宝贵见解。此外,我们还探索了使用混合方法(即结合多种方法得出集体安全结论)提升LLMs在线安全分析效能的潜力。我们的研究结果为开发创新且可信的LLMs质量保障方法指明了前景方向,有助于推动其在不同领域的可靠部署。

英文摘要:

While Large Language Models (LLMs) have seen widespread applications across numerous fields, their limited interpretability poses concerns regarding their safe operations from multiple aspects, e.g., truthfulness, robustness, and fairness. Recent research has started developing quality assurance methods for LLMs, introducing techniques such as offline detector-based or uncertainty estimation methods. However, these approaches predominantly concentrate on post-generation analysis, leaving the online safety analysis for LLMs during the generation phase an unexplored area. To bridge this gap, we conduct in this work a comprehensive evaluation of the effectiveness of existing online safety analysis methods on LLMs. We begin with a pilot study that validates the feasibility of detecting unsafe outputs in the early generation process. Following this, we establish the first publicly available benchmark of online safety analysis for LLMs, including a broad spectrum of methods, models, tasks, datasets, and evaluation metrics. Utilizing this benchmark, we extensively analyze the performance of state-of-the-art online safety analysis methods on both open-source and closed-source LLMs. This analysis reveals the strengths and weaknesses of individual methods and offers valuable insights into selecting the most appropriate method based on specific application scenarios and task requirements. Furthermore, we also explore the potential of using hybridization methods, i.e., combining multiple methods to derive a collective safety conclusion, to enhance the efficacy of online safety analysis for LLMs. Our findings indicate a promising direction for the development of innovative and trustworthy quality assurance methodologies for LLMs, facilitating their reliable deployments across diverse domains.

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

↑