arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.06766cs.CL
收藏

注意你的格式:迈向上下文学习改进的一致性评估

Mind Your Format: Towards Consistent Evaluation of In-Context Learning Improvements

Yandex;HSE University(高等经济大学);MIPT(莫斯科物理技术学院);Together AI

Anton Voronov, Lena Wolf, Max Ryabinin

AI总结:

本文系统研究了提示模板格式对上下文学习性能的影响,发现模板选择不当会显著降低模型表现且最佳模板难以迁移,并提出Template Ensembles方法以提升评估一致性和性能。

摘要:

大型语言模型展现出从少量示例中学习解决新任务的卓越能力。提示模板,即输入示例被格式化以生成提示的方式,是上下文学习中一个重要但常被忽视的方面。在这项工作中,我们对模板格式对上下文学习性能的影响进行了全面研究。我们评估了提示模板在21个模型(参数量从770M到70B)和4个标准分类数据集上的影响。我们表明,糟糕的模板选择会将最强模型和推理方法的性能降低到随机猜测的水平。更重要的是,最佳模板在不同设置之间甚至在同一家族的模型之间都无法迁移。我们的发现表明,当前普遍采用的评估方法忽略了模板选择,由于不同工作中使用了不同的模板,可能会给出误导性的结果。作为缓解这一问题的第一步,我们提出了Template Ensembles,该方法聚合多个模板上的模型预测。这种简单的测试时增强方法提升了平均性能,同时对随机模板集的选择具有鲁棒性。

英文摘要:

Large language models demonstrate a remarkable capability for learning to solve new tasks from a few examples. The prompt template, or the way the input examples are formatted to obtain the prompt, is an important yet often overlooked aspect of in-context learning. In this work, we conduct a comprehensive study of the template format's influence on the in-context learning performance. We evaluate the impact of the prompt template across 21 models (from 770M to 70B parameters) and 4 standard classification datasets. We show that a poor choice of the template can reduce the performance of the strongest models and inference methods to a random guess level. More importantly, the best templates do not transfer between different setups and even between models of the same family. Our findings show that the currently prevalent approach to evaluation, which ignores template selection, may give misleading results due to different templates in different works. As a first step towards mitigating this issue, we propose Template Ensembles that aggregate model predictions across several templates. This simple test-time augmentation boosts average performance while being robust to the choice of random set of templates.

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

↑