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

通过隐式演示增强提升上下文学习

Enhancing In-Context Learning via Implicit Demonstration Augmentation

National Engineering Research Center for Software Engineering(国家软件工程研究中心);Peking University(北京大学);Tianjin University(天津大学)

Xiaoling Zhou, Wei Ye, Yidong Wang, Chaoya Jiang, Zhemg Lee, Rui Xie, Shikun Zhang

AI总结:

本文提出一种基于隐式演示增强的上下文学习方法,通过深层特征分布丰富演示表示,并理论证明其等价于一种 logit 校准机制,从而提升多种预训练语言模型在各类任务上的平均及最差准确率,同时降低性能方差并应对类别不平衡。

摘要:

上下文学习(ICL)的出现使得大型预训练语言模型(PLMs)无需更新参数即可对未见输入进行预测。尽管具有潜力,ICL 的有效性高度依赖演示的质量、数量和排列方式,通常导致性能次优且不稳定。本文首次从演示增强的角度应对这一挑战。具体而言,我们首先利用演示的深层特征分布来丰富其表示。随后,我们从理论上揭示,当增强副本数量趋于无穷时,该增强近似等价于一种融合了特定统计特性的新型 logit 校准机制。这一见解催生了一种简单而高效的方法,显著提升了多种 PLMs 和任务上的平均准确率与最差情况准确率。此外,我们的方法有效降低了不同演示、排列和模板之间的性能方差,并展现出处理类别分布不平衡的能力。

英文摘要:

The emergence of in-context learning (ICL) enables large pre-trained language models (PLMs) to make predictions for unseen inputs without updating parameters. Despite its potential, ICL's effectiveness heavily relies on the quality, quantity, and permutation of demonstrations, commonly leading to suboptimal and unstable performance. In this paper, we tackle this challenge for the first time from the perspective of demonstration augmentation. Specifically, we start with enriching representations of demonstrations by leveraging their deep feature distribution. We then theoretically reveal that when the number of augmented copies approaches infinity, the augmentation is approximately equal to a novel logit calibration mechanism integrated with specific statistical properties. This insight results in a simple yet highly efficient method that significantly improves the average and worst-case accuracy across diverse PLMs and tasks. Moreover, our method effectively reduces performance variance among varying demonstrations, permutations, and templates, and displays the capability to address imbalanced class distributions.

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

↑