De-identifying text at scale: How Airbnb protects personal data in AI training
Airbnb de-identifies messages, reviews and support chats before ML training using Presidio, an open-source PII framework, shipped as an in-process Python library and a shared pipeline step whose de-identified dataset tag gates model deployment. The team added Airbnb-specific pattern recognizers with multi-word phrase context scoring, replaced spaCy with the zero-shot GLiNER model for names and street addresses, and resolves overlapping detections in the Anonymizer. Replacement uses realistic custom Faker values seeded from the real value plus a per-run secret, so fakes stay consistent within a run but unlinkable across runs. Structured fields get salted hashing, coordinate truncation and format-preserving encryption for 64-bit IDs. Quality is tracked on recall, precision and throughput per entity and language, with recall prioritized.
Related posts
- Project Lighthouse — Part 3: Introducing project-lighthouse-anonymize
Airbnb Engineering easyNoviceAirbnb has open-sourced project-lighthouse-anonymize, the Python library behind Project Lighthouse's anonymization of perceived race data, alongside two new arXiv papers. Core Mondrian extends the classic Mondrian k-anonymity algorithm with a Strategy Pattern architecture, a hybrid recursive-queue parallel execution model, NaN-pattern pre-partitioning and dynamic suppression budgets. The data quality paper defines three metrics (Pearson correlation, RILM and NMIv1) and validates their thresholds by framing quality assessment as a classification problem on synthetic data. The library exposes k_anonymize, p_sensitize and threshold checks, and the default thresholds are offered as starting points for similar systems.
- Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study
Meta Engineering mediumAdeptMeta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules. About 85% of requests resolve on the deterministic path in single-digit milliseconds. The ~15% LLM fallback takes seconds and costs roughly 400x the compute. Key lessons are that context matters more than prompt tuning, that circular label fields must be masked from both the LLM and rule distillation, and that evaluation must stay independent of optimization, using frozen human-reviewed reference sets and calibrated confidence scores.
- How to build scalable web apps with OpenAI's Privacy Filter
Hugging Face mediumAdeptOpenAI's open-source Privacy Filter (1.5B params, 50M active, Apache 2.0) detects PII across eight categories in a single forward pass over 128k tokens. Three demo apps built with gradio.Server show how to use it: a document reader that highlights PII spans, an image anonymizer that maps OCR char offsets to pixel redaction boxes on a client-side canvas, and a redacting pastebin with public and token-gated URLs. All three follow one pattern: model calls go through queued @server.api endpoints, which handle ZeroGPU and are callable from both the JS and Python clients, while static pages and cheap lookups stay on plain FastAPI routes.
- Scaling Privacy Infrastructure for GenAI Product Innovation
Meta Engineering easyNoviceMeta scales its Privacy Aware Infrastructure (PAI) to cover GenAI products such as its AI glasses, using cross-stack data lineage as the foundation for automated privacy enforcement. Lineage signals are collected from web privacy probes, logger-to-warehouse flows, parsed SQL and batch-processing logs, RPC boundaries for LLM inference calls, and training manifests, then stitched into an end-to-end graph. A shared library, PrivacyLib, links reads to writes through a common correlation key across languages and data systems. The resulting lineage guides where Policy Zones are placed and blocks training jobs on data not permitted for that purpose, while verifiers continuously watch flow edges to catch new or changed processing early.
- How to Handle PII in Staging Databases Without Losing Realistic Data
Neon mediumAdept
Four common ways to get realistic but PII-safe staging data are compared, with code for each: manual CSV export plus Python anonymization scripts, Faker-based masking libraries with deterministic seeding to preserve referential integrity, fully synthetic data generators, and replication into staging with SQL masking views or the PostgreSQL Anonymizer extension (declarative security labels, dynamic masking, anonymized dumps, k-anonymity checks). Scripts and libraries break silently when schemas add new PII columns, synthetic data loses production's skew and messiness, and replication with masking is robust but operationally heavy. The recommended approach is Neon's copy-on-write branches combined with user-defined masking rules, so a masked staging copy of production can be created or refreshed cheaply.