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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kong, Aobo, Zhao, Shiwan, Chen, Hao, Li, Qicheng, Qin, Yong, Sun, Ruiqi, Zhou, Xin, Zhou, Jiaming, Sun, Haoqin
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916320449134592
author Kong, Aobo
Zhao, Shiwan
Chen, Hao
Li, Qicheng
Qin, Yong
Sun, Ruiqi
Zhou, Xin
Zhou, Jiaming
Sun, Haoqin
author_facet Kong, Aobo
Zhao, Shiwan
Chen, Hao
Li, Qicheng
Qin, Yong
Sun, Ruiqi
Zhou, Xin
Zhou, Jiaming
Sun, Haoqin
contents 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}.
format Preprint
id arxiv_https___arxiv_org_abs_2407_08995
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Self-Prompt Tuning: Enable Autonomous Role-Playing in LLMs
Kong, Aobo
Zhao, Shiwan
Chen, Hao
Li, Qicheng
Qin, Yong
Sun, Ruiqi
Zhou, Xin
Zhou, Jiaming
Sun, Haoqin
Computation and Language
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}.
title Self-Prompt Tuning: Enable Autonomous Role-Playing in LLMs
topic Computation and Language
url https://arxiv.org/abs/2407.08995