PROSTO24 on Transparency in PII Detection Accuracy Measurement

In the data protection landscape, when vendors claim “99% detection accuracy,” the critical question is always how this figure was measured. Without a clear methodology, such percentages can be misleading. A “99%” claim could represent an honest span-level F1 score on an external benchmark, or it might simply mean the scanner found “something” in 99 out of 100 messages. The distinction between these interpretations is crucial, as the latter could translate to missed sensitive data in production environments, leading to significant breaches.

The developers behind Pigard, a proxy designed to mask Personally Identifiable Information (PII) before it is sent to Large Language Models (LLMs), have detailed their comprehensive approach to measuring accuracy. This methodology incorporates external benchmarks, the creation of a proprietary “golden” dataset, and thorough error analysis. Their objective is to ensure transparency and provide honest metrics, even those that may be inconvenient. The method is structured to be reproducible, allowing for independent evaluation of any vendor, including Pigard itself.

PII-Guard: An Open-Source Personal Data Detector for Russian Text

The persistent issue of personal data entering language models is a significant concern. Users and companies frequently submit work-related texts that may contain names, phone numbers, document IDs, and other sensitive information, thereby creating substantial data leakage risks.

To mitigate these threats, companies develop sophisticated PII masking systems that transmit anonymized texts to models. However, this approach has drawbacks, as anonymized model responses can disrupt operational workflows. Consequently, modern demands on masking systems have evolved. They are now expected not only to conceal data but also to be capable of reinserting it into model responses after the model has processed the de-identified text.

Andrey Ivanov, an NLP researcher at red_mad_robot’s R&D laboratory, has provided an in-depth account of building such a system, named PII-Guard. The project’s results are openly available in a repository. In his article, Ivanov presented metrics derived from various datasets and compared them with other open-source solutions. This initiative underscores a commitment to openness and fosters the development of more robust tools for handling sensitive data.