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

APEER:自动提示工程增强大语言模型重排序

APEER: Automatic Prompt Engineering Enhances Large Language Model Reranking

Rutgers University(新泽西罗格斯大学);University of Connecticut(康涅狄格大学)

Can Jin, Hongwu Peng, Shiyu Zhao, Zhenting Wang, Wujiang Xu, Ligong Han, Jiahui Zhao, Kai Zhong, Sanguthevar Rajasekaran, Dimitris N. Metaxas

AI总结:

针对大语言模型重排序依赖人工提示工程、现有自动提示算法适配性不足的问题,提出基于反馈与偏好优化的自动提示算法APEER,实验证明其性能优于现有最先进人工提示,且迁移性更佳。

摘要:

大语言模型(LLMs)已显著提升了信息检索(IR)各模块(如重排序)的性能。尽管表现亮眼,当前基于LLMs的零样本相关性排序严重依赖人工提示工程。现有自动提示工程算法主要聚焦于语言建模和分类任务,信息检索领域尤其是重排序方向的研究仍不充分。由于输入融合了查询与长文本对,排序复杂度高于分类任务,直接将现有提示工程算法应用于相关性排序存在挑战。为减少人工投入并释放提示优化在重排序中的潜力,我们提出一种名为APEER的新型自动提示工程算法。APEER通过反馈与偏好优化迭代生成优化后的提示。基于4个LLM和10个数据集的大量实验表明,APEER的性能较现有最先进(SoTA)人工提示有显著提升。此外,我们发现APEER生成的提示在不同任务和LLM间具备更好的迁移性。

英文摘要:

Large Language Models (LLMs) have significantly enhanced Information Retrieval (IR) across various modules, such as reranking. Despite impressive performance, current zero-shot relevance ranking with LLMs heavily relies on human prompt engineering. Existing automatic prompt engineering algorithms primarily focus on language modeling and classification tasks, leaving the domain of IR, particularly reranking, underexplored. Directly applying current prompt engineering algorithms to relevance ranking is challenging due to the integration of query and long passage pairs in the input, where the ranking complexity surpasses classification tasks. To reduce human effort and unlock the potential of prompt optimization in reranking, we introduce a novel automatic prompt engineering algorithm named APEER. APEER iteratively generates refined prompts through feedback and preference optimization. Extensive experiments with four LLMs and ten datasets demonstrate the substantial performance improvement of APEER over existing state-of-the-art (SoTA) manual prompts. Furthermore, we find that the prompts generated by APEER exhibit better transferability across diverse tasks and LLMs.

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

↑