← Latest papers
💻 computer science

RedactionBench

The paper introduces RedactionBench, a manually annotated benchmark and the novel R-Score metric designed to evaluate the contextual integrity of PII redaction across diverse domains, revealing that current models struggle with the subjective nature of privacy and highlighting a significant gap between mandatory and contextual redaction consensus.

Original authors: Sean Brynjólfsson, Shashvat Jayakrishnan, Esha Sali, Diptanshu Purwar, Madhav Aggarwal

Published 2026-06-19
📖 4 min read☕ Coffee break read

Original authors: Sean Brynjólfsson, Shashvat Jayakrishnan, Esha Sali, Diptanshu Purwar, Madhav Aggarwal

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 have a massive library of documents, from medical records to bank statements and emails. Some of these documents contain "secrets" (like Social Security numbers or home addresses) that must be hidden before the documents can be shared. This process is called redaction.

For a long time, computers have been good at finding these secrets, but they've been terrible at understanding when a secret is actually a secret.

Here is the story of REDACTIONBENCH, a new tool created by researchers to fix this problem, explained simply.

The Problem: The "Context" Trap

Imagine you see a phone number.

  • Scenario A: It's in a public phone book. It's fine to share.
  • Scenario B: It's in a private medical file. It's a secret that must be hidden.

Old computer programs treat both phone numbers the same way. They just look for the pattern of numbers and hide them, or they don't. They don't understand the story around the numbers. The researchers call this "Contextual Integrity." It's the idea that privacy depends on who is holding the information, why they have it, and the situation they are in.

The paper argues that current computer tests (benchmarks) are like testing a chef by only asking them to chop onions. They don't test if the chef knows when to chop onions and when to leave them whole.

The Solution: A New "Exam" (REDACTIONBENCH)

The team built a new exam called REDACTIONBENCH. Think of it as a "driving test" for privacy software.

  • The Test Material: Instead of fake, made-up sentences, they used 200 real-world documents (like fake medical reports, legal contracts, and emails) that look and feel like real life.
  • The Two Types of Secrets: They labeled the secrets in two ways:
    1. Mandatory (Red): These are "always hide this" items, like a password or a Social Security number. Everyone agrees these must go.
    2. Contextual (Yellow): These are "it depends" items. A name might need to be hidden in a medical report but is fine in a news article. This is the hard part where computers usually fail.

The New Scorecard: The "R-Score"

Old tests used a strict scoring system: if the computer hid the wrong number of letters, it got zero points. It was like a math test where getting the answer "4" when the answer was "4.0" was considered wrong.

The researchers invented a new score called the R-Score.

  • The Analogy: Imagine you are painting a wall. If the computer paints the whole wall red, but you only wanted a small square red, old tests say "You failed." The new R-Score says, "You got the right color, but you painted a bit too much. You get partial credit, but you lose points for the mess."
  • Why it matters: It stops the computer from getting tricked by fancy formatting (like hiding a phone number as ***-***-**** vs 123-456-7890). It focuses on whether the meaning was protected, not just the exact characters.

The Results: Computers Are Still Learning

The researchers tested 35 different AI models (from small, fast ones to huge, powerful ones) on this new exam.

  • The Surprise: Even the smartest, most expensive AI models (like the ones from OpenAI and Anthropic) struggled. They got good at hiding the "Mandatory" secrets, but they were very confused about the "Contextual" ones.
  • The Human Factor: They asked 85 humans to take the test too.
    • Humans agreed on the "Mandatory" secrets 89% of the time.
    • But on the "Contextual" secrets, humans only agreed with each other about 47% of the time.
    • The Big Takeaway: This proves that "contextual privacy" is subjective. Even humans can't always agree on what should be hidden. This is why the new R-Score is so important—it measures how well a model handles this confusion without punishing it for being slightly different from a human.

The Conclusion

The paper concludes that while we have powerful AI tools, contextual redaction is still an unsolved problem. Computers are great at finding patterns, but they are still learning how to understand the "vibe" or the "situation" of a document to know what to hide.

The researchers released their exam (REDACTIONBENCH) to the public so that other developers can use it to build better, smarter privacy tools that don't just follow rules, but understand context.

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 →