程序图:LLM智能体的自进化执行结构
Procedural Graphs: Self-Evolving Execution Structures for LLM Agents
斯坦福团队提出程序图,让LLM智能体像知识图谱一样组织行动知识,能自动优化决策流程。
研究人员提出程序图(Procedural Graph),将程序知识组织为(程序,关系,程序)三元组,用于指导LLM智能体的行动决策。该框架通过定位活动节点,利用指导模型将子图转化为情境指导,帮助智能体保持目标一致性。程序图具有自进化能力,LLM优化器通过对比成功与失败轨迹来改进图结构,在多个数据集和任务类型中均超越基线性能。
Procedural Graphs: Self-Evolving Execution Structures for LLM Agents
Large language models are increasingly deployed as agents that plan over long horizons and act through external tools. Most agents select actions through unconstrained generation over an accumulating history, leaving implicit the procedural knowledge of what to do, in what order, and under which conditions. As trajectories lengthen, agents can lose track of their objectives, invoke tools out of order, and repeat unproductive actions. We introduce the Procedural Graph: just as a knowledge graph organizes factual knowledge into (entity, relation, entity) triplets for what-is questions, a Procedural Graph organizes procedural knowledge into (procedure, relation, procedure) triplets for what-to-do questions. At each decision step, the framework localizes the agent's active node, and a guidance model translates the surrounding subgraph into step-level situational guidance that biases the solver's next action without dictating it. The graph is self-evolving: an LLM refiner contrasts failed trajectories with successful ones and edits the graph's topology and attributes, committing edits that preserve or improve held-out validation performance while retaining rejected ones to discourage repetition. Starting from a minimal skeleton, the loop builds graphs that match or surpass hand-designed ones. It can also repair a flawed expert prior. Across multiple datasets, task types, and LLMs, the Procedural Graph delivers consistent gains over memory-based baselines, and self-evolution further improves performance without manual engineering.