arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.20097cs.CL
收藏

S2LPP:跨大语言模型的小到大的提示预测

S2LPP: Small-to-Large Prompt Prediction across LLMs

University of Edinburgh(爱丁堡大学);Amazon Alexa AI(亚马逊Alexa人工智能);HKUST(香港科技大学)

Liang Cheng, Tianyi LI, Zhaowei Wang, Mark Steedman

AI总结:

本研究提出S2LPP方法,利用不同规模LLM的提示偏好一致性,通过小模型为大模型选择有效提示模板,降低成本并保持性能,在十四个LLM和多种NLP任务上验证了鲁棒性。

摘要:

预训练大语言模型(LLMs)的性能通常对提示模板中的细微差别敏感,需要仔细的提示工程,增加了计算和人力成本。在本研究中,我们进行了涵盖多个不同规模LLM变体的实验,旨在探究它们对不同提示的偏好。通过问答实验,我们展示了不同规模LLM之间的提示偏好一致性。我们还表明,这种一致性扩展到其他任务,如自然语言推理。利用这种一致性,我们提出了一种方法,使用较小的模型为较大的模型选择有效的提示模板。我们表明,我们的方法大幅降低了提示工程的成本,同时始终匹配候选提示中的最优性能。更重要的是,我们的实验证明了我们的策略在十四个LLM上的有效性及其对广泛NLP任务的适用性,突显了其鲁棒性。

英文摘要:

The performance of pre-trained Large Language Models (LLMs) is often sensitive to nuances in prompt templates, requiring careful prompt engineering, adding costs in terms of computing and human effort. In this study, we present experiments encompassing multiple LLMs variants of varying sizes aimed at probing their preference with different prompts. Through experiments on Question Answering, we show prompt preference consistency across LLMs of different sizes. We also show that this consistency extends to other tasks, such as Natural Language Inference. Utilizing this consistency, we propose a method to use a smaller model to select effective prompt templates for a larger model. We show that our method substantially reduces the cost of prompt engineering while consistently matching performance with optimal prompts among candidates. More importantly, our experiment shows the efficacy of our strategy across fourteen LLMs and its applicability to a broad range of NLP tasks, highlighting its robustness

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

↑