Stronger Re-identification Attacks through Reasoning and Aggregation

Lucas Georges Gabriel Charpentier, Pierre LisonarXiv 2025 · DOI

Abstract

Text de-identification is a standard privacy practice, yet its robustness against sophisticated adversarial attacks remains a critical concern. This paper investigates how re-identification performance can be significantly enhanced by optimizing the sequence of information recovery and leveraging Large Language Models (LLMs) with explicit reasoning capabilities. By aggregating predictions across multiple sequences and employing "thinking" models, we demonstrate that current de-identification methods are more vulnerable than previously assumed, particularly when adversaries possess relevant background knowledge.

Introduction

The process of masking sensitive information—such as names, dates, and locations—in documents like medical records or court rulings is essential for maintaining privacy. However, a re-identification attack can potentially reverse this process. Unlike static tasks, re-identification is an iterative puzzle where each uncovered piece of information provides context for subsequent steps. This research explores whether an adversary can improve attack efficacy by strategically ordering mask resolution, aggregating results from multiple sequences, and utilizing reasoning-optimized LLMs to synthesize clues from external background knowledge.

Methodology

The proposed adversarial framework consists of two primary stages: retrieval and infilling. First, a hybrid retrieval approach (combining sparse BM25 and dense ColBERT-style models) identifies relevant background knowledge from databases like Wikipedia or legal archives. Second, an LLM uses the document and retrieved context to predict masked spans.

Framework for evaluating ordering and aggregation strategies in re-identification attacks.

Ordering and Aggregation Strategies

A key contribution of this work is the exploration of sequencing strategies:

  • Linear Passes: Simple top-down or bottom-up sequences.
  • Entropy-based: A curriculum-style approach where the model first solves "easier" spans (those with lower prediction entropy) to build context for more difficult ones.
  • Weighted Voting: To mitigate error propagation, the attack is run multiple times with different orders, and results are aggregated using confidence-based weighted voting.

Furthermore, the study compares a standard instruction-tuned model (Qwen3-4B-Instruct) against a reasoning-optimized version (Qwen3-4B-Thinking) to evaluate the impact of Chain-of-Thought processing on re-identification accuracy.

Experimental Setup

Experiments were conducted using the Text Anonymization Benchmark (TAB), which contains court cases from the European Court of Human Rights. Background knowledge was sourced from Wikipedia (general knowledge) and the HUDOC Database (simulating a worst-case adversary with access to original unredacted judgments).

Key Results and Insights

The results indicate that re-identification is a contextual feedback loop. Uncovering "quasi-identifiers" (e.g., specific job titles) significantly narrows the search space for "direct identifiers" (e.g., names).

Performance of the reasoning-optimized model across different ordering and aggregation strategies.

The Power of Aggregation and Reasoning

  • Aggregation Efficacy: The "All" aggregation strategy consistently yielded the highest accuracy. For the reasoning-optimized model, aggregation across multiple orders improved performance significantly.
  • Reasoning Boost: Reasoning models outperformed standard models, particularly in "Worst-case" scenarios. The reasoning-optimized model achieved a 57.2% exact match accuracy for all identifiers, compared to 48.7% for the standard model.
  • Identifier Sensitivity: Direct identifiers are highly vulnerable in worst-case scenarios, reaching up to 81.5% accuracy. While quasi-identifiers are harder to recover, they still benefit greatly from reasoning and aggregation techniques.

Discussion and Limitations

While reasoning models provide a substantial performance boost, they come with a high computational cost, running approximately 25 times slower than standard models. Additionally, the current study is limited to English-language documents and 4B-parameter models. Future research should explore the scalability of these attacks to larger models and different languages, as well as develop de-identification techniques specifically designed to resist reasoning-based iterative strategies.

Conclusion

This study highlights a significant gap in current de-identification practices. By treating re-identification as a reasoning task and optimizing the sequence of discovery, adversaries can achieve much higher success rates than previously thought. These findings underscore the need for more robust privacy-preserving technologies that account for the iterative and inferential nature of modern LLM-based attacks.

Summary updated

BibTeX
@misc{charpentier2025stronger,
  author = {Lucas Georges Gabriel Charpentier and Pierre Lison},
  title = {{Stronger Re-identification Attacks through Reasoning and Aggregation}},
  year = {2025},
  eprint = {2510.09184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09184},
}
Figure