TRANSMISSION // 2611.27260v1
When Perfect Output Filtering Is Impossible
Source published
A formal report identifies when exact AI output filtering is possible and where undecidable policies prevent a general guarantee—without showing that practical guardrails are ineffective.

Can a filter block every forbidden AI output while passing every permitted one? A theoretical report says exact filtering depends on both the policy and the range of possible outputs. Its result marks a boundary under specific assumptions, not a measure of real-world guardrail performance.
Guardrails are often expected to do two things at once: block every forbidden answer and preserve every permitted one. Ahmed Amer, Loren Kinczel and Darrell D. E. Long ask when a computer program—a “guard”—could meet both requirements exactly. Their result is conditional: for a generator able to produce any finite string, exact filtering is possible if and only if the rule for classifying forbidden outputs is decidable by an algorithm.
The authors present a formal analysis, not an experiment on deployed AI systems. They model a generator as a computable process, a policy as a set of forbidden strings, and a guard as a computable check that blocks or passes an output. “Full” means that, across prompts and random seeds, the generator can produce every finite string. An exact guard blocks every forbidden output and passes every permitted one.
If the policy is undecidable—no algorithm can always determine whether an arbitrary string violates it—then, under the full-generator assumption, no computable guard can be exact. The report further proves that every such guard misclassifies infinitely many strings. A guard that blocks all forbidden strings must also block infinitely many permitted ones; a guard that passes all permitted strings must let infinitely many forbidden ones through.
The examples are deliberately formal. A policy banning specified phrases is decidable: an algorithm can check whether a phrase appears. By contrast, the arithmetic example concerns a policy that classifies every sentence in a specified formal language of arithmetic correctly as true or false. The program example concerns nontrivial behavioral policies in the report’s model, which judges programs by the actions they perform. The authors also consider messages that lead an idealized recipient to perform harmful actions. These results draw on computability concepts associated with the halting problem, Gödel’s incompleteness theorem and Rice’s theorem; they do not establish that ordinary safety rules are undecidable.
Nor does the report conclude that exact enforcement is always impossible. Its theorem relies on the generator being full and on the particular policy being undecidable. For outputs limited to a fixed maximum length, an exact guard exists in the model. Restrictions that ensure programs halt within a computable time bound can also make certain behavior checks decidable.
The report distinguishes output guards from execution monitors. A monitor checks actions as a program runs. In the formal model, if a harmful action is specified in advance, every action is observable, and the monitor can stop the program before that action occurs, an exact monitor is possible. These conditions matter: this is not a general guarantee about deployed systems. If the violation instead depends on whether a delivered string has a harmful meaning or effect, classification can remain undecidable under the report’s assumptions.
The result also does not show that practical filters have high error rates. “Infinitely many” counts strings; it says nothing about how likely those strings are in ordinary use. The authors establish no positive lower bound on average error under an arbitrary probability distribution. A guardrail may still be useful, and empirical performance matters. But a low average error does not by itself settle what might happen when outputs are chosen adversarially.
The authors make a further distinction between enforcing a policy and establishing that the policy is adequate. Exact compliance would not prove that the rule captures everything relevant to safety. Blocking more may also exclude permitted information, potentially including warnings or remedies. These are reasons to examine the consequences of exclusions, not findings that the report measured in deployed systems.
The paper’s recommendations about responsibility are ethical and governance arguments, not further mathematical results. The authors call for safety claims to specify the rule, the system and circumstances covered, and whether the assurance is a formal proof, measured performance or an expectation. They also argue that people responsible for oversight need the time, information and authority to challenge decisions and revise or suspend use; a nominal human approval step alone is not enough.
This work is a Sustainable Systems Laboratory technical report labeled “Preprint v0.1,” not a deployment study. Its formal analysis is presented in that report, but the supplied source does not establish peer review or independent validation. The central takeaway is therefore limited but important: there is no general promise of perfect output classification under the report’s stated conditions. That does not make guardrails useless, and it does not remove the need to evaluate their performance, scope and consequences.
- AI guardrails
- language models
- computability
- decidability
- AI safety
- output filtering
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A weight-editing attack may weaken open AI guardrails
Source published
Shared keywords: ai safety, language models
Why an AI code gatekeeper cannot certify every safe program
Source published
Shared keywords: ai safety
TopicScope tracks an AI response’s subject as it is generated
Source published
Shared keywords: ai guardrails, language models
When Retrieved Text Changes AI Safety Checks
Source published
Shared keywords: ai safety, language models
Can switching off AI safety components make a model harder to jailbreak?
Source published
Shared keywords: ai safety