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

CG-TTRL:面向端侧大语言模型的上下文引导测试时强化学习

CG-TTRL: Context-Guided Test-Time Reinforcement Learning for On-Device Large Language Models

Samsung R&D Institute UK(三星研发院英国分院);Queen Mary University of London(伦敦大学女王学院)

Peyman Hosseini, Ondrej Bohdal, Taha Ceritli, Ignacio Castro, Matthew Purver, Mete Ozay, Umberto Michieli

AI总结:

本文提出CG-TTRL方法,将上下文动态融入测试时强化学习的两阶段采样过程,并设计高效上下文选择策略,在数学与科学问答任务上相比TTRL取得更高准确率和更快收敛。

摘要:

测试时强化学习(TTRL)已在测试时适应基础模型以处理复杂任务方面展现出潜力,并带来了显著的性能提升。TTRL采用一种精巧的两阶段采样策略:首先,通过多次采样并利用多数投票得到一个伪标签;随后,降采样和基于奖励的微调鼓励模型探索并学习多样化的有效解,其中伪标签用于调节奖励信号。与此同时,上下文学习在推理阶段已被广泛探索,并证明能够在不更新权重的情况下提升模型性能。然而,TTRL的两阶段采样策略对上下文引导的利用不足,而上下文引导有可能在初始利用阶段提高伪标签精度,并在第二阶段调节探索过程。为解决这一问题,我们提出了上下文引导的TTRL(CG-TTRL),将上下文动态地融入两个采样阶段,并提出了一种面向端侧应用的高效上下文选择方法。我们在数学和科学问答基准上的评估表明,CG-TTRL优于TTRL(例如,相较于TTRL额外获得7%的相对准确率提升),同时通过仅在少数几步测试时训练后即可获得强劲性能来提升效率(例如,3步后相较于TTRL获得8%的相对提升,而非1%)。

英文摘要:

Test-time Reinforcement Learning (TTRL) has shown promise in adapting foundation models for complex tasks at test-time, resulting in large performance improvements. TTRL leverages an elegant two-phase sampling strategy: first, multi-sampling derives a pseudo-label via majority voting, while subsequent downsampling and reward-based fine-tuning encourages the model to explore and learn diverse valid solutions, with the pseudo-label modulating the reward signal. Meanwhile, in-context learning has been widely explored at inference time and demonstrated the ability to enhance model performance without weight updates. However, TTRL's two-phase sampling strategy under-utilizes contextual guidance, which can potentially improve pseudo-label accuracy in the initial exploitation phase while regulating exploration in the second. To address this, we propose context-guided TTRL (CG-TTRL), integrating context dynamically into both sampling phases and propose a method for efficient context selection for on-device applications. Our evaluations on mathematical and scientific QA benchmarks show CG-TTRL outperforms TTRL (e.g. additional 7% relative accuracy improvement over TTRL), while boosting efficiency by obtaining strong performance after only a few steps of test-time training (e.g. 8% relative improvement rather than 1% over TTRL after 3 steps).

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

↑