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

揭示大语言模型的安全漏洞

Unveiling Safety Vulnerabilities of Large Language Models

IBM Research AI(IBM研究院人工智能)

George Kour, Marcel Zalmanovici, Naama Zwerdling, Esther Goldbraich, Ora Nova Fandina, Ateret Anaby-Tavor, Orna Raz, Eitan Farchi

AI总结:

针对大语言模型可能生成有害不当回复的安全问题,本文提出攻击问题数据集AttaQ及结合攻击语义相似度与回复有害性的聚类方法,自动识别易受攻击语义区域,助力模型安全优化。

摘要:

随着大语言模型日益普及,其可能生成的有害或不当回复引发了人们的担忧。本文提出了一个独特的、以问题形式呈现对抗样本的数据集,我们将其命名为AttaQ,旨在诱导模型生成此类有害或不当回复。我们通过分析各类模型在该数据集测试下的漏洞,评估了该数据集的有效性。此外,我们提出了一种新颖的自动化方法,用于识别并命名易受攻击的语义区域——即模型大概率会生成有害输出的输入语义领域。该方法通过应用专门的聚类技术实现,这类技术同时考虑输入攻击的语义相似性与模型回复的有害性。自动识别易受攻击的语义区域可提升对模型弱点的评估效率,助力针对性改进其安全机制与整体可靠性。

英文摘要:

As large language models become more prevalent, their possible harmful or inappropriate responses are a cause for concern. This paper introduces a unique dataset containing adversarial examples in the form of questions, which we call AttaQ, designed to provoke such harmful or inappropriate responses. We assess the efficacy of our dataset by analyzing the vulnerabilities of various models when subjected to it. Additionally, we introduce a novel automatic approach for identifying and naming vulnerable semantic regions - input semantic areas for which the model is likely to produce harmful outputs. This is achieved through the application of specialized clustering techniques that consider both the semantic similarity of the input attacks and the harmfulness of the model's responses. Automatically identifying vulnerable semantic regions enhances the evaluation of model weaknesses, facilitating targeted improvements to its safety mechanisms and overall reliability.

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

↑