arXiv:2610.22597cs.CLOct 2026

Manuscript Offprint

arXiv:2610.22597

Broad and Efficient PII Detection with Unified Labels

Andy Hsu, Konstantin Berlin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Personally Identifiable Information (PII) detection models must efficiently find identifiers across diverse contexts while maintaining a low false-positive rate (FPR) on high-volume traffic. Recent detectors increasingly rely on complex architectures that raise deployment cost, yet many are fine-tuned on only a few synthetic datasets that limit their coverage. Combining public datasets is challenging because their taxonomies differ, and even after categories are mapped to a common schema, labels can disagree on what counts as a detection, producing inconsistent training and evaluation signals. To address these problems, we present a practical 141M-parameter encoder-based detector trained on 1.12 million examples from 77 public datasets, relabeled under a detailed definition of broad contextual detection for 12 structured PII categories. Evaluated on the AI4Privacy and Nemotron-PII benchmarks at a low-FPR operating point, our model achieves the highest recall against larger baselines in 11 of 14 comparisons under our labels and 9 of 14 under the original labels. Its largest recall gains include useful additional coverage, such as multilingual disclosures and IP addresses embedded in URLs. It achieves this with 2–10× higher throughput and 94–97% less peak GPU memory than the baselines, delivering leading detection performance at substantially lower cost.

1 Introduction

Personally Identifiable Information (PII) detectors are a key part of data loss prevention (DLP) systems and privacy guardrails, which often screen large volumes of traffic under tight latency budgets (Alneyadi et al., 2016; Asthana et al., 2025). They must surface identifiers with high recall at a low false-positive rate (FPR) so that downstream components can decide which are sensitive and how to handle them (Schwartz and Solove, 2011; McCallister et al., 2010). In the past, detectors

Figure

Figure 1: Approach overview. A single set of contextual PII detection criteria is used to relabel various datasets, combine them into a single large dataset, and train a compact model on the unified labels.

largely relied on hand-written deterministic rules such as regular expressions combined with keyword checks, which can both overflag and generalize poorly (Meystre et al., 2010; Data Privacy Stack, 2026; Dernoncourt et al., 2017; Subramani et al., 2023). Machine learning models were introduced to provide more robust contextual detection and are now widely used (Dernoncourt et al., 2017). Even so, recent evaluations find that current PII detection models still fall short of the coverage and precision needed in practice (Zhang et al., 2026; Uppala, 2026). A critical factor in performance is the data and labels used for training: a practical model needs positive examples that cover a wide range of formats and languages, as well as diverse negative examples to avoid overflagging real-world traffic.

Despite this, many PII models today are still fine-tuned on one or a few datasets that are synthetic and identifier-heavy (iiiorg, 2024; NVIDIA, 2025). Adding more datasets to training can be challenging because their taxonomies differ widely and are hard to combine at scale. Even after schemas are aligned, the merged labels within a category can disagree on what counts as a detection (Yang et al., 2025; de Bourcy et al., 2026), pro-ducing an inconsistent training and evaluation signal. For example, they may disagree on whether a credit card number should be labeled when only the last four digits are exposed, or whether a business phone number should be labeled at all. At the same time, newer releases are moving to more complex architectures to support flexible category coverage (NVIDIA, 2025; Zaratiana et al., 2026) or more nuanced judgments such as whether an entity is private (de Bourcy et al., 2026). These models are harder to deploy and raise cost and latency, all without solving the underlying problem of what they are trained on.

Our approach focuses on addressing the data and labeling problems in order to build a better model. First, we clearly define how we want our PII detector to behave. Beyond deciding which categories to cover, we write a detailed definition for each category that defines the key aspects of how its contextual detection should operate. These definitions are broad across countries, formats, and languages, so the detector surfaces a wide range of useful identifiers. Second, we completely relabel datasets using our definitions, replacing the decisions made by different annotators and aligning the labels at the example level (Figure 1). Large language models (LLMs) have opened up a scalable way to do this, and prior work shows that detailed category specifications can lead to more accurate and consistent labeling (Sainz et al., 2024; Berlin and Swanda, 2026). This relabeling process can be easily applied to any dataset and also allows us to incorporate examples from benign distributions that did not originally have PII labels. Training on the resulting data, we then find that a small model is not only far more efficient than larger baselines, but can also outperform them in recall at low FPR. This allows it to serve as a first-stage scanner for all traffic, so more expensive detection stages only need to run on a smaller set of candidates. Specifically, our contributions are:

• We write contextual definitions of PII for 12 core identifier categories that guardrails commonly monitor. We then use GPT-5 Mini to directly apply our definitions and relabel two PII benchmark datasets. Compared with the original labels, the resulting labels remove many positive examples that lack context words for the category and add meaningful coverage such as identifiers embedded within larger spans.

• Using the same pipeline, we relabel 77 public datasets into a unified training corpus of approximately 1.12M examples.

• We train a compact, highly efficient 141M-parameter detector that produces both category detections and spans in a single inference pass, and evaluate it against larger models. At a low-FPR operating point, it achieves the highest recall in 11 of 14 comparisons under our labels and 9 of 14 under the benchmarks' original labels, which it is never trained on, while delivering 2–10× higher throughput and using 94–97% less peak GPU memory.

References (12)