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

当代理变得沉默:LLM文档合成中的输出生成能力与格式-成本分离

When Agents Go Quiet: Output Generation Capacity and Format-Cost Separation for LLM Document Synthesis

Sperix Labs(Sperix实验室);VIA Cybersecurity Lab, KNUST(VIA网络安全实验室,科诺斯大学);GCTU, Ghana(加纳格茨大学);NCA, Ghana(加纳国家计算机学院)

Justice Owusu Agyemang, Michael Agyare, Miriam Kobbinah, Nathaniel Agbugblah, Prosper Addo

AI总结:

本文提出OGC衡量输出生成能力,证明格式-成本分离定理,并提出自适应策略选择框架,通过实验验证理论,减少生成token并消除输出停滞问题。

摘要:

LLM驱动的编码代理存在一种未被理解的故障模式,我们称之为输出停滞:当尝试生成大型、格式复杂的文档时,代理会静默地生成空响应。我们提出一个理论框架,通过三个贡献解释并防止这种故障:(1) 引入输出生成能力(OGC),一种正式衡量代理在当前上下文状态下生成输出有效能力的指标,与原始上下文窗口不同且经验上更小。(2) 证明格式-成本分离定理,显示延迟模板渲染始终比直接生成更高效,任何具有过载乘数μ_f > 1的格式,推导出紧致的节省界限。(3) 正式化自适应策略选择,一种决策框架,将估计输出成本与可用OGC的比例映射到最优生成策略(直接、分块或延迟)。通过在三个模型(Claude 3.5 Sonnet、GPT-4o、Llama 3.1 70B)、四种文档类型和消融研究中进行受控实验验证理论。延迟渲染在所有条件下减少LLM生成token 48-72%,完全消除输出停滞问题。我们将其框架实例化为GEN-PILOT,一个开源MCP服务器,证明理论可直接转化为实用工具。

英文摘要:

LLM-powered coding agents suffer from a poorly understood failure mode we term output stalling: the agent silently produces empty responses when attempting to generate large, format-heavy documents. We present a theoretical framework that explains and prevents this failure through three contributions. (1) We introduce Output Generation Capacity (OGC), a formal measure of an agent's effective ability to produce output given its current context state - distinct from and empirically smaller than the raw context window. (2) We prove a Format-Cost Separation Theorem showing that deferred template rendering is always at least as token-efficient as direct generation for any format with overhead multiplier $μ_f > 1$, and derive tight bounds on the savings. (3) We formalize Adaptive Strategy Selection, a decision framework that maps the ratio of estimated output cost to available OGC into an optimal generation strategy (direct, chunked, or deferred). We validate the theory through controlled experiments across three models (Claude 3.5 Sonnet, GPT-4o, Llama 3.1 70B), four document types, and an ablation study isolating each component's contribution. Deferred rendering reduces LLM generation tokens by 48-72% across all conditions and eliminates output stalling entirely. We instantiate the framework as GEN-PILOT, an open-source MCP server, demonstrating that the theory translates directly into a practical tool.

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

↑