← Latest papers
💬 NLP

SurrogateShield: Beyond Redaction for High-Utility, Privacy-Preserving LLM Interactions

SurrogateShield is a client-side proxy that enhances privacy-preserving LLM interactions by replacing detected PII with locally generated, type-consistent surrogate values before transmission and restoring the originals in responses, thereby eliminating real PII exposure while significantly improving semantic utility compared to traditional redaction methods.

Original authors: Sherwin Vishesh Jathanna

Published 2026-06-30✓ Author reviewed
📖 5 min read🧠 Deep dive

Original authors: Sherwin Vishesh Jathanna

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you want to ask a super-smart, all-knowing robot (a Large Language Model or LLM) for help with a personal task, like drafting a letter or checking your medical options. You type in your real name, your address, and your Social Security number.

The problem? To get an answer, your message has to travel over the internet to a company's server. Once it's there, you can't see what they do with it. They might keep it forever, get hacked, or change their rules.

The usual way people try to fix this is Redaction. It's like taking a marker and blacking out your personal details before sending the note.

  • Your message: "My name is Sarah and I live in Chicago."
  • Redacted message: "My name is [NAME] and I live in [CITY]."

The Catch: When the robot gets the redacted note, it gets confused. It doesn't know who "Sarah" is, so it can't write a letter addressed to her. It might reply, "Dear [NAME]," which is useless to you. The "black marker" destroys the meaning of your sentence.

Enter SurrogateShield: The "Body Double" Strategy

The paper introduces SurrogateShield, a new tool that acts like a privacy bodyguard sitting on your computer. Instead of blacking out your info, it swaps your real details for fake but realistic "body doubles" (surrogates) right before the message leaves your device.

Here is how it works, using a simple analogy:

1. The Swap (The "Surrogate")

Instead of erasing your name, SurrogateShield swaps "Sarah" for a completely made-up name like "Ashley," and your real Chicago address for a fake one in "Springfield."

  • Your message: "My name is Sarah..."
  • SurrogateShield's message: "My name is Ashley..."

The robot receives the message and thinks it's talking to Ashley. Because "Ashley" looks and sounds just like a real name, the robot can write a perfect, natural-sounding letter addressed to "Ashley." The sentence structure remains intact; nothing is "blacked out."

2. The Secret Switch (The "ShadowMap")

SurrogateShield keeps a secret, locked diary (called a ShadowMap) on your computer. It writes down: "When I said 'Ashley', I actually meant 'Sarah'." This diary is locked with a high-tech digital padlock (AES-256 encryption) that only your computer can open. The diary never leaves your device.

3. The Restoration (The "Magic Reveal")

When the robot sends its answer back to you, it says, "Dear Ashley..."
SurrogateShield intercepts the reply, looks at its secret diary, sees that "Ashley" = "Sarah," and instantly swaps the name back before showing you the screen.

  • What you see: "Dear Sarah..."

You get a perfect, personalized answer, but the robot never saw your real name.

Why is this better than just "blacking out" the text?

The paper tested this against the old "black marker" method using 1,124 different questions.

  • Better Answers: Because the robot got a realistic name instead of a blank space, the quality of its answers was much higher. The researchers measured this using a "semantic score" (how much the meaning was preserved). SurrogateShield kept 94.85% of the original meaning, while the black-marker method only kept 81.59%.
  • Harder to Hack: The researchers tried to trick a different AI into guessing the real names from the fake ones.
    • With the "black marker" method, the hacker AI guessed the real names 1.53% of the time (because seeing "[NAME]" tells the hacker exactly where to look).
    • With SurrogateShield, the hacker AI guessed 0% of the time. Since "Ashley" looks like a real person, the hacker has no idea it's a fake. It's like trying to guess a specific person's name from a crowd of strangers; you can't do it.

How does it know what to swap?

SurrogateShield uses a three-step "detective team" to find your personal info:

  1. PatternScan: Looks for obvious things like credit card numbers or Social Security numbers (like looking for a specific shape).
  2. EntityTrace: Uses a smart tool to find names, places, and organizations (like a human reading the text).
  3. ContextGuard: A final check for tricky cases where the first two might be unsure (like deciding if "Washington" is a person or a place).

It also has a special rule: if you are asking for a service (like "Where is the nearest pharmacy?"), it knows you need a real location to get a good answer. So, it might just nudge your address slightly (e.g., moving you two blocks away) instead of swapping it entirely, so the robot still gives you useful directions without revealing your exact home.

The Bottom Line

SurrogateShield proves you don't have to choose between privacy and useful answers.

  • Old way: Give up privacy OR get a broken, useless answer.
  • SurrogateShield way: Keep your privacy 100% (your real data never leaves your computer) AND get a perfect, natural-sounding answer.

It does all of this in a fraction of a second (about 26 milliseconds) on your own device, so you don't even notice it's happening. It's like having a magic translator that speaks "Privacy" to the robot and "Real Life" to you, all at the same time.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →