Chapter 6 · Two-Sided Marketplaces · Matching Under Uncertainty · Human-in-the-Loop · Generative AI

AI & the Matching Problem
in a Two-Sided Marketplace

Neither side of Airbnb’s marketplace fully knows what it wants. Guests have vague travel intent. Hosts have a vague sense of price. Airbnb uses AI to infer what both sides need from behavioral signals — and a newer generation of generative AI is quietly reshaping how the company builds everything else.

Company: Airbnb Industry: Travel / Two-Sided Marketplace Core AI: Matching under uncertainty, dynamic pricing, human-in-the-loop, generative AI
Also in this chapter: Lab 6: AI & the Matching Problem — Be the Host →
MIS 432 · AI in Business · Case Study

Airbnb:
AI & the Matching Problem in a Two-Sided Marketplace

Neither side of the marketplace knows what it wants. Airbnb uses AI to figure it out for both of them — recommending destinations guests can’t articulate, pricing listings hosts can’t value, and accelerating its own engineering along the way. Each system runs through the same AI Factory framework but makes different choices about data, model design, and how much control humans retain.
Level: Upper-division undergraduate Topics: Two-sided marketplaces, matching under uncertainty, dynamic pricing, hybrid ML + structural modeling, human-in-the-loop, generative AI in the enterprise Concepts introduced: 20 key business AI terms

Primary sources: This case study is based on three Airbnb Engineering blog posts: Recommending Travel Destinations to Help Users Explore (2026), Learning Market Dynamics for Optimal Pricing (2018), Accelerating Large-Scale Test Migration with LLMs (2025), and Listening, Learning, and Helping at Scale: How Machine Learning Transforms Airbnb’s Voice Support Experience (2025).

Contents
1. Company Background 2. The Big Idea: Two Sides, One Platform 3. The AI Factory at Airbnb
Part I — The Guest Side
4. Data: The Language of Travel Intent 5. Model: Embeddings, Transformers, and Region/City Prediction 6. Prediction, Decision, and Value: From Dormant Users to Autosuggest
Part II — The Host Side
7. Data: Dynamic Pricing and Lead Time 8. Model: Why Pure ML Wasn’t Enough 9. Prediction, Decision, and Value: The Host Side
Part III — Turning AI Inward
10. LLMs for Test Migration: 1.5 Years to 6 Weeks
Synthesis
11. Responsible AI at Airbnb 12. Competitive Advantage: The Two-Sided Data Moat 13. Summary Table & Discussion Questions

1 Company Background

2007
First listing in San Francisco
5M+
Hosts worldwide
8M+
Active listings
220+
Countries & regions
2 sides
Guests & hosts

Airbnb’s story begins in October 2007, when Brian Chesky and Joe Gebbia couldn’t make rent on their San Francisco apartment. A design conference was coming to town and hotels were sold out, so they put an air mattress in their living room and offered it as a bed and breakfast to attendees. Nathan Blecharczyk joined as co-founder, and the company formally launched in 2008 — right into the teeth of the financial crisis. That timing shaped everything about the business: ordinary people needed extra income to hold onto their apartments, and Airbnb gave them a way to earn it.

Millions of Americans were losing their jobs, their homes, or both. The idea that you could make rent by letting a stranger sleep in your spare room went from eccentric to urgent almost overnight. Early Airbnb hosts were not lifestyle entrepreneurs. Many of them were people trying to hold onto their apartments. The platform grew because the crisis made sharing space an economic necessity — and that origin story still matters, because the same economic dynamics that created Airbnb are now driving the backlash against it.

That idea grew into one of the largest travel platforms in the world, with more than 8 million active listings in over 220 countries and regions, and more than 5 million hosts who earn income by renting space to travelers.

What makes Airbnb different from a hotel chain, an airline, or even a platform like Booking.com is the shape of the business. Airbnb owns no properties. It does not employ the people who clean the rooms, answer the doors, or set the prices. Every one of its listings is a unique home offered by an independent host, and every booking is a transaction between two people who may never meet. Airbnb’s job is to be the layer in the middle that makes those transactions happen.

That middle-layer position turns out to be an enormous AI problem. Every night, millions of potential guests are trying to figure out where to go, and millions of hosts are trying to figure out what to charge. Neither side fully knows what they want, and neither side can be expected to. The guest has a vague idea of a trip; the host has a vague sense of what similar homes nearby are charging. Airbnb’s job is to turn those two vague signals into a specific match at a specific price on a specific date — hundreds of thousands of times a day.

Strategic context
Netflix uses AI to pick the best image for a show. Spotify uses AI to pick the next song. Uber uses AI to forecast demand. Airbnb has to do all of those kinds of things — but on two sides of a marketplace at the same time. That is the defining challenge of the business, and it is the lens through which every AI decision in this chapter should be read.
Connecting to Waymo
The last chapter studied Waymo, whose AI challenge is fundamentally about physics — perceiving objects, predicting trajectories, not crashing. The inputs are precise (lidar, cameras, radar), and the failure mode is concrete (someone gets hurt). Airbnb’s AI challenge is fundamentally about psychology — inferring what people want when they cannot articulate it themselves, and nudging decisions on both sides of a marketplace toward outcomes neither side could find alone. The inputs are vague (a click, a half-typed search, a booking from a year ago), and the failure mode is invisible (a guest who quietly leaves, a host who never realizes they underpriced). Same AI Factory framework. Different kind of hard.

2 The Big Idea: Two Sides, One Platform

Every business in this course so far has had one primary customer. Netflix has subscribers. Spotify has listeners. Uber has riders (yes, drivers matter, but the business problem is framed around getting a rider a ride). Airbnb is structurally different. Airbnb has two customers who need completely different things from the same platform — and the platform only works when both sides get what they need.

Key concept
Two-sided marketplace and the matching problem
A two-sided marketplace is a platform that brings together two user groups who need each other — buyers and sellers, riders and drivers, guests and hosts. The platform’s core job is matching: connecting a person on one side to the right person on the other, at the right moment, at a price both accept. If either side has a bad experience, the other side suffers. Every AI system Airbnb builds is ultimately in service of better matching.

Think about what that means in practice. A hotel chain like Marriott has one customer: the traveler. Marriott owns its own rooms, sets its own prices, and controls the experience end to end. If demand drops, Marriott lowers prices. If a guest wants a room, Marriott has one ready. The business is one-sided.

Airbnb owns nothing. Every listing belongs to someone else, and that someone else has their own goals, their own calendar, and their own idea of what their home is worth. Airbnb has to make both sides happy simultaneously — and if either side has a bad experience, the other side suffers too. A guest who can’t find a good listing leaves. A host whose calendar stays empty stops hosting. The platform dies from either direction.

Now here is the twist that shapes the rest of the chapter: neither side of the Airbnb marketplace fully knows what it wants. That might sound strange — aren’t people who visit a travel website the ones with an idea of where they want to go? Sometimes. But often, no.

This is what makes Airbnb’s AI problem a problem of psychology rather than physics. Waymo’s car needs to understand how the physical world behaves — objects have trajectories, roads have geometry, physics has rules. Airbnb’s system needs to understand how people behave when they don’t even know what they want yet — and people do not follow rules. They browse without intent. They search without conviction. They abandon carts on a whim. The AI has to read meaning into all of that ambiguity, on both sides of the marketplace, simultaneously.

Airbnb’s users fall into two categories that require completely different experiences. Transactional users know what they want — they’re searching for a specific city on specific dates because their trip is already planned. Exploratory users don’t — they’re thinking “I want to go somewhere in France this summer” or just “I need a vacation.” Both types open the same app and click the same search bar, but the right experience for each is completely different. A good recommendation for a transactional user is a listing; a good recommendation for an exploratory user is a destination. A business that can’t tell these users apart will frustrate both of them.

Key concept
User intent modeling: transactional vs. exploratory
User intent modeling is the practice of distinguishing what kind of decision a user is trying to make, not just what they clicked. A transactional user has a clear goal — specific city, specific dates — and needs efficient filtering. An exploratory user has a vague desire and needs inspiration. These two users look identical in the search bar, but the right experience for each is completely different. Any platform that treats all users the same is optimizing for one type and frustrating the other.

If you have ever opened a travel app and just scrolled — no dates in mind, no city in mind, just a vague itch to go somewhere — you were an exploratory user. And you were giving the platform almost nothing to work with. No search query. No dates. Maybe a few past bookings from a year ago. The system needs to figure out what to show you, and it has to do it in the few seconds before you get bored and close the app.

Exploratory users introduce an even harder problem for any recommendation system: if the user doesn’t know where they want to go, how is the system supposed to know what to suggest? This is a classic problem in recommender systems, and it shows up whenever a user has very little history for the system to learn from.

On the host side, the parallel is nearly exact. A host has a home, a calendar, and an approximate sense of what to charge. But they don’t know what a Thursday in early October will actually be worth three months from now — nobody does. Markets move. Big events pull demand forward. Weather shifts bookings around. A host trying to price by intuition is guessing against information the platform already has in aggregate. That is the supply-side version of the same fundamental problem: the person on this side of the marketplace does not fully know what they want (or what they should charge), and the platform is better positioned to help them figure it out than they are on their own.

Guests need help discovering destinations. Hosts need help pricing listings. Both problems are really the same problem — understanding demand patterns at scale — viewed from opposite ends. And both are, at their core, problems of reading human psychology from behavioral traces.

3 The AI Factory at Airbnb

We introduced the AI Factory framework in Chapter 3 with Spotify and applied it again with Uber in Chapter 4. The same five steps organize Airbnb’s AI systems too — data, model, prediction, decision, value — with one important twist. Airbnb runs parallel AI Factories: one on the guest side, one on the host side, both drawing from the same underlying data layer, and in the last few years, a third running inside the engineering organization itself.

At Waymo, the factory’s data step was sensor readings — lidar points, camera frames, radar returns. Precise, physical, measurable. At Airbnb, the data step is behavioral signals — clicks, searches, bookings, abandoned carts. Noisy, ambiguous, and deeply human. The framework is the same. The nature of what flows through it is fundamentally different, and that difference shapes every design choice in the chapter ahead.

1. Data
→
2. Model
→
3. Prediction
→
4. Decision
→
5. Value
Guest-side factory
Destination Recommendations
Uses guests’ browsing, searching, and booking history to suggest where to go — in the search bar and in re-engagement emails. Covered in Part I.
Host-side factory
Smart Pricing
Uses demand patterns, lead times, and similar-listing data to suggest how much to charge for each night on a host’s calendar. Covered in Part II.

Each track has its own data, its own model, and its own deployment surfaces — but they share a foundation. Every search a guest does becomes training data for the destination recommender, but it is also evidence about demand that feeds Smart Pricing. Every booking a host accepts teaches Smart Pricing about what prices clear the market, but it is also a signal the destination recommender uses to infer where travelers actually want to go. The two factories compound each other. The more guests Airbnb has, the better it can price for hosts. The better prices hosts offer, the more guests convert. This is the marketplace flywheel, and AI is what keeps it spinning.

Part III of this chapter looks at a third, newer use of AI at Airbnb: not customer-facing at all, but pointed at Airbnb’s own engineering organization. That will raise a different set of questions — but the fundamental framework stays the same.

Part I — Guest Side4 Data: The Language of Travel Intent

Here is a problem. A user opens the Airbnb app. They have done four things in the last three months: booked a home in Lisbon, searched twice for “Tokyo” without booking, clicked on a listing in Mexico City, and opened the app today without typing anything. What does that tell you about where they want to go next?

A human looking at that list can probably spot a pattern — an adventurous traveler who likes cities, maybe thinking about somewhere warm. But a machine cannot reason that way unless the data is structured to let it.

Before this model existed, Airbnb’s search experience was essentially reactive: you typed a city, you got listings. If you didn’t type anything, the app had nothing to show you. That worked fine for the transactional user who already had a trip planned. It was useless for the exploratory user who was still figuring out where to go — and Airbnb’s own data showed that a large share of users who opened the app fell into that exploratory category. They were the hardest users to serve and, potentially, the most valuable to convert.

From challenge to solution: user intent, behavioral signals, signal types, and tokens A vertical flow showing how user intent modeling defines the challenge, two user types leave behavioral signals as tokens, those tokens split into short-term and long-term context, and both feed into the model The challenge: user intent modeling What kind of decision is this user making? Transactional user “Tokyo, March 5–12” Exploratory user “Somewhere warm…” Tokens — each action in the sequence Booked Lisbon Searched Tokyo Searched Tokyo Clicked Mexico STEP 1 DATA but not all tokens carry the same weight Short-term signals Recent searches, clicks, views = what you’re considering right now Searched Tokyo Searched Tokyo Long-term signals Historical bookings = your durable preferences Booked Lisbon both streams feed the model as separate inputs Embeddings → Transformer → Prediction STEP 2 MODEL Predicted destination STEP 3 The model weighs short-term signals more heavily — but doesn’t ignore long-term ones
Figure: From challenge to prediction. User intent modeling is the problem — the system must figure out what kind of decision a user is making. Both transactional and exploratory users leave behavioral signals that become tokens. Those tokens are split into short-term context (what’s on your mind now) and long-term context (who you are as a traveler). Both streams feed the model as separate inputs, allowing it to weigh each appropriately. The model then converts them to embeddings, runs them through a transformer, and outputs a predicted destination. The rest of Part I explains each stage in detail.

The central insight in Airbnb’s destination recommendation system is that a user’s actions can be treated the way a language model treats words. To understand what that means, you need one piece of vocabulary: a token is the smallest unit of input that a model processes. In a language model like ChatGPT or Claude, each word (or piece of a word) is a token. The model reads a sequence of tokens and learns to predict which token comes next. “Peanut butter and” is three tokens, and the model has learned that the next one is probably “jelly.” The key move Airbnb makes is treating user actions as tokens — not words, but clicks, searches, and bookings — and feeding them into the same kind of model.

Each action a user takes — a booking in Lisbon, a search for Tokyo, a click on a Mexico City listing — is treated as a token in the user’s personal travel history, and sequences of those tokens become training data. The model learns that certain patterns of past actions tend to lead to certain future destinations, in the same way a language model learns that certain sequences of words tend to lead to certain next words. This is a powerful reframe: it means Airbnb can reuse the architecture of modern language models (transformers) to understand travel intent — a problem that has nothing to do with language on its face.

Key concept
Behavioral sequences as tokens
A token is the smallest unit of input a model processes. In a language model, each word is a token. Airbnb’s key insight is that user actions — clicks, searches, bookings — can also be treated as tokens in a sequence. Just as a language model reads “peanut butter and” and predicts “jelly,” Airbnb’s model reads “booked Lisbon, searched Tokyo, clicked Mexico City” and predicts the next destination. This reframe lets the team borrow transformer architectures built for language and apply them to travel behavior — a powerful example of cross-domain transfer, where a technique proven in one field unlocks value in another.

That reframe is worth sitting with, because it is not obvious. Travel behavior does not look like language. Nobody “reads” a sequence of Airbnb bookings the way they read a sentence. But the mathematical structure turns out to be surprisingly similar: in both cases, you have a sequence of events in order, and the goal is to predict what comes next based on what came before. Once Airbnb’s data scientists saw that parallel, they could borrow a powerful type of AI model called a transformer — the same technology behind ChatGPT and Claude — that researchers had already spent years building for language. They did not have to invent a new approach to travel recommendation. They repurposed one that already worked for a different problem.

But not every action carries the same meaning. A booking three years ago and a search three minutes ago are both data points, but they say very different things about what a user wants right now. The model is designed to distinguish two kinds of signal. Short-term signals — views and searches in the last few days — reveal what the user is actively considering right now. Long-term signals — historical bookings — reveal durable preferences: this person likes coastal cities, books in summer, tends toward mid-range prices. If Airbnb only looks at recent searches, it overreacts to momentary curiosity. If it only looks at history, it ignores that the user is actively researching Tokyo right now. The model explicitly combines both, which is why it looks at booking history, view history, and search history as separate inputs rather than one giant list.

Key concept
Short-term vs. long-term signals
Short-term signals are recent actions — searches, clicks, and views in the last few days — that reveal what a user is actively considering right now. Long-term signals are historical bookings that reveal durable preferences: preferred climates, price ranges, travel styles. A recommendation system that uses only one type will either overreact to momentary curiosity or ignore current intent entirely. Airbnb’s model processes them as separate input streams so it can weigh both. This same distinction — recent behavior vs. historical pattern — appears in nearly every recommendation system in this course.
Key concept
The cold-start problem
But what happens when one or both of those piles is thin — or empty? A new user has no short-term and no long-term signals. A dormant user who booked once a year ago has stale long-term data but no short-term data at all. This is the cold-start problem: when a recommendation system has almost nothing to personalize from. Airbnb’s fix is a training-data design choice: every booking generates 14 training examples — half simulating an active user (both signal streams present) and half simulating a dormant user (short-term signals stripped away). This teaches the model how to fall back gracefully on whatever context is available. The decision was made before any model code was written — it determines who the system works for.

On top of these behavioral sequences, Airbnb layers contextual signals — things like what time of year it is. A user’s long-term pattern might say “beach destinations,” but if they’re searching in December, the model should probably weight warm-weather beaches over Cape Cod. The current date is an input to the model in the same way a word’s position in a sentence is an input to a language model.

5 Model: Embeddings, Transformers, and Region/City Prediction

Once you’ve decided to treat user actions as tokens, you need a way to represent each token as something a model can actually do math with. Spotify’s chapter introduced the answer: embeddings.

Key concept
Embeddings (at Airbnb)
Recall from Chapter 3: an embedding is a compact list of numbers that represents everything the system has learned about an item. Similar items get similar embeddings and end up close together in a mathematical space; very different items end up far apart. Spotify uses embeddings for songs and users. Airbnb uses them for cities, regions, and dates. Lisbon gets an embedding, Porto gets an embedding, and if they co-appear in enough guests’ travel patterns, the two embeddings end up close together — meaning someone who shows interest in one is likely to be interested in the other. Each user action in the sequence gets its own embedding that combines three pieces of information: the city, the region that city belongs to, and how long ago it happened. That single compact representation captures both what the user did and when.
City embeddings in a two-dimensional space A scatter plot showing cities positioned by their learned embeddings, where cities that travelers visit interchangeably end up close together ← Cities that are more different are farther apart → EUROPEAN COASTAL Lisbon Porto Barcelona Nice EAST ASIAN CITIES Tokyo Osaka Kyoto Seoul TROPICAL BEACH Cancún Bali Phuket Tulum Mexico City Cities close together → travelers who like one tend to like the other
Figure: City embeddings in a simplified two-dimensional space. In reality, embeddings have many more dimensions, but the intuition is the same: cities that frequently co-appear in travelers’ behavioral patterns end up close together. Lisbon and Porto cluster because guests who book one often consider the other. Tokyo, Osaka, and Kyoto form a tight group for the same reason. The model learned these relationships entirely from behavior — nobody told it that Lisbon and Porto are both in Portugal or that Bali and Phuket are both tropical. Proximity in embedding space is learned similarity, not geographic similarity.
Pause and check
If you take one thing from §4–5, take this: Airbnb figured out that a user’s travel actions (click, search, book) can be treated like words in a sentence, and that cities can be represented as points in space where similar cities cluster together. That is the foundation. Everything below — transformers, multi-task learning — is the machinery that makes it work at scale. You do not need to understand the machinery to understand the business logic.

Once each action is an embedding, the model processes the whole sequence of actions with a transformer — the same class of architecture that powers modern language models like the ones behind ChatGPT and Claude. The technical details are beyond the scope of this course, but the business intuition is straightforward: a transformer is very good at looking at a sequence and figuring out which parts of it matter most for predicting what comes next. When the user’s history is “booked Lisbon two years ago, searched Tokyo three times last week, clicked Mexico City yesterday,” the transformer learns which of those actions deserves the most weight in predicting today’s destination.

But there is one more wrinkle. The model is not just trying to predict a city. It is trying to predict geography at multiple levels at once.

The model uses a technique called multi-task learning: instead of predicting just one thing, it predicts two related things at once — both which region a user is interested in (say, the San Francisco Bay Area) and which specific city within that region (San Francisco, Oakland, San Jose). The two predictions are forced to be consistent with each other. This matters because users who like San Francisco often end up booking in San Jose or Oakland, and training on both tasks at once gives the model more signal to learn from than training on either alone.

The diagram below shows how this works. The “shared trunk” in the middle is the core of the model — the transformer that processes the user’s action sequence and builds up an understanding of their travel intent. Think of it as the part of the model that does the heavy thinking. That shared understanding then feeds into two separate “heads” at the top — one that predicts the region and one that predicts the city. The trunk is shared because the same patterns that help the model understand regions (this user likes coastal Europe) also help it understand cities (they might like Lisbon specifically). By sharing the trunk instead of building two separate models, Airbnb gets richer predictions from the same data.

Multi-task learning for region and city prediction A diagram showing a shared model trunk with two prediction heads for region and city User action sequence (tokens) Transformer (shared trunk) learns sequence patterns Region head “Bay Area” City head “San Francisco” One model, two predictions — forced to be consistent with each other
Figure 1: Multi-task learning in Airbnb’s destination model. A single transformer processes the user’s action sequence and feeds two prediction heads — one for region, one for city. The two heads share their underlying understanding of geography, which produces richer and more consistent predictions than training two separate models would.

The figure below shows the full model pipeline in more detail. The data inputs from the previous section (short-term and long-term context) enter at the top. Each action token is converted into an embedding — a list of decimals that represents what that action means. Similar cities produce similar numbers: Seattle might be [0.82, 0.14, 0.67, 0.31, 0.95, ...] and Bellingham might be [0.80, 0.16, 0.65, 0.29, 0.93, ...] — close because travelers who visit one often consider the other. The transformer then reads the full sequence of embeddings and uses attention to decide which actions matter most for predicting what the user wants next. Finally, the shared understanding splits into the two prediction heads.

Step 2 Model expanded: embeddings with decimals, transformer with attention, and two prediction heads Shows data inputs flowing into embeddings with actual decimal values for Seattle and Bellingham, through the transformer, into region and city prediction heads STEP 1 · DATA (from previous diagram) Short-term context Long-term context STEP 1 Step 2 · Model STEP 2 MODEL Embeddings — turn each token into a list of decimals Each number captures one dimension of meaning. Similar cities get similar numbers. Seattle [0.82, 0.14, 0.67, 0.31, 0.95, ...] Bellingham [0.80, 0.16, 0.65, 0.29, 0.93, ...] ↑ Numbers are close — travelers who visit one often consider the other Lisbon: [0.23, 0.71, 0.44, 0.88, 0.12, ...] ← far away Transformer (same architecture as ChatGPT) Reads the full sequence. Attention: “which past actions matter most right now?” shared brain splits into two prediction heads Region head e.g. “Pacific NW” — 45% City head e.g. “Seattle” — 38% Multi-task learning: both heads share the transformer Predicted destination: Seattle (38%) STEP 3 The model learned Seattle and Bellingham are similar from behavior — nobody told it they’re both in Washington
Figure 2: The full model pipeline. Short-term and long-term context (from the data diagram above) enter the model. Each action token becomes an embedding — a list of decimals where similar cities have similar numbers. The transformer reads the full sequence and uses attention to weigh which actions matter most. Its shared understanding feeds two prediction heads (region and city) via multi-task learning. The output is a predicted destination with a probability. What Airbnb does with that prediction is a separate business choice — the prediction–decision gap.

6 Prediction, Decision, and Value: From Dormant Users to Autosuggest

Here is a training-data puzzle worth sitting with. Airbnb wants the destination model to work for everyone — not just the user who just searched five times in the last week, but also the user who booked once in 2024 and hasn’t logged in since. If you train the model only on users who are currently active, you get a model that is great at the obvious case and useless for the harder, more valuable case of bringing back a lapsed user. If you train it only on dormant users, you can’t serve the active ones well. Airbnb’s answer is to design the training data to include both.

Airbnb’s solution is a training-data design choice. Every past booking generates not one but fourteen training examples: seven that simulate an active user in the final week of planning (using recent searches and views), and seven that simulate a dormant user who hasn’t visited the platform in months (using only historical booking data, because a dormant user has no recent activity). This deliberately teaches the model to handle both situations. It is a reminder that the people designing AI systems make decisions about who the system is being built for before any code is written.

That number — fourteen training examples from a single booking — is easy to read past, but it is one of the most important design decisions in the entire system. It means Airbnb’s engineers made a deliberate choice about who this model would serve before they wrote a single line of model code. They could have trained only on active users, which would have been easier and produced better accuracy on the easy cases.

Instead, they chose to build a system that would also work for the user who booked a cabin in Vermont eighteen months ago and hasn’t opened the app since. That decision has business consequences (dormant users are a huge re-engagement opportunity) and ethical ones (a model built only for power users implicitly excludes everyone else).

Once the model is trained, Airbnb has a predicted region and a predicted city for each user. But a prediction is not a decision — the prediction–decision gap from Chapter 2 applies here too. The model predicts “this user is interested in Tokyo, Osaka, and Kyoto,” but that prediction on its own does nothing. Airbnb has to turn it into specific actions: which three cities to show in autosuggest when the user taps the search bar, which destination to feature in an abandoned-search email, how prominently to surface each one. The destination model is the inference engine. The product decisions around it are where the business value actually lives.

Key concept
The prediction–decision gap
A model’s output is a prediction — a probability, a ranking, or a score. A decision is what the business actually does with that prediction. The gap between the two is where most of the business value (and most of the risk) lives. Airbnb’s destination model predicts “this user is likely interested in Tokyo.” The decisions — which three cities to show in the search bar, which to feature in a re-engagement email, how aggressively to personalize — are product choices that sit on top of the prediction. The same prediction can drive very different decisions depending on business goals, risk tolerance, and user context.
Step 3 Prediction through Step 4 Decision: from probability distribution to product surfaces Shows the model output as probability bars for regions and cities, the prediction-decision gap, and how the same prediction powers autosuggest and abandoned-search emails STEPS 1–2 (from previous diagrams) Data → Embeddings → Transformer + Attention → Region head + City head Step 3 · Prediction The model outputs a probability for every destination — a ranked list STEP 3 Region prediction Pacific NW — 45% Northern CA — 24% SW Canada — 15% ... City prediction Seattle — 38% Portland — 15% Bellingham — 12% Vancouver — 9% This is just a list of numbers. What Airbnb does with it is a business choice — Step 4. ↓ prediction–decision gap — same prediction, different products ↓ Autosuggest Tap search bar → top 3 cities appear Abandoned-search email “Still thinking about Seattle?” STEP 4 DECISION The model predicts. The business decides what to do with it. Same ranked list → completely different user experiences depending on the product surface.
Figure 3: From prediction to decision. The model outputs a probability distribution — a ranked list of destinations at both the region and city level. That list is the prediction (Step 3). What Airbnb does with it is a separate business choice (Step 4). The same prediction powers autosuggest (showing top cities when you tap the search bar) and abandoned-search emails (re-engaging users who left). The prediction–decision gap is the space between the model’s output and the product decision — and it’s where most of the business value lives.

Airbnb has deployed the destination model in two places so far, and the two deployments illustrate opposite ends of the user-intent spectrum:

Business insight
Notice how the same model powers two completely different product experiences. Autosuggest is a real-time, high-intent surface — the user is literally about to type. Abandoned-search email is a delayed, low-intent surface — the user has left and may or may not come back. One model, trained once on cleverly designed data, now serves both. This is the economics of AI that matures: the most expensive part of an AI system is usually not the model itself — it’s assembling the data and infrastructure. Once that’s done, the same prediction can be deployed across many surfaces at low marginal cost.

The value: Higher conversion for active users who find what they want faster, and re-engagement of dormant users who might otherwise never come back. The destination recommender does not generate revenue directly — nobody pays for a recommendation. It generates revenue by shortening the path from “I want to go somewhere” to “I just booked.” That is the AI Factory pattern: data feeds models, models produce predictions, predictions inform decisions, and decisions create business value that generates more data.

The value looks different for each user type. For active users, the value is speed and reduced friction — instead of typing and comparing for twenty minutes, they tap the search bar and the right city is already there. For dormant users, the value is re-engagement itself — someone who booked once a year ago and forgot about Airbnb gets an email with a destination that genuinely interests them, not a generic “we miss you” blast. That is revenue Airbnb would have lost entirely without the model. For Airbnb as a business, the value is leverage — one model, trained once on cleverly designed data, deployed across multiple surfaces at near-zero marginal cost. Every additional surface (push notifications? in-app discovery pages? partner integrations?) reuses the same prediction engine. And every booking those surfaces generate feeds back as training data, making the next cycle of predictions better. The value compounds.

Part II — Host Side7 Data: Dynamic Pricing and Lead Time

Now flip the marketplace around. A host has just listed a two-bedroom apartment in San Diego. They need to decide what to charge for every single night on their calendar — not just tonight, but six months from now, twelve months from now. Prices that are too high leave the calendar empty. Prices that are too low leave money on the table. And the “right” price for a Thursday in early October is different in July than it is in September, because the market keeps moving.

Before Smart Pricing, most hosts did what you would probably do: they looked at a few nearby listings, picked a round number that felt reasonable, and left it there for months. Some hosts used spreadsheets. A small number of professional property managers used third-party pricing tools. But the vast majority of Airbnb’s millions of hosts are not professional hoteliers — they are people renting a spare room or a vacation home, and they do not have the time, the data, or the expertise to reprice their listing every week as the market shifts.

Just as the guest side has transactional and exploratory users, the host side has two distinct types that need different things from the same tool. Engaged hosts manage multiple properties, check their calendars weekly, track competitors, and adjust for events. They already have market intuition — they need Smart Pricing as a second opinion backed by data. They will override the suggestion if it feels wrong, because they have context the model doesn’t (they just renovated, the neighbor’s construction is noisy). Passive hosts are renting a spare room or vacation home on the side. They set a round number when they listed, haven’t touched it in months, and don’t know there’s a music festival three weeks from now. They need the system to think for them — and they will likely accept whatever Smart Pricing suggests. The same tool, two very different relationships with it — and as we’ll see later, the power dynamic between algorithm and host looks very different depending on which type you are.

The result was widespread mispricing: hosts in high-demand markets charging too little and booking instantly (leaving money on the table), and hosts in soft markets charging too much and sitting empty for weeks (losing income entirely).

Key concept
Dynamic pricing
Dynamic pricing is the practice of adjusting the price of a product or service as market conditions change — demand rises, supply gets tight, competitors adjust their prices. Airlines have done this for decades; hotels and ride-sharing platforms do it now; Airbnb does it through a feature called Smart Pricing, which suggests a nightly price for each date on a host’s calendar and updates those suggestions as the booking date approaches. For Airbnb hosts specifically, dynamic pricing is harder than it is for a hotel, because every listing is unique. There’s no “standard double room” to benchmark against — every home has its own size, quality, location, and personality. That uniqueness is the heart of the problem the pricing model has to solve.
Mini-case · Dynamic pricing gone wrong
Ticketmaster and the Oasis reunion (2024)

Dynamic pricing is not always received well. In August 2024, Oasis announced their first reunion tour in 16 years. Millions of fans entered Ticketmaster’s online queue. Many waited hours. When they finally reached the checkout, standing tickets that had been advertised at £148.50 were now listed at over £350. “Platinum” tickets were priced at nearly 2.5 times the standard price, with no additional benefits — same section, same view, just a fancier label.

The public fury was intense. The UK’s Competition and Markets Authority (CMA) investigated. Interestingly, the CMA found no evidence that Ticketmaster actually used algorithmic dynamic pricing — prices were not adjusting in real time based on demand. What happened was simpler: there were two preset tiers of standing tickets, and once the cheaper tier sold out, the price jumped to the higher tier. Ticketmaster had not told fans waiting in the queue that this would happen.

The CMA secured commitments from Ticketmaster to disclose tiered pricing 24 hours in advance, show the full range of prices when fans join a queue, and stop using misleading ticket labels. But the episode reveals something important about dynamic pricing: the public backlash was not about the prices themselves — it was about the lack of transparency. Fans felt trapped. They had waited hours, had no alternative (there is only one Oasis reunion), and discovered the price change only at the moment of purchase.

Compare that to Airbnb. A guest shopping for a listing in Barcelona can see the price before they commit, compare it against other listings, try different dates, or pick a different city entirely. The host — not an algorithm — makes the final pricing decision. The price adjusts over weeks and months, not minutes. Dynamic pricing feels fair when the buyer has information (what will I pay?), alternatives (can I go elsewhere?), and time (can I decide without pressure?). Ticketmaster failed on all three. Airbnb mostly passes — though a guest searching last-minute in a city with very few available listings during a major event is closer to the Ticketmaster end of the spectrum than Airbnb might like to admit.

One of the most important variables in pricing is lead time — the gap between when a booking is made and the check-in date. A guest booking New Year’s Eve on December 1st has a lead time of 30 days; a last-minute booking for tonight has a lead time of zero.

The lead time distribution is the shape of how bookings spread across those gaps for a given date and location. High-demand dates like New Year’s Eve see early bookings — people plan ahead. Beach towns see more last-minute bookings. A city like San Francisco during a big conference gets booked weeks ahead because there aren’t enough listings to go around. If a host prices a peak date as if bookings will come in the last two weeks, they’ll leave the calendar open too long and miss the early wave. Understanding the lead time distribution is what lets Smart Pricing tell the host when to raise prices and when to lower them.

Bookings arrive over time in a way that looks random at any single moment but has clear patterns when you zoom out. You can’t predict exactly when the next booking for a specific listing will come in, but across thousands of listings and check-in dates, the overall pattern is highly predictable. Smart Pricing’s job is not to guess the next individual booking — it’s to forecast the shape of the arrival pattern for each check-in date, so hosts can price appropriately as the date approaches. Framed this way, dynamic pricing becomes a forecasting problem with a pricing decision bolted onto the end.

Lead time distribution for two types of markets Two curves showing bookings over lead time: high-demand dates peak early, last-minute markets peak near zero Days before check-in (lead time) — check-in is at 0, far in advance is to the right Share of bookings 0 45 days 90+ days High-demand date (e.g. NYE) bookings skew early Last-minute market bookings skew late
Figure 2: Two different lead time distributions. The same nightly rate is wrong for both of these dates. A high-demand date like New Year’s Eve needs prices to rise early, because most bookings will happen far in advance. A last-minute market needs prices held back, because holding out longer yields better returns. The lead time distribution is what tells Smart Pricing which regime (pattern of demand) each night on the calendar is in.

8 Model: Why Pure ML Wasn’t Enough

Here is where the Smart Pricing story gets interesting — and where it connects directly back to Uber. The obvious move for a company like Airbnb is to throw a powerful machine learning model at the problem. Collect every feature you can find about each listing and each check-in date, train a huge model to predict the optimal price, and deploy it. Airbnb’s data science team considered exactly that approach, and rejected it.

The reasons were specific. With millions of listings, each with its own characteristics, and each checkin date getting booked at most once, there simply is not enough data at the individual-listing level. The prediction problem involves three things at once — which listing, which check-in date, and how far in advance — which makes it extremely complex to compute. And perhaps most importantly, Airbnb’s team had good domain intuition about the shape of the lead time distribution — they could see that bookings tended to accumulate in a recognizable pattern — a shape that statisticians have studied for decades. A pure ML approach would ignore all of that intuition.

A structural model is one where a human expert specifies the general shape of the relationship, and the model’s job is just to fill in the parameters. A pure ML model specifies no shape — it learns everything from data. ML models tend to be more accurate with enough data; structural models tend to be more interpretable. Airbnb’s Smart Pricing team refused to pick one. Instead, they built a hybrid.

This is a decision that comes up constantly in applied AI, and it is worth understanding concretely. Imagine you are on Airbnb’s data science team and you are staring at a chart of how bookings accumulate over time for a popular beach house. You can see the shape: bookings trickle in slowly at first, then accelerate as the check-in date gets closer, then taper off in the last few days. That shape looks like a curve you might recognize from a statistics class — a pattern that has been well-studied.

A pure ML model would have to discover that shape from scratch, using only the data. A structural model would assume that shape and just ask the ML to fill in the specific numbers. The question is: do you trust your domain knowledge enough to bake it in?

Key concept
Hybrid models: ML + domain knowledge
A hybrid model lets a human expert specify the shape of the relationship, and reduces the ML model’s job to predicting just the parameters that define that shape. Smart Pricing does exactly this: instead of asking ML to learn a full demand curve from scratch, it assumes bookings follow a known statistical pattern and asks the model to predict just five numbers that define the curve for each listing cluster and date. The result: forecast error was cut roughly in half compared to pure ML, and the predictions were explainable enough to show hosts.
Pure ML vs. hybrid model approach Side-by-side comparison: pure ML learns the entire curve from data; hybrid model assumes a shape and ML predicts only five parameters Pure ML approach Listing features + date features (hundreds of inputs) Big ML model learns everything from scratch Full predicted curve hard to explain, needs lots of data ✗ More accurate with enough data ✗ Black box — hard to explain to hosts Hybrid approach (what Airbnb chose) Listing features + date features (same inputs) Smaller ML model predicts only 5 parameters 5 params → known curve shape interpretable, works with sparse data ✓ Cut forecast error in half vs. pure ML ✓ Explainable — hosts can understand why Same inputs, different division of labor between human knowledge and machine learning
Figure 3: Pure ML vs. hybrid approach to Smart Pricing. Both approaches start with the same inputs. The pure ML model tries to learn the entire lead time curve from data alone — powerful when data is plentiful, but opaque and fragile when it’s sparse. The hybrid model assumes the curve follows a known shape (based on domain expertise) and asks the ML model to predict only the five parameters that define that shape. The result is a model that is both more accurate and more explainable.

The same curve shape produces very different outputs depending on the cluster. The five parameters the ML learns are different for each cluster because the booking patterns are genuinely different. The figure below illustrates this with two clusters from the same city:

Same hybrid model, different lead time curves per cluster Bar charts showing Urban Seattle with a steady ramp toward check-in versus PNW Getaways with early booking that tapers off Same curve shape, different parameters per cluster: “Urban Seattle” 90d 60d 30d 7d 1d Steady ramp to check-in “PNW Getaways” 90d 60d 30d 7d 1d Books early, tapers off The 5 parameters ML learns are what make the same curve shape produce these different patterns
Figure: Different clusters, different demand curves. The hybrid model uses the same structural curve shape for every cluster, but the five ML-learned parameters produce very different patterns. “Urban Seattle” listings (Capitol Hill, Fremont, Ballard) show steady demand that ramps toward check-in — pricing should hold and increase. “PNW Getaways” (San Juan Islands, Leavenworth) book heavily months in advance and taper off — pricing should start high and drop if unsold. Same model, different economics.

But there’s still one problem left. Airbnb has millions of listings, and each one is unique. Even with a hybrid model, trying to calculate five numbers for every individual listing hits the same wall — most listings simply don’t have enough bookings to work with. Consider: a studio apartment in Capitol Hill, Seattle might get booked 12 times a year. That is 12 data points to learn from — not nearly enough to learn a reliable pattern. A cabin on the San Juan Islands might get booked 8 times. The model needs thousands of bookings to calculate those five numbers reliably, and individual listings will never provide that. The workaround is an idea that should feel familiar from Spotify.

Airbnb’s solution uses clustering — a technique where the system groups similar items together on its own, without anyone telling it what the groups should be. (Spotify uses the same idea to group songs by audience.) By looking at which listings guests tend to consider together in a single search session, the system learns which homes share similar audiences. Listings that frequently co-appear in browsing get grouped into clusters Airbnb calls demand aggregations. Each cluster shares a lead time distribution, which solves the not-enough-data problem: instead of trying to learn from one listing with 15 bookings a year, the model learns from a cluster of thousands of listings that share a common audience.

Key concept
Demand aggregations
A demand aggregation is a cluster of listings that share similar guest audiences — not because they look alike physically, but because guests tend to browse and compare them together. A studio in Capitol Hill and a flat in Fremont may have nothing in common architecturally, but if guests routinely consider both during the same search session, they belong to the same demand cluster. Grouping listings this way solves the data-sparsity problem: instead of learning pricing patterns from one listing’s 12 bookings per year, the model learns from thousands of co-browsed listings at once. The clusters are defined by demand behavior, not by features an engineer chose — making them a learned representation of how the market actually works.

The figure below shows how this works in practice. Individual listings each have sparse data — far too little to learn from alone. But the system watches millions of guest browsing sessions and notices which listings get viewed together. Listings that guests routinely compare end up in the same cluster, even if they look nothing alike physically. Once grouped, the cluster has enough pooled bookings for the hybrid model to learn reliable lead time patterns.

How clustering groups listings by guest browsing behavior Shows individual listings with sparse data, guest browsing sessions linking them, and the resulting demand clusters with pooled bookings The problem: not enough data per listing Studio A Capitol Hill, SEA 12 bookings/yr Flat B Fremont, SEA 18 bookings/yr Apt C Ballard, SEA 14 bookings/yr Cabin D San Juan Islands 8 bookings/yr The signal: guest browsing sessions Session 1: Guest browsed Studio A and Flat B and Apt C Session 2: Guest browsed Flat B and Studio A — not Cabin D Guests treat A, B, and C as substitutes. Cabin D is a different market. Result: demand clusters Cluster 1: “Urban Seattle” Studio A Flat B Apt C + 200 more 12 + 18 + 14 + ... = 3,400 bookings/yr Cluster 2: “PNW Getaways” Cabin D + 40 more 8 + ... = 620 bookings/yr → each cluster feeds into the hybrid pricing model Clusters are defined by guest behavior, not by what a listing looks like. A Capitol Hill studio and a Fremont flat look nothing alike — but guests treat them as substitutes.
Figure: How demand clusters form. Individual listings don’t have enough bookings to learn from alone. The system watches guest browsing sessions and groups listings that get viewed together into demand clusters. Studio A (Capitol Hill), Flat B (Fremont), and Apt C (Ballard) land in the same “Urban Seattle” cluster because guests treat them as substitutes — even though they look nothing alike. Cabin D (San Juan Islands) lands in a separate “PNW Getaways” cluster. Now each cluster has thousands of pooled bookings for the pricing model to learn from.
Why this matters for managers
Pure ML is not always the best answer — even when you have lots of data and lots of compute. Smart Pricing is a case where combining a human intuition about the shape of the problem with an ML model produced better results than pure ML alone. This is a recurring pattern in applied AI. Teams that know their domain well enough to say “the answer has to take this form” often beat teams that just throw bigger models at the problem. AI does not replace expertise; it amplifies it. A manager evaluating an AI proposal should ask not just “what model?” but “what do we know about this problem that the model doesn’t need to learn from scratch?”

9 Prediction, Decision, and Value: The Host Side

Smart Pricing takes what the model has learned about booking patterns for each cluster of similar listings, combines it with details about the specific listing and the specific check-in date, and produces a suggested nightly price. That suggestion gets displayed in the host’s calendar view. The host can accept it, override it, or ignore it entirely.

Smart Pricing: from prediction to host decision A flow diagram showing demand cluster prediction flowing to a suggested price, then to the host who accepts or overrides, producing either the AI price or the host price Demand cluster + listing + date PREDICTION Suggested price e.g. $142/night DECISION AID Host decides Accept? Override? Ignore? HUMAN IN THE LOOP Accept: $142 Override: $165 Either way, the booking (or empty night) becomes training data for the next cycle VALUE → feeds back as new data
Figure 4: The Smart Pricing decision flow. The model predicts a lead time distribution for the listing’s demand cluster, produces a suggested nightly price, and presents it to the host. The host makes the final call. Whether they accept or override, the outcome (booked or empty) feeds back into the system as new training data. This is augmentation, not automation — and the feedback loop is what makes the AI Factory compound over time.

That single design choice — suggest, don’t set — is worth pausing on, because it’s a live example of a tension this course has been tracking since Chapter 2.

This is a deliberate choice between automation and augmentation — the same tradeoff from Chapter 2. Airbnb could set prices directly; it has the data and the models. But it chose augmentation: the model recommends, the host decides. Why? Partly legal (Airbnb doesn’t own the home), partly ethical (the host bears the consequences of a bad price), and partly strategic (hosts who feel coerced churn off the platform). The same AI capability that could have been automation is deployed as augmentation because of a business judgment about the relationship between platform and host.

That design choice does not make the ethical questions go away. When Smart Pricing suggests lowering a nightly rate to match an apparent market softening, the host is under real pressure to accept — the alternative is a dark calendar. The suggestion is not a command, but it is not neutral either. A suggestion from an algorithm that sees the entire market is hard to argue with from a position of seeing just your own property. We’ll return to this in §11.

The value looks different depending on the host type. For engaged hosts — the ones who manage multiple properties, track competitors, and check their calendar weekly — the value is a better second opinion. They already have intuition about what to charge; Smart Pricing gives them data to confirm or challenge that intuition, so they spend less time guessing and more time making confident decisions. For passive hosts — the ones who rent a spare room, set a round number three months ago, and haven’t thought about pricing since — the value is that the system thinks for them. Without Smart Pricing, their calendar sits empty for weeks because they priced too high, or they book instantly and leave money on the table because they priced too low. The system catches what they would never notice on their own. For Airbnb, the value is the flywheel: better pricing across millions of listings means more bookings, more bookings mean more service-fee revenue, more bookings generate more training data, and more data makes the next cycle of pricing suggestions better. Every outcome — whether the host accepted the suggestion or overrode it, whether the night was booked or stayed empty — feeds back into the model. The system gets smarter regardless of what the host chose.

But notice the asymmetry. The engaged host evaluates the suggestion and sometimes overrides it — that is genuine augmentation, where human judgment and machine intelligence combine. The passive host almost always accepts. For them, “augmentation” is a design label more than a lived experience. The algorithm is, in practice, setting their prices. Whether that is a problem depends on whether the algorithm’s interests are aligned with the host’s — a question we return to in the responsible-AI section.

The business takeaway from Parts I and II
Parts I and II teach the same lesson from opposite sides of the marketplace. When neither side of a transaction can fully articulate what they want, the platform that can infer it from behavior has an enormous advantage — but that advantage comes with a responsibility, because inference at scale shapes markets in ways no individual user can see or contest. The guest-side model infers intent. The host-side model infers price. In both cases, the AI is doing something no human could do manually: reading millions of behavioral signals and converting them into a specific, actionable recommendation in real time. That is the core AI capability this chapter teaches. Everything that follows — the LLM migration, the responsible-AI questions, the competitive moat — builds on it.

Part III10 LLMs for Test Migration: 1.5 Years to 6 Weeks

The first two parts of this chapter looked at AI systems Airbnb built to serve its customers. This third part is different. It is about a system Airbnb built to serve itself — and it is the clearest example in this course so far of how generative AI is actually being integrated into companies that already have deep ML capability.

The problem: Airbnb had about 3,500 files of automated software tests — code that checks whether other code is working correctly. These tests were written using an older tool called Enzyme, which was becoming obsolete. They needed to be rewritten using a newer tool called React Testing Library. The rewritten tests had to check all the same things the old tests checked — you can’t just delete tests without losing the safety net they provide. Engineers originally estimated this rewrite at about 1.5 years of engineering time if done by hand. In 2025, Airbnb completed it using a pipeline built around a large language model in six weeks.

3,500
Test files to migrate
1.5 yrs
Original manual estimate
6 weeks
Actual time with LLMs
75%
Files migrated in first 4 hours
97%
Files migrated after 4 days of tuning

That is not a small result, and the underlying mechanics matter more than the headline number. To understand what Airbnb actually did, you first need a clear distinction between the kind of AI we’ve been discussing in this course and the kind of AI that handled this migration.

Key concept
Generative AI vs. predictive AI
Every AI system in this course until now has been predictive. A predictive model is trained to answer a specific question (what’s the click-through rate? what’s the demand? where does this user want to travel?) by learning patterns in historical data. The output is usually a number or a ranked list. Generative AI is different. It produces new content — text, code, images — that didn’t exist before, by learning patterns from huge collections of unstructured data. Large language models (LLMs) like the ones behind ChatGPT and Claude are generative. Airbnb’s destination recommender is predictive: it takes a user’s history and predicts a destination. An LLM is generative: it takes a prompt and produces new code. The two kinds of AI are built differently, scale differently, fail differently, and should be governed differently — but an increasing number of real production systems (including the one in this section) stitch them together.

Why was this problem a good fit for an LLM and not for the kind of custom model built in Parts I and II? Three reasons. First, the task is code, not behavior — there’s an enormous amount of public JavaScript code in the world that an LLM has already been trained on. Second, the task is generative, not predictive — the output is a new test file, not a score or a ranking. Third, the task has an objective correctness check — the migrated test either passes or fails when you run it. You don’t need a human to rate the output; the machine can tell immediately whether it worked. That third property is crucial, and it led directly to the most important design decision in the whole project.

The pipeline: the LLM is the engine; the workflow is the engineering

Here is the part that business students should pay closest attention to. Airbnb’s engineers did not just hand 3,500 files to a language model and hope for the best. They built an automated pipeline around the model that looked more like a factory than a chatbot. The structure was roughly:

  1. Break the job into small, checkable steps. Each file was pushed through a sequence of distinct stages — refactor the Enzyme code, fix any issues in the test framework, fix formatting and code-quality errors, then mark complete. Each stage had a validation check: did the output actually work?
  2. When a step fails, retry with better context. If a stage failed, the system automatically re-prompted the LLM — this time including the specific error message and the most recent broken version of the file. (Engineers call this dynamic prompting: the prompt changes on each retry based on what went wrong, rather than sending the same instructions every time.) Most files that failed the first attempt succeeded within about 10 retries, though the hardest files were retried 50 to 100 times before the team gave up on automation.
Key concept
Human-in-the-loop workflows for generative AI
Deploying a generative AI model in production is not the same as chatting with one. Airbnb’s test migration illustrates the standard pattern: break the task into checkable steps, validate each output automatically, retry failures with updated context (dynamic prompting), and escalate the long tail to human engineers. The LLM provides raw capability; the pipeline around it provides reliability. This pattern — sometimes called an LLM scaffold or agentic workflow — is how most serious enterprise deployments of generative AI actually work. The model is one component. The engineering around it is what makes it production-grade.
  1. For the hard cases, give the model more to work with. On complex files, the prompts grew to include up to 50 related files from the same project — sibling test files written in the right style, the source code of the component being tested, examples of well-written tests. Prompts grew to the equivalent of 30,000–75,000 words each — roughly the length of a novel.
  2. Run the loop at industrial scale. Files ran in parallel, progress was tracked by automatically inserting a comment into each file recording its migration status, and engineers could re-run any specific step against any specific subset of files. After the first bulk run, 75% of files were done in four hours.
  3. Chip away at the long tail. For the remaining 25%, the team ran what they called a “sample, tune, sweep” loop: look at a handful of stuck files, figure out the common issue, update the prompts to fix it, re-run everything. Four days of this got them to 97%. The last 3% were fixed by hand. Notably, the team found that the biggest gains came not from cleverer prompt wording, but from choosing the right related files to include as context — sibling tests, the component source code, examples of well-written tests from the same project. The bottleneck was curation of inputs, not cleverness of instructions.

The most important lesson from the migration is not about the LLM — it’s about everything around the LLM. The language model is one component in a much larger system: a validation pipeline, a retry loop, a context-gathering mechanism, and a human-directed tuning loop. The LLM provides capability; the engineering around it provides reliability.

You could swap in a different LLM tomorrow and the system would keep working. Remove the validation and retry machinery, and the raw LLM would be unusable at scale. The model is not the moat. The infrastructure around the model is the moat.

The business math

Now the arithmetic. The original estimate was 1.5 years of engineering time. The actual cost was six weeks of engineering time plus the LLM API bill. Airbnb reports the total came in at a fraction of the original estimate. But a careful student should not just celebrate the headline number — they should think about what those six weeks of engineer time were spent on. Almost none of it was “writing tests.” It was building the pipeline, tuning the prompts, reviewing the failures, and fixing the last 3% by hand. The LLM did the typing. The engineers did the architecting.

The migration looks like substitution at first — the LLM wrote code that engineers would otherwise have written. But look closer and it’s augmentation. The engineers didn’t go away. They moved up the stack: from writing individual test files to designing a pipeline, selecting context, and debugging edge cases. The total output was dramatically higher, but the engineers were still there. A recurring business question as generative AI spreads will be: does this deployment substitute for a role, or augment the people in it — and which does the company actually want?

Key concept
Substitution vs. augmentation
Substitution means AI replaces a person doing a task. Augmentation means AI makes the same person dramatically more productive. The distinction sounds clean, but in practice it is blurry. Airbnb’s test migration looks like substitution on the surface — the LLM wrote code that humans would have written. But the engineers didn’t disappear; they moved up the stack to designing pipelines, curating context, and reviewing edge cases. The total output was dramatically higher with the same team. Whether a deployment is “substitution” or “augmentation” often depends on the time horizon and who is asking: a task was automated; the people who used to do that task now do something harder.
What this says about GenAI in established businesses
Notice which kind of company pulled this off. Airbnb was not a startup tinkering with a chatbot. It was a company with more than a decade of ML experience, a mature engineering culture, well-developed monitoring and testing discipline, and engineers who already knew how to build production pipelines. The LLM was a new ingredient, but everything around it — the validation infrastructure, the retry logic, the progress tracking — was built using the same skills Airbnb’s engineers had been practicing for years. The companies best positioned to benefit quickly from generative AI are often the same ones that already invested in predictive AI. Generative AI doesn’t replace the AI Factory. It plugs into it.

11 Responsible AI at Airbnb

Every chapter in this course circles back to the same basic question: what happens when the algorithm is wrong, or right in a way the business didn’t intend? Airbnb’s version of this question is especially sharp because its AI systems touch three different constituencies (groups of people with a stake in the outcome) — guests, hosts, and the communities those guests and hosts live in. And running through all three is a question this chapter is well-positioned to teach: who is “in the loop” when an AI system makes a consequential decision, and what does that phrase actually mean in practice?

The phrase human-in-the-loop sounds like it means one thing. It doesn’t. This section will walk through four very different versions of it — one on each side of the marketplace, one in voice support, and one from outside the system entirely.

On the guest side: geographic bias and the filter bubble

The destination recommender is trained on guests’ past bookings. If a user has only ever booked in Europe, the model will tend to recommend European destinations. That might be exactly what the user wants. But it might also narrow their world in ways neither they nor Airbnb would choose deliberately. A destination model that learns from past behavior will systematically underweight places where the user has never been — which is, by definition, where exploration would actually take them.

A subtler version of the same issue is geographic coverage. The Airbnb Engineering team reports that autosuggest drives the biggest booking gains in regions where English is not the primary language. That’s a good outcome — it means the model is especially helpful for users who might struggle to type and spell unfamiliar destination names. But it also tells you something about the baseline: if the gains are largest in non-English markets, the experience before the model may have been systematically worse there. The model didn’t create that gap, but a responsible team asks whether the training data that produced the model might reflect it — and monitors to make sure the system is closing the gap rather than encoding it.

Airbnb notes that users can opt out of this personalization. That matters — but it also matters how many users know the option exists and how easy it is to find. Opt-out is not the same as informed consent.

On the host side: whose margin is Smart Pricing optimizing?

Risk: algorithmic price nudging
When Smart Pricing suggests lowering a host’s nightly rate to match an apparent market softening, the host faces a real choice: accept the suggestion and take a lower margin, or reject it and risk an empty calendar. A suggestion from an algorithm that sees the entire market is hard to argue against from the position of seeing just your own home. Over time, hosts who consistently override Smart Pricing may find their listings ranked lower in search results, which makes overriding the suggestion feel more costly. The “suggestion” frame is not neutral — and a host reading this chapter should be thinking about whose interests the algorithm is optimizing when its recommendations also happen to increase booking volume on the platform.

There is a structural reason to ask this question. Airbnb’s revenue depends on completed bookings. Lower prices produce more bookings. A pricing algorithm that very slightly biases toward “lower” produces more bookings at every individual decision, produces more revenue for Airbnb, and produces slightly less revenue per night for each host. None of this requires bad faith from anyone. It just requires that the objective function (the specific goal the algorithm is mathematically designed to maximize) is aligned with the platform’s interests rather than the hosts’. Asking whose interests a suggestion serves is one of the most basic questions of responsible AI, and it’s a question hosts have a legitimate right to ask.

This is also where the human-in-the-loop framing gets tested. Smart Pricing is technically augmentation — the host keeps final control. But the information asymmetry (the gap between what each side knows) is enormous. The algorithm sees the entire market; the host sees one property. The host can override the suggestion, but they cannot see the data behind it, and they may not fully understand the consequences of ignoring it.

A system can be human-in-the-loop by design and still feel coercive in practice. The question for a manager is not just can the human override, but does the human have enough information to override well?

On the pricing side: price discrimination

Dynamic pricing at scale raises a broader question that airlines have been living with for decades: is charging different prices to different people for the same service fair? (The Ticketmaster mini-case in §7 explored when dynamic pricing feels exploitative vs. defensible.) At Airbnb, two guests booking the same home for the same dates will generally see the same price — but prices move dramatically across dates, and hosts in certain neighborhoods may be nudged toward systematically different price curves than hosts in other neighborhoods. When the data reflects a city’s history, the algorithm can reflect that history too. A responsible pricing team monitors for this, particularly at the intersection of neighborhood demographics and dynamic pricing suggestions.

On the support side: when the AI listens first

Airbnb also uses AI in customer support. When a guest or host calls, the system asks an open-ended question — “In a few sentences, tell us why you’re calling” — then transcribes the response, detects the intent, and either resolves it automatically or routes to a human agent. Domain-specific tuning cut transcription errors from 33% to ~10% (so “listing” is no longer heard as “lifting”). The caller can press 0 at any time for a human. This is the matching problem again in miniature: infer what someone needs from messy input and route them to the right answer.

Caller speaks
→
Speech → text
→
Intent detection
→
Self-serve or escalate
Key concept
Human-in-the-loop (four versions at Airbnb)
A human-in-the-loop system is one where a person retains a role in reviewing or overriding what the AI recommends. But the phrase covers very different realities. Version 1 — individual review: the host reviews every Smart Pricing suggestion individually. Version 2 — system design: engineers design the LLM pipeline but don’t review every output — the system validates automatically and only escalates failures. Version 3 — opt-in escalation: Airbnb’s voice support AI handles common calls, but the caller can press 0 at any point to reach a human. Version 4 — regulatory override: governments cap short-term rentals or block listings, overriding the platform’s logic from outside the system. All four are “human-in-the-loop.” They feel completely different in practice, and the people “in the loop” have very different levels of power, information, and agency.

Beyond the platform: the global backlash against short-term rentals

Every AI system in this chapter optimizes for matching — connecting a guest to a destination, a host to a price, a caller to a resolution, an engineer to working code. And by its own metrics, the matching works. Bookings go up. Conversion improves. Revenue grows. But there is a constituency (a group of affected people) that does not appear anywhere in the model’s objective function: the people who live in the neighborhoods where those bookings happen and who never signed up to be part of the platform at all.

This is not a hypothetical concern. Across the world, cities are pushing back — hard — against the growth of short-term rentals, and Airbnb has become a focal point of that backlash. The anger is not just about housing costs.

A study from Trinity College Dublin found that in London, each additional Airbnb tourist per 1,000 residents increased complaints against tourists by 2.2%, and that higher Airbnb penetration was associated with declining neighborhood quality and reduced social capital (the strength of community bonds and trust between neighbors) — measured, strikingly, by the number of charitable organizations in the area. The issue is not just economic. It is social.

Global regulatory response
In Mexico City, the city’s Planning Institute estimates that roughly 100,000 people have left the city because they can no longer afford rent. In 2025, the city restricted Airbnb units to no more than 180 nights per year. In Barcelona — which received 26.1 million tourists in 2024, over 15 times its population — the city announced plans to close all 10,000 apartments licensed as short-term rentals by 2028. Protesters sprayed tourists with water pistols and set off firecrackers in widely covered demonstrations. In Spain nationally, the government ordered Airbnb to block more than 65,000 listings for rule violations in 2025, and later fined the company €64 million. Prime Minister Pedro Sánchez declared that “there are too many Airbnbs and not enough homes.” EU-wide rules for short-term rental platforms take effect in May 2026, giving member states new tools to require registration, enforce limits, and collect data. In Venice, a €5–€10 entry fee now applies to day-trippers during peak season. In Berlin, more than 8,100 vacation apartments have been returned to the housing market since the city’s regulations took effect. In New York City, it is now illegal to rent an entire apartment for fewer than 30 days unless the host is present. The pattern is global: London, Paris, Amsterdam, Vienna, Prague, Lisbon, Edinburgh, and dozens of other cities have all imposed or tightened restrictions. In June 2025, coordinated protests took place across Spain, Portugal, and Italy on the same weekend.

There is a painful irony here worth naming. Airbnb was born in 2007 when two guys couldn’t make rent and put an air mattress on their floor. The platform grew because it helped people in economic distress earn extra income to hold onto their apartments. Two decades later, the same platform is being blamed for creating economic distress — pricing people out of the neighborhoods that Airbnb hosts originally needed help staying in. The company that began as a lifeline for renters is now, in many cities, seen as a threat to them.

Airbnb’s leadership has pushed back on the framing. CEO Brian Chesky has argued publicly that in Barcelona, housing prices rose 60% over the past decade while Airbnb listings actually decreased, calling the platform a “convenient scapegoat for a failed policy and deep, long-standing housing issues.” Chesky points out that in Barcelona, around 70% of tourists are cruise ship passengers or hotel guests — not Airbnb users.

And there is research to support the idea that short-term rentals are only one factor: a study published in Marketing Science found that a 1% increase in Airbnb listings in a zip code is associated with only a 0.018% increase in rents — a real but small effect. The deeper structural issue in most cities is chronic underbuilding, not vacation rentals per se.

But for this course, the interesting question is not “is Airbnb the cause of the housing crisis?” — it clearly isn’t the only cause. The interesting question is: what happens when an AI system’s objective function does not include the people most affected by it?

Key concept
Externalities and the objective function
Every AI system optimizes for an objective function. Smart Pricing optimizes for bookings. The destination recommender optimizes for conversion. Neither includes “impact on local housing supply” in its objective function, because displaced residents are not platform users. In economics, costs borne by people outside a transaction are called externalities. The global backlash is what happens when those externalities grow large enough for governments to intervene. The lesson: choosing what to optimize for is itself a decision with ethical and political consequences.

This connects directly to the human-in-the-loop concept we introduced at the top of this section. When Mexico City caps rentals at 180 nights, or when Spain blocks 65,000 listings, those governments are inserting themselves into the loop — from outside the system, on behalf of people the system was never designed to serve. That is Version 4 of human-in-the-loop: regulatory override. It is not elegant, and it is often blunt. But when the people most affected by an AI system have no other way to be heard, regulation becomes the loop.

On the engineering side: the LLM’s code was correct, but was it right?

The test migration in §10 is a governance story in miniature. The engineers built validation into every stage — a test either passes or it doesn’t, a file either compiles or it doesn’t. That worked because the task had hard, objective correctness checks. Not every LLM deployment does. When a generative model is used to draft a customer email, summarize a legal document, or write code that will ship to production, the question “did it work?” becomes much harder to answer mechanically. The discipline Airbnb applied to this project — validation at every step, automated retries, human review of the long tail — should be the default assumption for how LLMs get deployed in serious business contexts. It is not how they are currently deployed in most companies.

And there is a subtler issue worth naming. The engineers who reviewed the last 3% of files were checking whether the code worked — not whether it was written well, not whether it followed the team’s conventions, not whether a junior engineer could read and maintain it later. Functional correctness is the easiest thing to verify about code. Readability, maintainability, and style are much harder, and no automated test catches them.

When a company uses an LLM to write thousands of files at once, it gains speed but risks accumulating a codebase that technically works but that humans struggle to understand. The human-in-the-loop in this case was in the loop for correctness. Whether anyone was in the loop for quality is a different question — and one that will recur as GenAI is deployed more broadly inside engineering organizations.

The through-line
Across all of these domains — guest personalization, host pricing, community impact, and engineering — the pattern is the same. An AI system does what it was built to do, and does it well. The hard questions are not about whether the system works. They are about who it works for, who it doesn’t, and who gets to decide. Those are not engineering questions. They are management questions, and they are the ones this course is training you to ask.

12 Competitive Advantage: The Two-Sided Data Moat

Why can’t a competitor just copy all of this? Airbnb’s engineering team has published detailed descriptions of every system in this chapter. The models are not secret. The architectures are not proprietary. And yet the advantage compounds.

The moat is not the algorithm. It is the data, the infrastructure, the organizational learning, and the compounding feedback loop between two sides of a marketplace that reinforce each other. Everything else is copyable. That combination is not.

If you find yourself evaluating a company’s AI strategy — as a consultant, an investor, a product manager, or a competitor — the question is not “do they have AI?” Every company will have AI. The question is: do they have the compounding data, the two-sided feedback loop, and the organizational infrastructure that make their AI systems get better every day without anyone deciding to improve them? That is the moat. Everything else is a feature.

13 Summary Table & Discussion Questions

AI Factory model: Airbnb mapped

Step Guest side (recommendations) Host side (Smart Pricing) Internal (test migration)
Data Booking, view, and search history as action sequences Historical bookings, calendar data, market context 3,500 test files plus sibling files and examples
Model Transformer on behavioral sequences with multi-task heads Hybrid: ML predicts 5 parameters of a structural distribution Frontier LLM with retry loops and dynamic prompting
Prediction Predicted region and city for each user Predicted lead time distribution per cluster & date Generated replacement code for each test file
Decision Autosuggest rankings; abandoned-search email content Suggested nightly price; host keeps final control Accept if validation passes; retry if not; human fix at tail
Value Higher conversion; re-engagement of dormant users Better second opinion for engaged hosts; fewer mispriced nights for passive hosts 1.5 years of engineering compressed into 6 weeks

Key vocabulary introduced in this chapter

Two-sided marketplace
A platform whose value depends on matching two distinct user groups that need each other — guests & hosts, riders & drivers
Matching problem
The core operational job of a two-sided marketplace: getting the right person on one side to the right person on the other at the right price and moment
User intent modeling
Distinguishing transactional users (know what they want) from exploratory users (still figuring it out) and serving each differently
Cold-start problem
What happens when a recommender has very little history to personalize from — new users, dormant users, or users with ambiguous intent
Behavioral sequences as tokens
Treating each user action like a word in a sentence so language-model architectures can learn patterns in travel behavior
Short-term vs. long-term signals
Active searches and views reveal current intent; historical bookings reveal durable preference — both needed for good recommendations
Embeddings
Compact numeric representations of items (cities, regions, dates) where similar items end up close together in space
Transformer
A model that reads an entire sequence at once and uses attention to decide which parts matter most for predicting what comes next — the same architecture behind ChatGPT, applied here to travel actions instead of words
Attention
The mechanism inside a transformer that assigns importance weights to each item in the sequence — “given everything this user has done, which actions matter most right now?” The weights are learned from millions of examples, not programmed by a human
Multi-task learning
Training one model to predict several related things at once — at Airbnb, both region and city — for richer shared understanding
Active vs. dormant users
A deliberate training-data design choice that teaches one model to handle both recently active and long-lapsed users
Prediction–decision gap
The gap between what a model predicts and what a business should actually do — closed differently on each side of a two-sided marketplace
Dynamic pricing
Adjusting prices in near-real-time as demand, supply, and time to check-in change
Lead time distribution
The shape of when bookings arrive relative to check-in — high-demand dates book early, last-minute markets book late. The key variable Smart Pricing forecasts.
Hybrid models
Combining domain knowledge about the structure of a problem with ML’s ability to learn parameters — experts set the curve shape, ML fills in the numbers. Halved Smart Pricing’s forecast error vs. pure ML.
Demand aggregations
Clusters of listings grouped by shared guest audiences (not physical features), solving the sparsity problem for per-listing pricing
Generative vs. predictive AI
Predictive AI produces scores or rankings from historical patterns; generative AI produces new content (text, code) from huge unstructured training sets
Human-in-the-loop (four versions)
The phrase covers very different realities: a host reviewing every price suggestion, an engineer designing the system but not each output, a caller who can escalate to a human at any time, and society intervening through regulation. When someone says “there’s a human in the loop,” the follow-up question is: which version?
Externalities and the objective function
When the people most affected by an AI system are not its users, their costs don’t appear in the objective function — choosing what to optimize for is itself a decision with ethical and political consequences
Substitution vs. augmentation
Does an AI deployment replace people doing a task or make those same people dramatically more productive? Rarely as clear-cut as it sounds

Discussion questions

These work well as written assignments or in-class discussion prompts. Questions 1, 3, and 6 tend to generate the most debate.

  1. The origin story comes full circle. Airbnb was born in 2007 when two founders couldn’t make rent and put an air mattress on their floor. Today, cities like Barcelona, New York, and Mexico City are banning or severely restricting short-term rentals because they blame platforms like Airbnb for displacing residents and driving up housing costs. How do you reconcile the company that started as a lifeline for renters with the company now accused of pricing people out of their homes?
  2. Whose margin is Smart Pricing optimizing? When Smart Pricing suggests a lower price to a host during a quiet period, whose interests is that algorithm actually serving? Argue it through — is it the host’s, Airbnb’s, the guest’s, or some combination? Would a host-first version of the algorithm look different?
  3. Augmentation for whom? Smart Pricing is described as “augmentation” — the host always has the final say. But engaged hosts evaluate and sometimes override, while passive hosts almost always accept. If one group blindly follows the algorithm and the other doesn’t, is it fair to call the same system “augmentation” for both? When does a suggestion become a decision in practice?
  4. Interpretability vs. accuracy. Smart Pricing could have used pure ML and likely would have been somewhat more accurate than its hybrid approach. Instead, Airbnb chose a hybrid that gave up some raw accuracy in exchange for interpretability. Where is the line? Pick a business context where a manager should insist on interpretability even at a real cost to accuracy, and one where they shouldn’t.
  5. Filter bubble or personalization? The destination model learns from a user’s past bookings. A user who has only ever booked in Europe will see mostly European recommendations. Is the model personalizing correctly — or narrowing the user’s world? Argue both sides.
  6. The people not in the algorithm. Smart Pricing optimizes for bookings. The recommender optimizes for conversion. Neither includes “impact on local housing supply” in its objective function — because displaced residents are not platform users. Should Airbnb be responsible for externalities its algorithm doesn’t measure? If so, how? If not, whose responsibility is it?

MIS 432 · AI in Business · Case Study · For classroom discussion purposes.

← Chapter 5: Waymo Lab 6: AI & the Matching Problem — Be the Host →