StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Kwon, Minchan, Kim, Gaeun, Kim, Jongsuk, Lee, Haeil, Kim, Junmo
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913540098490368
author Kwon, Minchan
Kim, Gaeun
Kim, Jongsuk
Lee, Haeil
Kim, Junmo
author_facet Kwon, Minchan
Kim, Gaeun
Kim, Jongsuk
Lee, Haeil
Kim, Junmo
contents Finding appropriate prompts for the specific task has become an important issue as the usage of Large Language Models (LLM) has expanded. Reinforcement Learning (RL) is widely used for prompt tuning, but its inherent instability and environmental dependency make it difficult to use in practice. In this paper, we propose StablePrompt, which strikes a balance between training stability and search space, mitigating the instability of RL and producing high-performance prompts. We formulate prompt tuning as an online RL problem between the agent and target LLM and introduce Adaptive Proximal Policy Optimization (APPO). APPO introduces an LLM anchor model to adaptively adjust the rate of policy updates. This allows for flexible prompt search while preserving the linguistic ability of the pre-trained LLM. StablePrompt outperforms previous methods on various tasks including text classification, question answering, and text generation. Our code can be found in github.
format Preprint
id arxiv_https___arxiv_org_abs_2410_07652
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models
Kwon, Minchan
Kim, Gaeun
Kim, Jongsuk
Lee, Haeil
Kim, Junmo
Computation and Language
Finding appropriate prompts for the specific task has become an important issue as the usage of Large Language Models (LLM) has expanded. Reinforcement Learning (RL) is widely used for prompt tuning, but its inherent instability and environmental dependency make it difficult to use in practice. In this paper, we propose StablePrompt, which strikes a balance between training stability and search space, mitigating the instability of RL and producing high-performance prompts. We formulate prompt tuning as an online RL problem between the agent and target LLM and introduce Adaptive Proximal Policy Optimization (APPO). APPO introduces an LLM anchor model to adaptively adjust the rate of policy updates. This allows for flexible prompt search while preserving the linguistic ability of the pre-trained LLM. StablePrompt outperforms previous methods on various tasks including text classification, question answering, and text generation. Our code can be found in github.
title StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2410.07652