ai ml12 min read

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

1 similar post
  • Presidio
  • spaCy
  • GLiNER

AI Summary

Airbnb outlines its approach to detecting and replacing personally identifiable information (PII) in text data before it is used for machine learning model training. By leveraging and extending the open-source Presidio library, Airbnb built an in-process Python pipeline step that handles PII detection and obfuscation. The system uses a combination of pattern-based recognizers, context-word rules, and zero-shot Named Entity Recognition (NER) models like GLiNER to accurately identify sensitive entities across multiple languages. De-identification operators are configurable per use case, applying faker-based replacement for natural text readability, hashing, truncation, or format-preserving encryption depending on the data type and requirements.

Key Takeaways

  • Airbnb chose the open-source Presidio library, running it in-process as a Python package to avoid central service bottlenecks.
  • The Analyzer uses pattern-based recognizers, context words, and GLiNER zero-shot NER models to detect custom and standard entities.
  • De-identification operators are configurable, utilizing the faker library for natural text, hashing for identifiers, and format-preserving encryption for internal numeric keys.

Why it matters

Protecting user privacy while retaining data utility is a critical challenge when preparing datasets for machine learning. This article details practical architectural patterns for embedding de-identification directly into data ingestion pipelines, ensuring compliance and preventing data leakage without relying on centralized bottlenecks.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.