Textual Equilibrium Propagation for Deep Compound AI Systems
Minghui Chen, Wenlong Deng, James Zou, Han Yu, Xiaoxiao Li

TL;DR
This paper introduces Textual Equilibrium Propagation (TEP), a local learning method for deep compound AI systems that mitigates gradient issues in long-horizon workflows, improving accuracy and efficiency.
Contribution
TEP offers a novel local prompt optimization approach inspired by energy-based models, addressing depth-scaling failures in global textual feedback methods.
Findings
TEP reduces gradient explosion and vanishing issues in deep workflows.
TEP improves accuracy and efficiency over global methods like TextGrad.
Gains from TEP increase with system depth.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
