AI
Researchers Develop LLM-based Defense Against Re-identification of Anonymized Documents
A new technique uses artificial intelligence to rewrite sensitive phrases in de-identified texts, blocking attacks that attempt to link anonymized documents back to their original sources.
Anonymization techniques have long been used to protect individuals' privacy in sensitive documents—but a significant vulnerability remains: attackers can sometimes trace de-identified texts back to their original sources by searching for distinctive phrases online. Researchers now propose a defense mechanism that rewrites potentially identifying text while keeping its meaning intact.
The Linkage Problem#
Standard de-identification methods remove names and direct identifiers from documents like court cases and medical records. However, this approach leaves a blind spot: adversaries can extract unique phrases from the anonymized text, search for them in public datasets or archives, and successfully map the obscured document back to its original. This "linkage attack" undermines privacy protections that appeared complete on the surface.
How the Defense Works#
The researchers present a two-stage solution. First, they build an inverted index cataloging all N-grams (short sequences of words) within a document collection. This index identifies which phrases appear in fewer than k documents—the cutoff threshold below which phrases become too identifiable. Rather than simply deleting these risky spans, the team then deploys a large language model as a rewriter, iteratively regenerating those passages until they no longer appear searchable in the original dataset while preserving their semantic meaning.
Testing and Limitations#
Experiments on court documents and Wikipedia biographical entries demonstrate that the method successfully prevents phrase-based re-identification. However, the research also reveals an important caveat: more sophisticated, semantics-aware attacks—ones that don't rely on exact phrase matching—may still pose a threat. The work thus provides meaningful protection against straightforward search-based linkage while acknowledging that determined adversaries using advanced techniques could potentially circumvent the defense.

