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

Self-Prompt Tuning:使大语言模型具备自主角色扮演能力

Self-Prompt Tuning: Enable Autonomous Role-Playing in LLMs

Nankai University(南开大学);Lenovo Research(联想研究院)

Aobo Kong, Shiwan Zhao, Hao Chen, Qicheng Li, Yong Qin, Ruiqi Sun, Xin Zhou, Jiaming Zhou, Haoqin Sun

AI总结:

针对角色扮演提示需人工设计的问题,提出自提示微调方法,构建LIMA-Role数据集微调LLMs,使其能自动生成专家角色提示,在多数NLP基准上性能优于标准指令微调基线。

摘要:

大语言模型(LLMs)的最新进展展现出其卓越的角色扮演能力,能够根据不同指令和上下文准确模拟各类角色的对话风格与认知过程。研究表明,为LLMs分配专家角色——这一策略被称为角色扮演提示(role-play prompting)——可提升其在对应领域的表现。但针对给定问题的提示需要人工设计,要求具备一定专业知识且需反复修改。为此,我们提出self-prompt tuning(自提示微调),通过微调让LLMs自行生成角色扮演提示。我们以LIMA数据集为基础语料,使用GPT-4为每个数据点标注角色扮演提示,构建出LIMA-Role数据集。随后我们在LIMA-Role上微调Llama-2-7B、Mistral-7B等LLMs。经自提示微调的LLMs可针对任意给定问题自动生成专家角色提示。我们在常用NLP基准和开放式问题测试中对自提示微调LLMs进行了广泛评估。实验结果显示,自提示微调LLMs在多数数据集上的表现优于标准指令微调基线,凸显了通过微调让LLMs实现自提示、从而自动化复杂提示策略的巨大潜力。我们在该网址发布了数据集、模型与代码:https://anonymous.4open.science/r/Self-Prompt-Tuning-739E/

英文摘要:

Recent advancements in LLMs have showcased their remarkable role-playing capabilities, able to accurately simulate the dialogue styles and cognitive processes of various roles based on different instructions and contexts. Studies indicate that assigning LLMs the roles of experts, a strategy known as role-play prompting, can enhance their performance in the corresponding domains. However, the prompt needs to be manually designed for the given problem, requiring certain expertise and iterative modifications. To this end, we propose self-prompt tuning, making LLMs themselves generate role-play prompts through fine-tuning. Leveraging the LIMA dataset as our foundational corpus, we employ GPT-4 to annotate role-play prompts for each data points, resulting in the creation of the LIMA-Role dataset. We then fine-tune LLMs like Llama-2-7B and Mistral-7B on LIMA-Role. Consequently, the self-prompt tuned LLMs can automatically generate expert role prompts for any given question. We extensively evaluate self-prompt tuned LLMs on widely used NLP benchmarks and open-ended question test. Our empirical results illustrate that self-prompt tuned LLMs outperform standard instruction tuned baselines across most datasets. This highlights the great potential of utilizing fine-tuning to enable LLMs to self-prompt, thereby automating complex prompting strategies. We release the dataset, models, and code at this \href{https://anonymous.4open.science/r/Self-Prompt-Tuning-739E/}{url}.

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

↑