Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Airbnb Engineering 4 min read Announcement easyNovice

Project Lighthouse — Part 3: Introducing project-lighthouse-anonymize

Airbnb 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.

Assumes: k-anonymityPython data analysis

Related posts

  • De-identifying text at scale: How Airbnb protects personal data in AI training

    Airbnb Engineering mediumAdept

    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.

  • Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study

    Meta Engineering mediumAdept

    Meta 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 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.

  • Create Environments with Masked Production Data Using Neon Branches

    Neon mediumAdept

    Neon combines copy-on-write database branches with the PostgreSQL Anonymizer (anon) extension to create production-like non-prod environments without exposing PII. The workflow branches from production, applies column-level static masking rules via SECURITY LABEL declarations and faker functions (anon.fake, anon.partial, anon.noise), runs anon.anonymize_database(), and then uses the anonymized branch as the base for per-PR previews, CI, local dev and contractor access. Masking preserves schema, types and referential integrity, and the anonymization step can be automated with a GitHub Action on pull request creation.

  • Five Methods For Database Obfuscation

    ClickHouse hardMaster

    ClickHouse needed publishable benchmark data that kept the properties driving analytical query performance in its private web analytics dataset: compression ratio, per-column and cross-column cardinality, and value distributions such as power laws. The post compares approaches to obfuscating that data. Hand-written probabilistic models in C++ were too laborious and specific to one dataset. An LSTM that generated TSV dumps produced gigabyte-sized models, ran at about 100 rows per second and distorted character frequencies. Mutating the literals inside LZ4-compressed data preserved compression ratio and decompression speed while removing every original byte, guided by heuristics that keep structure such as valid UTF-8.

The quest for software engineering knowledge.

Look:
Layout: