推理即资源:优化代码生成模型中的快思考与慢思考
Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models
AI总结:
本文提出将推理深度作为可控资源,在代码生成模型全生命周期中显式调度快思考与慢思考,以优化准确性、延迟与成本。
摘要:
这篇立场论文提出代码生成模型设计的一次根本性转变:将推理深度视为一种可控资源。我们认为,快速、直接的回答(“快思考”)与详尽的思维链审慎推理(“慢思考”)之间的权衡,不应只是提示产生的偶然副产物,而必须得到显式管理。我们主张,在整个模型生命周期中优化推理预算——从合成数据创建、基准测试到真实世界部署——能够在准确性、延迟和成本之间释放更优的权衡。本文概述了对推理的自适应控制如何丰富监督信号、推动新的多维基准,并为具备成本意识和安全意识的部署策略提供依据。通过将快思考与慢思考视为需要调度的互补模式,我们设想出在必要时深入思考、在可能时快速行动的代码智能体。
英文摘要:
This position paper proposes a fundamental shift in designing code generation models: treating reasoning depth as a controllable resource. Rather than being an incidental byproduct of prompting, we argue that the trade-off between rapid, direct answers ("fast thinking") and elaborate, chain-of-thought deliberation ("slow thinking") must be explicitly managed. We contend that optimizing reasoning budgets across the entire model lifecycle - from synthetic data creation and benchmarking to real-world deploymen - can unlock superior trade-offs among accuracy, latency, and cost. This paper outlines how adaptive control over reasoning can enrich supervision signals, motivate new multi-dimensional benchmarks, and inform cost-aware, security-conscious deployment policies. By viewing fast and slow thinking as complementary modes to be scheduled, we envision coding agents that think deep when necessary and act fast when possible.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。