How to Correctly do Semantic Backpropagation on Language-based Agentic Systems
Wenyi Wang, Hisham A. Alyahya, Dylan R. Ashley, Oleg Serikov, Dmitrii, Khizbullin, Francesco Faccio, J\"urgen Schmidhuber

TL;DR
This paper introduces semantic backpropagation with semantic gradients to improve the optimization of language-based agentic systems, enabling more effective feedback assignment and outperforming current methods on benchmark tasks.
Contribution
It formalizes semantic backpropagation with semantic gradients and proposes semantic gradient descent for optimizing agentic systems, addressing feedback assignment challenges.
Findings
Outperforms state-of-the-art methods on BIG-Bench Hard and GSM8K.
Demonstrates effectiveness of semantic gradients in system optimization.
Provides a publicly available implementation for reproducibility.
Abstract
Language-based agentic systems have shown great promise in recent years, transitioning from solving small-scale research problems to being deployed in challenging real-world tasks. However, optimizing these systems often requires substantial manual labor. Recent studies have demonstrated that these systems can be represented as computational graphs, enabling automatic optimization. Despite these advancements, most current efforts in Graph-based Agentic System Optimization (GASO) fail to properly assign feedback to the system's components given feedback on the system's output. To address this challenge, we formalize the concept of semantic backpropagation with semantic gradients -- a generalization that aligns several key optimization techniques, including reverse-mode automatic differentiation and the more recent TextGrad by exploiting the relationship among nodes with a common…
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
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMulti-Agent Systems and Negotiation · Semantic Web and Ontologies
MethodsTextGrad
