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

用于自然语言理解的矢量量化输入上下文化软语言

Vector-Quantized Input-Contextualized Soft Prompts for Natural Language Understanding

Salesforce Research(赛富时研究院);Singapore University of Technology and Design(新加坡科技设计大学)

Rishabh Bhardwaj, Amrita Saha, Steven C. H. Hoi, Soujanya Poria

摘要:

作为一种调节大规模预训练的语言模型以执行下游任务的参数高效方法,提示微调在很大程度上取得了成功。到目前为止,软提示微调学习任务特定的连续向量的固定集合,即,在任务样本中保持静态的软令牌。然而,固定的提示可能无法很好地推广到任务所包含的各种输入。为了解决这一问题,我们提出了矢量量化的输入上下文化调优器(VIP)作为软提示微调框架的扩展。VIP特别关注两个方面--上下文提示,其通过小规模句子编码器学习软提示令牌的输入特定上下文化,以及量化提示,其通过矢量量化网络将上下文化提示映射到一组可学习的码本矢量。在各种语言理解任务上,如SuperGLUE,QA,关系分类,NER和NLI,VIP的表现优于软提示微调(PT)基线的平均幅度为1.19%。此外,我们的泛化研究表明,VIP学习更强大的提示表示,在Out-of-domain QA和NLI任务上分别超过PT 0.6% - 5.3%,在跨12个域的4个任务的多任务设置上超过PT 0.75%。

英文摘要:

Prompt Tuning has been largely successful as a parameter-efficient method of conditioning large-scale pre-trained language models to perform downstream tasks. Thus far, soft prompt tuning learns a fixed set of task-specific continuous vectors, i.e., soft tokens that remain static across the task samples. A fixed prompt, however, may not generalize well to the diverse kinds of inputs the task comprises. In order to address this, we propose Vector-quantized Input-contextualized Prompts (VIP) as an extension to the soft prompt tuning framework. VIP particularly focuses on two aspects -- contextual prompts that learns input-specific contextualization of the soft prompt tokens through a small-scale sentence encoder and quantized prompts that maps the contextualized prompts to a set of learnable codebook vectors through a Vector quantization network. On various language understanding tasks like SuperGLUE, QA, Relation classification, NER and NLI, VIP outperforms the soft prompt tuning (PT) baseline by an average margin of 1.19%. Further, our generalization studies show that VIP learns more robust prompt representations, surpassing PT by a margin of 0.6% - 5.3% on Out-of-domain QA and NLI tasks respectively, and by 0.75% on Multi-Task setup over 4 tasks spanning across 12 domains.

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

↑