Research map / Large language models / Agents, code and math
ComfyUI-R1: Exploring Reasoning Models for Workflow Generation
Zhenran Xu, Yiyu Wang, Xue Yang, Longyue Wang, Weihua Luo, Kaifu Zhang, Baotian Hu, Min Zhang
Harbin Institute of Technology · Alibaba Group
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
add CoT reasoning to in-context demonstrations · ComfyUI workflow test set · format validity: 0.25 -> 0.41 Improved
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add GRPO reinforcement learning after SFT (ablation) | ComfyUI-R1 · ComfyUI workflow test set | format validity: 0.95 -> 0.97 | Improved |
| add GRPO reinforcement learning after SFT (ablation) | ComfyUI-R1 · ComfyUI workflow test set | graph-level F1: 0.48 -> 0.51 | Improved |
| use code instead of JSON workflow representation (ablation) | SFT-only ComfyUI-R1 · ComfyUI workflow test set | graph-level F1: 0.45 -> 0.48 | Improved |
| use code instead of JSON workflow representation (ablation) | SFT-only ComfyUI-R1 · ComfyUI workflow test set | format validity: 0.92 -> 0.95 | Improved |
| two-stage SFT + GRPO training | Qwen2.5-Coder-7B-Instruct · ComfyUI workflow test set | format validity: 0.41 -> 0.97 | Improved |
| add CoT reasoning to in-context demonstrations | Qwen2.5-Coder-7B-Instruct · ComfyUI workflow test set | format validity: 0.25 -> 0.41 | Improved |
| add CoT reasoning to in-context demonstrations | GPT-4o · ComfyUI workflow test set | node-level F1: 0.50 -> 0.50 | No clear effect |
| add CoT reasoning to in-context demonstrations | Claude 3.5 Sonnet · ComfyUI workflow test set | node-level F1: 0.52 -> 0.57 | Improved |
| use ComfyUI-R1 instead of ComfyAgent | GPT-4o ComfyAgent · ComfyBench | pass rate: 0.56 -> 0.67 | Improved |
| use ComfyUI-R1 instead of Claude 3.5 Sonnet CoT | Claude 3.5 Sonnet CoT · ComfyUI workflow test set | format validity: 0.97 -> 0.97 | No clear effect |
Later papers that compared with this method
1 later accepted paper reports ComfyUI-R1 as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- ComfySearch: Autonomous Exploration and Reasoning for ComfyUI Workflows (EMNLP 2026 · better on 1 of 1 shared result)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- ComfyMind: Toward General-Purpose Generation via Tree-Based Planning and Reactive Feedback (NeurIPS 2025 · similarity 0.89)
- DyFlow: Dynamic Workflow Framework for Agentic Reasoning (NeurIPS 2025 · similarity 0.87)
- Benchmarking Agentic Workflow Generation (ICLR 2025 · similarity 0.86)
- Optimize Once, Execute Fast: Latency-Aware Multi-Agent Workflow Learning for Recurrent Queries (NeurIPS 2026 · similarity 0.86)
- WorkflowLLM: Enhancing Workflow Orchestration Capability of Large Language Models (ICLR 2025 · similarity 0.86)
- Workspace-Bench 1.0: Benchmarking AI Agents on Workspace Tasks with Large-Scale File Dependencies (NeurIPS 2026 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.