arXiv:2510.15464cs.LGcs.AI2025-10被引 4

让模型从正确示例中学习回答问题,更鲁棒且高效。

Learning to Answer from Correct Demonstrations

  • 将问题建模为上下文带状模型的模仿学习,仅依赖正确性奖励
  • 样本复杂度对奖励类大小对数级增长,优于传统方法
  • 适用于任意自适应示例,适合实际生成任务

我们研究从正确示例中学习生成答案(或补全)的问题,其中可能存在多个正确答案,任一均可接受。学习基于每个训练问题的若干正确示例,如监督微调(SFT)。我们将该问题形式化为上下文带状模型中的模仿学习(即师徒学习),利用来自某个专家(最优或极佳)策略的离线示例,但无显式奖励信号。与以往假设示范者属于有界复杂度策略类不同,我们仅假设底层奖励模型(即哪些答案正确)属于有界复杂度类,这一假设更弱。我们证明最大似然方法在此设置下可能失败,并提出一种新方法:能几乎达到示范者的性能,且样本复杂度对奖励类基数为对数级。该方法类似于Syed和Schapire(2007)的思路,但在单步上下文带状模型中实现为简单的一次遍历在线算法,具有“乐观率”——当示范者最优时为1/ε,优于原方法的1/ε²,且对任意自适应示范仍有效。

原文摘要 · Abstract (English)

We study the problem of learning to generate an answer (or completion) to a question (or prompt), where there could be multiple correct answers, any one of which is acceptable at test time. Learning is based on demonstrations of some correct answer to each training question, as in Supervised Fine Tuning (SFT). We formalize the problem as imitation learning (i.e., apprenticeship learning) in contextual bandits, with offline demonstrations from some expert (optimal, or very good) policy, without explicitly observed rewards. In contrast to prior work, which assumes the demonstrator belongs to a bounded-complexity policy class, we propose relying only on the underlying reward model (i.e., specifying which answers are correct) being in a bounded-complexity class, which we argue is a strictly weaker assumption. We show that likelihood-maximization methods can fail in this setting, and instead present an approach that learns to answer nearly as well as the demonstrator, with sample complexity logarithmic in the cardinality of the reward class. Our method is similar to Syed and Schapire 2007, when adapted to a contextual bandit (i.e., single step) setup, but is a simple one-pass online approach that enjoys an "optimistic rate" (i.e., $1/\varepsilon$ when the demonstrator is optimal, versus $1/\varepsilon^2$ in Syed and Schapire), and works even with arbitrarily adaptive demonstrations.

模仿学习生成任务奖励模型样本效率

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。