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

用于提示的对话:一种基于策略梯度的少样本学习离散提示生成方法

Dialogue for Prompting: a Policy-Gradient-Based Discrete Prompt Generation for Few-shot Learning

Xi’an Jiaotong University(西安交通大学)

Chengzhengxu Li, Xiaoming Liu, Yichen Wang, Duyi Li, Yu Lan, Chao Shen

AI总结:

本文提出DP2O方法,通过GPT-4多轮对话生成可读提示、线性复杂度筛选高质量提示,并用策略梯度强化学习框架匹配提示与输入,在少样本任务中以极小参数量超越SOTA方法。

摘要:

基于提示的预训练语言模型(PLMs)范式在少样本自然语言处理(NLP)任务中取得了显著成功。然而,先前的离散提示优化方法需要专家知识来设计基础提示集并识别高质量提示,这既昂贵、低效又具有主观性。与此同时,现有的连续提示优化方法通过PLMs的梯度信息学习理想提示来提升性能,但其高计算成本、低可读性和低泛化性常常令人担忧。为填补这一研究空白,我们提出了一种由对话组成的基于策略梯度的离散提示优化($DP_2O$)方法。我们首先基于GPT-4设计了一种多轮对话对齐策略,用于生成可读性提示集。此外,我们提出了一种高效的提示筛选度量,以线性复杂度识别高质量提示。最后,我们构建了一个基于策略梯度的强化学习(RL)框架,以最优地将提示与输入匹配。通过在少样本设置下的任务上训练一个仅占PLM参数规模0.67%的策略网络,$DP_2O$在四个开源数据集上的平均准确率比最先进(SOTA)方法高出1.52%。此外,后续实验还表明,$DP_2O$具有良好的通用性、鲁棒性和泛化能力。

英文摘要:

Prompt-based pre-trained language models (PLMs) paradigm have succeeded substantially in few-shot natural language processing (NLP) tasks. However, prior discrete prompt optimization methods require expert knowledge to design the base prompt set and identify high-quality prompts, which is costly, inefficient, and subjective. Meanwhile, existing continuous prompt optimization methods improve the performance by learning the ideal prompts through the gradient information of PLMs, whose high computational cost, and low readability and generalizability are often concerning. To address the research gap, we propose a Dialogue-comprised Policy-gradient-based Discrete Prompt Optimization ($DP_2O$) method. We first design a multi-round dialogue alignment strategy for readability prompt set generation based on GPT-4. Furthermore, we propose an efficient prompt screening metric to identify high-quality prompts with linear complexity. Finally, we construct a reinforcement learning (RL) framework based on policy gradients to match the prompts to inputs optimally. By training a policy network with only 0.67% of the PLM parameter size on the tasks in the few-shot setting, $DP_2O$ outperforms the state-of-the-art (SOTA) method by 1.52% in accuracy on average on four open-source datasets. Moreover, subsequent experiments also demonstrate that $DP_2O$ has good universality, robustness, and generalization ability.

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

↑