Knowledge-Centric Agents for Workflow Generation in ComfyUI
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Workflow generation in visual creation systems such as ComfyUI demands not only syntactic accuracy but also expert-level reasoning over modular compositions. Existing large language model (LLM) approaches often treat this as a direct text-to-JSON generation task, struggling with structural brittleness and lacking the experiential knowledge required for effective design. We argue that successful workflow generation requires modeling knowledge itself, including its structure, hierarchy, and reasoning dynamics. To this end, we propose a knowledge-centric framework that learns to invert, inject, and infer with knowledge across multiple abstraction levels. We first perform knowledge inversion to distill hierarchical representations, ranging from full pseudo-codes and skeletons to high-level strategies, from large collections of real-world workflows. We then conduct knowledge injection through supervised fine-tuning, teaching the model to reason from task descriptions to strategies and from strategies to executable structures. During inference, the model performs reversible reasoning to synthesize executable workflows, augmented by self-refinement for structural coherence. Extensive experiments demonstrate that our method produces workflows with richer node diversity, more coherent structures, and higher execution success rates than existing systems, establishing a new foundation for knowledge-driven, agentic workflow generation.
Key facts. Cited by 2 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 38 of its 45 references that are in the map. First posted on arXiv 17 Jul 2026.
Builds on
38 of 45 references.
Closest ancestors · 1
Same direction, newest first
- 2025ComfyGPT: A Self-Optimizing Multi-Agent System for Comprehensive ComfyUI Workflow Generation22 Mar
Other references · 37
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2025Qwen3 Technical Reportcited by 8,195
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
25 more
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
- 2022Multi-Concept Customization of Text-to-Image Diffusioncited by 1,099
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2023Visual ChatGPT: Talking, Drawing and Editing with Visual Foundation Modelscited by 659
- 2022BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Miningcited by 531
- 2019Learning agile and dynamic motor skills for legged robotscited by 402
- 2025ToolRL: Reward is All Tool Learning Needscited by 342
- 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 314
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2023Multimodal Foundation Models: From Specialists to General-Purpose Assistantscited by 247
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2023AutoAgents: A Framework for Automatic Agent Generationcited by 211
- 2023DreamEdit: Subject-driven Image Editingcited by 37
- 2024ComfyBench: Benchmarking LLM-based Agents in ComfyUI for Autonomously Designing Collaborative AI Systemscited by 30
- 2025ComfyMind: Toward General-Purpose Generation via Tree-Based Planning and Reactive Feedbackcited by 15
- 2025ComfyUI-R1: Exploring Reasoning Models for Workflow Generationcited by 15
- 2025ComfyUI-Copilot: An Intelligent Assistant for Automated Workflow Developmentcited by 11
- 2024ComfyGI: Automatic Improvement of Image Generation Workflowscited by 5
- 2025Symbolic Representation for Any-to-Any Generative Taskscited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026ComfySearch: Autonomous Exploration and Reasoning for ComfyUI Workflows
- 2026COMFYCLAW: Self-Evolving Skill Harnesses for Image Generation Workflows
- 2026Chat2Workflow: A Benchmark for Generating Executable Visual Workflows with Natural Language
- 2026ExpertVerse: A General-Purpose Benchmark for Expert-Level Reasoning in Knowledge-Intensive Visual Synthesis
- 2025StarFlow: Generating Structured Workflow Outputs From Sketch Images
- 2026Learning to Compose for Cross-domain Agentic Workflow Generation
- 2026Workflow-Localized Mechanism Learning: Attribution-Guided Repair and Knowledge Reuse for Structured Agent Skills
- 2025GoT: Unleashing Reasoning Capability of Multimodal Large Language Model for Visual Generation and Editing