arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.12701cs.CL
收藏

Trigger$^3$:通过自适应模型选择器优化查询纠正

Trigger$^3$: Refining Query Correction via Adaptive Model Selector

Kuaishou(快手)

Kepu Zhang, Zhongxiang Sun, Xiao Zhang, Xiaoxue Zang, Kai Zheng, Yang Song, Jun Xu

AI总结:

提出Trigger$^3$大小模型协作框架,通过自适应选择传统模型或LLM进行查询纠正,并设回退机制,实验证明其优于基线且保持高效。

摘要:

在搜索场景中,由于拼写错误、语音错误或知识空白导致的错误查询会损害用户体验。因此,查询纠正对于搜索引擎至关重要。当前的纠正模型通常是针对特定数据训练的小型模型,往往难以处理超出其训练范围或需要上下文理解的查询。虽然大型语言模型(LLMs)的出现提供了潜在解决方案,但它们仍受限于预训练数据和推理成本,特别是对于复杂查询,使其并非总能有效用于查询纠正。为解决这些问题,我们提出了Trigger$^3$,一种大小模型协作框架,集成了传统纠正模型和LLM进行查询纠正,能够根据查询以及传统纠正模型和LLM的纠正结果自适应地选择合适的纠正方法。Trigger$^3$首先使用纠正触发器过滤掉正确的查询。然后,错误的查询由传统纠正模型进行纠正。如果这失败,则激活LLM触发器以调用LLM进行纠正。最后,对于任何模型都无法纠正的查询,回退触发器决定返回原始查询。大量实验表明,Trigger$^3$在保持效率的同时优于纠正基线。

英文摘要:

In search scenarios, user experience can be hindered by erroneous queries due to typos, voice errors, or knowledge gaps. Therefore, query correction is crucial for search engines. Current correction models, usually small models trained on specific data, often struggle with queries beyond their training scope or those requiring contextual understanding. While the advent of Large Language Models (LLMs) offers a potential solution, they are still limited by their pre-training data and inference cost, particularly for complex queries, making them not always effective for query correction. To tackle these, we propose Trigger$^3$, a large-small model collaboration framework that integrates the traditional correction model and LLM for query correction, capable of adaptively choosing the appropriate correction method based on the query and the correction results from the traditional correction model and LLM. Trigger$^3$ first employs a correction trigger to filter out correct queries. Incorrect queries are then corrected by the traditional correction model. If this fails, an LLM trigger is activated to call the LLM for correction. Finally, for queries that no model can correct, a fallback trigger decides to return the original query. Extensive experiments demonstrate Trigger$^3$ outperforms correction baselines while maintaining efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑