Skip to main content
QUICK REVIEW

[论文解读] LLM Censorship: A Machine Learning Challenge or a Computer Security Problem?

D. O. Glukhov, Ilia Shumailov|arXiv (Cornell University)|Jul 20, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 20
一句话总结

论文认为 LLM 输出的语义审查在理论上不可判定且在实践中难以实现,提出将审查作为安全问题处理,并引入 Mosaic Prompts 作为强大的绕过机制。

ABSTRACT

Large language models (LLMs) have exhibited impressive capabilities in comprehending complex instructions. However, their blind adherence to provided instructions has led to concerns regarding risks of malicious use. Existing defence mechanisms, such as model fine-tuning or output censorship using LLMs, have proven to be fallible, as LLMs can still generate problematic responses. Commonly employed censorship approaches treat the issue as a machine learning problem and rely on another LM to detect undesirable content in LLM outputs. In this paper, we present the theoretical limitations of such semantic censorship approaches. Specifically, we demonstrate that semantic censorship can be perceived as an undecidable problem, highlighting the inherent challenges in censorship that arise due to LLMs' programmatic and instruction-following capabilities. Furthermore, we argue that the challenges extend beyond semantic censorship, as knowledgeable attackers can reconstruct impermissible outputs from a collection of permissible ones. As a result, we propose that the problem of censorship needs to be reevaluated; it should be treated as a security problem which warrants the adaptation of security-based approaches to mitigate potential risks.

研究动机与目标

  • 在 LLMs 的语境中将审查定义为提供者在语义和句法约束下对输入/输出进行的监管。
  • 展示与不可判定性及可逆变换不变性相关的语义审查的理论局限。
  • 证明攻击者可以通过 Mosaic Prompts 将允许的组件重组为不可允许的输出。
  • 主张将审查重新框定为一个安全问题并讨论以安全为中心的缓解策略。

提出的方法

  • 将审查形式化为一个在约束下将输入/输出映射到可允许字符串的函数。
  • 将语义审查与 Rice’s theorem 联系起来,以确立对非平凡的可允许语言集合的不可判定性。
  • 证明在可逆字符串变换下语义输出审查的不可能性(不变性论证)。
  • 引入 Mosaic Prompts 以说明允许的输出如何组合成不可允许的输出。
  • 讨论审查的最坏情况和实际局限性,包括句法替代方案和基于访问控制的防御等。
  • 提供关于将安全工程方法应用于 LLM 安全和审查的讨论。

实验结果

研究问题

  • RQ1在标准模型和约束下,LLM 输入/输出的语义审查是否可判定?
  • RQ2在不可许可内容的可逆变换下,语义审查是否能可靠执行?
  • RQ3哪些攻击(如 Mosaic Prompts)能绕过审查,以及它们如何在不同的审查策略中推广?
  • RQ4审查是否应被视为一个安全问题,而不是一个 ML 问题,哪些安全方法是适用的?
  • RQ5有哪些可行的缓解措施或设计原则(如访问控制)来在不大幅限制有用性的前提下管理审查风险?

主要发现

  • 语义审查通过 Rice’s theorem 与不可判定问题相关联,意味着基本局限。
  • 逆变换可以保留不可允许的内容,在某些假设下使语义输出审查不可实现。
  • Mosaic Prompts 使得能够从允许的组件构造出不可允许的输出,在实践中绕过审查。
  • 句法审查提供的缓解有限,但仍可被组合攻击和工具集成所绕过。
  • 更推荐采用以安全为中心的方法(如访问控制、系统设计考量),而非纯粹的基于 ML 的审查。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。