# Personalizing Airbnb search by learning from the guest journey

DevFeed: [Personalizing Airbnb search by learning from the guest journey](<https://devfeed.tech/articles/personalizing-airbnb-search-by-learning-from-the-guest-journey-1219.md>)

Original publisher: [Read original article](<https://medium.com/airbnb-engineering/personalizing-airbnb-search-by-learning-from-the-guest-journey-bcefd1915624?source=rss----53c7c27702d5---4>)

Author: Daochen Zha

Published: 2026-07-21T17:01:04Z

Content type: article

Language: en

Sources: [Airbnb](<https://devfeed.tech/sources/the-airbnb-tech-blog-medium.md>)

Topics: [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [AI-driven information retrieval](<https://devfeed.tech/topics/ai-driven-information-retrieval.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [airbnb](<https://devfeed.tech/tags/airbnb.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [booking](<https://devfeed.tech/tags/booking.md>), [browsing](<https://devfeed.tech/tags/browsing.md>), [cancellation](<https://devfeed.tech/tags/cancellation.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [engagement](<https://devfeed.tech/tags/engagement.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [event](<https://devfeed.tech/tags/event.md>), [events](<https://devfeed.tech/tags/events.md>), [feature](<https://devfeed.tech/tags/feature.md>), [features](<https://devfeed.tech/tags/features.md>), [full](<https://devfeed.tech/tags/full.md>), [guests](<https://devfeed.tech/tags/guests.md>), [journey](<https://devfeed.tech/tags/journey.md>), [learning](<https://devfeed.tech/tags/learning.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model](<https://devfeed.tech/tags/model.md>), [modeling](<https://devfeed.tech/tags/modeling.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [search](<https://devfeed.tech/tags/search.md>), [technology](<https://devfeed.tech/tags/technology.md>)

## AI overview

Airbnb replaced hand-crafted guest-history aggregates with a Transformer that combines up to 80 long-term events from seven years (such as bookings and reviews) with up to 200 listing views from the past 21 days. To control training cost, it batches searches through one causal encoder pass and reduces padding with length buckets and sparse search calculations; for serving, it computes guest embeddings daily and combines stored embeddings with live queries. Reported offline booking-label NDCG gains were 0.44% from long-term history, 1.48% after adding recent views, and a further 2.3% from a setwise ranker. Online tests reported gains in uncanceled bookings and related metrics, and reuse of the embeddings in promotional email ranking increased clicks by 5.04%. The system's reported results are specific to Airbnb's experiments.

## Source excerpt

How we built a Transformer-based sequence model that encodes years of guest behavior to surface the right listings at the right time. By: Daochen Zha, Chun How Tan, Xin Liu, Bin Xu, Han Zhao, Xiaowei Liu, Jun Shi, Tracy Yu, Hui Gao, Huiji Gao, Liwei He, Michael Kinoti, Stephanie Moyerman, and Sanjeev Katariya Introduction Planning a trip on Airbnb rarely happens in a single session. A guest searching for a place to stay in San Francisco might browse dozens of listings over several days, leaving behind a trail of views. Typically, over a period of years, that same guest will have accumulated many previous bookings, reviews, and the occasional cancellation. Taken together, these events reveal a great deal about what that guest values in a stay. For years, Airbnb's search ranking captured this through hand-crafted features: aggregated statistics such as total past bookings or average listing price. These worked well, but as the feature count grew into the hundreds, the approach became harder to scale and increasingly limited in expressiveness. In this blog post, we describe how we built a sequence modeling system that encodes the full guest journey using a Transformer, learning richer representations of guest preferences to deliver more personalized search results. An example of a guest journey, which is typically long, exploratory, and complex.Challenges Event sequences per guest present three core challenges. First, they are dominated by listing views, which account for the vast majority of all events -- some guests accumulate hundreds of thousands of them -- making raw sequences computationally intractable to model directly. The distribution of event types, with the majority being listing views. Second, unlike social media platforms, which optimize for engagement, Airbnb optimizes for booking conversion. Bookings are rare, compared to events, and deliberate, whereas a listing view could reflect genuine intent or simply idle browsing. Building a model that generalizes