In research reported in November 2026, Airbnb researchers described CASTLE, a framework for training natural-language search models before a service has collected enough real queries. It uses de-identified booking sessions and a large language model to generate both a search query and labels indicating which listings match it.
A guest might ask for “a beachfront home that sleeps eight and allows pets” rather than select a series of filters. To train a model to handle such requests, developers need examples of how guests phrase their searches and which listings are relevant to each request. Earlier methods such as InPars and Promptagator generate queries first, then use a separate model judgment to assign relevance labels. The Airbnb researchers argued that separating the tasks can introduce errors and make synthetic queries less representative of real searches.
From a booking choice to a search query
CASTLE starts with two listings a guest viewed in the same session: one they booked and one they did not. It asks a language model to write a query that fits the booked listing but not the alternative. The result is a synthetic query with a positive and a negative example, labeled by construction rather than by a second model. The query is not a record of what the guest actually typed.
The framework uses three prompting strategies: templates, examples drawn from about 500 seed queries collected through targeted user research, and prompts that highlight attributes distinguishing one listing from the other. It also encourages variation in query length and wording. For pairs without enough booking history, including those involving new listings, a language-model evaluator called Virtual Judge labels additional query–listing combinations. A variant, CASTLE-R, is designed for production systems that have begun collecting real search traffic.
What the evaluation showed
The researchers measured how closely synthetic queries resembled real ones using Kullback–Leibler (KL) divergence, where a lower value indicates a closer match between distributions. CASTLE scored 1.01, compared with 9.33 for Promptagator, the strongest baseline—a 9.2-fold reduction in divergence. When the team compared the types of listing attributes mentioned, CASTLE scored 0.08, versus 0.09 for the curated seed queries. Three independent domain experts also reviewed 200 sampled query-and-listing triples. Each expert agreed with CASTLE’s relevance labels in 91% to 93% of cases.
On LinkedIn, AI engineer Mark Tsai asked whether the training and evaluation sets shared seed templates or listing IDs. He suggested comparing a random split with a stricter split that kept both templates and listing IDs separate, then testing on unseen real queries. That comparison, he argued, could help distinguish a model that learned to match guest intent to listing attributes from one that recognized familiar templates or listings.
Wendy Ran Wei, an author of the research, replied that the team evaluated its models on real queries withheld from training and used safeguards against data leakage when constructing the evaluation set. She said the paper, available on arXiv, did not report the controlled comparison Tsai proposed and identified it as a direction for future research.
