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

将测试时计算最优缩放泛化为可优化的图

Generalizing Test-time Compute-optimal Scaling as an Optimizable Graph

The Pennsylvania State University(宾夕法尼亚州立大学);University of Pittsburgh(匹兹堡大学);Amazon(亚马逊);Microsoft(微软)

Fali Wang, Jihai Chen, Shuhua Yang, Runxue Bao, Tianxiang Zhao, Zhiwei Zhang, Xianfeng Tang, Hui Liu, Qi He, Suhang Wang

AI总结:

针对测试时缩放中固定架构和单一模型的局限,提出将多LLM协作图搜索形式化为概率图优化,并设计Agent-REINFORCE框架,利用文本反馈作为梯度高效搜索计算最优的协作图。

摘要:

测试时缩放(TTS)通过在推理过程中分配额外计算来改进大型语言模型(LLMs),通常通过并行、顺序或混合缩放实现。然而,以往的研究通常假设固定的协作架构(例如拓扑结构)和单一模型使用,忽略了最优架构和模型组合可能因任务而异。因此,我们研究了在固定预算下,在TTS中搜索计算最优模型组合和架构的新问题。我们将其形式化为多LLM协作图,其中节点编码角色和LLM模型分配,边捕获信息流。这个问题具有挑战性,因为(i)组合搜索空间极其庞大,以及(ii)任务特定需求需要定制化设计。为了解决这些问题,我们将该问题重新表述为概率图优化,并通过试点实验得出了关于TTS协作图的三个经验见解。在这些见解的指导下,我们提出了Agent-REINFORCE,这是一个LLM智能体增强框架,它通过将采样-梯度-更新映射为采样-反馈-更新来镜像REINFORCE流程,其中反馈作为文本梯度来更新概率图,并高效搜索最优的多LLM协作图。实验表明,Agent-REINFORCE在样本效率和搜索性能上均优于传统和基于LLM的基线,并在准确性和推理延迟的联合目标下有效识别出最优图。

英文摘要:

Test-Time Scaling (TTS) improves large language models (LLMs) by allocating additional computation during inference, typically through parallel, sequential, or hybrid scaling. However, prior studies often assume fixed collaboration architectures (e.g., topologies) and single-model usage, overlooking that optimal architectures and model combinations can vary across tasks. Therefore, we study the novel problem of searching for compute-optimal model combinations and architectures in TTS under a fixed budget. We formalize it as a multi-LLM collaboration graph, where nodes encode roles and LLM model assignments, and edges capture information flow. This problem is challenging because (i) the combinatorial search space is prohibitively large, and (ii) task-specific requirements demand tailored designs. To address these, we reformulate the problem as probabilistic graph optimization and, through pilot experiments, derive three empirical insights into TTS collaboration graphs. Guided by these insights, we propose Agent-REINFORCE, an LLM-agent-augmented framework that mirrors the REINFORCE pipeline by mapping sampling-gradient-update to sampling-feedback-update, where feedback serves as a textual gradient to update the probabilistic graph and efficiently search for optimal multi-LLM collaboration graphs. Experiments show that Agent-REINFORCE outperforms both traditional and LLM-based baselines in sample efficiency and search performance, and effectively identifies optimal graphs under joint objectives of accuracy and inference latency.

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

↑