arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.21373cs.LGcs.CL
收藏

PLR:基于Plackett-Luce模型的上下文学习示例重排

PLR: Plackett-Luce for Reordering In-Context Learning Examples

Heinrich Heine Universität Düsseldorf(杜塞尔多夫海因里希-海涅大学)

Pawel Batorski, Paul Swoboda

AI总结:

PLR提出一种基于Plackett-Luce模型的概率方法,通过学习上下文学习示例的排列概率分布,提高小样本分类任务的准确性,尤其在数学推理任务中表现更优。

摘要:

在上下文学习(ICL)中,通过条件于少量ICL示例来适应大语言模型,避免昂贵的参数更新。性能常高度敏感于示例的排列顺序,但穷举所有n!种排列不可行。因此,更高效的排列方法使用模型置信度度量(如标签概率熵)或直接寻找最佳排列。我们提出PLR,一种基于Plackett-Luce模型的概率方法,用Plackett-Luce分布建模排列,并迭代更新参数以集中概率质量于高表现排列。候选排列通过Gumbel扰动和排序过程高效采样。在多个分类基准测试中,PLR在k∈{4,8,16,32}示例时一致提高少样本准确性,并在标签基于排列方法不适用的数学推理任务中进一步提升性能。代码可在https://github.com/Batorskq/PLR获取。

英文摘要:

In-context learning (ICL) adapts large language models by conditioning on a small set of ICL examples, avoiding costly parameter updates. Among other factors, performance is often highly sensitive to the ordering of the examples. However, exhaustive search over the $n!$ possible orderings is infeasible. Therefore more efficient ordering methods use model confidence measures (e.g., label-probability entropy) over label sets or take a direct approach to finding the best ordering. We propose PLR, a probabilistic approach to in-context example ordering that replaces discrete ordering search with learning a probability distribution over orderings with the Plackett-Luce model. PLR models orderings using a Plackett-Luce distribution and iteratively updates its parameters to concentrate probability mass on high-performing orderings under a task-level metric. Candidate orderings are sampled efficiently via a Gumbel perturb-and-sort procedure. Experiments on multiple classification benchmarks show that PLR consistently improves few-shot accuracy for $k \in \{4, 8, 16, 32\}$ examples, and we further demonstrate gains on mathematical reasoning tasks where label-based ordering methods are not applicable. Our code is available at https://github.com/Batorskq/PLR.

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

↑