No Perfect Guardrail, No Perfect Guard: On the Decidability of LLM Output PoliciesNo Perfect Guardrail & No Perfect Guard: On the Decidability of Output Policies for Large Language Models
The paper argues that no perfect guardrail capable of universally guaranteeing safety exists, and gives a precise computational boundary: if every finite string of a language model could be an output, a computable guard that blocks all prohibited outputs and passes all permitted outputs exists if and only if the policy is decidable. For undecidable policies, any guard will misclassify infinitely many strings, and a guard that blocks all prohibited outputs must necessarily exclude infinitely many permitted outputs. The authors apply this characterization to arithmetic truth, program behavior, and harmful instructions to idealized recipients, distinguish guards from enforcement monitors, and note that bounded and interceptable cases permit exact enforcement. The paper emphasizes that exact enforcement does not mean the policy adequately characterizes safety; conservative exclusion may withhold the warnings, remediation, or challenges needed to identify policy flaws, and guardrails do not absolve researchers, developers, policymakers, and users of responsibility for examining their own claims, permissions, and prohibitions.