
Airbnb Tech · 11 min readPython
De-identifying text at scale: How Airbnb protects personal data in AI training
Airbnb uses Microsoft’s open‑source Presidio library, extended with custom recognizers and anonymizers, to strip personally identifiable information from text before feeding it to machine‑learning models. The system runs inside each data pipeline, detects PII in multiple languages, and replaces it with realistic fake values to preserve model utility while protecting privacy.
- Presidio is integrated as an in‑process Python package, avoiding separate services and central bottlenecks.
- Custom recognizers combine regex patterns, context phrases, and zero‑shot NER (GLiNER) for higher precision on Airbnb‑specific entities.
- Faker‑based and custom replacement operators generate realistic synthetic data, maintaining text coherence for downstream ML training.