mlsanityData to 14 Oct 2026

Polymath: A Self-Optimizing Agent with Dynamic Hierarchical Workflow

arXiv 2508.02959 ↗First posted 4 Aug 2025cs.AI cs.LGcited by 2

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large language models (LLMs) excel at solving complex tasks by executing agentic workflows composed of detailed instructions and structured operations. Yet, building general-purpose agents by manually embedding foundation models into agentic systems such as Chain-of-Thought, Self-Reflection, and ReACT through text interfaces limits scalability and efficiency. Recently, many researchers have sought to automate the generation and optimization of these workflows through code-based representations. However, existing methods often rely on labeled datasets to train and optimize workflows, making them ineffective and inflexible for solving real-world, dynamic problems where labeled data is unavailable. To address this challenge, we introduce Polymath, a self-optimizing agent with dynamic hierarchical workflow that leverages the flexibility of task flow graphs and the expressiveness of code-represented workflows to solve a wide range of real-world, dynamic problems. The proposed optimization methodology integrates multi-grid-inspired graph optimization with a self-reflection-guided evolutionary algorithm to refine workflows without labeled data. Experimental results on six benchmark datasets across coding, math, and multi-turn QA tasks show that Polymath achieves 8.1% average improvement over state-of-the-art baselines.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 30 of its 51 references that are in the map. First posted on arXiv 4 Aug 2025.

Builds on

30 of 51 references.

Closest ancestors · 7

Same direction, newest first

  1. 2025AlphaEvolve: A coding agent for scientific and algorithmic discovery16 Jun
  2. 2025SEW: Self-Evolving Agentic Workflows for Automated Code Generation24 May
  3. 2025EvoFlow: Evolving Diverse Agentic Workflows On The Fly11 Feb
  4. 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Tool15 Aug
  5. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  6. 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents1 Jul
  7. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 23

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  6. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  7. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  8. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  9. 2021Program Synthesis with Large Language Modelscited by 3,637
  10. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  11. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
  12. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 634
11 more
  1. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
  2. 2015Illuminating search spaces by mapping elitescited by 425
  3. 2024Automated Design of Agentic Systemscited by 407
  4. 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaborationcited by 251
  5. 2024Data Interpreter: An LLM Agent For Data Sciencecited by 225
  6. 2024Symbolic Learning Enables Self-Evolving Agentscited by 106
  7. 2024AnalogCoder: Analog Circuit Design via Training-Free Code Generationcited by 84
  8. 2024Archon: An Architecture Search Framework for Inference-Time Techniquescited by 60
  9. 2022UniParser: A Unified Log Parser for Heterogeneous Log Datacited by 26
  10. 2024DRC-Coder: Automated DRC Checker Code Generation Using LLM Autonomous Agentcited by 15
  11. 2025Timing Analysis Agent: Autonomous Multi-Corner Multi-Mode (MCMM) Timing Debugging with Timing Debug Relation Graphcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026It Takes Workflows to Evolve Better Workflows
  2. 2024AFlow: Automating Agentic Workflow Generation
  3. 2026AgentFactory: Towards Automated Agentic System Design and Optimization
  4. 2026GraphFlow: A Graph-Based Workflow Management for Efficient LLM-Agent Serving
  5. 2026Coupled Hierarchical Search over Topology and Execution for Agentic Workflow Synthesis
  6. 2026FlowBank: Query-Adaptive Agentic Workflows Optimization through Precompute-and-Reuse
  7. 2026From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents
  8. 2026Workflow-R1: Group Sub-sequence Policy Optimization for Multi-turn Workflow Construction