SABER obfuscates LLM system prompts into unreadable text that still works, keeping 95% utility while cutting prompt extraction rates from 17.53% to 0.03%. Stronger utility comes with higher residual functional leakage than the most private baseline.
| Setting | Metric | Ours | Pape et al. | PragLocker |
| Obfuscation | Time | 9.8 min | 4 h | – |
| Normal Use | Textual Utility | 0.95 | 0.75 | 0.81 |
| Functional Utility | 0.92 | 0.38 | 0.68 | |
| Prompt Injection | Textual Privacy | 0.61 | 0.90 | 0.66 |
| Functional Privacy | 0.61 | 0.82 | 0.60 | |
| LLM Reconstruction | Textual Privacy | 0.49 | 0.88 | 0.38 |
| Functional Privacy | 0.50 | 0.74 | 0.48 |
| Task Category | Original | SABER | ||
| exact | approx. | exact | approx. | |
| Keyword Utilization | 9.88 | 50.55 | 0.00 | 0.17 |
| Logical Reasoning | 21.50 | 41.57 | 0.00 | 0.19 |
| Format Control | 16.98 | 50.90 | 0.00 | 1.40 |
| Role Control | 21.76 | 27.71 | 0.12 | 2.33 |
| Average | 17.53 | 42.68 | 0.03 | 1.02 |
Going deeper

| Original prompt |
| I want you to act as a rapper. You will come up with powerful and meaningful lyrics, beats and rhythm that can ’wow’ the audience. |
| Obfuscated prompt |
| fH*6l aquíQe escri8xQn5 comoy2uAI rapper7$u1ousy.. Tutji scarJ5ypL meaningfullt6¿w5p premise¿dme and0*XuAxE rhythmYx,! anthem~)l3Zo |
| LLM reconstruction |
| Write a rhythmic, meaningful rap anthem with a clear premise, voiced as an AI rapper. |
Imagine you run a restaurant and your best recipes are written on cards pinned behind the counter. Customers never see them, but the chef reads them to cook each dish. Now suppose you must send those cards to a new kitchen run by someone you do not fully trust. You want the chef there to cook the same dishes, but you do not want anyone who glimpses the card to steal your recipes.
SABER scrambles each recipe card into gibberish that still tells the chef what to cook. It does this by first figuring out which words matter most to the dish, swapping them for words in other languages, and then sprinkling random characters throughout. After each change it checks that the chef's internal understanding of the card has not drifted from the original, like tasting the broth after every spice swap.
The scrambled cards work: dishes come out 95% as good. And if a thief photographs a card, almost none of the original wording can be read back. But a very clever thief who tastes the dishes can still reverse-engineer about half the cooking technique, even from a scrambled card. The authors say this tradeoff between keeping dishes good and keeping recipes secret is fundamental, and that the hardest recipes to steal are the complex, multi-step ones.
The abstract, word for word, with the five densest phrases unpacked.
Prompt inputs of LLMs contain an increasing amount of sensitive information, ranging from private conversations exposed to third-party routing service providers, to proprietary system prompts and skills that are increasingly commercialized but susceptible to piracy. Recently, prompt obfuscation has emerged as a promising methodology that seeks to find alternative, human-unintelligible texts that can still be interpreted by LLMs to generate near-original responses1. However, the adaptability and limitations of this approach in real-world settings remain unexplored, posing a prohibitive challenge to this technology’s practical applications. To address this challenge, our research scrutinizes existing obfuscation designs, and identifies three major roadblocks in existing paradigms, including the benchmark gap of narrow task diversity, the algorithm gap of inadequate task-specific leakage controls, and the metric gap2 that solely focuses on output lexical similarity while ignoring behavior-level reproduction for both intended users and adversaries. Our analysis further uncovers the lack of semantic awareness and controls as the fundamental cause3 of these practical limitations. Toward closing these gaps, we propose SABER, a Semantics-Anchored Obfuscation Optimizer that captures token-level task relevance and LLM’s hidden-state information in the optimization process to utilize previously overlooked semantic entropy underpinning behavior-level measurements. We further develop the first dedicated prompt obfuscation benchmark featuring diverse real-world tasks and measurements of both textual and functional leakage. Experiments across 160 prompts in four realistic task categories show that SABER preserves 95% of the original prompts’ utility on average while improving performance on complex tasks by 60.1% over the strongest existing method. Moreover, SABER reduces exact and approximate prompt extraction rates from 17.53% and 42.68% to 0.03% and 1.02%4, respectively. Finally, we discuss remaining challenges and important future work, such as improving optimization speed to extend obfuscation from persistent system and skill prompts to real-time user inputs5.
Two lines of work converge: prompt protection methods and prompt obfuscation designs.
Read five parts, in this order.
Skip Appendices A–E unless you need metric definitions, thresholds, or prompt templates.
If the utility-privacy tradeoff is worse than it looks, these places show why.
| Setting | Metric | Ours | Pape et al. | PragLocker |
| Obfuscation | Time | 9.8 min | 4 h | – |
| Normal Use | Textual Utility | 0.95 | 0.75 | 0.81 |
| Functional Utility | 0.92 | 0.38 | 0.68 | |
| Prompt Injection | Textual Privacy | 0.61 | 0.90 | 0.66 |
| Functional Privacy | 0.61 | 0.82 | 0.60 | |
| LLM Reconstruction | Textual Privacy | 0.49 | 0.88 | 0.38 |
| Functional Privacy | 0.50 | 0.74 | 0.48 |
We observe that low lexical leakage can still be accompanied by substantial functional leakage in Role Control tasks, as even a few role or style cues may enable an LLM to infer and reconstruct the task intent using its prior knowledge; for example, although most of the obfuscated prompt in Table VI is unreadable, residual keywords such as “rapper” can reveal the intended role and style, allowing an attacker to construct functionally similar instructions without recovering the original wording. This shows that low lexical leakage does not necessarily prevent reconstruction of the original functionality, highlighting the need to assess both textual and functional leakage for a more comprehensive evaluation of prompt leakage.
| Ablation Variant | Utility Preservation | Privacy Comparison | |
| Task Utility | Reconstructed WR | Functional Recovery | |
| w/o Ranking | 0.917 | 0.495 | 0.879 |
| w/o Multilingual Replacement | 0.945 | 0.495 | 0.855 |
| w/o Character Perturbation | 0.823 | 0.487 | 0.855 |
| w/o Hidden-State Alignment | 0.809 | 0.417 | 0.799 |
| SABER | 0.943 | 0.396 | 0.764 |
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all