← Latest papers
🤖 AI

CAMP: Cumulative Agentic Masking and Pruning for Privacy Protection in Multi-Turn LLM Conversations

This paper introduces CAMP, a novel framework that addresses the critical privacy vulnerability of cumulative PII exposure in multi-turn LLM conversations by maintaining a session-level registry and retroactively masking history when the re-identification risk of accumulated data fragments exceeds a configurable threshold.

Original authors: Aman Panjwani

Published 2026-04-21
📖 4 min read☕ Coffee break read

Original authors: Aman Panjwani

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 or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are talking to a very smart, helpful robot assistant. You want to ask it for advice on your health, your job, or your finances. The problem is, you don't want the robot (or the company behind it) to know exactly who you are.

The Problem: The "Slow Leak"

Most current safety tools work like a bouncer at a single door.

  • How they work: Every time you send a message, the bouncer checks just that one sentence. If you say, "My name is John," the bouncer stops you and says, "Nope, can't say that!"
  • The Flaw: But what if you play a game of "hide and seek" with your secrets?
    • Turn 1: You say, "I'm feeling sick." (Safe)
    • Turn 2: You say, "I live in a small town in Ohio." (Safe)
    • Turn 3: You say, "I work at a specific bank." (Safe)
    • Turn 4: You say, "I make $150,000 a year." (Safe)

Individually, none of these sentences look dangerous. The bouncer lets them all through. But by Turn 4, the robot has a complete puzzle piece: John, from Ohio, working at that specific bank, making that specific salary. It can easily guess who you are. This is called Cumulative PII Exposure. The danger isn't in one big leak; it's in the slow drip of many small, harmless drops that fill the bucket.

The Solution: CAMP (The "Smart Session Manager")

The paper introduces a new system called CAMP. Instead of just checking the door, CAMP is like a super-intelligent librarian who watches the entire conversation as it happens.

Here is how CAMP works, using a simple analogy:

1. The "Secret Notebook" (Session Registry)

Every time you talk to the robot, CAMP writes down a secret note in a local notebook. It doesn't send this notebook to the robot. It just keeps track: "Okay, the user mentioned a name, a city, and a job."

2. The "Danger Web" (Co-occurrence Graph)

CAMP draws a web connecting the dots.

  • If you mention a City alone, it's a weak dot.
  • If you mention a Job alone, it's a weak dot.
  • But if you have City + Job + Salary all in the same conversation, CAMP sees the web connecting them and realizes: "Oh no! These three things together create a super-identifiable profile!"

3. The "Alarm Bell" (CPE Score)

CAMP has a score counter. Every time you add a piece of info, the score goes up.

  • If you just say "Hello," the score is low.
  • If you start mixing your location with your job and medical history, the score spikes.
  • Once the score hits a "Danger Zone" (a threshold), the alarm rings.

4. The "Magic Eraser & Re-writer" (Retroactive Pseudonymization)

This is the coolest part. When the alarm rings, CAMP doesn't just stop the conversation. It goes back in time.

  • It takes the entire history of your chat (Turns 1 through 4).
  • It swaps your real name with a fake one (e.g., "John" becomes "Alex").
  • It swaps your real city with a fake one (e.g., "Cleveland" becomes "Springfield").
  • It swaps your real salary with a fake number.
  • Crucially: It keeps the logic consistent. If you said "Alex" in Turn 2, it makes sure the robot sees "Alex" in Turn 4, not a different name.

5. The "Magic Reveal" (De-masking)

The robot processes the chat with the fake names ("Alex from Springfield"). It gives you an answer.

  • Robot: "Hi Alex, based on your salary in Springfield, here is some advice..."
  • CAMP: Snaps fingers. "Wait, let me fix that for the user."
  • CAMP: Swaps "Alex" back to "John" and "Springfield" back to "Cleveland" before showing you the screen.
  • You see: "Hi John, based on your salary in Cleveland..."

Why This Matters

  • Old Way: You either have to hide your identity completely (which makes the conversation useless) or you risk leaking your identity slowly over time.
  • CAMP Way: You get the full, helpful conversation. The robot thinks it's talking to a generic "Alex," so it learns nothing about you. But you get the answer as if it were talking to you.

The Bottom Line

CAMP realizes that in a long conversation, the whole is greater than the sum of its parts. It protects you not by blocking every sentence, but by watching how the sentences combine, and then magically rewriting the story so the robot never knows the truth, while you still get the perfect answer.

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 →