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

文本平衡传播用于深度复合人工智能系统

Textual Equilibrium Propagation for Deep Compound AI Systems

Nanyang Technological University(南洋理工大学);University of British Columbia(不列颠哥伦比亚大学);Vector Institute(向量研究所);Stanford University(斯坦福大学)

Minghui Chen, Wenlong Deng, James Zou, Han Yu, Xiaoxiao Li

AI总结:

本文提出文本平衡传播(TEP),通过局部学习原理解决长周期工作流中文本梯度爆炸和消失问题,提升深度复合AI系统的准确性和效率。

摘要:

大型语言模型(LLMs)越来越多地被用作复合AI系统的一部分,协调多个模块(如检索器、工具、验证器)进行长时间跨度的工作流。最近的全局文本反馈传播方法(如TextGrad)使优化此类管道成为可能,但随着系统深度增加,性能会下降。长周期代理工作流表现出两种深度扩展失败模式:1)文本梯度爆炸,其中文本反馈随深度呈指数增长,导致信息传递过长并放大评估偏差;2)文本梯度消失,其中有限的长上下文能力使模型过度强调部分反馈,压缩长反馈导致下游信息在传播多个hop上游时逐渐失去特异性。为缓解这些问题,我们引入文本平衡传播(TEP),一种受能量基模型中平衡传播启发的局部学习原理。TEP包括两个阶段:1)自由阶段,其中局部LLM批评者迭代优化提示,直到达到平衡(不再有进一步的改进建议);2)受迫阶段,通过有限的提示编辑应用近端提示编辑,使用任务级目标,通过前向信号传播而非反向反馈链进行传播。这种设计支持局部提示优化,随后可控地适应到全局目标,而无需全局文本反向传播的计算负担和信号退化。在长周期问答基准和多智能体工具使用数据集上,TEP在准确性和效率上均优于全局传播方法如TextGrad。随着深度增加,收益逐渐增长,同时保持了深度复合AI系统中黑盒LLM组件的实用性。

英文摘要:

Large language models (LLMs) are increasingly deployed as part of compound AI systems that coordinate multiple modules (e.g., retrievers, tools, verifiers) over long-horizon workflows. Recent approaches that propagate textual feedback globally (e.g., TextGrad) make it feasible to optimize such pipelines, but we find that performance degrades as system depth grows. In particular, long-horizon agentic workflows exhibit two depth-scaling failure modes: 1) exploding textual gradient, where textual feedback grows exponentially with depth, leading to prohibitively long message and amplifies evaluation biases; and 2) vanishing textual gradient, where limited long-context ability causes models overemphasize partial feedback and compression of lengthy feedback causes downstream messages to lose specificity gradually as they propagate many hops upstream. To mitigate these issues, we introduce Textual Equilibrium Propagation (TEP), a local learning principle inspired by Equilibrium Propagation in energy-based models. TEP includes two phases: 1) a free phase where a local LLM critics iteratively refine prompts until reaching equilibrium (no further improvements are suggested); and 2) a nudged phase which applies proximal prompt edits with bounded modification intensity, using task-level objectives that propagate via forward signaling rather than backward feedback chains. This design supports local prompt optimization followed by controlled adaptation toward global goals without the computational burden and signal degradation of global textual backpropagation. Across long-horizon QA benchmarks and multi-agent tool-use dataset, TEP consistently improves accuracy and efficiency over global propagation methods such as TextGrad. The gains grows with depth, while preserving the practicality of black-box LLM components in deep compound AI system.

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

↑