arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.13237cs.CLcs.AIcs.CR
收藏

大型语言模型容易被混淆:一种定量度量、安全影响与类型学分析

Large Language Models are Easily Confused: A Quantitative Metric, Security Implications and Typological Analysis

Aalborg University(奥尔堡大学)

Yiyi Chen, Qiongxiu Li, Russa Biswas, Johannes Bjerva

AI总结:

本文提出语言混淆熵这一新度量来量化LLMs生成错误语言的现象,并结合语言类型学揭示混淆模式及其在多语言嵌入反转攻击中的安全影响,为LLM对齐与安全提供理论依据。

摘要:

语言混淆是一种现象,即大型语言模型(LLMs)生成的文本既不是所需语言,也不是语境上合适的语言。这一现象对LLMs的文本生成构成了关键挑战,通常表现为不稳定且不可预测的行为。我们假设LLMs的这种固有脆弱性存在语言学规律,并揭示不同LLMs之间语言混淆的模式。我们引入了一种新颖的度量指标——语言混淆熵,旨在基于由语言类型学和词汇变异所启发的语言分布,直接测量和量化这种混淆。与语言混淆基准(Marchisio等人,2024年)的全面比较证实了我们度量指标的有效性,揭示了不同LLMs之间语言混淆的模式。我们进一步将语言混淆与LLM安全联系起来,并在多语言嵌入反转攻击的案例中发现了相关模式。我们的分析表明,语言类型学提供了具有理论依据的解释,并为利用语言相似性作为LLM对齐和安全的先验提供了有价值的见解。

英文摘要:

Language Confusion is a phenomenon where Large Language Models (LLMs) generate text that is neither in the desired language, nor in a contextually appropriate language. This phenomenon presents a critical challenge in text generation by LLMs, often appearing as erratic and unpredictable behavior. We hypothesize that there are linguistic regularities to this inherent vulnerability in LLMs and shed light on patterns of language confusion across LLMs. We introduce a novel metric, Language Confusion Entropy, designed to directly measure and quantify this confusion, based on language distributions informed by linguistic typology and lexical variation. Comprehensive comparisons with the Language Confusion Benchmark (Marchisio et al., 2024) confirm the effectiveness of our metric, revealing patterns of language confusion across LLMs. We further link language confusion to LLM security, and find patterns in the case of multilingual embedding inversion attacks. Our analysis demonstrates that linguistic typology offers theoretically grounded interpretation, and valuable insights into leveraging language similarities as a prior for LLM alignment and security.

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

↑