arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.11811cs.CL
收藏

FIPO:基于偏好数据集与模块化微调范式的自由形式指令导向提示优化

FIPO: Free-form Instruction-oriented Prompt Optimization with Preference Dataset and Modular Fine-tuning Schema

University of Warwick(华威大学);Tecent YouTu Lab(腾讯优酷实验室);East China Normal University(华东师范大学);King’s College London(伦敦国王学院);The Alan Turing Institute(艾伦·图灵研究所)

Junru Lu, Siyu An, Min Zhang, Yulan He, Di Yin, Xing Sun

AI总结:

针对现有自动提示优化泛化差、有隐私风险的问题,提出FIPO框架,构建首个大规模POP偏好数据集,采用模块化模板与离线微调策略,实现模型无关的指令导向提示优化,在多基准多模型上验证了有效性。

摘要:

当人类专家对初始提示的质量进行精心优化时,大语言模型(LLM)的任务性能可得到显著提升。然而,基于专家的提示优化成本高昂。对此,已有研究提出自动提示优化(APO),借助先进大语言模型(如GPT-4)以临时方式,根据给定内置测试模型的任务输出来优化初始提示。现有方案虽有效,但存在泛化能力差和隐私风险的问题。为此,我们收集了首个大规模提示优化偏好数据集(POP),对基于离线本地大语言模型的优化器进行微调,随后在多种下游模型上开展公平测试。我们的方法能够以模型无关的方式精准优化初始提示中的核心任务指令部分,因此被命名为自由形式指令导向提示优化(FIPO)。具体而言,FIPO采用模块化APO模板,动态整合初始任务指令、可选指令响应和可选真值,生成精细优化的提示。POP数据集由先进大语言模型精心构建,并经过人类专家与分析模型的严格交叉验证。结合Tulu2模型与多样化微调策略从数据中挖掘的洞见,我们在5个公开基准和6个测试模型上验证了FIPO框架的有效性。代码与数据可查看:https://github.com/LuJunru/FIPO_Project。

英文摘要:

When the quality of naive prompts is carefully optimized by human experts, the task performance of large language models (LLMs) can be significantly improved. However, expert-based prompt optimizations are expensive. Herein, some works have proposed Automatic Prompt Optimization (APO), to optimize naive prompts according to task outputs of given in-box testing models, with the help of advanced LLMs (e.g., GPT-4) in an ad-hoc way. Although effective, existing schemes suffer from poor generalization ability and privacy risk. To this end, we collect the first large-scale Prompt Optimization Preference dataset (POP), fine-tune offline local LLM-based optimizers, then fairly test with various downstream models. Our method allows accurate optimization of the core task instruction part within the naive prompt in a model-agnostic manner, and thus is named Free-from Instruction-oriented Prompt Optimization (FIPO). In specific, FIPO uses a modular APO template that dynamically integrate the naive task instruction, optional instruction responses, and optional ground truth to produce finely optimized prompts. The POP dataset is meticulously constructed using advanced LLMs, undergoing rigorous cross-validation by human experts and analytical models. Leveraging insights from the data with Tulu2 models and diverse fine-tuning strategies, we validate the efficacy of FIPO framework across five public benchmarks and six testing models. Check codes and data here: https://github.com/LuJunru/FIPO_Project.

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

↑