Multilingual system tags personal data faster and more accurately than before

Strong Multilingual Privacy Tagging at Encoder Speed

Computation and Language

Summary

Finding and hiding personal information in text is important to protect privacy, but it can be tricky to do well across many languages. The authors created a new tagging system that quickly and precisely identifies different types of personal data in 35 languages, doing a better job than previous tools. Their method uses advanced language models fine-tuned with human-reviewed data and clever tricks to avoid errors. It runs much faster than competitors and can be extended cheaply to recognize new kinds of personal info.

What this means in practice

  • For data privacy teams: Automatically identify and hide personal data in text across multiple languages with higher accuracy and much faster processing than existing tools.
  • For legal compliance teams: Implement scalable multilingual privacy redaction to meet regulatory requirements while preserving text relationships using the authors' efficient tagging approach.

Authors

Jonathan Graehl

Abstract

Privacy redaction must remove personal information while preserving relationships expressed in text. We develop a multilingual named-entity tagger with fine-grained distinctions supporting varied redaction policies and methods for cheaply learning additional distinctions. We fine-tune a multilingual encoder with an affine span-tagging head on frontier-model annotations in 35 languages, replay mapped human gold with coverage-aware masking so unannotated types are not treated as negatives, and repair subword boundaries with a learned +/-1-character adjustment. On 1,283 human-gold test segments in seven languages, best measured redaction F1 is 88.8, against 69.1 for published GLiNER2 with 11 unrepresentable types excluded from its task (68.8 without that exemption), 67.8 for GLiNER2 adapted to the new training data, 57.3 for Microsoft Presidio and 35.8 for the best published OpenAI Privacy Filter fine-tune. Adding about 50,000 annotated training sentences and increasing human-gold replay improves exact typed-span F1 from 74.5 to 76.3 on Ont3, our 31-type frontier-annotated NER evaluation of 1,201 development segments. Mapped-gold replay alone raises human-gold F1 by ten points without loss on frontier-annotated text; boundary adjustment adds 1.7 exact typed-span F1 points on Ont3. Local LLMs fitting on a single 96-GB GPU underperformed as prompted annotators and frozen encoders, with encoding 30-95 times slower than XLM-R inference and prompted annotation roughly 180-1,100 times slower in the evaluated configurations. The encoder architecture delivers 4.9 times GLiNER2's CPU throughput. We release code, prompts and training recipes, with data-acquisition scripts and source links.