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

Embroid:无监督预测平滑可提升少样本分类性能

Embroid: Unsupervised Prediction Smoothing Can Improve Few-Shot Classification

Stanford University(斯坦福大学);Anthropic;University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Neel Guha, Mayee F. Chen, Kush Bhatia, Azalia Mirhoseini, Frederic Sala, Christopher Ré

AI总结:

本研究提出无监督预测平滑方法Embroid,通过多嵌入表示的邻域预测一致性修正语言模型提示预测结果,无需额外标注数据即可提升少样本分类性能,适配多种模型与提示策略及特定领域。

摘要:

近期研究表明,语言模型(LMs)基于提示的学习能力使其非常适合在人工标注成本高昂的领域实现数据标注自动化。但目前存在的挑战是:尽管编写初始提示的成本很低,优化提示的成本却很高——从业者通常需要大量标注数据才能评估提示修改的效果。本研究探讨了是否有可能在无需额外标注数据的情况下提升基于提示的学习效果。我们通过修改提示生成的预测结果而非提示本身来解决这一问题,核心直觉是:准确的预测应当具备一致性——在某种特征表示下相似的样本,应当得到相同的提示预测结果。我们提出了Embroid方法,该方法通过不同的嵌入函数计算数据集的多种表示,利用邻域样本的语言模型预测一致性来识别错误预测。随后,Embroid利用这些邻域为每个样本生成额外预测,并通过一个简单的潜变量图模型整合这些预测,最终生成修正后的预测结果。除了对Embroid进行理论分析外,我们还在6种不同的语言模型、最多95项不同任务上开展了严格的实证评估。研究发现:(1)Embroid相比原始提示大幅提升了性能(例如在GPT-JT上平均提升7.3个点);(2)对思维链等更复杂的提示策略也能实现性能提升;(3)可通过嵌入函数适配法律等特定领域。

英文摘要:

Recent work has shown that language models' (LMs) prompt-based learning capabilities make them well suited for automating data labeling in domains where manual annotation is expensive. The challenge is that while writing an initial prompt is cheap, improving a prompt is costly -- practitioners often require significant labeled data in order to evaluate the impact of prompt modifications. Our work asks whether it is possible to improve prompt-based learning without additional labeled data. We approach this problem by attempting to modify the predictions of a prompt, rather than the prompt itself. Our intuition is that accurate predictions should also be consistent: samples which are similar under some feature representation should receive the same prompt prediction. We propose Embroid, a method which computes multiple representations of a dataset under different embedding functions, and uses the consistency between the LM predictions for neighboring samples to identify mispredictions. Embroid then uses these neighborhoods to create additional predictions for each sample, and combines these predictions with a simple latent variable graphical model in order to generate a final corrected prediction. In addition to providing a theoretical analysis of Embroid, we conduct a rigorous empirical evaluation across six different LMs and up to 95 different tasks. We find that (1) Embroid substantially improves performance over original prompts (e.g., by an average of 7.3 points on GPT-JT), (2) also realizes improvements for more sophisticated prompting strategies (e.g., chain-of-thought), and (3) can be specialized to domains like law through the embedding functions.

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

↑