Airbnb 研究人员推出了 CASTLE,这是一个旨在解决自然语言搜索冷启动问题的框架。该方法利用去标识化的预订会话和大语言模型(LLM),同时生成合成搜索查询和相关性标签,使团队能够在积累足够的真实搜索流量之前训练模型。
自然语言搜索允许房客使用日常语言描述自己的偏好,例如“滑雪场附近的浪漫小屋”或“可住八人且允许携带宠物的海滨住宅”,而不必完全依赖预定义筛选条件。训练这类系统面临两项挑战:生成能够反映真实用户行为的查询,以及确定哪些房源与每条查询相关。
InPars 和 Promptagator 等既有方法会将查询生成与相关性标注作为两项独立任务处理。它们先使用 LLM 根据文档或示例生成查询,再通过额外的模型判断分配相关性标签。研究人员认为,这种分离方式可能引入更多误差来源,并扩大合成查询与真实用户查询之间的分布差异。
CASTLE 使用从去标识化预订会话中提取的对比房源对。当房客查看多个备选房源后预订了其中一个时,被选中的房源会成为正样本,另一个看过但没有预订的房源则作为负样本。随后,系统通过提示 LLM 生成一条与正样本匹配、但与负样本不匹配的查询。这样,相关性标签便可以在构造数据的过程中确定,而无须再执行单独的评估步骤。
该框架结合了三种查询生成策略:基于模板的提示、使用约 500 条通过定向用户研究收集的种子查询进行少样本提示,以及聚焦于房源差异化特征的属性引导提示。系统还通过一种多样性机制,鼓励查询在长度和表达方式上产生变化。
对于缺乏足够预订历史的房源对,包括新上线的房源,CASTLE 会使用 Virtual Judge。这是一个基于 LLM 的评估器,可以为更多查询与房源组合分配相关性标签。研究人员还开发了 CASTLE-R,这是一个面向已经开始积累真实搜索流量的生产环境的变体。
在评估中,CASTLE 与真实用户查询分布之间的 Kullback–Leibler(KL)散度为 1.01,而表现最好的基线方案 Promptagator 为 9.33,相当于将散度降低了 9.2 倍。在属性类型层面,CASTLE 的 KL 散度为 0.08,而人工整理的调研种子查询为 0.09。
研究人员还开展了人工评估,由三名相互独立的领域专家审查 200 组抽样三元组。三名评估者与 CASTLE 相关性标注结果的一致率分别介于 91% 至 93% 之间。
这套评估方法也在 LinkedIn 上引发了讨论。专注于 LLM 微调与评估的 AI 工程师 Mark Tsai 提出了训练数据与评估数据可能重叠的问题:
训练集和评估集是否确保种子模板与房源 ID 互不重叠?对于合成三元组,我会比较随机划分与这种更严格的划分方式,然后在未使用过的真实查询上进行评估。这有助于区分模型究竟学会了可复用的“意图—属性”匹配关系,还是只是在识别熟悉的模板或房源。
文章作者 Wendy Ran Wei 回应称,团队使用未参与训练的真实查询对模型进行了评估,并在构建评估集时实施了防止数据泄漏的保护措施。她还说明,论文并未报告随机划分与种子模板、房源 ID 互不重叠的严格划分之间的受控对比,并认为这可以成为后续研究的方向。
完整论文已发布在 arXiv。
原文链接:
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
Airbnb researchers launched CASTLE, a framework designed to address the cold-start problem in natural language search. The method leverages de-identified booking sessions and large language models (LLM) to simultaneously generate synthetic search queries and relevance labels, enabling teams to train models before accumulating sufficient real search traffic.
Natural language search allows guests to describe their preferences in everyday language, such as "a romantic cabin near a ski resort" or "a waterfront property that sleeps eight and allows pets," without having to rely entirely on predefined filters. Training such systems faces two challenges: generating queries that reflect real user behavior, and determining which listings are relevant to each query.
Existing methods such as InPars and Promptagator treat query generation and relevance annotation as two separate tasks. They first use LLM to generate queries based on documents or examples, then rely on an additional model to assign relevance labels. The researchers argue that this separation can introduce more sources of error and widen the distribution gap between synthetic queries and real user queries.
CASTLE uses contrastive listing pairs extracted from de-identified booking sessions. When a guest browses multiple candidate listings and books one of them, the booked listing becomes the positive sample, while another listing that was viewed but not booked serves as the negative sample. The system then prompts LLM to generate a query that matches the positive sample but not the negative sample. This way, relevance labels can be determined during the data construction process, without the need for a separate evaluation step.
The framework combines three query generation strategies: template-based prompting, few-shot prompting using approximately 500 seed queries collected through targeted user research, and attribute-guided prompting that focuses on differentiating features of listings. The system also employs a diversity mechanism to encourage variation in query length and expression.
For listing pairs lacking sufficient booking history, including newly listed properties, CASTLE uses Virtual Judge. This is an LLM-based evaluator that can assign relevance labels to more query-listing combinations. The researchers also developed CASTLE-R, a variant for production environments that have already begun accumulating real search traffic.
In evaluation, CASTLE achieved a Kullback–Leibler (KL) divergence of 1.01 relative to the real user query distribution, compared to 9.33 for the best-performing baseline, Promptagator—equivalent to reducing the divergence by a factor of 9.2. At the attribute type level, CASTLE's KL divergence was 0.08, compared to 0.09 for manually curated research seed queries.
The researchers also conducted a human evaluation, in which three independent domain experts reviewed 200 sampled triplets. The three evaluators agreed with CASTLE's relevance annotations at rates between 91% and 93%.
This evaluation methodology also sparked discussion on LinkedIn. Mark Tsai, an AI engineer focused on LLM fine-tuning and evaluation, raised the question of potential overlap between training data and evaluation data:
Are the training set and evaluation set ensuring that seed templates and listing IDs do not overlap? For synthetic triplets, I would compare a random split with this stricter split and then evaluate on unseen real queries. This helps distinguish whether the model has learned reusable "intent-attribute" matching relationships or is simply recognizing familiar templates or listings.
Article author Wendy Ran Wei responded that the team evaluated the model using real queries that were not involved in training and implemented safeguards against data leakage when constructing the evaluation set. She also noted that the paper did not report a controlled comparison between a random split and the strict split in which seed templates and listing IDs do not overlap, and suggested this could be a direction for future research.
The full paper has been published on arXiv.
Original link:
Auto-fetched and translated by AI Atlas. All rights belong to the original author.