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

批量上下文强化:一种任务扩展定律以实现高效推理

Batched Contextual Reinforcement: A Task-Scaling Law for Efficient Reasoning

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Tsinghua University(清华大学)

Bangji Yang, Hongbo Ma, Jiajun Fan, Ge Liu

AI总结:

本文提出批量上下文强化方法,通过在共享上下文窗口中同时解决多个问题,实现高效推理,减少token消耗并提升准确性。

摘要:

大型语言模型通过链式思维推理表现出色,但面临过度的token消耗问题。现有效率方法如显式长度惩罚、难度估计器或多阶段课程学习要么降低推理质量,要么需要复杂的训练流程。我们引入批量上下文强化,一种简化的单阶段训练范式,通过在共享上下文窗口中同时解决N个问题,仅通过实例准确性奖励,解锁高效推理。这种形式创建了隐含的token预算,得出几个关键发现:(1) 我们识别出一种新的任务扩展定律:在推理过程中,随着并发问题数N的增加,每个问题的token使用量单调减少,而准确性下降比基线更温和,确立N作为可控的吞吐量维度。(2) BCR挑战传统准确性-效率权衡,通过在标准单问题推理中展示'免费午餐'现象。在1.5B和4B模型家族中,BCR将token使用量减少15.8%到62.6%,同时在五个主要数学基准上保持或提升准确性。(3) 定性分析揭示了涌现的自我调节效率,模型能自主消除冗余的元认知循环,无需显式长度监督。(4) 关键的是,我们实证证明隐含预算约束成功克服了显式长度惩罚固有的对抗性梯度和灾难性优化崩溃,提供了一种高度稳定的基于约束的替代方案。这些结果证明了BCR的实用性,表明简单的结构激励解锁了LLM中的潜在高密度推理。

英文摘要:

Large Language Models employing Chain-of-Thought reasoning achieve strong performance but suffer from excessive token consumption that inflates inference costs. Existing efficiency methods such as explicit length penalties, difficulty estimators, or multi-stage curricula either degrade reasoning quality or require complex training pipelines. We introduce Batched Contextual Reinforcement, a minimalist, single-stage training paradigm that unlocks efficient reasoning through a simple structural modification: training the model to solve N problems simultaneously within a shared context window, rewarded purely by per-instance accuracy. This formulation creates an implicit token budget that yields several key findings: (1) We identify a novel task-scaling law: as the number of concurrent problems N increases during inference, per-problem token usage decreases monotonically while accuracy degrades far more gracefully than baselines, establishing N as a controllable throughput dimension. (2) BCR challenges the traditional accuracy-efficiency trade-off by demonstrating a "free lunch" phenomenon at standard single-problem inference. Across both 1.5B and 4B model families, BCR reduces token usage by 15.8% to 62.6% while consistently maintaining or improving accuracy across five major mathematical benchmarks. (3) Qualitative analyses reveal emergent self-regulated efficiency, where models autonomously eliminate redundant metacognitive loops without explicit length supervision. (4) Crucially, we empirically demonstrate that implicit budget constraints successfully circumvent the adversarial gradients and catastrophic optimization collapse inherent to explicit length penalties, offering a highly stable, constraint-based alternative for length control. These results prove BCR practical, showing simple structural incentives unlock latent high-density reasoning in LLMs.

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

↑