Can Graph Learning Improve Task Planning?

LLM Latent Reasoning CoT Agent Agent Planning ML GNN and MP GNNs
2024年05月29日
任务规划是随着大型语言模型(LLMs)的发展而日益重要的研究课题。它旨在将复杂的用户请求分解为可解决的子任务,从而满足原始请求。在这种情况下,子任务可以自然地视为一个图,其中节点表示子任务,边表示它们之间的依赖关系。因此,任务规划是一个决策问题,涉及选择相应图中的连接路径或子图并调用它。在本文中,我们探索了基于图学习的任务规划方法,这是一种与提示设计的普遍关注方向不同的方向。我们对图学习的兴趣来自于一个理论发现:注意力和自回归损失的偏见妨碍了LLMs在图上有效地进行决策,而图神经网络(GNNs)可以熟练地解决这个问题。这一理论洞见促使我们将GNNs与LLMs集成以提高整体性能。广泛的实验表明,即使没有训练,基于GNN的方法也优于现有解决方案,并且最少的训练可以进一步提高它们的性能。此外,我们的方法补充了提示工程和微调技术,通过改进提示或微调模型可以进一步提高性能。
Task planning is emerging as an important research topic alongside the development of large language models (LLMs). It aims to break down complex user requests into solvable sub-tasks, thereby fulfilling the original requests. In this context, the sub-tasks can be naturally viewed as a graph, where the nodes represent the sub-tasks, and the edges denote the dependencies among them. Consequently, task planning is a decision-making problem that involves selecting a connected path or subgraph within the corresponding graph and invoking it. In this paper, we explore graph learning-based methods for task planning, a direction that is orthogonal to the prevalent focus on prompt design. Our interest in graph learning stems from a theoretical discovery: the biases of attention and auto-regressive loss impede LLMs' ability to effectively navigate decision-making on graphs, which is adeptly addressed by graph neural networks (GNNs). This theoretical insight led us to integrate GNNs with LLMs to enhance overall performance. Extensive experiments demonstrate that GNN-based methods surpass existing solutions even without training, and minimal training can further enhance their performance. Additionally, our approach complements prompt engineering and fine-tuning techniques, with performance further enhanced by improved prompts or a fine-tuned model.
许愿