arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07652cs.CL
收藏

StablePrompt:针对大型语言模型使用强化学习的自动提示调优

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

KAIST(韩国科学技术院)

Minchan Kwon, Gaeun Kim, Jongsuk Kim, Haeil Lee, Junmo Kim

AI总结:

针对LLM提示调优中RL的不稳定性,提出StablePrompt框架,通过引入APPO算法和LLM锚定模型自适应调整策略更新,在保持语言能力的同时实现灵活搜索,在多任务上表现优异。

摘要:

随着大型语言模型(LLM)的广泛使用,为特定任务寻找合适的提示已成为一个重要问题。强化学习(RL)被广泛用于提示调优,但其固有的不稳定性与环境依赖性使其在实际中难以应用。本文提出StablePrompt,在训练稳定性与搜索空间之间取得平衡,缓解RL的不稳定性并生成高性能提示。我们将提示调优表述为智能体与目标LLM之间的在线RL问题,并引入自适应近端策略优化(APPO)。APPO引入LLM锚定模型以自适应地调整策略更新速率。这使得在保留预训练LLM语言能力的同时进行灵活的提示搜索。StablePrompt在包括文本分类、问答和文本生成在内的多种任务上优于先前的方法。代码可在github获取。

英文摘要:

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.

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

↑