Brifing

Airbnb Introduces CASTLE Framework for Natural Language Search Cold-Start Training

Contrastive synthetic data generation aligns queries with actual booking behaviors

1Cold-Start Natural Search Barrier

Natural language search allows users to enter descriptive requests instead of relying on standard filtering mechanisms. Building retrieval models before capturing organic traffic requires synthesizing queries and relevance pairs simultaneously. Traditional cold-start paradigms depend on disjoint pipelines, creating compound distribution errors that degrade offline ranking capabilities.

2Limits of Independent Synthesizers

Existing synthetic generation frameworks like InPars and Promptagator generate queries from single documents and rely on separate LLM judges for labels. This decoupled structure yielded high Kullback-Leibler divergence scores between 9.33 and 26.2. The generated distributions diverged sharply from real-world search length and attribute phrasing patterns.

3Contrastive Pairing Architecture

Airbnb created CASTLE using de-identified historical booking sessions to build contrastive listing pairs. When a guest books a listing after viewing alternatives, that choice provides an implicit positive-negative pair. Prompting language models to generate queries satisfied only by the booked listing ensures built-in, reliable relevance labels.

4Seed-Guided Prompting Mechanics

The pipeline merges template formats, attribute-grounded variations, and 500 targeted survey seeds to prevent common model query collapse. This strategy produced a search token length standard deviation of 2.48, matching real traffic variance of 2.49. Baselines without seed grounding remained narrow at a 0.99 standard deviation.

5Virtual Judge for Long-Tail

Newly listed properties lack behavioral booking logs needed for empirical contrastive pair formulation. CASTLE handles these unseeded listings by incorporating a specialized LLM Virtual Judge to score query relevance. This hybrid design preserves baseline training set guarantees while expanding synthetic coverage across sparse long-tail catalog items.

6Divergence Metric Reductions

Evaluations show CASTLE reached an overall KL divergence score of 1.01 against actual user search traffic, representing a 9.2x improvement over Promptagator. Across granular property attribute categories, the system achieved a 0.08 divergence score, outperforming the raw 0.09 score measured on hand-curated research seed datasets.

7Expert Human Annotation Benchmarks

Subject matter experts validated generation quality through blind audits across 200 sampled synthetic search triplets. Three independent evaluators achieved 91 to 93 percent relevance agreement with the system assignments. This verified that contrastive generation creates production-grade retrieval supervision datasets without relying on manual labeling operations.

8Production Value and Conversational Scope

Beyond resolving platform cold starts, synthetic generation persistently enriches infrequent attribute combinations and rare property classifications within live traffic. Engineering teams are currently adapting this contrastive behavioral framework toward multi-turn conversational search, addressing complex multi-step user preference refinements across extended booking sessions.

Original article: The Airbnb Tech Blog - Medium — Airbnb Introduces CASTLE Framework for Natural Language Search Cold-Start Training