InPars 工具包:面向神经信息检索的统一且可复现的合成数据生成流水线
InPars Toolkit: A Unified and Reproducible Synthetic Data Generation Pipeline for Neural Information Retrieval
AI总结:
本文提出统一的 InPars 工具包,通过集成生成、过滤、训练与评估流程,并支持 GPU 和即插即用不同 LLMs 及重排序模型,解决了基于 LLM 的 IR 合成数据方法可复现性差的问题,同时公开了 BEIR 18 个数据集超过 2000 GPU 小时生成的合成数据。
摘要:
近期研究探索了利用大型语言模型(LLMs)来克服信息检索(IR)任务中训练数据不足的问题。这些模型的泛化能力使得通过在提示中提供指令和少量示例即可创建领域内合成数据成为可能。InPars 和 Promptagator 率先采用了这一方法,两种方法都展示了将 LLMs 用作 IR 任务合成数据生成器的潜力。这使得它们成为解决缺乏标注数据的 IR 任务的一种有吸引力的方案。然而,这些方法的可复现性受到限制,因为 InPars 的训练脚本基于 TPU——而 TPU 并不广泛可得——并且 Promptagator 的代码未发布,其专有 LLM 也无法公开访问。为了充分发挥这些方法的潜力并使其在研究界产生更广泛的影响,相关资源需要便于研究人员和从业者获取和复现。我们的主要贡献是提供了一个统一的工具包,用于端到端可复现的合成数据生成研究,包括生成、过滤、训练和评估。此外,我们提供了与社区广泛使用的 IR 库的接口,并支持 GPU。我们的工具包不仅复现了 InPars 方法并部分复现了 Promptagator,还提供了即插即用功能,允许使用不同的 LLMs、探索过滤方法以及在生成的数据上微调各种重排序模型。我们还公开了本工作中为 BEIR 基准中的 18 个不同数据集生成的所有合成数据,这些数据的生成耗时超过 2,000 个 GPU 小时,以及在这些合成数据上微调的重排序模型。代码和数据可在 https://github.com/zetaalphavector/InPars 获取。
英文摘要:
Recent work has explored Large Language Models (LLMs) to overcome the lack of training data for Information Retrieval (IR) tasks. The generalization abilities of these models have enabled the creation of synthetic in-domain data by providing instructions and a few examples on a prompt. InPars and Promptagator have pioneered this approach and both methods have demonstrated the potential of using LLMs as synthetic data generators for IR tasks. This makes them an attractive solution for IR tasks that suffer from a lack of annotated data. However, the reproducibility of these methods was limited, because InPars' training scripts are based on TPUs -- which are not widely accessible -- and because the code for Promptagator was not released and its proprietary LLM is not publicly accessible. To fully realize the potential of these methods and make their impact more widespread in the research community, the resources need to be accessible and easy to reproduce by researchers and practitioners. Our main contribution is a unified toolkit for end-to-end reproducible synthetic data generation research, which includes generation, filtering, training and evaluation. Additionally, we provide an interface to IR libraries widely used by the community and support for GPU. Our toolkit not only reproduces the InPars method and partially reproduces Promptagator, but also provides a plug-and-play functionality allowing the use of different LLMs, exploring filtering methods and finetuning various reranker models on the generated data. We also made available all the synthetic data generated in this work for the 18 different datasets in the BEIR benchmark which took more than 2,000 GPU hours to be generated as well as the reranker models finetuned on the synthetic data. Code and data are available at https://github.com/zetaalphavector/InPars
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。