mlsanityData to 7 Oct 2026

MermaidFlow: Redefining Agentic Workflow Generation via Safety-Constrained Evolutionary Programming

arXiv 2505.22967 ↗First posted 29 May 2025cs.LG cs.MAcited by 14

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

Abstract (arXiv)

Despite the promise of autonomous agentic reasoning, existing workflow generation methods frequently produce fragile, unexecutable plans due to unconstrained LLM-driven construction. We introduce MermaidFlow, a framework that redefines the agentic search space through safety-constrained graph evolution. At its core, MermaidFlow represent workflows as a verifiable intermediate representation using Mermaid, a structured and human-interpretable graph language. We formulate domain-aware evolutionary operators, i.e., crossover, mutation, insertion, and deletion, to preserve semantic correctness while promoting structural diversity, enabling efficient exploration of a high-quality, statically verifiable workflow space. Without modifying task settings or evaluation protocols, MermaidFlow achieves consistent improvements in success rates and faster convergence to executable plans on the agent reasoning benchmark. The experimental results demonstrate that safety-constrained graph evolution offers a scalable, modular foundation for robust and interpretable agentic reasoning systems.

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

Builds on

30 of 35 references.

Closest ancestors · 6

Same direction, newest first

  1. 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr
  2. 2025DebFlow: Automating Agent Creation via Agent Debate31 Mar
  3. 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
  4. 2025EvoFlow: Evolving Diverse Agentic Workflows On The Fly11 Feb
  5. 2025ScoreFlow: Mastering LLM Agent Workflows via Score-based Preference Optimization6 Feb
  6. 2024AFlow: Automating Agentic Workflow Generation14 Oct

Other references · 24

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  6. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  7. 2021Program Synthesis with Large Language Modelscited by 3,509
  8. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  9. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  10. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
  11. 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 995
  12. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
12 more
  1. 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 387
  2. 2024Automated Design of Agentic Systemscited by 360
  3. 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaborationcited by 281
  4. 2024Scaling Large Language Model-based Multi-Agent Collaborationcited by 235
  5. 2023AutoAgents: A Framework for Automatic Agent Generationcited by 211
  6. 2025Multi-agent Architecture Search via Agentic Supernetcited by 164
  7. 2024G-Designer: Architecting Multi-agent Communication Topologies via Graph Neural Networkscited by 110
  8. 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 106
  9. 2024Breaking Agents: Compromising Autonomous LLM Agents Through Malfunction Amplificationcited by 80
  10. 2024A Review of Prominent Paradigms for LLM-Based Agents: Tool Use (Including RAG), Planning, and Feedback Learningcited by 74
  11. 2025FlowReasoner: Reinforcing Query-Level Meta-Agentscited by 56
  12. 2025MAS-GPT: Training LLMs to Build LLM-based Multi-Agent Systemscited by 45

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 11.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Co-evolving Agent Architectures and Interpretable Reasoning for Automated Optimization
  2. 2026GraphBit: A Graph-based Agentic Framework for Non-Linear Agent Orchestration
  3. 2026Learning to Compose for Cross-domain Agentic Workflow Generation
  4. 2025DyFlow: Dynamic Workflow Framework for Agentic Reasoning
  5. 2025A2Flow: Automating Agentic Workflow Generation via Self-Adaptive Abstraction Operators
  6. 2026GraphFlow: A Graph-Based Workflow Management for Efficient LLM-Agent Serving
  7. 2026AgentXRay: White-Boxing Agentic Systems via Workflow Reconstruction
  8. 2026Tools as Continuous Flow for Evolving Agentic Reasoning