How Airbnb strips personal data from text before AI training
Airbnb built PII redaction on the open-source Presidio library and the GLiNER model to find personal data in messages, reviews and support chats and swap it for realistic fakes before model training.
AirbnbUnited StatesHotels and travelIn productionWho built it Built in-houseWhere it runs On premisesUse case Data matching and enrichmentScenario PII de-identification of text for AI trainingBusiness function Legal and complianceOrganization EnterpriseAI types Machine learning, Document AI
- Who built it
- Built in-house
- Where it runs
- On premises
- Use case
- Data matching and enrichment
- Scenario
- PII de-identification of text for AI training
- Business function
- Legal and compliance
- Organization
- Enterprise
- AI types
- Machine learning, Document AI
tl;drAirbnb's shared ML training workflow now swaps personal data in text for realistic fakes.See the results
Airbnb de-identifies text before its machine learning models train on it. A library built on the open-source Presidio framework and the GLiNER named entity recognition (NER) model finds personal data in messages, reviews and support chats and replaces it with realistic fake values1.
Airbnb uses transaction information to train models, and it removes personally identifiable information (PII) first to limit copies of the data and prevent leakage into and through the models1. The library runs as a reusable step in the company’s shared ML workflow orchestrator, and its output carries a de-identified tag into the model registry1.
In November 2026, the team that built it described the system on the Airbnb Tech Blog. Moving names and street addresses from spaCy to GLiNER improved precision for both entity types1.
Before the deployment
Airbnb already classified personal data across its data stores. A Personal Data Taxonomy Council defines the data elements that count, such as email addresses, physical addresses and guest names3. A scanner flagged them with regex, keyword lists and machine learning models, and data owners confirmed the classifications3.
Training models on transaction information added a new step: removing PII from the text before training1. The Privacy Architecture team sets privacy policy with Legal, Policy and Engineering, and Engineering implements it as code1. The team set these requirements for a de-identification tool1:
- Hosting: On premises, to keep data on Airbnb’s infrastructure1.
- Languages: Multilingual support for a global user base1.
- Structure: PII detection and obfuscation kept separate, but within a single framework1.
- Operators: Support for redaction, masking and realistic replacement1.
- Consistency: The same name produces the same fake result within a run1.
What was built
The library finds personal data in text, decides what replaces each span, and writes a dataset that model training can use1. Presidio runs this in two stages, the Analyzer and the Anonymizer, and every Airbnb change sits inside one of them1. Software, models and people divide the work:
- Recognizers: Each recognizer finds one entity type and labels each span with a type and a confidence score. Pattern recognizers use a regex and context words1.
- GLiNER: Finds names (PERSON) and street addresses (LOCATION), which have no structural pattern1.
- Anonymizer: Settles overlapping spans, then replaces each one, usually with a value from the faker library1.
- Training teams: Supply only their data schema and mark which columns carry personal data1.
- Library team: Owns the recognizers, operators, language handling and runtime environment1.
Airbnb also lets users opt out. Turning off the Help improve AI-powered features setting stops their data from being used to develop the company’s AI models2.
Alternatives considered
- Managed cloud services: Rejected because they aren’t hosted on premises1.
- Standalone NER models: Rejected because they address only part of the problem1.
- A central de-identification service: Each consumer imports Presidio in-process instead, so no separate service holds raw personal data and jobs run wherever compute is available. The library can still be wrapped into a service later1.
- spaCy for names and addresses: Presidio’s default NLP engine is fast, cheap at scale and needs no training. Its generic NER tags any location, and on Airbnb’s benchmark those tags never resolved to the full address span1.
- Placeholder tokens: Presidio’s default operators leave placeholders or blank gaps. A model can learn that removal signal as a pattern1.
Technology and architecture
- AI component
- Data
- Trigger or control
Presidio is an open-source framework for identifying and anonymizing private entities. Its analyzer identifies PII in text, and its anonymizer de-identifies the detected entities by using different operators5. GLiNER is a compact NER model on a bidirectional transformer encoder, trained to identify any type of entity6.
| Layer | What they used | Role |
|---|---|---|
| Predictive model | GLiNER | Finds names and street addresses from an entity description1, 6 |
| Privacy controls | Presidio | Open-source framework whose Analyzer detects personal data and whose Anonymizer replaces it1, 5 |
| Framework or library | spaCy | Presidio’s default NLP engine, kept per language but replaced by GLiNER for names and addresses1 |
| Rules and decision logic | Pattern recognizers | Regex and context-phrase rules for identifiers such as LISTING_ID and AIRBNB_GIFT_CARD1 |
| Synthetic data generation | faker library | Generates realistic fake values for most entity types, seeded per run1 |
| Privacy controls | Format-preserving encryption | Turns 64-bit internal IDs into other valid IDs of the same width and range1 |
| Training pipeline | ML workflow orchestrator | Runs de-identification as a reusable pipeline step before models train1 |
| Model deployment | Model registry | Carries the de-identified tag, which is designed to gate deployment to production1 |
| Offline evaluation | Benchmark harness | Scores recognizers and NER backends per entity type and language on golden sets1 |
Data and integrations
- Text records: Messages, reviews and support chats are the text the library de-identifies1.
- Structured columns: The same engine hashes identifiers with a caller-supplied salt and truncates coordinates to a precision set by Privacy. Its 64-bit internal IDs go through format-preserving encryption1.
- Locale metadata: Sets the record’s language when it exists. Otherwise the library detects the language on the whole record1.
- PII taxonomy: Airbnb’s shared taxonomy defines what counts, from names and card numbers to precise location coordinates1.
- ML workflow orchestrator: Runs the library as a reusable pipeline step for every team that trains models1.
- Model registry: Receives the de-identified tag with the data. Each run records the library version and configuration, so a registered model traces back to its datasets1.
Detection rules
- Airbnb identifiers: Pattern recognizers cover LISTING_ID and AIRBNB_GIFT_CARD, which no general-purpose model knows about. Context words decide between a gift card number, a Luhn-valid credit card number and a listing ID1.
- Phrase context: The team extended Presidio’s context enhancer with ordered multi-word phrases, scored above a single-word hit1.
- Zero-shot NER: GLiNER takes an entity description at inference time, so the recognizer asks for a street address rather than any place name1.
- Language fallback: If neither detection nor locale metadata gives a confident answer, the library uses a more conservative configuration1.
- Thresholds: Score thresholds and entity scope are set per recognizer and per consumer. Pipelines that feed raw text into training use a low threshold and accept false positives1.
Replacement rules
- Realistic values: The faker library generates a plausible fake for most entity types1.
- Custom fakers: A listing’s own URL stays intact. Card numbers are faked in a locale with full coverage, and phone numbers keep their real country and area code1.
- Safe ranges: Where an identifier format has a reserved or never-issued range, the fakes are drawn from it1.
- Per-run seeding: Each fake is seeded from the real value plus a secret unique to the run. No real-to-fake mapping is stored1.
- Operator choice: Operators are set per model and use case. A use case with a human reviewing flagged output might prefer a mask1.
How one message flows through the library
- A training pipeline calls the de-identification step. Its schema marks the columns that carry personal data1.
- The step sets the message’s language from its locale metadata, or detects it on the whole record1.
- The recognizers run independently. A number with “listing” a few tokens before it scores highest as a LISTING_ID1.
- GLiNER finds the names and street addresses in the message1.
- The Anonymizer settles overlapping claims, such as a LISTING_ID matched inside an EMAIL_ADDRESS1.
- The Anonymizer replaces each surviving span. A person mentioned twice in the record gets the same fake name both times1.
- The step tags the dataset as de-identified, and the tag follows the data into the model registry1.
Release testing
- Trigger or control
- Feedback
The benchmark measures recall, precision and throughput. It reports every metric per entity type and per language, with the number of labeled instances behind it. It scores the overlap-resolved spans that the library emits1. spaCy, GLiNER and GLiNER2 are scored on the same golden sets, and GLiNER2 is wired in as a candidate1.
Results
By November 2026, Airbnb’s Privacy and MLI teams had made de-identification a shared default for model training1.
- Adoption: The library ships as a reusable pipeline step in the shared ML workflow orchestrator that Airbnb’s models train through1.
- Detection quality: GLiNER recognizers for PERSON and LOCATION improved precision for both entity types over spaCy’s generic NER1.
- Use in training: In October 2026, Airbnb’s natural language search team generated training data from de-identified booking sessions and review summaries with personal identifying information removed4.
Lessons learned
The release gate turns quality into a bar that each version must clear again. A version ships only when no language or entity type that worked before has regressed, and gaps found in use make the benchmark harder1.
The team draws its own lesson on measurement: an aggregate score is where the failure that matters most goes to hide. That’s why every metric is broken out by entity type and language1.
Running in-process has a cost. The library only protects data if every pipeline calls it, on the current version, with a compliant configuration1. Airbnb answers that with the shared pipeline step, the de-identified tag and the version record on each run1.
Detection isn’t complete. Presidio’s own documentation warns that automated detection gives no guarantee of finding all sensitive information, and it advises additional protections5. Airbnb weighs recall over precision, and its training pipelines accept false positives, although over-redaction turns legitimate text into noise for a model1.
Coverage is still growing. Only text is de-identified so far, and work on other media has started. A new language ships only when a labeled dataset in it exists to score it against1.
The account of the system and its quality is Airbnb’s own engineering blog post1.
Case study scorecard
Sources by publication date
- Organization 4
- Vendors and partners 1
- Press, academic, and regulators 1
Build this solution yourself
Analysis
What you need
- One training workflow that every team uses: The library protects data only if every pipeline calls it. Airbnb reached them all through one ML workflow orchestrator and one model registry1.
- A personal data taxonomy and a policy owner: Recognizers and operators follow a taxonomy that a council defines and policies that Privacy sets and Engineering codes1, 3.
- Labeled golden sets in each language you serve: Airbnb picks NER backends by benchmark and ships a language only once a labeled dataset exists to score it1.
Reference architecture
Data matching and enrichment
Uses a language model to match, fill in, fix, or convert your records, such as transactions or catalog listings.
Open the reference architectureOthers who built it
- RMT Labs: AI CV matching cuts ICT hiring to about 12 days at RMT Labs. RMT Labs cut hiring time for ICT positions by about 83%, to about 12 days, with its AI platform.
- TVCMALL: AI on Amazon Bedrock cuts TVCMALL translation costs 40%. Translation costs fell 40% overall and product listing efficiency rose 30%.
- Amazon: Amazon's Wellspring AI maps 202 million parking locations. Wellspring has found 202 million parking locations and 2.8 million building entrances since 2024.
- Northern Trust: Northern Trust cuts onboarding data prep with an AI agent. Data prep for a new institutional client fell from 2.5 weeks to three days, an 83% cut.
- Digipolis Antwerp: Antwerp's Digipolis uses NLP to match tenders to existing IT. Since 2020, an NLP engine has checked Antwerp tenders against the city's existing IT components.
- eBay: Magical Listing cuts eBay listing time by more than 25%. Listing time fell more than 25% once Magical Listing became the default for new US sellers.
Cite this case study
Enterprise AI Case Studies. "How Airbnb strips personal data from text before AI training." Updated Dec 1, 2026. https://case-studies.ai/case-studies/risk-and-compliance/RC-095-text-de-identification-ai-training-airbnb/
@misc{csai-rc-095,
author = {{Enterprise AI Case Studies}},
title = {{How Airbnb strips personal data from text before AI training}},
year = {2026},
note = {Updated 2026-12-01},
url = {https://case-studies.ai/case-studies/risk-and-compliance/RC-095-text-de-identification-ai-training-airbnb/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
De-identifying text at scale: how Airbnb protects personal data in AI training
Supporting excerpts (67)
how Airbnb detects and replaces personal data in messages, reviews, and support chats before it reaches a model
We now use transaction information to train machine learning models. Before we do so, we remove PII to minimize the number of copies of this information and prevent leakage into and through our models.
Airbnb maintains a shared taxonomy as to what constitutes PII, from commonly used fields such as names and card numbers to less frequently used fields such as precise location coordinates
We use de-identification to remove PII and replace it with simulated data
as realistic as possible to maximize its usefulness for ML model training
Privacy Architecture team, with engagement from Legal, Policy, and Engineering. Engineering then implements policy decisions as code.
We chose Presidio, an open-source library originally developed by Microsoft and recently transitioned to community governance.
On-premises hosting, to keep data on our infrastructure
Multilingual support, for our global user base
PII detection and obfuscation separate, but within a single framework, for manageability and consistency
Support for redaction, masking, and realistic replacement
Consistent fake values within a run (ie, the same name repeatedly produces the same fake result)
Functional elements such as PII recognizers, natural language processing (NLP) engines, and operators are all pluggable.
We bypassed alternatives such as managed cloud services, since hosting is not on-premises, and standalone recognizers, known as named entity recognition (NER) models, since they only address part of the problem we needed to solve.
Presidio ships as a Python package, and each consumer imports it in-process rather than calling a service we operate.
Raw personal data is de-identified inside the calling process, so no separate service holds it and the data flow stays simple.
It also removes a central bottleneck, since jobs run independently wherever compute is available. The decision is reversible: the same library wraps into a service if the need arises.
The library only protects data if every pipeline calls it, on the current version, with a compliant configuration.
Models at Airbnb train through a shared machine learning (ML) workflow orchestrator, so the library ships as a reusable pipeline step.
A team supplies only its data schema, marking which columns carry personal data; we own the recognizers, operators, language handling, and runtime environment.
The resulting dataset is tagged as de-identified, and that tag follows the data into the model registry, where it is designed to gate deployment to production.
Each run records the library version and configuration used, so registered models can be traced back to the datasets that produced them.
The Analyzer finds spans that look like personal data, then labels each span with an entity type and a confidence score; the Anonymizer decides what replaces each span.
For a pattern-based recognizer, detection quality depends on both a regex and a context-word list. For an NER-based one, it depends on the model behind it
A LISTING_ID matched inside an EMAIL_ADDRESS is one common case. Overlaps pass through the Analyzer untouched and are resolved in the Anonymizer as a configurable step before any operator runs.
we detect language on the whole record
locale metadata when it exists
If neither gives a confident answer, we use a more conservative configuration rather than taking the risk of using a model that might be for the wrong language.
Airbnb-specific ones such as LISTING_ID and AIRBNB_GIFT_CARD, which no general-purpose model knows about
A gift card number, a credit card number valid against the widely used Luhn algorithm, and a listing ID all look the same.
appearing a few tokens before a number raises the LISTING_ID score above the other candidates
We extended the enhancer with a phrase pass, an ordered contiguous multi-word match in the tokens before a candidate, scored above a single-word hit
Names and street addresses have no structural pattern, so detecting them depends on a model.
default NLP engine is spaCy, which is fast, mature, cheap at scale, and requires no training from us
On our benchmark those broad tags never resolved to the full address span.
We replaced spaCy for PERSON and LOCATION with recognizers built on GLiNER, a zero-shot NER model that takes an entity description at inference time.
That lets us ask specifically for a street address instead of any place name, and precision improved for both entity types.
GLiNER2 is wired into the harness as a candidate. We adopt one for a given recognizer only when the benchmark shows a gain.
Score thresholds and entity scope are set per recognizer and per consumer
A pipeline feeding raw text into training wants a low threshold and accepts false positives.
On already-reviewed data, a consumer can trade recall for fewer unnecessary redactions.
default operators leave a document full of placeholder tokens or blank gaps
For most entity types we use the faker library to generate realistic fake values
Placeholder tokens signal that something was removed, and that signal is itself a pattern a model might learn, resulting in mis-training.
own URL is structural, non-personal data that consumers need intact
so we pin the card faking to a locale with full coverage
Keeping a real country and area code while faking the rest of a phone number needs a library that parses phone-number structure
the fakes are drawn from it
A globally shared random state
each fake is seeded from the real value plus a secret unique to the run
store a real-to-fake mapping
A use case where a human is reviewing flagged output might prefer a mask
The same engine also covers structured columns. Identifiers are hashed with a caller-supplied salt
Coordinates are truncated to a precision set by Privacy
Our 64-bit internal IDs, the numeric keys for listings, reservations, and similar records, go through format-preserving encryption
Throughput is detection speed at pipeline scale. When recall and precision have to be traded, we weigh recall
An aggregate score is exactly where the failure that matters most goes to hide, so every metric is reported per entity type and per language, with the number of labeled instances behind it, and a table of which entity type claimed spans that belonged to another.
The benchmark scores the overlap-resolved spans the library actually emits
spaCy, GLiNER, and GLiNER2 are scored on the same golden sets side by side
it ships when a labeled dataset in that language exists to score it against
When a gap surfaces, it gets folded into the benchmark, so the datasets expand rather than standing as a fixed snapshot.
before any release, we run the full framework against the deployed version and the candidate side by side; a version ships only when no language or entity type that has worked in the past has regressed.
a library, a set of configurable defaults and a benchmark that keeps getting harder
So far, we are only shipping our work on text, but we have already started on de-identifying other media as well.
Privacy and MLI teams for making de-identification a shared default
the spaCy model, context phrases, and locale-aware fakers are the easy part
over-redaction turns legitimate text into noise
- Source 2:
Supporting excerpts (5)
We may use your personal information to develop and improve the AI models that enable these features.
This may include de-identifying your personal information prior to training a model by removing references to your name and other identifying information
We also restrict access to personal information used in this manner to a limited number of authorized individuals subject to strict confidentiality obligations.
Under Data privacy, click Help improve AI-powered features to turn data sharing off
If you do not want Airbnb to use your personal information to develop and improve AI models powering the features described above, you can control how your data is used
- Source 3:
Supporting excerpts (4)
we have established a Personal Data Taxonomy Council to define the taxonomy for personal data and to refine it over time
This taxonomy breaks down personal data into various data elements that are relevant for our ecosystem such as email address, physical address, and guest names.
The scanner classifies personal data using metadata and content, employing methods like regex for emails and keyword lists for cities, and advanced machine learning models for complex data types requiring contextual understanding.
we employ a human-in-the-loop strategy: where data owners confirm the classifications
- Source 4:
CASTLE: training natural language search before the first real query
Supporting excerpts (2)
contrastive listing pairs derived from de-identified booking sessions, selected in accordance with user privacy permissions
a one sentence summary of recent public guest reviews, with personal identifying information removed
- Source 5:
Supporting excerpts (4)
Presidio analyzer: PII identification in text
Presidio anonymizer: De-identify detected PII entities using different operators
Predefined or custom PII recognizers leveraging Named Entity Recognition, regular expressions, rule based logic and checksum with relevant context in multiple languages.
there is no guarantee that Presidio will find all sensitive information. Consequently, additional systems and protections should be employed.
- Source 6:
GLiNER: Generalist Model for Named Entity Recognition using Bidirectional Transformer
Supporting excerpts (2)
we introduce a compact NER model trained to identify any type of entity
Leveraging a bidirectional transformer encoder, our model, GLiNER, facilitates parallel entity extraction
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.