atlas

Research map / Multi-agent systems and games / LLM agents

ComfyBench: Benchmarking LLM-based Agents in ComfyUI for Autonomously Designing Collaborative AI Systems

CVPR 2025 · Multi-agent systems and games › LLM agents · approach: Robust and efficient agent execution · 9 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces ComfyBench, a 200-task benchmark for LLM agents designing ComfyUI workflows, and ComfyAgent, a code-represented multi-agent system that matches o1-preview's resolve rate.

Problem

LLM-based agents need to autonomously design collaborative AI systems, here ComfyUI workflows, from natural-language instructions; existing agents struggle with JSON workflow representations, context limits, and hallucinated nodes.

Approach

Represent ComfyUI workflows as restricted Python-like code that is reversibly convertible to JSON, and generate them with a multi-agent framework (PlanAgent, RetrieveAgent, CombineAgent, AdaptAgent, RefineAgent) that learns from curriculum workflows and a node-document base.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ComfyAgent instead of RAGGPT-4o · ComfyBench totalresolve rate: 23.0 -> 32.5Helped
Use ComfyAgent instead of RAGGPT-4o · ComfyBench totalpass rate: 52.0 -> 56.0Helped
Use ComfyAgent instead of RAGGPT-4o · ComfyBench totalresolve rate: 32.5 -> 32.5No clear effect
Represent workflows as code instead of JSON (ablation)GPT-4o + RAG · ComfyBench vanillaresolve rate: 33.0 -> 41.0Helped
Represent workflows as code instead of JSON (ablation)GPT-4o + RAG · ComfyBench complexpass rate: 25.0 -> 45.0Helped
Represent workflows as code instead of JSON (ablation)GPT-4o + RAG · ComfyBench creativeresolve rate: 7.5 -> 7.5No clear effect
Add CombineAgent (ablation)ComfyAgent · ComfyBench complexpass rate: 15.0 -> 48.3Helped
Add CombineAgent (ablation)ComfyAgent · ComfyBench vanillapass rate: 69.0 -> 67.0Hurt
Add AdaptAgent (ablation)ComfyAgent · ComfyBench vanillaresolve rate: 26.0 -> 46.0Helped
Add RetrieveAgent (ablation)ComfyAgent · ComfyBench vanillapass rate: 27.0 -> 67.0Helped
Add RefineAgent (ablation)ComfyAgent · ComfyBench complexpass rate: 43.3 -> 48.3Helped
Add RefineAgent (ablation)ComfyAgent · ComfyBench complexresolve rate: 21.7 -> 21.7No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ComfyBench node documents (3,205 nodes, cloned from Salt AI Documentation) ComfyBench curriculum workflows (20)

Benchmarks: ComfyBench

Metrics: pass rate resolve rate token cost

Baselines: GPT-4o zero-shot GPT-4o few-shot GPT-4o CoT GPT-4o CoT-SC Claude-3.5-Sonnet RAG Llama-3.1-70B RAG o1-mini RAG o1-preview RAG CAMEL Multi-agent Debate

Builds on: CodeAct Retrieval-Augmented Generation Chain-of-Thought DSPy GPTSwarm

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy