Source-linked AI summary
Symbolic Learning Enables Self-Evolving Agents
Wangchunshu Zhou, Yixin Ou, Shengwei Ding, Long Li, Jialong Wu, Tiannan Wang, Jiamin Chen, Shuai Wang, Xiaohua Xu, Ningyu Zhang, Huajun Chen, Yuchen Eleanor Jiang
TL;DR
Language-agent development depends heavily on manual engineering of prompts, tools, and pipelines, creating a gap between engineering-centric systems and data-centric learning. This paper introduces agent symbolic learning, which adapts connectionist ideas to jointly optimize symbolic agent components, and reports proof-of-concept improvements across benchmarks and complex tasks. The framework is intended to let deployed agents update themselves from experience, although updating the underlying LLM backbone is left for future work.
Problem
Language-agent development requires extensive manual engineering of prompts, tools, and pipelines, limiting data-centric optimization and adaptation.
Source: §1 · p. 2Method
Agent symbolic learning jointly optimizes prompts, tools, nodes, and pipeline structure using language-based loss, gradients, and connectionist-style updates.
Source: §1 · p. 3Results
Experiments on standard benchmarks and complex real-world tasks show that agent symbolic learning improves agent optimization and pipeline updating from training data.
Source: §1 · p. 3, §4.2 · pp. 8–9Takeaways & Limitations
The framework enables language agents to learn from data and update symbolic components after deployment, supporting self-evolving agents.
Source: §1 · p. 3, §5 · p. 9Updating the LLM backbone through fine-tuning is left for future work.
Source: §2.2 · p. 3
Abstract
from arXiv · showhide
The AI community has been exploring a pathway to artificial general intelligence (AGI) by developing "language agents", which are complex large language models (LLMs) pipelines involving both prompting techniques and tool usage methods. While language agents have demonstrated impressive capabilities for many real-world tasks, a fundamental limitation of current language agents research is that they are model-centric, or engineering-centric. That's to say, the progress on prompts, tools, and pipelines of language agents requires substantial manual engineering efforts from human experts rather than automatically learning from data. We believe the transition from model-centric, or engineering-centric, to data-centric, i.e., the ability of language agents to autonomously learn and evolve in environments, is the key for them to possibly achieve AGI. In this work, we introduce agent symbolic learning, a systematic framework that enables language agents to optimize themselves on their own in a data-centric way using symbolic optimizers. Specifically, we consider agents as symbolic networks where learnable weights are defined by prompts, tools, and the way they are stacked together. Agent symbolic learning is designed to optimize the symbolic network within language agents by mimicking two fundamental algorithms in connectionist learning: back-propagation and gradient descent. Instead of dealing with numeric weights, agent symbolic learning works with natural language simulacrums of weights, loss, and gradients. We conduct proof-of-concept experiments on both standard benchmarks and complex real-world tasks and show that agent symbolic learning enables language agents to update themselves after being created and deployed in the wild, resulting in "self-evolving agents".
1 Introduction
Language-agent development remains engineering-centric because prompts, tools, and pipelines require extensive manual design, motivating data-centric agent learning. Agent symbolic learning jointly optimizes these symbolic components by mimicking connectionist learning and supports self-evolution from experience.
Motivation
- Manual decomposition and customization make current language-agent development engineering-centric and difficult to optimize from datasets.This limits robustness and versatility when adapting agents to new tasks or data distributions.Source: §1 · p. 2
- Existing automatic methods often optimize isolated prompts, tools, or nodes, risking local optima rather than improving the complete agent system.The paper contrasts this with jointly optimizing all symbolic components.Source: §1 · p. 2
Agent Symbolic Learning
- Agent symbolic learning maps agent pipelines to neural computational graphs, nodes to layers, and prompts and tools to weights.It applies language-based analogues of loss, back-propagation, gradients, and weight updates.Source: §1 · pp. 2–3
- The framework jointly updates prompts, tools, pipeline structure, and connections, enabling holistic optimization and learning after deployment without requiring ground-truth loss generation.This supports self-evolving agents that learn from experience in the wild.Source: §1 · p. 3
Evaluation
- Proof-of-concept experiments on standard benchmarks and complex agentic tasks show that the framework can optimize prompts, tools, and overall agent pipelines from training data.The authors release the framework’s code and prompts for future data-centric agent-learning research.Source: §1 · p. 3
2 Related Work
Language agents extend language models with prompts, tools, and multi-step pipelines, while related optimization work has largely focused on isolated components or numerical search. The paper positions agent symbolic learning as holistic optimization that can address complex tasks and structural changes within agent systems.
2.1 Language Models, Prompts, and Language Agents
- Language agents combine LLMs, prompts, tools, and multi-step pipelines to execute tasks beyond simple prompting.Prompts control model behavior, while tools and stacked pipelines support broader applications.Source: §2.1 · p. 3
2.2 From Automated Prompt Engineering to Agent Optimization
- Automated prompt and agent optimization methods include prompt-based approaches and search-based algorithms such as genetic search, DSpy, and GPTSwarm.These methods extend earlier efforts to automate prompt engineering.Source: §2.2 · pp. 3–4
- Existing agent optimizers generally update isolated prompts, tools, nodes, or combinations rather than the entire agent system.The paper links this separation to local-optimum problems for individual components.Source: §2.2 · p. 4
- Search-based methods are limited when task success cannot be expressed numerically and typically lack support for adding nodes or implementing new tools.Software development and creative writing are cited as examples of complex tasks that resist equation-based evaluation.Source: §2.2 · p. 4
- Agent symbolic learning is presented as holistic optimization of prompts, tools, nodes, and their arrangement within agents.LLM-backbone fine-tuning and inter-task transfer are described as orthogonal or complementary directions.Source: §2.2 · p. 4
3 Agent Symbolic Learning
Agent symbolic learning treats an agent as a symbolic network and applies connectionist-style learning to jointly optimize its prompts, tools, and pipeline. The procedure defines textual losses and gradients, propagates them across nodes, and uses symbolic optimizers to update the overall system.
3.1 Problem Formulation
- Agent symbolic learning maps the agent pipeline to a neural-network computational graph, nodes to layers, and prompts and tools to symbolic weights.The trajectory stores node inputs, outputs, prompts, and tool usage for gradient back-propagation.Source: §3.1 · p. 5
- Language loss evaluates the discrepancy between expected and actual outcomes through textual comments and a prompted numerical score rather than a conventional numerical loss equation.The loss can use ground-truth labels for supervised learning or evaluate outputs and trajectories without labels for unsupervised agent learning.Source: §3.1 · p. 5, §3.2 · p. 6
3.2 Agent Symbolic Learning Procedure
- The procedure records each node execution during a forward pass, computes language loss from the trajectory, and back-propagates language gradients from the last node to the first.Gradients are textual analyses and reflections used to update symbolic components.Source: §3.2 · p. 6
- Language gradients account for downstream node effects, linking local prompt and tool changes to the agent system’s overall success.This chaining is intended to reduce optimization toward isolated local optima.Source: §3.2 · p. 6
- PromptOptimizer edits prompt components, ToolOptimizer improves, deletes, or creates tools, and PipelineOptimizer adds, deletes, or moves pipeline nodes.These symbolic optimizers are implemented as carefully designed prompt pipelines operating in natural-language space.Source: §3.2 · pp. 6–7
- The framework retries illegal code-space updates up to three times, discards persistent errors, rolls back performance-degrading updates, and exposes learning-rate controls.A batched variant aggregates language gradients from separate examples before updating each node.Source: §3.2 · p. 7
4 Experiments
Experiments evaluate agent symbolic learning on standard benchmarks and complex agentic tasks against prompting, agent, search-based, and prompt-optimization baselines. The framework improves benchmark performance, substantially outperforms baselines on software development and creative writing, and shows that initialization affects optimization stability.
4.1.1 Tasks
- The experiments cover HotpotQA, MATH, and HumanEval, plus creative writing and executable software development evaluated with task-specific metrics.Tools are disabled on the standard benchmarks; creative writing uses GPT-4 scores, while software development uses a 1–4 execution-capability score.Source: §4.1.1 · pp. 7–8
4.1.2 Baselines
- Baselines include GPTs, manually configured agents, DSPy, and Agents + AutoPE, with GPT-3.5 and GPT-4 evaluations initialized from the Agents baseline.DSPy is not applicable to complex tasks whose metrics cannot be expressed as equations or code.Source: §4.1.2 · p. 8
4.2 Results
- Agent symbolic learning consistently improves over compared methods on HotpotQA, MATH, and HumanEval, with especially large gains on MATH.The framework is described as more robust than Agents w/ AutoPE and DSPy, which show unstable gains across cases.Source: §4.1.1 · p. 7, §4.2 · p. 8
- The approach significantly outperforms all baselines on software development and creative writing, with larger gaps than on conventional LLM benchmarks.It also exceeds tree-of-thought on creative writing and discovers plan, writing, and revision stages with optimized prompts.Source: §4.2 · pp. 8–9, Table 2 · p. 8, Table 3 · p. 8
4.3 Case Study & Analysis
- A creative-writing case study shows the framework performing prompt engineering and agent-pipeline design in a manner resembling human expert development.Figure 3 presents the optimization dynamics for this case study.Source: §4.3 · p. 9, Figure 3 · p. 9
- Agent initialization has a non-negligible effect on final performance: simple initialization is generally helpful, whereas over-engineered initialization tends to be unstable.The authors also report more significant and stable success on complex real-world tasks than on standard benchmarks.Source: §4.3 · p. 9
5 Conclusion
The paper concludes that agent symbolic learning jointly optimizes an agent’s symbolic components using language-based learning operations. Proof-of-concept experiments show optimization across task complexities, supporting a transition from model-centric to data-centric agent research.
- Agent symbolic learning jointly optimizes prompts, tools, and the agent pipeline using language-based loss, gradients, and optimizers.The framework is inspired by standard connectionist learning procedures and enables agents to learn from data after deployment.Source: §5 · p. 9
- Proof-of-concept experiments show that the framework can effectively optimize agents across different task complexities.The authors position it as an early attempt to optimize agents solving complex real-world tasks with sophisticated pipelines.Source: §5 · p. 9
A Implementation Details
The implementation uses the Agents programming framework to represent prompts and tools as configurable pipeline components. This configuration supports symbolic optimizers in updating the agent system.
- The Agents framework stacks prompts and tools into complex pipelines and defines the agent system through a configuration file.This representation makes update operations easier for the symbolic optimizers.Source: A Implementation Details · p. 14
B Prompt Templates
This section identifies templates for language loss, gradient back-propagation, and optimization.
- Table 4 presents a prompt template for the language loss function.Source: Table 4 · p. 14
- Table 5 presents a prompt template for gradient back-propagation.Source: Table 5 · p. 15
- Table 6 presents prompt templates for optimizers.Source: Table 6 · p. 16
Related papers
This paper cites
- Attention Is All You Need2017
- Language Models are Few-Shot Learners2020
- Training language models to follow instructions with human feedback2022
- LLaMA: Open and Efficient Foundation Language Models2023
- PyTorch: An Imperative Style, High-Performance Deep Learning Library2019
- Self-Consistency Improves Chain of Thought Reasoning in Language Models2022
Cited by
- MASkills: Continual Skills Optimization for Multi-Agent LLM Systems2026
- Belief-Calibrated Optimization: An Explicit World Model for Agentic Optimization2026
- EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnesses2026
- PAST-Bench: Benchmarking the Foundations of Recursive Self-Improvement in Personal Agents2026
- Self-Improvements in Modern Agentic Systems: A Survey2026