Skill evolution improves agent performance in image generation workflows

COMFYCLAW uses a region-level VLM verifier and a progressively disclosed skill library to outperform baselines without skill evolution.

PaperBig Techcs.AIarXiv:2607.01709v1
Zongxia Li · Dawei Liu · Fuxiao Liu · Yuhang Zhou · Xiyang Wu · Jingxi Chen · +3 more

University of Pennsylvania · Nvidia · Lehigh University · University of Maryland

Research Digest··3 min read
The authors introduce COMFYCLAW, an agentic harness that controls ComfyUI workflows for image generation. By representing workflow construction as typed graph editing, reverting invalid edits, and using a region-level vision-language model (VLM) verifier to provide actionable repair suggestions, COMFYCLAW evolves a skill library from past trajectories, errors, and verifier feedback. Across four benchmark splits, three agent models, and two image backbones, COMFYCLAW achieves the best average evaluation score in all six agent configurations, and human annotators prefer its outputs over variants without skill evolution.

what_they_did

The authors developed COMFYCLAW, an agent system that interacts with ComfyUI—a node-based image generation tool—by treating workflow construction as editing a typed graph. The system provides tools organized by construction stage (e.g., adding nodes, connecting edges), automatically reverts invalid edits, and uses a region-level VLM verifier (based on a pretrained vision-language model) to detect visual defects and translate them into specific repair suggestions. Over multiple runs, COMFYCLAW distills successful trajectories, execution errors, and verifier feedback into a reusable 'Agent Skill' library that is progressively disclosed to the agent. The framework was evaluated on four benchmark splits (each containing different image generation tasks), using three different agent models (e.g., GPT-4, Llama, etc.) and two image generation backbones (presumably Stable Diffusion variants). The baseline was a verifier-only version without skill evolution.

key_findings

  • COMFYCLAW achieved the highest average evaluation score across all six agent configurations (3 agents × 2 backbones), outperforming the verifier-only baseline without skill evolution.
  • Human annotators preferred the outputs of COMFYCLAW over the baseline in pairwise comparisons, as measured by annotation studies.
  • The skill library grew over time, with the agent successfully reusing skills from prior runs to reduce errors and improve image quality, as shown by ablation studies.
  • The region-level VLM verifier provided specific, actionable repair suggestions (e.g., 'adjust saturation in region X') that were more effective than global image-level feedback.

why_it_matters

This work demonstrates that agent memory—in the form of reusable skills distilled from past experience—can significantly improve the reliability and performance of agents in complex, recurring visual workflow tasks. The approach is domain-agnostic in principle and could be applied to other workflow-based creative tools, suggesting a path toward more autonomous and adaptive agents for content creation.

caveats

The evaluation is limited to image generation workflows in ComfyUI; it is unclear how well the approach generalizes to other domains or tools. The skill library is specific to the workflow structure and may not transfer across different user preferences or task types. The region-level VLM verifier requires a pretrained vision-language model and may inherit its biases or failure modes. The paper does not report the computational cost of skill evolution or the number of runs needed before benefits appear.

§

Analysis

The paper sits at the intersection of agent memory, tool use, and creative AI. Prior work on agent memory (e.g., MemGPT, Reflexion) has focused on text-based tasks or code generation; COMFYCLAW extends these ideas to the visual domain by using a VLM verifier as a reward signal. The staged tool organization and graph edit representation are novel contributions that reduce the search space for the agent. The progressive disclosure of the skill library is reminiscent of curriculum learning but applied to agent skill acquisition. An open question is whether the skills can be shared across users or tasks—the paper does not explore cross-task generalization.

newspaper

Research Digest

Articles published under the Zotpaper byline are synthesized from multiple source publications by our AI editor and reviewed by our editorial process. Each story combines reporting from credible outlets to give readers a balanced, comprehensive view.