Knowledge-Centric Agents Improve AI Workflow Generation

Zhendong Li, Lei Sun, Ruibo Ming, He Zhang, Danda Pani Paudel, Luc Van Gool, Jinjin Gu· July 20, 2026 View original

Summary

This research proposes a knowledge-centric framework for workflow generation in visual creation systems like ComfyUI, moving beyond direct text-to-JSON. It learns to invert, inject, and infer knowledge across abstraction levels, distilling hierarchical representations from real-world workflows to produce more diverse, coherent, and executable results.

Generating workflows in visual creation systems, such as ComfyUI, demands not only syntactic correctness but also expert-level reasoning for modular compositions. Current large language model (LLM) approaches often treat this as a straightforward text-to-JSON conversion, which frequently results in structurally brittle outputs and lacks the experiential knowledge needed for effective design. This research argues that successful workflow generation requires explicitly modeling knowledge, including its structure, hierarchy, and reasoning dynamics. To address this, a knowledge-centric framework is introduced that learns to invert, inject, and infer knowledge across multiple abstraction levels. The process begins with knowledge inversion, distilling hierarchical representations—from full pseudo-codes and skeletons to high-level strategies—from extensive collections of real-world workflows. Subsequently, knowledge injection is performed through supervised fine-tuning, training the model to reason from task descriptions to strategies and then from strategies to executable structures. During inference, the model employs reversible reasoning to synthesize executable workflows, enhanced by self-refinement to ensure structural coherence. Extensive experiments demonstrate that this method yields workflows with greater node diversity, more coherent structures, and higher execution success rates compared to existing systems, establishing a new foundation for knowledge-driven, agentic workflow generation.

Why it matters

For AI engineers and product developers, this framework offers a significant leap in automating complex visual workflow creation, leading to more robust, diverse, and functional AI-generated designs and processes.

How to implement this in your domain

  1. 1Explore knowledge-centric approaches for automating complex workflow generation in visual AI tools.
  2. 2Investigate distilling hierarchical knowledge from existing successful workflows to train AI agents.
  3. 3Implement self-refinement mechanisms in AI-generated workflow systems to improve structural coherence.
  4. 4Apply this framework to design more effective and diverse AI-driven creative tools.

Who benefits

AI DevelopmentCreative IndustriesSoftware DevelopmentDesign AutomationRobotics

Key takeaways

  • Current LLM approaches struggle with complex workflow generation in visual systems.
  • A knowledge-centric framework learns to invert, inject, and infer knowledge hierarchically.
  • This method distills strategies from real-world workflows and uses reversible reasoning.
  • It produces more diverse, coherent, and executable workflows with higher success rates.

Original post by Zhendong Li, Lei Sun, Ruibo Ming, He Zhang, Danda Pani Paudel, Luc Van Gool, Jinjin Gu

"arXiv:2607.15845v1 Announce Type: new Abstract: 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 direc…"

View on X

Originally posted by Zhendong Li, Lei Sun, Ruibo Ming, He Zhang, Danda Pani Paudel, Luc Van Gool, Jinjin Gu on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses