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

基于元学习与代表性 Verbalizer 的有效结构化提示

Effective Structured Prompting by Meta-Learning and Representative Verbalizer

Southern University of Science and Technology(南方科技大学);Hong Kong University of Science and Technology(香港科技大学);Peng Cheng Laboratory(鹏城实验室)

Weisen Jiang, Yu Zhang, James T. Kwok

AI总结:

针对预训练MLM提示微调中单一初始化不足及计算内存开销大的问题,提出利用元学习提示池和注意力机制构建实例依赖提示,并引入RepVerb直接构建标签嵌入,实现参数高效且性能更优的结构化提示框架MetaPrompter。

摘要:

针对预训练掩码语言模型(MLM)的提示微调在少样本标注场景下展现出良好的性能。它为下游任务微调提示,并使用 verbalizer 桥接预测 token 与标签预测。由于训练数据有限,提示初始化对提示微调至关重要。最近,MetaPrompting (Hou et al., 2022) 利用元学习为所有特定任务的提示学习一个共享初始化。然而,当任务复杂时,单一初始化不足以在所有任务和样本上获得良好提示。此外,MetaPrompting 需要微调整个 MLM,由于 MLM 通常很大,这造成了沉重的计算和内存负担。为了解决这些问题,我们使用提示池提取更多任务知识,并通过注意力机制构建依赖实例的提示。我们进一步提出了一种新颖的软 verbalizer(RepVerb),它直接从特征嵌入构建标签嵌入。结合提示池的元学习与 RepVerb,我们提出了用于有效结构化提示的 MetaPrompter。MetaPrompter 具有参数高效性,因为只需微调提示池。实验结果表明,MetaPrompter 的表现优于近期最优方法,且 RepVerb 优于现有的软 verbalizer。

英文摘要:

Prompt tuning for pre-trained masked language models (MLM) has shown promising performance in natural language processing tasks with few labeled examples. It tunes a prompt for the downstream task, and a verbalizer is used to bridge the predicted token and label prediction. Due to the limited training data, prompt initialization is crucial for prompt tuning. Recently, MetaPrompting (Hou et al., 2022) uses meta-learning to learn a shared initialization for all task-specific prompts. However, a single initialization is insufficient to obtain good prompts for all tasks and samples when the tasks are complex. Moreover, MetaPrompting requires tuning the whole MLM, causing a heavy burden on computation and memory as the MLM is usually large. To address these issues, we use a prompt pool to extract more task knowledge and construct instance-dependent prompts via attention. We further propose a novel soft verbalizer (RepVerb) which constructs label embedding from feature embeddings directly. Combining meta-learning the prompt pool and RepVerb, we propose MetaPrompter for effective structured prompting. MetaPrompter is parameter-efficient as only the pool is required to be tuned. Experimental results demonstrate that MetaPrompter performs better than the recent state-of-the-arts and RepVerb outperforms existing soft verbalizers.

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

↑