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

学习选择大型语言模型偏好的上下文内演示

Learning to Select In-Context Demonstration Preferred by Large Language Model

School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);Microsoft Research Asia(微软亚洲研究院);State Key Laboratory of General Artificial Intelligence, BIGAI, Beijing, China(一般人工智能国家重点实验室)

Zheng Zhang, Shaocheng Lan, Lei Song, Jiang Bian, Yexin Li, Kan Ren

AI总结:

针对上下文内学习演示选择依赖代理目标的问题,提出生成式偏好学习框架GenICL,利用LLM反馈直接优化选择,在19个数据集上取得更优性能。

摘要:

上下文内学习(ICL)使大型语言模型(LLMs)在推理过程中仅使用少量演示即可适应新任务。然而,ICL性能高度依赖于这些演示的选择。近期工作探索了基于检索的方法来选择查询特定的演示,但这些方法往往依赖代理目标(如度量学习),未能直接优化ICL性能。因此,它们难以识别真正有益的演示。此外,当候选池缺乏足够高质量的演示时,其判别式检索范式效果不佳。为应对这些挑战,我们提出了GenICL,一种新颖的生成式偏好学习框架,利用LLM反馈直接优化ICL的演示选择。在11个任务类别的19个数据集上的实验表明,GenICL在选择最有效演示方面优于现有方法,从而带来更好的ICL性能。

英文摘要:

In-context learning (ICL) enables large language models (LLMs) to adapt to new tasks during inference using only a few demonstrations. However, ICL performance is highly dependent on the selection of these demonstrations. Recent work explores retrieval-based methods for selecting query-specific demonstrations, but these approaches often rely on surrogate objectives such as metric learning, failing to directly optimize ICL performance. Consequently, they struggle to identify truly beneficial demonstrations. Moreover, their discriminative retrieval paradigm is ineffective when the candidate pool lacks sufficient high-quality demonstrations. To address these challenges, we propose GenICL, a novel generative preference learning framework that leverages LLM feedback to directly optimize demonstration selection for ICL. Experiments on 19 datasets across 11 task categories demonstrate that GenICL achieves superior performance than existing methods in selecting the most effective demonstrations, leading to better ICL performance.

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

↑