TextResNet: Decoupling and Routing Optimization Signals in Compound AI Systems via Deep Residual Tuning
Suizhi Huang, Mei Li, Han Yu, Xiaoxiao Li
TL;DR
TextResNet tackles semantic entanglement and attribution ambiguity in Compound AI Systems by decoupling optimization signals and routing them precisely. It introduces four innovations—Additive Semantic Deltas, Semantic Projector, Causal Routing, and Density-Aware Scheduling—within a residual forward framework that preserves upstream context while enabling targeted local updates. Empirical results across four benchmarks show superior performance and deep-chain stability compared to TextGrad and baselines, along with reduced token usage. The approach offers a training-free architectural solution that improves reliability and efficiency in multi-agent AI systems, with clear pathways for further refinement.
Abstract
Textual Gradient-style optimizers (TextGrad) enable gradient-like feedback propagation through compound AI systems. However, they do not work well for deep chains. The root cause of this limitation stems from the Semantic Entanglement problem in these extended workflows. In standard textual backpropagation, feedback signals mix local critiques with upstream contexts, leading to Attribution Ambiguity. To address this challenge, we propose TextResNet, a framework that reformulates the optimization process to achieve precise signal routing via four key innovations. Firstly, in the forward pass, it enforces Additive Semantic Deltas to preserve an Identity Highway for gradient flow. Secondly, in the backward pass, it introduces Semantic Gradient Decomposition via a Semantic Projector to disentangle feedback into causally independent subspaces. Thirdly, it implements Causal Routing, which routes projected signals to their specific components. Finally, it performs Density-Aware Optimization Scheduling to leverage the disentangled signals to dynamically allocate resources to key system bottlenecks. Our results show that TextResNet not only achieves superior performance compared to TextGrad, but also exhibits remarkable stability for agentic tasks in compound AI systems where baselines collapse. Code is available at https://github.com/JeanDiable/TextResNet.
