arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.14490cs.CL
收藏

非标准Unicode字符对大型语言模型安全性与理解力的影响

Impact of Non-Standard Unicode Characters on Security and Comprehension in Large Language Models

Manipal Institute of Technology Bengaluru, Manipal Academy of Higher Education(马尼帕尔高等教育学院班加罗尔马尼帕尔理工学院)

Johan S Daniel, Anand Pal

AI总结:

本研究通过标准化测试比较15个LLM,揭示非标准Unicode字符能削弱RLHF护栏,导致GPT-4等模型更易发生越狱、幻觉和理解错误,建议在训练数据中加入此类字符以增强安全性。

摘要:

大型语言模型的进步显著提升了自然语言处理能力。然而,诸如越狱(提示注入,导致LLM遵循与其预期用途相反的指令)、幻觉(生成不正确或误导性信息)以及理解错误等挑战仍然普遍存在。在本报告中,我们对十五个不同模型的性能进行了比较分析,每个模型均接受了一项包含38个查询的标准化测试,涵盖三个关键指标:越狱、幻觉和理解错误。模型根据越狱、幻觉和理解错误的总发生次数进行评估。我们的工作揭示了这些模型固有的脆弱性,并挑战了这些模型具备人类水平语言理解能力的观点。我们实证分析了非标准Unicode字符对LLM及其防护机制的影响,研究对象包括表现最佳的LLM,如GPT-4、Gemini 1.5 Pro、LlaMA-3-70B和Claude 3 Opus。通过纳入标准拉丁块之外的Unicode字母数字符号以及其他语言的字符变体,我们观察到通过基于人类反馈的强化学习(RLHF)实施的护栏的有效性有所降低。因此,这些模型在内容政策违规和提示泄露方面表现出更高的脆弱性。我们的研究还表明,需要在LLM训练数据中纳入非标准Unicode文本,以增强这些模型的能力。

英文摘要:

The advancement of large language models has significantly improved natural language processing. However, challenges such as jailbreaks (prompt injections that cause an LLM to follow instructions contrary to its intended use), hallucinations (generating incorrect or misleading information), and comprehension errors remain prevalent. In this report, we present a comparative analysis of the performance of fifteen distinct models, with each model undergoing a standardized test comprising 38 queries across three key metrics: jailbreaks, hallucinations, and comprehension errors. The models are assessed based on the total occurrences of jailbreaks, hallucinations, and comprehension errors. Our work exposes these models' inherent vulnerabilities and challenges the notion of human-level language comprehension of these models. We have empirically analysed the impact of non-standard Unicode characters on LLMs and their safeguarding mechanisms on the best-performing LLMs, including GPT-4, Gemini 1.5 Pro, LlaMA-3-70B, and Claude 3 Opus. By incorporating alphanumeric symbols from Unicode outside the standard Latin block and variants of characters in other languages, we observed a reduction in the efficacy of guardrails implemented through Reinforcement Learning Human Feedback (RLHF). Consequently, these models exhibit heightened vulnerability to content policy breaches and prompt leakage. Our study also suggests a need to incorporate non-standard Unicode text in LLM training data to enhance the capabilities of these models.

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

↑