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

序列间模型标记序列的自动生成

Automatic Label Sequence Generation for Prompting Sequence-to-sequence Models

Tsinghua University(清华大学);Princeton University(普林斯顿大学);Renmin University of China(中国人民大学);Tencent Inc(腾讯公司);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);International Innovation Center of Tsinghua University(清华大学国际创新中心);Beijing Academy of Artificial Intelligence(北京人工智能研究院)

Zichun Yu, Tianyu Gao, Zhengyan Zhang, Yankai Lin, Zhiyuan Liu, Maosong Sun, Jie Zhou

摘要:

与使用预训练模型进行标准微调相比,将下游应用程序转换为语言建模任务的调优已被证明是样本高效的。然而,提示的一个缺陷是需要手动设计的模式,其结果可能不直观,并且需要大型验证集进行调优。为了应对这一挑战,我们提出了AutoSeq,一种全自动提示方法:(1)我们在序列到序列模型上采用自然语言提示,允许自由形式的生成和更大的标签搜索空间;(2)我们提出了标签序列-具有不定长度的短语来描述标签-它消除了手动模板的需要,比单个标签词更具表达力;(3)利用束搜索自动生成大量的标签序列候选,并提出了对比重排序的方法来获得最佳组合。AutoSeq显著优于其他非手动设计方法,例如软提示微调、适配器调优和对单个标签词的自动搜索;在各种任务中,生成的标签序列甚至优于策划的手动序列。我们的方法揭示了序列到序列模型在少样本学习中的潜力,并揭示了一条通往通用和自动提示的道路。本文的源代码可以从https://github.com/thunlp/Seq2Seq-Prompt获得。

英文摘要:

Prompting, which casts downstream applications as language modeling tasks, has shown to be sample efficient compared to standard fine-tuning with pre-trained models. However, one pitfall of prompting is the need of manually-designed patterns, whose outcome can be unintuitive and requires large validation sets to tune. To tackle the challenge, we propose AutoSeq, a fully automatic prompting method: (1) We adopt natural language prompts on sequence-to-sequence models, enabling free-form generation and larger label search space; (2) We propose label sequences -- phrases with indefinite lengths to verbalize the labels -- which eliminate the need of manual templates and are more expressive than single label words; (3) We use beam search to automatically generate a large amount of label sequence candidates and propose contrastive re-ranking to get the best combinations. AutoSeq significantly outperforms other no-manual-design methods, such as soft prompt tuning, adapter tuning, and automatic search on single label words; the generated label sequences are even better than curated manual ones on a variety of tasks. Our method reveals the potential of sequence-to-sequence models in few-shot learning and sheds light on a path to generic and automatic prompting. The source code of this paper can be obtained from https://github.com/thunlp/Seq2Seq-Prompt.

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

↑