Abstract
The Airbnb search system grapples with many unique challenges as it continues to evolve. We oversee a marketplace that is nuanced by geography, diversity of homes, and guests with a variety of preferences. Crafting an efficient search system that can accommodate diverse guest needs, while showcasing relevant homes lies at the heart of Airbnb's success. Airbnb search has many challenges that parallel other recommendation and search systems but it has a unique information retrieval problem, upstream of ranking, called location retrieval. It requires defining a topological map area that is relevant to the searched query for homes listing retrieval. The purpose of this paper is to demonstrate the methodology, challenges, and impact of building a machine learning based location retrieval product from the ground up. Despite the lack of suitable, prevalent machine learning based approaches, we tackle cold start, generalization, differentiation and algorithmic bias. We detail the efficacy of heuristics, statistics, machine learning, and reinforcement learning approaches to solve these challenges, particularly for systems that are often unexplored by current literature.
Introduction: The Location Retrieval Challenge
When a user searches for a destination like "San Francisco" on Airbnb, the system must decide which geographical area to scan for homes. This critical step, known as location retrieval, occurs before the ranking algorithm sorts individual listings.
The challenge lies in a classic trade-off between recall and performance. A search area that is too narrow (e.g., strictly within administrative city limits) may miss relevant homes in nearby neighborhoods where guests often prefer to stay. Conversely, an area that is too wide increases system latency and introduces irrelevant noise into the ranking stage. Traditional systems rely on static heuristics, such as a fixed radius, which fail to account for specific user intent or the inherent selection bias of search data.
Methodology: From Heuristics to Reinforcement Learning
Airbnb's location retrieval system evolved through four major stages to address these complexities:
- Heuristics: Initial systems used administrative boundaries and simple expansion rules.
- Statistics-based: Historical booking data was used to create static bounding boxes that captured 96% of past bookings for a given destination.
- Supervised Machine Learning: A two-layer neural network was developed to predict four latitude/longitude offsets for a bounding box based on search features like guest count and lead time. This model utilized a custom multi-objective loss function to balance recall against search area size.
- Reinforcement Learning (Contextual Bandits): To solve the "selection bias" trap—where the model only learns from areas it has previously chosen to show—the problem was reformulated as a contextual multi-armed bandit task.
Uncertainty Estimation via Monte Carlo Dropout
A core component of the RL approach is the ability to estimate uncertainty. Since standard neural networks do not provide confidence intervals, the team implemented Monte Carlo (MC) Dropout. By running the model multiple times (e.g., 32 iterations) with dropout enabled during inference, the system generates a distribution of predictions.
The variance across these iterations serves as a measure of uncertainty. The system then applies the Upper Confidence Bound (UCB) algorithm: in areas where the model is uncertain, it "optimistically" expands the search area to discover new, relevant inventory. This ensures the system continues to learn and adapt to changing guest preferences.
Key Results and Impact
The transition to a dynamic, RL-based retrieval system yielded significant improvements across key metrics:
- Conversion Lift: The move from heuristics to supervised ML resulted in a +1.8% increase in uncancelled bookings. The subsequent addition of the RL/UCB exploration layer provided an additional +0.51% lift, totaling a +2.66% overall improvement.
- Efficiency and Recall: The ML models improved the recall of booked listing locations by 7.12% while simultaneously reducing the average search area size by 40.83%.
- Contextual Awareness: The model successfully learned to adapt search areas based on context, such as shrinking boxes for specific street addresses while expanding them for large groups or sparse regions.
Conclusion
By moving beyond rigid city boundaries to a dynamic Reinforcement Learning-based system, Airbnb has significantly improved the relevance and efficiency of its search engine. Future work will focus on moving from rectangular bounding boxes to more organic "map cell" retrieval (e.g., S2 cells) to further refine the precision of the location retrieval process.
Summary updated