arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.08303cs.IRcs.AIcs.CLcs.LG
收藏

利用软提示调优增强基于大语言模型的稠密检索

Soft Prompt Tuning for Augmenting Dense Retrieval with Large Language Models

Santa Clara University(圣克拉拉大学);Meta AI

Zhiyuan Peng, Xuyang Wu, Qifan Wang, Yi Fang

AI总结:

针对领域训练数据不足及硬提示生成弱查询质量有限的问题,本文提出SPTAR,通过软提示调优和示例过滤生成高质量弱文档-查询对,提升任务特定稠密检索性能。

摘要:

稠密检索(DR)将查询和文档转换为稠密嵌入,并在向量空间中度量查询与文档之间的相似性。DR面临的挑战之一是缺乏特定领域的训练数据。尽管DR模型可以通过迁移学习从MS MARCO等大规模公共数据集中学习,但证据表明,并非所有DR模型和领域都能同等地从迁移学习中受益。近来,一些研究人员借助大语言模型(LLM)来改进零样本和少样本DR模型。然而,这些工作使用的硬提示或人工编写提示无法保证所生成弱查询的良好质量。为解决该问题,我们提出了用于增强DR的软提示调优方法SPTAR:对于每个任务,我们利用软提示调优在有限的真值数据上优化一个任务特定的软提示,随后提示LLM为未标注文档标注弱查询,从而生成足够多的弱文档-查询对,以训练任务特定的稠密检索器。我们设计了一个过滤器,用于选择提示中的高质量示例文档-查询对,以进一步提升弱标注查询的质量。据我们所知,此前尚无利用软提示调优来增强DR模型的工作。实验表明,SPTAR优于无监督基线BM25以及近期提出的基于LLM的DR增强方法。

英文摘要:

Dense retrieval (DR) converts queries and documents into dense embeddings and measures the similarity between queries and documents in vector space. One of the challenges in DR is the lack of domain-specific training data. While DR models can learn from large-scale public datasets like MS MARCO through transfer learning, evidence shows that not all DR models and domains can benefit from transfer learning equally. Recently, some researchers have resorted to large language models (LLMs) to improve the zero-shot and few-shot DR models. However, the hard prompts or human-written prompts utilized in these works cannot guarantee the good quality of generated weak queries. To tackle this, we propose soft prompt tuning for augmenting DR (SPTAR): For each task, we leverage soft prompt-tuning to optimize a task-specific soft prompt on limited ground truth data and then prompt the LLMs to tag unlabeled documents with weak queries, yielding enough weak document-query pairs to train task-specific dense retrievers. We design a filter to select high-quality example document-query pairs in the prompt to further improve the quality of weak tagged queries. To the best of our knowledge, there is no prior work utilizing soft prompt tuning to augment DR models. The experiments demonstrate that SPTAR outperforms the unsupervised baselines BM25 and the recently proposed LLMs-based augmentation method for DR.

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

↑