arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.00029cs.LGcs.AI
收藏

使用Token级自奖励的流式前瞻

Streaming Looking Ahead with Token-level Self-reward

Tencent AI Lab(腾讯AI实验室);Tsinghua University(清华大学)

Hongming Zhang, Ruixin Hong, Dong Yu

AI总结:

提出Reward Transformer架构和流式前瞻算法,通过token级自奖励建模消除外部模型依赖,在保持流式效率的同时显著提升解码性能。

摘要:

仅使用过去信息的自回归解码算法通常无法保证最佳性能。最近,人们发现使用外部奖励模型(RMs)的蒙特卡洛树搜索(MCTS)等前瞻算法可以通过让模型提前思考并利用未来输出及相关奖励来指导当前生成,从而显著提升模型的输出。这类技术可以通过采样更好的轨迹来帮助强化微调阶段,并通过选择更好的输出来帮助推理阶段。然而,它们的高计算成本限制了其应用,尤其是在流式场景中。为了解决这个问题,我们提出为策略模型配备token级自奖励建模(TRM)能力,以消除对外部模型和额外通信的需求。我们将这种新架构命名为Reward Transformer。此外,我们提出了一种流式前瞻(SLA)算法,通过更好的并行化进一步提高搜索效率。实验表明,在冻结策略模型的情况下,SLA在三个通用领域数据集上相对于基线贪心解码算法实现了79.7%的总体胜率,同时保持了流式效率。如果我们将SLA与DPO等强化微调技术结合,SLA可实现89.4%的总体胜率。

英文摘要:

Autoregressive decoding algorithms that use only past information often cannot guarantee the best performance. Recently, people discovered that looking-ahead algorithms such as Monte Carlo Tree Search (MCTS) with external reward models (RMs) can significantly improve models' output by allowing them to think ahead and leverage future outputs and associated rewards to guide the current generation. Such techniques can help the reinforcement fine-tuning phase by sampling better trajectories and the inference phase by selecting the better output. However, their high computational cost limits their applications, especially in streaming scenarios. To address this issue, we propose equipping the policy model with token-level self-reward modeling (TRM) capability to eliminate the need for external models and extra communication. We name the new architecture as Reward Transformer. In addition, we propose a streaming-looking-ahead (SLA) algorithm to further boost search efficiency with better parallelization. Experiments show that SLA achieves an overall win rate of 79.7\% against the baseline greedy decoding algorithm on three general-domain datasets with a frozen policy model while maintaining streaming efficiency. If we combine SLA with reinforcement fine-tuning techniques such as DPO, SLA achieves an overall win rate of 89.4\%.

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

↑