How to Correctly do Semantic Backpropagation on Language-based Agentic Systems
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
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 successor. This serves as a method for computing directional information about how changes to each component of an agentic system might improve the system's output. To use these gradients, we propose a method called semantic gradient descent which enables us to solve GASO effectively. Our results on both BIG-Bench Hard and GSM8K show that our approach outperforms existing state-of-the-art methods for solving GASO problems. A detailed ablation study on the LIAR dataset demonstrates the parsimonious nature of our method. A full copy of our implementation is publicly available at https://github.com/HishamAlyahya/semantic_backprop
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 12 of its 35 references that are in the map. First posted on arXiv 4 Dec 2024.
Builds on
12 of 35 references.
Closest ancestors · 1
Same direction, newest first
Other references · 11
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 634
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2024MLLM-as-a-Judge: Assessing Multimodal LLM-as-a-Judge with Vision-Language Benchmarkcited by 372
- 2023GPTScore: Evaluate as You Desirecited by 361
- 2024TextGrad: Automatic "Differentiation" via Textcited by 273
- 2023Mindstorms in Natural Language-Based Societies of Mindcited by 107
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 69
- 2015On Learning to Think: Algorithmic Information Theory for Novel Combinations of Reinforcement Learning Controllers and Recurrent Neural World Modelscited by 55
- 2024GRAD-SUM: Leveraging Gradient Summarization for Optimal Prompt Engineeringcited by 7
Built on by
Citing papers per year: 2025: 7; 2026: 11.
18 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 113
- 2025Self-Supervised Prompt Optimizationcited by 37
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 19
- 2026Self-Evolving World Models for LLM Agent Planningcited by 13
- 2026MASPOB: Bandit-Based Prompt Optimization for Multi-Agent Systems with Graph Neural Networkscited by 9
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2025metaTextGrad: Automatically optimizing language model optimizerscited by 6
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directionscited by 4
- 2026Beyond Consensus: Trace-Level Synthesis in Mixture of Agentscited by 4
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Modelscited by 3
- 2026JudgeFlow: Agentic Workflow Optimization via Block Judgecited by 3
6 more
- 2026Self-Optimizing Multi-Agent Systems for Deep Researchcited by 2
- 2025When Your Own Output Becomes Your Training Data: Noise-to-Meaning Loops and a Formal RSI Triggercited by 1
- 2026Compiling Deterministic Structure into SLM Harnessescited by 0
- 2026Telco-GAIA: Bilingual Benchmark for Agents in Telecom Domaincited by 0
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revisioncited by 0
- 2026TRACE: TRajectory Attribution for Automated Context Engineeringcited by 0
- 2026TRACE: TRajectory Attribution for Automated Context Engineering10 Aug 2026
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revision7 Aug 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026Telco-GAIA: Bilingual Benchmark for Agents in Telecom Domain4 Jul 2026
- 2026Self-Evolving World Models for LLM Agent Planning29 Jun 2026
- 2026Beyond Consensus: Trace-Level Synthesis in Mixture of Agents27 May 2026
- 2026Compiling Deterministic Structure into SLM Harnesses19 Apr 2026
- 2026Self-Optimizing Multi-Agent Systems for Deep Research3 Apr 2026
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMs25 Mar 2026
- 2026MASPOB: Bandit-Based Prompt Optimization for Multi-Agent Systems with Graph Neural Networks3 Mar 2026
- 2026JudgeFlow: Agentic Workflow Optimization via Block Judge12 Jan 2026
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directions9 Jun 2025
6 more
- 2025metaTextGrad: Automatically optimizing language model optimizers24 May 2025
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Models22 May 2025
- 2025When Your Own Output Becomes Your Training Data: Noise-to-Meaning Loops and a Formal RSI Trigger5 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Self-Supervised Prompt Optimization7 Feb 2025
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies4 Feb 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 113
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 19
- 2026MASPOB: Bandit-Based Prompt Optimization for Multi-Agent Systems with Graph Neural Networkscited by 9
- 2026Beyond Consensus: Trace-Level Synthesis in Mixture of Agentscited by 4
- 2026JudgeFlow: Agentic Workflow Optimization via Block Judgecited by 3
- 2026Telco-GAIA: Bilingual Benchmark for Agents in Telecom Domaincited by 0
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revisioncited by 0
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revision7 Aug 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026Telco-GAIA: Bilingual Benchmark for Agents in Telecom Domain4 Jul 2026
- 2026Beyond Consensus: Trace-Level Synthesis in Mixture of Agents27 May 2026
- 2026MASPOB: Bandit-Based Prompt Optimization for Multi-Agent Systems with Graph Neural Networks3 Mar 2026
- 2026JudgeFlow: Agentic Workflow Optimization via Block Judge12 Jan 2026
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies4 Feb 2025
- 2025Self-Supervised Prompt Optimizationcited by 37
- 2026Compiling Deterministic Structure into SLM Harnessescited by 0
- 2026Compiling Deterministic Structure into SLM Harnesses19 Apr 2026
- 2025Self-Supervised Prompt Optimization7 Feb 2025
- 2026Self-Evolving World Models for LLM Agent Planningcited by 13
- 2026Self-Evolving World Models for LLM Agent Planning29 Jun 2026
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2025metaTextGrad: Automatically optimizing language model optimizerscited by 6
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directionscited by 4
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Modelscited by 3
- 2026Self-Optimizing Multi-Agent Systems for Deep Researchcited by 2
- 2025When Your Own Output Becomes Your Training Data: Noise-to-Meaning Loops and a Formal RSI Triggercited by 1
- 2026TRACE: TRajectory Attribution for Automated Context Engineeringcited by 0
- 2026TRACE: TRajectory Attribution for Automated Context Engineering10 Aug 2026
- 2026Self-Optimizing Multi-Agent Systems for Deep Research3 Apr 2026
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMs25 Mar 2026
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directions9 Jun 2025
- 2025metaTextGrad: Automatically optimizing language model optimizers24 May 2025
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Models22 May 2025
- 2025When Your Own Output Becomes Your Training Data: Noise-to-Meaning Loops and a Formal RSI Trigger5 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025HiVA: Self-organized Hierarchical Variable Agent via Goal-driven Semantic-Topological Evolution
- 2026AgentGrad: Intervention-guided Prompt Optimization for Multi Agent Systems
- 2025MAPGD: Multi-Agent Prompt Gradient Descent for Collaborative Prompt Optimization
- 2024Input Conditioned Graph Generation for Language Agents
- 2026Learning to Evolve: A Self-Improving Framework for Multi-Agent Systems via Textual Parameter Graph Optimization
- 2026AgentGL: Towards Agentic Graph Learning with LLMs via Reinforcement Learning
- 2024Agentic AI: The Era of Semantic Decoding
- 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environments