Skip to main content
QUICK REVIEW

[Paper 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 Science20 citations
TL;DR

The paper argues that semantic censorship of LLM outputs is theoretically undecidable and practically untenable, proposing that censorship be treated as a security problem and introducing Mosaic Prompts as a powerful bypass mechanism.

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.

Motivation & Objective

  • Define censorship in the context of LLMs as input/output regulation by providers under semantic and syntactic constraints.
  • Show theoretical limitations of semantic censorship linked to undecidability and invariance under invertible transformations.
  • Demonstrate that attackers can reconstruct impermissible outputs from permissible components via Mosaic Prompts.
  • Advocate reframing censorship as a security problem and discuss security-centric mitigation strategies.

Proposed method

  • Formalize censorship as a function that maps inputs/outputs to permissible strings under constraints.
  • Connect semantic censorship to Rice’s theorem to establish undecidability for nontrivial sets of permissible languages.
  • Prove impossibility of semantic output censorship under invertible string transformations (invariance argument).
  • Introduce Mosaic Prompts to illustrate how permissible outputs can compose into impermissible ones.
  • Discuss worst-case and practical limitations of censorship, including syntactic alternatives and access-control inspired defenses.
  • Provide discussion on adapting security engineering approaches to LLM safety and censorship.

Experimental results

Research questions

  • RQ1Is semantic censorship of LLM inputs/outputs decidable under standard models and constraints?
  • RQ2Can semantic censorship be reliably enforced given invertible transformations of impermissible content?
  • RQ3What attacks (e.g., Mosaic Prompts) circumvent censorship and how do they generalize across censorship strategies?
  • RQ4Should censorship be treated as a security problem rather than an ML problem, and what security methods are applicable?
  • RQ5What are viable mitigations or design principles (e.g., access control) to manage censorship risks without severely restricting usefulness?

Key findings

  • Semantic censorship is linked to undecidable problems via Rice’s theorem, implying fundamental limitations.
  • Inverse transformations can preserve impermissible content, making semantic output censorship impossible under certain assumptions.
  • Mosaic Prompts enable construction of impermissible outputs from permissible components, bypassing censorship in practice.
  • Syntactic censorship offers limited mitigation but can still be circumvented by compositional attacks and tool integration.
  • Security-focused approaches (e.g., access control, system-design considerations) are recommended over purely ML-based censorship.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.