GenFlow: Interactive Modular System for Image Generation

Duc-Hung Nguyen, Huu-Phuc Huynh, Minh-Triet Tran, Trung-Nghia LearXiv 2025

TL;DR

GenFlow is an interactive, modular framework that democratizes advanced generative art by combining a node-based visual editor with a natural language assistant called Flow Pilot. By leveraging a Retrieval-Augmented Generation (RAG) pipeline and an autonomous multi-agent web exploration engine, GenFlow automatically discovers, downloads, and configures complex image generation workflows (like ComfyUI) from simple text prompts, reducing setup times from over 12 minutes to just over 3 minutes.

What Problem Does This Paper Address?

While AI image generation tools like Midjourney and DALL-E 3 are highly accessible, they lack the deep customization required for advanced tasks like precise style transfer, complex image composition, or specific structural filtering. Advanced node-based visual programming interfaces like ComfyUI offer this flexibility but suffer from a steep learning curve.

Users must possess significant technical knowledge of Stable Diffusion pipelines, custom nodes (e.g., ControlNet, IPAdapter), and model checkpoints. Furthermore, manually searching for, downloading, and organizing these dependencies across fragmented repositories (like GitHub or Civitai) introduces massive friction for novices and casual creators. GenFlow aims to bridge this accessibility gap without sacrificing the granular control that power users need.

Methods

GenFlow integrates a user-friendly frontend with an intelligent backend automation pipeline:

  • The Interface: Consists of a visual Canvas for drag-and-drop node configuration and Flow Pilot, a natural language chat assistant that translates user requests (e.g., "generate an image in a new style based on reference image outline") into functional node graphs.
  • RAG Pipeline: The system crawls existing workflows, cleans their descriptions, and indexes them into a Weaviate vector database using GoogleAI's models/embedding-001. When a user inputs a query, GenFlow performs a semantic search, ranks the workflows by popularity (likes), and uses a Large Language Model (LLM) to validate and present the best options.
  • Multi-Agent Web Exploration Engine: If the local database lacks a suitable workflow, a hierarchical multi-agent system takes over. A supervisor agent coordinates two specialized workers:
  • Web Suffer Agent: Combines element detection (via WebVoyager's Set-of-Mark prompting) with functional inference (via OmniParser) to autonomously navigate web UIs, scrape workflows, and find missing model checkpoints.
  • File Suffer Agent: Automatically parses the downloaded workflow data, extracts dependencies, and structures them correctly for the backend.
Fig. 1. GenFlow interface, including two key components: Canvas for efficient workflow creation and management and Flow Pilot for smart workflow search.

Datasets

The paper does not introduce or train on new image datasets. Instead, it utilizes pre-existing Stable Diffusion checkpoints and online workflow repositories (such as Workflow-ComfyUI, OpenArt, and Civitai) to populate its vector database. For system evaluation, the authors designed a user study featuring five tasks of varying difficulty, ranging from Image Super-Resolution (Easy) to Virtual Try-On (Advanced).

Key Insights and Ideas

  • Hybrid Interaction is Key: Pure text prompts limit control, while pure node graphs limit accessibility. Combining them via an LLM assistant that populates a visual canvas offers the "best of both worlds."
  • Synergistic Web Agents: By combining WebVoyager’s visual grounding with OmniParser’s functional inference (Algorithm 1), the authors created a more robust web agent capable of handling the dynamic, deeply nested layouts typical of AI art community platforms.
  • The Local Cache Advantage: Generative art models are massive (often >6 GB). Caching metadata and workflows locally turns an otherwise unusable, multi-minute download and configuration bottleneck into a near-instantaneous local setup.
Fig. 2. The framework operates through two distinct phases: (a) Offline stage - crawled workflows are preprocessed to remove noise (e.g., hashtags, links) and indexed into a Weaviate vector database. (b) Online stage - user queries trigger a semantic search; if relevant results are found, they are post-processed and returned. If no suitable workflows are retrieved, a hierarchical multi-agent web exploration system is activated. A supervisor agent coordinates two workers: one searches the web for relevant workflows and model checkpoints, while the other downloads model checkpoints and stores them in the correct folder structure required for ComfyUI to function properly.

Key Results

  • Efficiency Gains: Without GenFlow, the traditional approach of searching the web, reviewing documentation, and manually downloading code/models takes an average of 12 minutes and 47 seconds. GenFlow slashes this to 3 minutes and 13 seconds.
  • Database Impact: Quantitative testing showed that leveraging the local database for a standard image-to-image workflow setup takes only 13,881 milliseconds (approx. 14 seconds), compared to a staggering 936,258,491 milliseconds (approx. 10.8 days of continuous downloading/searching if large models must be fetched over poor connections from scratch).
  • User Satisfaction: A study with 13 participants (ranging from AI experts to novices) gave GenFlow high marks, particularly for Usefulness (4.3/5) and Ease of Use (4.2/5). All participants successfully completed all five creative tasks.
Qualitative results from the user study

Limitations and Future Work

Despite its success, the authors note several areas for improvement based on user feedback:

  • Multimodal Queries: Flow Pilot currently relies on text. Future versions need to support multimodal inputs, allowing users to provide sketches or reference images directly to the chat assistant to refine workflow discovery.
  • UI Adaptability: Novices still occasionally found the node interface intimidating; the authors plan to explore adaptive UI features that simplify or personalize layouts based on user expertise.
  • Collaboration: The system currently operates in isolation. Developing a community-driven repository for users to collaboratively share and refine workflows directly within the app is a key future goal.

Summary updated

BibTeX
@misc{nguyen2025genflow,
  author = {Duc-Hung Nguyen and Huu-Phuc Huynh and Minh-Triet Tran and Trung-Nghia Le},
  title = {{GenFlow: Interactive Modular System for Image Generation}},
  year = {2025},
  eprint = {2506.21369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.21369},
}
Figure