由标签分布引导的上下文示例排序
In-Context Example Ordering Guided by Label Distributions
AI总结:
本文将上下文示例排序视为优化问题,提出两条由模型概率预测引导的排序原则,在13个数据集和9个自回归LLM上验证其能提升分类准确率、减少校准误差并优化示例选择。
摘要:
通过允许模型在没有任务特定训练的情况下进行预测,使用预训练LLM的上下文学习(ICL)在NLP中具有巨大潜力。然而,ICL中仍存在许多问题。特别是,其性能对上下文示例的选择和顺序很敏感。给定相同的一组上下文示例但使用不同的排序,模型性能可能在接近随机到接近最先进水平之间变化。在这项工作中,我们将上下文示例排序表述为一个优化问题。我们考察了三种问题设置,它们在对任务已知信息的假设上有所不同。受从标签比例中学习的启发,我们提出了两条由模型概率预测引导的上下文示例排序原则。我们将提出的原则应用于十三个文本分类数据集和九个具有700M至13B参数的不同自回归LLM。我们证明,我们的方法通过提高分类准确率、减少模型校准误差以及选择更好的上下文示例,优于基线方法。
英文摘要:
By allowing models to predict without task-specific training, in-context learning (ICL) with pretrained LLMs has enormous potential in NLP. However, a number of problems persist in ICL. In particular, its performance is sensitive to the choice and order of in-context examples. Given the same set of in-context examples with different orderings, model performance may vary between near random to near state-of-the-art. In this work, we formulate in-context example ordering as an optimization problem. We examine three problem settings that differ in the assumptions they make about what is known about the task. Inspired by the idea of learning from label proportions, we propose two principles for in-context example ordering guided by model's probability predictions. We apply our proposed principles to thirteen text classification datasets and nine different autoregressive LLMs with 700M to 13B parameters. We demonstrate that our approach outperforms the baselines by improving the classification accuracy, reducing model miscalibration, and also by selecting better in-context examples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。