Lune

ACL Findings2026

ComfyFlow: Benchmarking LLMs for AIGC Workflow Generation

Zhenran Xu, Yiyu Wang, Yunxin Li, Muyang Ye, Xue Yang, Kai Chen, Longyue Wang, Weihua Luo, Baotian Hu, Min Zhang

Abstract

Large language models (LLMs) have shown promising advancements in tackling humanlevel tasks, wherein generating workflows for collaborative AI systems remains a critical and challenging step. To explore this frontier, we introduce COMFYFLOW, a comprehensive benchmark to evaluate current LLMs' ability to generate executable and instruction-following AIGC workflows in ComfyUI. The dataset includes 400 diverse visual generation tasks across 20 categories, supported by 10K training examples constructed from knowledge bases, which contain detailed annotations for 2,480 nodes and 3,298 workflows. We establish a systematic evaluation protocol that quantifies performance across multiple dimensions, ranging from basic format validity to multi-level hallucination rates. Our extensive evaluations show that: 1) COMFYFLOW presents a substantial challenge even for top-tier proprietary LLMs such as GPT-5.1 and the Claude series; 2) Open-source models achieve new state-of-the-art results after post-training, yet struggle with long-horizon planning as the number of nodes increases; 3) Different post-training strategies offer complementary benefits in following instructions and mitigating hallucinations. By establishing both a challenging benchmark and a principled evaluation scheme, COMFYFLOW lays the foundation for developing more intelligent and reliable collaborative AI systems 1 .

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · related work

Get the answer

Free to start. No credit card required.

Builds on17

  1. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  2. SDXL: Improving Latent Diffusion Models for High-Resolution Image SynthesisDustin Podell, Zion English, Kyle Lacey, Andreas Blattmann et al.ICLR 2024 · 4,569 citations
  3. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
  4. ChatEval: Towards Better LLM-based Evaluators through Multi-Agent DebateChi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu et al.ICLR 2024 · 871 citations
  5. AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent BehaviorsWeize Chen, Yusheng Su, Jingwei Zuo, Cheng Yang et al.ICLR 2024 · 594 citations

Related papers

  1. ComfyBench: Benchmarking LLM-based Agents in ComfyUI for Autonomously Designing Collaborative AI SystemsXiangyuan Xue, Zeyu Lu, Di Huang, Zidong Wang et al.CVPR 2025
  2. ComfyUI-R1: Exploring Reasoning Models for Workflow GenerationZhenran Xu, Yiyu Wang, Xue Yang, Longyue Wang et al.ACL Findings 2026 · 1 citation
  3. AFlow: Automating Agentic Workflow GenerationJiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng et al.ICLR 2025
  4. ComfyMind: Toward General-Purpose Generation via Tree-Based Planning and Reactive FeedbackLitao Guo, Xinli Xu, Luozhou Wang, Jiantao Lin et al.NeurIPS 2025 · 18 citations
  5. FlowBench: Revisiting and Benchmarking Workflow-Guided Planning for LLM-based AgentsRuixuan Xiao, Wentao Ma, Ke Wang, Yuchuan Wu et al.EMNLP Findings 2024 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines