arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.09770cs.CLcs.LG

Prototypical Verbalizer for Prompt-based Few-shot Tuning

Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Alibaba Group(阿里巴巴集团);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院)

Ganqu Cui, Shengding Hu, Ning Ding, Longtao Huang, Zhiyuan Liu

英文摘要:

Prompt-based tuning for pre-trained language models (PLMs) has shown its effectiveness in few-shot learning. Typically, prompt-based tuning wraps the input text into a cloze question. To make predictions, the model maps the output words to labels via a verbalizer, which is either manually designed or automatically built. However, manual verbalizers heavily depend on domain-specific prior knowledge and human efforts, while finding appropriate label words automatically still remains challenging.In this work, we propose the prototypical verbalizer (ProtoVerb) which is built directly from training data. Specifically, ProtoVerb learns prototype vectors as verbalizers by contrastive learning. In this way, the prototypes summarize training instances and are able to enclose rich class-level semantics. We conduct experiments on both topic classification and entity typing tasks, and the results demonstrate that ProtoVerb significantly outperforms current automatic verbalizers, especially when training data is extremely scarce. More surprisingly, ProtoVerb consistently boosts prompt-based tuning even on untuned PLMs, indicating an elegant non-tuning way to utilize PLMs. Our codes are avaliable at https://github.com/thunlp/OpenPrompt.

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

↑