Knowledge-Centric Agents for Workflow Generation
This paper proposes a knowledge-centric framework that enhances workflow generation in visual creation systems by learning to invert, inject, and infer hierarchical knowledge from real-world examples, thereby achieving superior structural coherence and execution success rates compared to existing direct text-to-JSON approaches.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to build a complex machine out of LEGO bricks, but instead of snapping them together with your hands, you have to describe the entire blueprint to a robot using only words. This is the world of ComfyUI, a popular tool for creating images with artificial intelligence. In this system, every step of the creative process—like changing a color, sharpening a face, or making an image bigger—is a separate "block" or "node." To get a great result, you have to connect hundreds of these blocks in a very specific order, like a giant, intricate circuit board. If you connect the wrong two blocks, or forget to plug in a power cord (a parameter), the whole machine sputters and stops working.
For a long time, people tried to use Large Language Models (LLMs)—the same kind of smart AI that writes stories or answers questions—to automatically build these blueprints. The idea was simple: tell the AI, "Make me a picture of a steampunk airship," and have it spit out the perfect LEGO instructions. But here's the problem: these AI models are great at writing sentences, but they are terrible at building complex structures. They often forget how the blocks connect, mix up the instructions, or create blueprints that look good on paper but fall apart when you try to build them. They lack the "experience" of a human expert who knows why you connect Block A to Block B, not just that you should.
This brings us to a new paper by Zhendong Li and their team, who propose a clever new way to teach AI how to be a master builder. Instead of just asking the AI to guess the final blueprint, they teach it to think like an expert human designer. They call this a Knowledge-Centric approach. Think of it like this: if you want to teach a student how to bake a perfect cake, you don't just show them the finished cake and say, "Copy this." You teach them the strategy (why we mix eggs first), the skeleton (the list of steps without the exact measurements), and finally the recipe (the exact grams of flour).
The authors discovered that existing AI methods were failing because they tried to jump straight from the user's request to the final, messy code. To fix this, they invented a three-step process they call Knowledge Inversion, Injection, and Inference.
First, they took thousands of real, working blueprints created by humans and ran them through a "reverse engineer" process. They stripped away the messy details to find the hidden patterns. It's like taking apart a thousand different cars to figure out the general rules of how engines work, rather than just memorizing the shape of one specific car. They distilled these blueprints into three layers:
- High-Level Strategy: The "big picture" plan (e.g., "We need to fix the face first, then change the style").
- Skeleton Pseudo-code: The rough outline of the steps, without the specific numbers.
- Full Pseudo-code: The complete, detailed instructions ready to be built.
Next, they injected this distilled knowledge into an AI model. They didn't just feed it data; they taught it to reason through these layers. They showed the model: "Here is a task, here is the strategy an expert would use, and here is how that strategy turns into a skeleton." This is like giving the student a cookbook that explains the logic of cooking, not just the recipes.
Finally, when a user asks for a new image, the AI doesn't just guess. It infers the solution by working backwards through the layers it learned. It first figures out the high-level strategy, then builds the skeleton, and finally fills in the specific details. The paper also includes a "self-refinement" step, where the AI double-checks its own work, asking, "Did I connect these blocks correctly?" before finalizing the plan.
The results are impressive. The team tested their method against other AI tools on a dataset of over 900 real-world tasks. While other methods managed to create working blueprints less than half the time, this new "Knowledge-Centric" agent succeeded in 86.9% of cases. In terms of building complex, diverse structures, their method scored a 152 on a diversity scale, while the next best method only reached 42. Even when tested on brand-new, difficult tasks that the AI had never seen before, it still managed to succeed 66.7% of the time, far outperforming the competition.
The authors suggest that by teaching AI to understand the structure and reasoning behind the work, rather than just memorizing patterns, we can create agents that are much more reliable. They admit that the system still struggles a little when asked to use very rare, unusual blocks that weren't in its training data, but overall, they have shown that giving AI a "mental model" of how experts think is the key to building better, more complex creative tools. It's a shift from asking a robot to "guess the answer" to teaching it "how to think," turning a brittle, error-prone process into a robust, expert-level craft.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.