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

从少到多:通过迭代优化与生成实现自我改进的多示例推理器

From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generation

Google Cloud AI Research(谷歌云AI研究院)

Xingchen Wan, Han Zhou, Ruoxi Sun, Hootan Nakhost, Ke Jiang, Sercan Ö. Arık

AI总结:

本文提出BRIDGE算法,通过贝叶斯优化交替执行识别高影响力示例的“优化”步骤与重用示例扩展推理路径的“生成”步骤,有效提升了大型语言模型在多示例上下文学习中的推理性能。

摘要:

长上下文大型语言模型(LLMs)的最新进展催生了多示例上下文学习(ICL)这一新兴范式。研究发现,在上下文中扩展远超传统少示例设置的更多演示示例可以带来性能提升。然而,尽管其前景广阔,但目前尚不清楚哪些因素主导了这些收益,以及仅仅扩展到更多示例是否是改进多示例ICL的最有效方法。在本研究中,我们首先分析了驱动多示例ICL的因素,发现:1)多示例性能仍可归因于少数几个不成比例地具有影响力的示例;2)识别此类有影响力的示例(“优化”)并将其用作演示以重新生成新示例(“生成”)可以带来进一步的提升。受这些发现的启发,我们提出了BRIDGE算法,该算法在优化步骤与生成步骤之间交替进行:优化步骤利用贝叶斯优化发现有影响力的示例集,生成步骤则重用该集合自动扩展示例的推理路径,使其回归到多示例状态。在Gemini、Claude和Mistral等不同规模的LLMs上,我们证明了BRIDGE在包括符号推理、数值推理和代码生成在内的多种任务中均取得了显著改进。

英文摘要:

Recent advances in long-context large language models (LLMs) have led to the emerging paradigm of many-shot in-context learning (ICL), where it is observed that scaling many more demonstrating examples beyond the conventional few-shot setup in the context can lead to performance benefits. However, despite its promise, it is unclear what aspects dominate the benefits and whether simply scaling to more examples is the most effective way of improving many-shot ICL. In this work, we first provide an analysis of the factors driving many-shot ICL, and we find that 1) many-shot performance can still be attributed to often a few disproportionately influential examples and 2) identifying such influential examples ("optimize") and using them as demonstrations to regenerate new examples ("generate") can lead to further improvements. Inspired by the findings, we propose BRIDGE, an algorithm that alternates between the optimize step with Bayesian optimization to discover the influential sets of examples and the generate step to reuse this set to expand the reasoning paths of the examples back to the many-shot regime automatically. On Gemini, Claude, and Mistral LLMs of different sizes, we show that BRIDGE to significant improvements across a diverse set of tasks, including symbolic reasoning, numerical reasoning, and code generation.

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

↑