The Security Budget of Code-LLM Prompt Hardening: Provable Limits Under Pass-Only Acceptance
Jianwei Tai · 2026
Read The Security Budget of Code-LLM Prompt Hardening: Provable Limits Under Pass-Only Acceptance by Jianwei Tai (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2606-03308.txt.
Introduction
Tai proves hard limits on hardening code model prompts when only passing outputs count. Prompt filters try to strip attacks from inputs to code language models. Acceptance is pass-only: a filtered prompt runs if the output passes. Tai asks how much leakage any such defense must allow. The answer is a floor that no filter in the class can beat.
The bound is a Fano-style floor on the shared information between filtered prompt pairs. On HumanEval and MBPP it comes out at about 0.84 and 1.20 nats at a set tolerance. A corollary lifts the floor to any fixed embedding pipeline. Tai builds the floor into a two-axis audit protocol. One axis logs a registry trait in nats. The other tracks leakage by an empirical proxy on hidden states. A search over filter families on four coder models found no full pass.
Catalog record
| CREATOR | Jianwei Tai |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 161 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2606.03308