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

通过数据压缩实现有效的上下文内示例选择

Effective In-Context Example Selection through Data Compression

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)

Zhongxiang Sun, Kepu Zhang, Haoyu Wang, Xiao Zhang, Jun Xu

AI总结:

针对上下文内示例选择缺乏系统策略的问题,本文提出数据压缩驱动的两阶段选择方法,在相关示例选择的同时保留训练集信息,并在五个数据集和四个语言模型上平均提升5.90%。

摘要:

上下文内学习已在大型语言模型中得到广泛验证。然而,作为该方法关键组成部分的上下文内示例选择,其机制与选择策略仍缺乏系统且深入的研究。本文提出一种用于上下文内示例选择的数据压缩方法。我们引入一种两阶段方法,能够有效选择相关示例,并在上下文内示例中保留有关训练数据集的充分信息。在使用四种语言模型、覆盖五个不同真实世界数据集的实验中,我们的方法平均取得了5.90%的显著提升。

英文摘要:

In-context learning has been extensively validated in large language models. However, the mechanism and selection strategy for in-context example selection, which is a crucial ingredient in this approach, lacks systematic and in-depth research. In this paper, we propose a data compression approach to the selection of in-context examples. We introduce a two-stage method that can effectively choose relevant examples and retain sufficient information about the training dataset within the in-context examples. Our method shows a significant improvement of an average of 5.90% across five different real-world datasets using four language models.

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

↑