基于胞腔工作流复形的拓扑一致任务规划:面向基于大语言模型的智能体

arXiv cs.AI 论文

摘要

论文提出了TopoPlanner,一个拓扑一致的规划框架,将工具依赖图提升为胞腔工作流复形,以引导大语言模型的工具规划。该框架能够处理验证-修正循环、分支合并以及可复用中间状态等超出顺序或有向无环图式工作流的场景,在四个基准测试中相对基线均取得一致提升。

arXiv:2610.07004v1 Announce Type: new Abstract: Task planning for LLM agents requires workflows that satisfy both user intent and complex sub-task dependencies. While existing planners work well for sequential or directed acyclic graph (DAG)-like structures, they struggle with workflow patterns such as verification-correction loops, convergent branch merging, and reusable intermediate states that arise naturally in real-world tool orchestration. We present TopoPlanner, a topology-consistent planning framework that lifts tool dependency graphs into cellular workflow complexes and uses them as topologyaware context for LLM tool planning. TopoPlanner retrieves a request-relevant closed subcomplex through cosheaf-consistent cellular retrieval, performs multidimensional structural reasoning over the retrieved topology, and interfaces the resulting cellular representation with the planner LLM for tool-sequence generation. Experiments on four tool-planning benchmarks with topology-guided loop, merge, and loop-merge workflows show consistent improvements over prompt-based and graph-enhanced baselines across different local LLM backbones.
查看原文
查看缓存全文

缓存时间: 2026/10/08 12:09

# Topology-Consistent Task Planning over Cellular Workflow Complexes for LLM-based Agents
Source: [https://arxiv.org/html/2610.07004](https://arxiv.org/html/2610.07004)
Sen Zhao Jia Tang Ruiqi KongAffiliation:Academy of Advanced Interdisciplinary Studies,Chongqing University of Posts and Telecommunications, Chongqing, ChinaZuyu Zhang Lifeng Shen Ding ZouAffiliation:Academy of Advanced Interdisciplinary Studies,Chongqing University of Posts and Telecommunications, Chongqing, ChinaAffiliation:School of Artificial Intelligence,Chongqing University of Posts and Telecommunications, Chongqing, ChinaAffiliation:Intelligent System Department, Zhongxing Telecom Equipment \(ZTE\),Changsha, Hunan, ChinaXinyu He Xu Zhang Junwei Han11footnotemark:1††thanks:Corresponding authors: Xu Zhang and Junwei Han\.Affiliation:Academy of Advanced Interdisciplinary Studies,Chongqing University of Posts and Telecommunications, Chongqing, ChinaAffiliation:School of Artificial Intelligence,Chongqing University of Posts and Telecommunications, Chongqing, ChinaAffiliation:Towngas, ChinaAffiliation:School of Automation, Northwestern Polytechnical University, Xi’an, China

###### Abstract

Task planning for LLM agents requires workflows that satisfy both user intent and complex sub\-task dependencies\. While existing planners work well for sequential or directed acyclic graph \(DAG\)\-like structures, they struggle with workflow patterns such as verification\-correction loops, convergent branch merging, and reusable intermediate states that arise naturally in real\-world tool orchestration\. We present TopoPlanner, a topology\-consistent planning framework that lifts tool dependency graphs into cellular workflow complexes and uses them as topology\-aware context for LLM tool planning\. TopoPlanner retrieves a request\-relevant closed subcomplex through cosheaf\-consistent cellular retrieval, performs multi\-dimensional structural reasoning over the retrieved topology, and interfaces the resulting cellular representation with the planner LLM for tool\-sequence generation\.Experiments on four tool\-planning benchmarks with topology\-guided loop, merge, and loop\-merge workflows show consistent improvements over prompt\-based and graph\-enhanced baselines across different local LLM backbones\.

## 1Introduction

Large language model \(LLM\) agents are becoming a practical interface for tool use, autonomous exploration, and complex decision making \([Wang et al\. \(2024a\)](https://arxiv.org/html/2610.07004#bib.bib14);[Bubeck et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib12);[Jiang et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib48)\)\. Their effectiveness depends critically on task planning: given a natural\-language request, the agent must decompose the request into executable sub\-tasks, organize their dependencies, and produce a workflow that can be grounded into tools or actions \([Schick et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib9);[Shen et al\. \(2024a\)](https://arxiv.org/html/2610.07004#bib.bib13);[Shen et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib11)\)\. In realistic agentic settings, this workflow must capture not only individual sub\-tasks, but also the dependency structure that makes them executable as a coherent process\.

This exposes a structural gap in existing planners\. Most LLM planning methods are strongest when the workflow is sequential or approximately directed acyclic graph \(DAG\)\-like, where pairwise task adjacency already captures most of the required structure \([Wei et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib24);[Yao et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib25);[Shinn et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib28)\)\. As illustrated in Fig\.[1](https://arxiv.org/html/2610.07004#S1.F1), real\-world tool orchestration is often more complex: it may involve verification\-correction loops, convergent branch merging, and reusable intermediate states\.Although these structures can be encoded by edges, their joint regional organization remains implicit in pairwise message passing and pooled graph summaries\.In these settings, the key dependency patterns arise from how multiple relations jointly form loop, merge, and reuse structures, rather than from isolated edges\.This motivates*topology\-consistent task planning*beyond pairwise adjacency\.

![Refer to caption](https://arxiv.org/html/2610.07004v1/Motivation_v4.png)Figure 1:LLM task planning across workflow topologies\.Recent graph\-enhanced approaches inject structural bias into agent planning by coupling LLMs with graphs or GNNs \([Tang et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib20);[Chai et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib21);[Wu et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib30);[Chen et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib3);[Chen et al\. \(2026\)](https://arxiv.org/html/2610.07004#bib.bib1)\)\. GTool \([Chen et al\. \(2026\)](https://arxiv.org/html/2610.07004#bib.bib1)\) studies graph\-enhanced tool planning by encoding tool\-dependency graphs with a conventional node\-edge GNN and conditioning the planner on one pooled graph token\. These methods improve over pure prompting, but they still reason mainly over node\-edge structure and therefore leave cyclic or convergent workflow regions implicit\. This is restrictive when the critical structure of a workflow lies in loop, merge, and reuse patterns rather than in isolated pairwise relations\. Meanwhile, recent evidence suggests that cyclic structure is not incidental: stronger reasoning models tend to exhibit richer loop patterns in their reasoning graphs \([Minegishi et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib32)\)\.

This perspective motivates a unified algebraic\-topological formulation of workflow structures\. Starting from a task workflow graph, we promote independent cycles induced by non\-tree edges into explicit cycle\-level cells, resulting in a*cellular workflow complex*\.In this complex, boundary relations organize sub\-tasks, dependencies, and non\-linear workflow regions within one multi\-dimensional structure, making region\-level dependencies explicit rather than implicit in pairwise paths\.

Building on this formulation, we proposeTopoPlanner, a topology\-consistent task planning framework for LLM agents\. TopoPlanner lifts the tool dependency graph into a cellular workflow complex, retrieves a request\-relevant closed subcomplex through cosheaf\-consistent cellular retrieval, performs multi\-dimensional structural reasoning over the retrieved topology, and interfaces the resulting cellular representation with the planner LLM for tool\-sequence generation\. To evaluate this setting, we extend four tool\-planning datasets, including the three TaskBench domains \([Shen et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib11)\) and ToolBench \([Chen et al\. \(2026\)](https://arxiv.org/html/2610.07004#bib.bib1)\), withtopology\-guidedloop, merge, and loop\-merge casesthat emphasize non\-linear workflow structure\. Experiments show that TopoPlanner consistently improves planning quality over prior baselines\. Our contributions in this work are summarized as follows:

- •We formulate loop, merge, and reuse dependencies as explicit regions in cellular workflow complexes, providing a unified multi\-dimensional representation of non\-linear workflows\.
- •We introduce TopoPlanner, which lifts a workflow graph into a cellular complex used for cosheaf\-consistent retrieval, multi\-dimensional reasoning, and topology\-guided planning\.
- •We construct topology\-guided extensions of four benchmarks with loop, merge, and loop\-merge cases, and show consistent improvements over the compared baselines across different local LLM backbones\.

## 2Preliminaries

Definition 1\. \(Cell Complex\)\.[Hansen and Ghrist \(2019\)](https://arxiv.org/html/2610.07004#bib.bib29)Aregular cell complexis a topological spaceXXdecomposed into a collection of disjoint subspaces\{Xσ\}σ∈PX\\\{X\_\{\\sigma\}\\\}\_\{\\sigma\\in P\_\{X\}\}, referred to ascells, satisfying the following conditions:

1. 1\.For eachx∈Xx\\in X, there exists an open neighborhood intersecting only finitely many cells\.
2. 2\.For any pair of cellsXσ,XτX\_\{\\sigma\},X\_\{\\tau\}, the intersectionXτ∩Xσ¯X\_\{\\tau\}\\cap\\overline\{X\_\{\\sigma\}\}is nonempty if and only ifXτ⊆Xσ¯X\_\{\\tau\}\\subseteq\\overline\{X\_\{\\sigma\}\}, whereXσ¯\\overline\{X\_\{\\sigma\}\}denotes the topological closure ofXσX\_\{\\sigma\}\.
3. 3\.Each cellXσX\_\{\\sigma\}is homeomorphic to an open ball inℝn\\mathbb\{R\}^\{n\}for some non\-negative integernn\.
4. 4\.\(Regularity\)The closureXσ¯\\overline\{X\_\{\\sigma\}\}of every cell is homeomorphic to a closed ball inℝnσ\\mathbb\{R\}^\{n\_\{\\sigma\}\}, with the interior mapped homeomorphically ontoXσX\_\{\\sigma\}itself\.

Definition 2\.Given a directed workflow graphG=\(V,E,T\)G=\(V,E,T\), letGuG\_\{u\}denote its underlying undirected graph, with the original edge directions retained as attributes\. For a connectedGuG\_\{u\}, a chosen spanning tree𝒯\\mathcal\{T\}defines acellular lifting mapf𝒯f\_\{\\mathcal\{T\}\}that constructs a regular cell complexX=f𝒯​\(G\)X=f\_\{\\mathcal\{T\}\}\(G\): its 0\-cells and 1\-cells correspond toVVandEE, and its 2\-cells are attached along the fundamental cycles ofGuG\_\{u\}induced by non\-tree edges\. Thus, the original directed dependencies remain on the 1\-skeleton while cycle\-level workflow regions are made explicit\.

Definition 3\. \(Topology\-Consistent Task Planning\)\.LetG=\(V,E,T\)G=\(V,E,T\)be a text\-attributed task graph, and letX=f𝒯​\(G\)X=f\_\{\\mathcal\{T\}\}\(G\)be its lifted regular cell complex under a cellular lifting mapf𝒯f\_\{\\mathcal\{T\}\}\(Definition 2\), where cells encode sub\-tasks and their higher\-order dependency structures\.Given a user instruction,*topology\-consistent task planning*selects a request\-relevant subcomplexX^⊆X\\widehat\{X\}\\subseteq Xaccording to two structural criteria: \(i\) boundary completeness, i\.e\., for every cellσ∈X^\\sigma\\in\\widehat\{X\}, its boundary satisfies∂σ⊆X^\\partial\\sigma\\subseteq\\widehat\{X\}; and \(ii\) request\-conditioned incidence compatibility between selected cofaces and their boundary cells, measured by the residual in Section[3\.2](https://arxiv.org/html/2610.07004#S3.SS2)\. Retrieval favors lower incidence inconsistency rather than imposing a universal correctness threshold\. These criteria define topology consistency of the retrieved structural context: they keep a selected higher\-dimensional cell together with its boundary and favor incidence\-compatible assignments\. They do not, by themselves, constitute a correctness or executability certificate for the tool sequence generated by the planner LLM\.

![Refer to caption](https://arxiv.org/html/2610.07004v1/Pics/model_topo.png)Figure 2:Overview of TopoPlanner\.
## 3The Proposed Model

In this section, we presentTopoPlanneras a topology\-consistent task planning framework over cellular workflow complexes, organized into four modules:Cellular Workflow Lifting,Cosheaf\-Consistent Cellular Retrieval,Multi\-Dimensional Structural Reasoning, andTopology\-Guided LLM Tool Planning\. Figure[2](https://arxiv.org/html/2610.07004#S2.F2)summarizes the overall framework\. The retrieved cellular representation is interfaced with the planner LLM through a soft graph token\.

### 3\.1Cellular Workflow Lifting

TopoPlanner views the workflow graph as the skeleton of a regular cellular complex and promotes selected cycles into explicit workflow regions\. The resulting complex unifies sub\-tasks, dependencies, and cycle\-level structure, so all later modules operate on one multi\-dimensional object\.

Given a directed workflow graphG=\(V,E,T\)G=\(V,E,T\), we form its underlying undirected graphGuG\_\{u\}while retaining each dependency direction as an edge attribute\. We regardGuG\_\{u\}as the 1\-skeleton of a regular cell complex: each vertex is a00\-cell, and each edge is a11\-cell attached to its endpoints\. For a connected graph, we fix a spanning tree𝒯⊆Gu\\mathcal\{T\}\\subseteq G\_\{u\}\(Appendix[C](https://arxiv.org/html/2610.07004#A3)\) and use the non\-tree edges to identify fundamental cycles\.

γ:Gu→Gu/𝒯,\{\\color\[rgb\]\{0,0,0\}\\gamma:G\_\{u\}\\to G\_\{u\}/\\mathcal\{T\},\}\(1\)whereGu/𝒯G\_\{u\}/\\mathcal\{T\}denotes the quotient space obtained by collapsing𝒯\\mathcal\{T\}into a single point\. Each non\-tree edgee=\(u,v\)∈E∖𝒯e=\(u,v\)\\in E\\setminus\\mathcal\{T\}induces a unique fundamental cycleℓe\\ell\_\{e\}inGuG\_\{u\}, formed byeeand the tree path connecting its endpoints\. We attach a cycle\-level cell along each such loop:

φe:∂D2→Gu\(1\),φe​\(∂D2\)=ℓe,\{\\color\[rgb\]\{0,0,0\}\\varphi\_\{e\}:\\partial D^\{2\}\\to G\_\{u\}^\{\(1\)\},\\qquad\\varphi\_\{e\}\(\\partial D^\{2\}\)=\\ell\_\{e\},\}\(2\)whereG\(1\)G^\{\(1\)\}is the 1\-skeleton of the induced CW complex\. This lifting step turns cycle\-level workflow structure into explicit cells while keeping it attached to the same node\-edge scaffold\.

Formally, the collection of cycle\-level cells constitutes

X\(2\)=\{xe2≃D2∣e=\(u,v\)∈E∖𝒯\},X^\{\(2\)\}=\\\{x^\{2\}\_\{e\}\\simeq D^\{2\}\\mid e=\(u,v\)\\in E\\setminus\\mathcal\{T\}\\\},\(3\)where each diskD2D^\{2\}is attached along its boundary∂D2≅S1\\partial D^\{2\}\\cong S^\{1\}via the loopℓe⊂Gu\\ell\_\{e\}\\subset G\_\{u\}\.

This lifting operation completes the construction of a 2\-dimensional regular cell complex:

X=X\(0\)∪X\(1\)∪X\(2\),X=X^\{\(0\)\}\\cup X^\{\(1\)\}\\cup X^\{\(2\)\},\(4\)where the added cycle\-level cells complement the original node\-edge scaffold by encoding workflow regions within the same cellular complex\. In the following, we use𝒳\\mathcal\{X\}to denote this lifted cellular workflow complex\.We encode node\-cell tool descriptions with a pre\-trained text encoder, initialize dependency cells from textualized relations, and derive cycle\-cell features from their boundaries\.

###### Proposition 1\.

\(Proof in Appendix[A\.1](https://arxiv.org/html/2610.07004#A1.SS1)\.\)Gu/𝒯G\_\{u\}/\\mathcal\{T\}is homotopy\-equivalent toGuG\_\{u\}, andγ\\gammainduces an isomorphism on the first homology groupH1​\(Gu,ℤ\)H\_\{1\}\(G\_\{u\};\\mathbb\{Z\}\)\.

### 3\.2Cosheaf\-Consistent Cellular Retrieval

After lifting the workflow graph into a cellular complex, TopoPlanner retrieves a compact subcomplex that is relevant to the current request while remaining compatible with the cellular topology\. Given a requestqq, we encode it as

𝒉q=LM⁡\(q\)∈ℝd\.\\bm\{h\}\_\{q\}=\\operatorname\{LM\}\(q\)\\in\\mathbb\{R\}^\{d\}\.\(5\)Rather than appending a request node and independently ranking cells of different dimensions, we view the request as a relevance functional over the lifted cellular workflow complex\. Retrieval is then defined as a closed\-subcomplex selection problem, while cross\-dimensional compatibility is regularized through a cellular cosheaf\.

Cellular cosheaf structure\.We introduce a request\-conditioned cellular cosheaf𝒞q\\mathcal\{C\}^\{q\}over the lifted complex𝒳\\mathcal\{X\}, following recent sheaf\- and cosheaf\-based formulations of local consistency on structured domains \([Hansen and Ghrist \(2019\)](https://arxiv.org/html/2610.07004#bib.bib29);[Barbero et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib44);[Wei and Wei \(2025\)](https://arxiv.org/html/2610.07004#bib.bib49)\)\. We use the reversed face\-poset convention: each cellσ\\sigmais assigned a stalk vector space𝒞⁡\(σ\)\\mathcal\{C\}\(\\sigma\), and an incidenceτ≺σ\\tau\\prec\\sigmainduces a coface\-to\-boundary corestriction map:

𝒞σ→τq:𝒞⁡\(σ\)→𝒞⁡\(τ\),\\mathcal\{C\}^\{q\}\_\{\\sigma\\rightarrow\\tau\}:\\mathcal\{C\}\(\\sigma\)\\rightarrow\\mathcal\{C\}\(\\tau\),\(6\)This follows the homological boundary direction; under the opposite face\-poset convention, the same maps are covariant\. We implement each map as aqq\-conditioned sigmoid gate over the request, coface, and boundary\-cell embeddings\.

Unified subcomplex retrieval\.For each cellσ\\sigma, its request relevance is computed by projecting its cellular embedding into the request embedding space:

rq​\(σ\)=cos⁡\(𝒉q,ψ⁡\(𝒉σ\)\),r\_\{q\}\(\\sigma\)=\\operatorname\{cos\}\\left\(\\bm\{h\}\_\{q\},\\,\\psi\(\\bm\{h\}\_\{\\sigma\}\)\\right\),\(7\)whereψ⁡\(⋅\)\\psi\(\\cdot\)maps cellular embeddings into the request embedding space\. For each cellσ\\sigma, we define its cosine\-based cosheaf inconsistency as the average residual over its boundary cells:

ϵq​\(σ\)=\{1\|∂σ\|​∑τ≺σ\(1−cos⁡\(𝒞σ→τq​\(𝒉σ\),𝒉τ\)\),\|∂σ\|\>0,0,\|∂σ\|=0,\{\\color\[rgb\]\{0,0,0\}\\epsilon\_\{q\}\(\\sigma\)=\\begin\{cases\}\\displaystyle\\frac\{1\}\{\|\\partial\\sigma\|\}\\sum\_\{\\tau\\prec\\sigma\}\\left\(1\-\\operatorname\{cos\}\\left\(\\mathcal\{C\}^\{q\}\_\{\\sigma\\rightarrow\\tau\}\(\\bm\{h\}\_\{\\sigma\}\),\\bm\{h\}\_\{\\tau\}\\right\)\\right\),&\|\\partial\\sigma\|\>0,\\\\\[2\.0pt\] 0,&\|\\partial\\sigma\|=0,\\end\{cases\}\}\(8\)which measures how consistently a selected coface agrees with its boundary in the retrieved complex\. We retrieve a compact request\-relevant subcomplex by solving:

𝒳q∗=argmax∅≠𝒴⊆𝒳,∂σ⊆𝒴​∀σ∈𝒴​1\|𝒴\|​∑σ∈𝒴\(rq​\(σ\)−ϵq​\(σ\)\),\\mathcal\{X\}^\{\*\}\_\{q\}=\\underset\{\\begin\{subarray\}\{c\}\\emptyset\\neq\\mathcal\{Y\}\\subseteq\\mathcal\{X\},\\\\ \\partial\\sigma\\subseteq\\mathcal\{Y\}\\ \\forall\\sigma\\in\\mathcal\{Y\}\\end\{subarray\}\}\{\\operatorname\{argmax\}\}\\frac\{1\}\{\|\\mathcal\{Y\}\|\}\\sum\_\{\\sigma\\in\\mathcal\{Y\}\}\\left\(r\_\{q\}\(\\sigma\)\\,\-\\,\\epsilon\_\{q\}\(\\sigma\)\\right\),\(9\)The selected set is kept boundary\-closed, i\.e\., for any retained cellσ∈𝒳q∗\\sigma\\in\\mathcal\{X\}^\{\*\}\_\{q\}, its boundary satisfies∂σ⊆𝒳q∗\\partial\\sigma\\subseteq\\mathcal\{X\}^\{\*\}\_\{q\}\. Thus, the retrieval objective favors request\-relevant cells while discouraging cosheaf\-inconsistent boundary assignments\.Appendix[B](https://arxiv.org/html/2610.07004#A2)provides further interpretations of this construction in terms of fixed\-depth regional communication, incidence\-consistency energy, and the role of closure in preventing consistency by omission\.In practice, we cast the selection as a Prize\-Collecting Steiner Tree \(PCST\)\-style problem over cells\([He et al\., 2024](https://arxiv.org/html/2610.07004#bib.bib23)\), whererq​\(σ\)r\_\{q\}\(\\sigma\)is the cell prize andϵq​\(σ\)\\epsilon\_\{q\}\(\\sigma\)is the cosheaf\-induced cost\. We then greedily collect high\-prize cells with boundary closure\. The training regularizer over the retrieved subcomplex is:

ℒCI=1\|𝒳q∗\|​∑σ∈𝒳q∗ϵq​\(σ\)\.\\mathcal\{L\}\_\{\\mathrm\{CI\}\}=\\frac\{1\}\{\|\\mathcal\{X\}^\{\*\}\_\{q\}\|\}\\sum\_\{\\sigma\\in\\mathcal\{X\}^\{\*\}\_\{q\}\}\\epsilon\_\{q\}\(\\sigma\)\.\(10\)

### 3\.3Multi\-Dimensional Structural Reasoning

Given the retrieved request\-specific subcomplex𝒳q∗\\mathcal\{X\}^\{\*\}\_\{q\}, TopoPlanner performs multi\-dimensional reasoning over its cellular topology\. This stage jointly updates representations across dimensions via boundary relations and co\-facial interactions, so that downstream planning can use embeddings that reflect both local semantics and global workflow structure\.

For each cellσ\\sigma, the messages are defined as:

mℬ\(t\+1\)​\(σ\)=AGGτ∈ℬ⁡\(σ\)⁡Mℬ​\(𝒉σ\(t\),𝒉τ\(t\)\),\\displaystyle m\_\{\\mathcal\{B\}\}^\{\(t\+1\)\}\(\\sigma\)=\\operatorname\{AGG\}\_\{\\tau\\in\\mathcal\{B\}\(\\sigma\)\}M\_\{\\mathcal\{B\}\}\\left\(\\bm\{h\}\_\{\\sigma\}^\{\(t\)\},\\bm\{h\}\_\{\\tau\}^\{\(t\)\}\\right\),\(11\)m↑\(t\+1\)​\(σ\)=AGGτ∈𝒩↑​\(σ\)δ∈𝒞⁡\(σ,τ\)⁡M↑​\(𝒉σ\(t\),𝒉τ\(t\),𝒉δ\(t\)\),\\displaystyle m\_\{\\uparrow\}^\{\(t\+1\)\}\(\\sigma\)=\\operatorname\{AGG\}\_\{\\begin\{subarray\}\{c\}\\tau\\in\\mathcal\{N\}\_\{\\uparrow\}\(\\sigma\)\\\\ \\delta\\in\\mathcal\{C\}\(\\sigma,\\tau\)\\end\{subarray\}\}M\_\{\\uparrow\}\\left\(\\bm\{h\}\_\{\\sigma\}^\{\(t\)\},\\bm\{h\}\_\{\\tau\}^\{\(t\)\},\{\\color\[rgb\]\{0,0,0\}\\bm\{h\}\_\{\\delta\}^\{\(t\)\}\}\\right\),\(12\)whereℬ⁡\(σ\)=∂σ\\mathcal\{B\}\(\\sigma\)=\\partial\\sigmadenotes the set of lower\-dimensional cells on the boundary of cellσ\\sigma,𝒩↑​\(σ\)\\mathcal\{N\}\_\{\\uparrow\}\(\\sigma\)denotes the set of same\-dimensional cells that co\-occur withσ\\sigmain at least one higher\-dimensional cellδ\\delta, and𝒞⁡\(σ,τ\)\\mathcal\{C\}\(\\sigma,\\tau\)denotes the set of such shared higher\-dimensional cells\.

Finally, both types of structure\-aware messages are combined with the current representation of the cell and passed through an update function to obtain the new representation:

𝒉σ\(t\+1\)=𝒰⁡\(𝒉σ\(t\),mℬ\(t\+1\)​\(σ\),m↑\(t\+1\)​\(σ\)\),\{\\color\[rgb\]\{0,0,0\}\\bm\{h\}\_\{\\sigma\}^\{\(t\+1\)\}=\\mathcal\{U\}\\left\(\\bm\{h\}\_\{\\sigma\}^\{\(t\)\},\\ m\_\{\\mathcal\{B\}\}^\{\(t\+1\)\}\(\\sigma\),\\ m\_\{\\uparrow\}^\{\(t\+1\)\}\(\\sigma\)\\right\),\}\(13\)where𝒰⁡\(⋅\)\\mathcal\{U\}\(\\cdot\)is implemented as a nonlinear update function \(e\.g\., ELU \+ linear\)\.This stage lets each cell encode its local semantics and role in the multi\-dimensional workflow\.

### 3\.4Topology\-Guided LLM Tool Planning

After multi\-dimensional structural reasoning, the retrieved subcomplex𝒳q∗\\mathcal\{X\}^\{\*\}\_\{q\}contains topology\-aware representations of the selected cellular structure\. For local planner LLMs, we summarize it as a continuous graph token and inject it together with the textual prompt\.

Let𝒉σ\(k\)\\bm\{h\}^\{\(k\)\}\_\{\\sigma\}denote the updated representation of akk\-cellσ∈𝒳q∗\(k\)\\sigma\\in\\mathcal\{X\}^\{\*\(k\)\}\_\{q\}\. TopoPlanner summarizes the retrieved cellular structure by request\-aware pooling over both cells and dimensions:

𝒉𝒳q=∑k=02βk​∑σ∈𝒳q∗\(k\)ασ\(k\)​𝒉σ\(k\),\\bm\{h\}\_\{\\mathcal\{X\}\_\{q\}\}=\\sum\_\{k=0\}^\{2\}\\beta\_\{k\}\\sum\_\{\\sigma\\in\\mathcal\{X\}\_\{q\}^\{\*\(k\)\}\}\\alpha\_\{\\sigma\}^\{\(k\)\}\\bm\{h\}\_\{\\sigma\}^\{\(k\)\},\(14\)whereασ\(k\)\\alpha\_\{\\sigma\}^\{\(k\)\}weighs cells per dimension andβk\\beta\_\{k\}balances dimensions, both conditioned on the request embedding𝒉q\\bm\{h\}\_\{q\}\. The vector𝒉𝒳q\\bm\{h\}\_\{\\mathcal\{X\}\_\{q\}\}encodes retrieved tools, edges, and higher\-dimensional structure\.

We then construct the planner prompt from the tool list and user request, with a special graph placeholder\[graph\]…\[/graph\]\. As in soft graph\-token conditioning \([Tang et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib20);[Perozzi et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib22)\), the textual tokens are embedded by the LLM, while the placeholder embedding is replaced by𝒉𝒳q\\bm\{h\}\_\{\\mathcal\{X\}\_\{q\}\}\. The planner LLMMθM\_\{\\theta\}then generates the tool trajectory:

τ^=Mθ​\(wq\),\\hat\{\\mathbf\{\\tau\}\}=M\_\{\\theta\}\(w\_\{q\}\),\(15\)whereτ^\\hat\{\\mathbf\{\\tau\}\}is the predicted tool sequence\. The output interface remains identical to standard tool\-planning benchmarks: TopoPlanner generates tool names, and workflow edges are constructed and evaluated by the same downstream protocol used in the main experiments\.

#### Training Objective\.

TopoPlanner is trained to generate the target tool trajectory while reducing cosheaf inconsistency over the retrieved cellular subcomplex\. Given the ground\-truth tool trajectoryτ\\tau,the tool\-planning negative log\-likelihood loss is

ℒTL=−log⁡pMθ​\(τ∣wq\)\.\\mathcal\{L\}\_\{\\mathrm\{TL\}\}=\-\\log p\_\{M\_\{\\theta\}\}\(\\tau\\mid w\_\{q\}\)\.\(16\)We combine this tool\-planning loss with the cosheaf inconsistency loss introduced above:

ℒ=ℒTL\+λC​I​ℒCI,\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{TL\}\}\+\\lambda\_\{CI\}\\mathcal\{L\}\_\{\\mathrm\{CI\}\},\(17\)whereλC​I\\lambda\_\{CI\}controls the strength of cosheaf\-inconsistency regularization\.

DatasetDataset TypeTool GraphSingleChainDAGCycleTotal\|V\|\|V\|\|E\|\|E\|HuggingFace3,0673,6428371,8179,36323225Multimedia2,0372,9825651,4197,00340449Daily Life1,2582,7872751,0985,418401,560ToolBench10185\-412598245366Table 1:Dataset and tool\-graph statistics\.

## 4Dataset and Data Extension

### 4\.1Dataset

The proposed framework is evaluated on four tool\-planning datasets: HuggingFace, Multimedia, and Daily Life from TaskBench \([Shen et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib11)\), plus ToolBench \([Chen et al\. \(2026\)](https://arxiv.org/html/2610.07004#bib.bib1)\); their statistics are summarized in Table[1](https://arxiv.org/html/2610.07004#S3.T1)\. HuggingFace focuses on AI model tasks in NLP and computer vision, Multimedia covers tasks such as downloading and format conversion, Daily Life contains everyday service operations such as shopping and route navigation, and ToolBench features a substantially larger and more diverse API inventory\. The original queries are mainly categorized as Single, Chain, and DAG\. To evaluate topology\-aware planning, we further introduce a Cycle category covering loop, merge, and loop\-merge workflows\.We useCycleas an umbrella category for workflow motifs that induce a closed region in the lifted cellular representation: directed feedback loops, convergent merges formed by multiple dependency paths, and loop\-merge compositions\. A merge is represented as a cycle\-level cell because its multiple dependency paths bound a closed region; this structural notion does not imply repeated execution\. For motifs containing a directed loop, the loop denotes bounded revision, reuse, or finite transformation rather than unbounded execution; runtime repetition and termination are governed by the downstream executor or stopping policy\.

### 4\.2Agentic Topology\-Guided Data Extension

To evaluate topology\-aware task planning, we extend the datasets with queries whose task graphs contain higher\-dimensional workflow structures, as illustrated in Figure[1](https://arxiv.org/html/2610.07004#S1.F1)\. Rather than letting a language model freely invent samples, we first fix a target topology and then generate a natural\-language request under that structural constraint\.This fixes the dependency structure before generation while allowing variation in request wording\.

The extension uses a code\-executing construction workflow inspired by code\-action agents \([Wang et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib6)\): a human designer specifies the structural constraints, executable scripts instantiate candidate workflows, and an LLM generates each request conditioned on the selected tools and fixed topology\. Each accepted workflow is represented by task nodes, task links, task steps, and its generated user request\.The resulting samples are validated, merged into the original dataset format, and split with grouped train\-test partitioning to reduce structural leakage\. All baselines and TopoPlanner are evaluated on this same extended dataset and split;implementation and validation details are provided in Appendix[D](https://arxiv.org/html/2610.07004#A4), especially Sections[D\.1](https://arxiv.org/html/2610.07004#A4.SS1)and[D\.3](https://arxiv.org/html/2610.07004#A4.SS3)\. Appendix[G\.1](https://arxiv.org/html/2610.07004#A7.SS1)further reports a motif\-leakage audit, held\-out\-topology evaluation, and results on original non\-augmented workflows\.

Table 2:Results on four benchmarks with local LLM backbones; best values are bold and second\-best values are underlined\.

## 5Experiments

### 5\.1Experimental Setup

Evaluation Metrics\.Evaluation metrics are adopted from prior work \([Shen et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib11);[Shen et al\. \(2024a\)](https://arxiv.org/html/2610.07004#bib.bib13)\): Node F1\-Score \(n\-F1\) and Link F1\-Score \(l\-F1\) to measure the accuracy of task predictions and inter\-task dependencies, respectively\. Additionally, Accuracy \(ACC\) evaluates the overall success rate\.

LLMs\.Our main experiments use open\-source large language models, including CodeLlama\-7B/13B\-Instruct\-hf \([Roziere et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib15)\) and Vicuna\-7B/13B\-v1\.5 \([Zheng et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib16)\)\. We additionally evaluate TopoPlanner with API\-based LLM backbones, including Qwen3\-235B\-A22B\-Instruct \([Yang et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib2)\) andDeepSeek\-V3\-671B\([DeepSeek\-AI \(2024\)](https://arxiv.org/html/2610.07004#bib.bib8)\), in Appendix[E](https://arxiv.org/html/2610.07004#A5)\.

Baselines\.Direct:Queries a pre\-trained LLM directly to generate task plans without using any graph structure;TalkGraph\([Fatemi et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib7)\): Encodes graph\-structured data as text for black\-box LLMs, enabling reasoning over nodes and edges through prompt engineering;GNN4TaskPlan\([Wu et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib30)\): Leverages LLMs to interpret user requests and employs GraphSAGE with ranking\-loss training to retrieve relevant sub\-tasks;Plan\-over\-Graph\([Zhang et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib4)\):Leverages an LLMto extract task graphs and applies topological sorting over LLM\-predicted task dependencies to generate execution plans;USPilot\([Chen et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib3)\): Combines a large language model with an LLM\-enhanced GNN, using dynamic routing and adapters for task planning;GTool\([Chen et al\. \(2026\)](https://arxiv.org/html/2610.07004#bib.bib1)\): A strong graph\-enhanced tool\-planning baseline that encodes the tool\-dependency graph with a conventional node\-edge GNN, pools the graph into a single soft graph token for the planner LLM, and adds an auxiliary edge\-existence objective\.

Implementation Details\.All local\-model training and evaluation experiments are conducted on four NVIDIA H800\-80G GPUs\.We usee5\-large\-v2\([Wang et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib10)\) to initialize tool, request, and cellular features\. TopoPlanner is configured with a hidden dimension of 1024\. In the main local\-LLM setting, the planner backbone is frozen and only the cellular modules and graph\-token interface are trained with AdamW \([Kingma and Ba \(2014\)](https://arxiv.org/html/2610.07004#bib.bib17)\) \(l​r=1×10−3lr=1\\times 10^\{\-3\}, weight decay 0\.05, batch size 1\) for at most 12 epochs with early stopping \(patience 2\)\. For the 7B LoRA continuation experiments, we use a smaller learning rate of1×10−51\\times 10^\{\-5\}\. The maximum input and generation lengths are 1024 and 128, respectively\. Wesweepthe coefficient ofℒC​I\\mathcal\{L\}\_\{CI\}by varyingλC​I∈\{0,0\.005,0\.01,0\.05,0\.1\}\\lambda\_\{CI\}\\in\\\{0,0\.005,0\.01,0\.05,0\.1\\\}across the three TaskBench domains\.

Table 3:TopoPlanner ablations on three datasets with 7B local LLMs\.Vicuna\-7B

CodeLlama\-7B

Figure 3:λC​I\\lambda\_\{CI\}sensitivity across datasets and 7B backbones\.
### 5\.2Experimental Results

#### Overall Performance\.

Table[2](https://arxiv.org/html/2610.07004#S4.T2)compares methods under open\-source local LLMs:

TopoPlanner consistently improves both tool selection and workflow construction\.It outperforms the compared prompting and graph\-enhanced baselines across the evaluated datasets and local LLM backbones\. More importantly, the improvement is not confined to n\-F1: the gains over the strongest baseline are often more pronounced in l\-F1 and ACC, which require recovering dependencies and the complete plan rather than only identifying relevant tools\. For example, on Multimedia with Vicuna\-7B, TopoPlanner improves over GTool from 47\.17/19\.64/7\.07 to 86\.80/66\.24/54\.76 in n\-F1/l\-F1/ACC; on the larger ToolBench graph with CodeLlama\-13B, the corresponding scores increase from 57\.89/38\.74/35\.83 to 66\.48/49\.06/49\.17\.

These results align with the structural gap motivating TopoPlanner\.The strongest comparator in most settings, GTool, already conditions the same planner backbones on a pooled node–edge graph representation\. TopoPlanner instead makes loop, merge, and loop\-merge regions explicit as 2\-cells, retrieves their request\-relevant boundary\-closed subcomplex, and propagates information across dimensions before conditioning the planner\. Its additional gains over GTool are therefore consistent with the value of preserving the regional structures highlighted in Figure[1](https://arxiv.org/html/2610.07004#S1.F1), rather than flattening them into pairwise relations\. The advantage persists across the 7B and 13B Vicuna and CodeLlama families, suggesting that this structural interface complements backbone capacity\.

To isolate the sources of these gains,the ablations below evaluate 2\-cell lifting, request\-specific cellular retrieval, and its consistency objective\. Appendix[G\.3](https://arxiv.org/html/2610.07004#A7.SS3)tests boundary closure and an alternative hypergraph representation, while Appendix[G\.4](https://arxiv.org/html/2610.07004#A7.SS4)directly evaluates merge/reuse recall and dependency order\. Together, these diagnostics test the proposed regional representation and boundary\-complete retrieval\.

#### Ablation Study\.

Table[3](https://arxiv.org/html/2610.07004#S5.T3)compares the full model with\-w/o 2\-cell, which uses the edge\-only 1\-skeleton;\-w/o Retrieval, which removes request\-specific closed\-subcomplex retrieval; and\-w/o lci, which removes the retrieval\-consistency supervision\.

- •Explicit higher\-order lifting provides useful regional context\.Replacing the cellular workflow complex with its 1\-skeleton causes a clear performance drop across both backbones and all three domains\. Under the evaluated architectures, explicit 2\-cell regions provide context for loop, merge, and loop\-merge patterns beyond an edge\-only model\.
- •Cellular retrieval and its consistency signal are complementary\.Relative to removingℒC​I\\mathcal\{L\}\_\{CI\}, removing retrieval causes a larger drop in 17 of the 18 backbone–domain–metric comparisons; the sole exception is CodeLlama\-7B/HuggingFace l\-F1\. The full model exceeds both variants in all 18 comparisons\.

Figure 4:One\-epoch LoRA continuation results\.Sensitivity toλC​I\\lambda\_\{CI\}\.Figure[3](https://arxiv.org/html/2610.07004#S5.F3)probes the consistency term in cellular retrieval, which is designed to keep the request\-relevant subcomplex boundary\-compatible rather than selecting cells independently\. All six panels peak at a positiveλC​I\\lambda\_\{CI\}, usually 0\.005 or 0\.01, whereas larger weights generally plateau or reduce performance\. This pattern supports the intended balance of TopoPlanner: regional consistency complements semantic relevance but should not dominate it\.

Effect of fine\-tuning\.Figure[4](https://arxiv.org/html/2610.07004#S5.F4)tests whether backbone adaptation alone closes the structural gap highlighted in Figure[1](https://arxiv.org/html/2610.07004#S1.F1)\. One\-epoch LoRA improves Direct, especially on Multimedia, but the corresponding TopoPlanner result remains higher before and after adaptation in all four panels\. The result is consistent with the two signals being complementary: fine\-tuning strengthens the planner, while cellular conditioning preserves explicit information about non\-linear dependency regions\. This conclusion is limited to the tested one\-epoch setting\.Qualitative analyses of loop, merge, and loop\-merge workflows are provided in Appendix[H](https://arxiv.org/html/2610.07004#A8)\.

## 6Related Work

Task planning in LLM\-based agents aims to decompose natural\-language requests into executable sub\-tasks\. Most existing methods are prompt\-based, including task decomposition \([Wei et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib24)\), multi\-plan search \([Yao et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib25);[Besta et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib26)\), symbolic planning \([Liu et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib27)\), and reflection\-based refinement \([Shinn et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib28)\)\. These approaches have broadened the planning ability of LLMs, but they usually assume sequential, tree\-like, or DAG\-like workflows, which makes it difficult to capture richer dependency patterns such as loops, merges, and feedback structures\.

Another line of work studies graph reasoning with LLMs\. GPT4Graph and NLGraph evaluate how pretrained LLMs process graph problems in natural language \([Guo et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib19);[Wang et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib18)\), while TalkLikeAGraph and Plan\-over\-Graph encode graphs as text and rely on the LLM to reason over dependencies or derive execution orders \([Fatemi et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib7);[Zhang et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib4)\)\. These results suggest that LLMs can exploit graph\-structured context, but text\-only reasoning still lacks explicit structural bias on more complex topological relations\.

To address this limitation, several hybrid LLM\+GNN methods inject graph representations into LLMs\. GraphGPT, GraphLLM, and GraphToken incorporate learned graph embeddings or graph tokens into the language\-model input on graph\-centric tasks \([Tang et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib20);[Chai et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib21);[Perozzi et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib22)\)\. In tool planning, GNN4TaskPlan \([Wu et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib30)\) uses an LLM to decompose user goals and a GNN matcher to retrieve relevant sub\-tasks, while USPilot \([Chen et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib3)\) combines an LLM with an LLM\-enhanced GNN, dynamic routing, and adapters\. GTool \([Chen et al\. \(2026\)](https://arxiv.org/html/2610.07004#bib.bib1)\) encodes the tool\-dependency graph with a node\-edge GNN, pools it into a single graph token for the planner LLM, and adds an auxiliary edge\-existence objective\. Despite their strength, these methods still reason mainly over node\-edge structure and do not explicitly elevate higher\-order workflow regions into the planning representation\.Appendix[I](https://arxiv.org/html/2610.07004#A9)reviews topological deep learning\.

## 7Conclusion

In this work, we presentTopoPlanner, a topology\-consistent task planning framework that makes loop, merge, and loop\-merge regions explicit by lifting tool dependency graphs into cellular workflow complexes\. The lifted structure supports request\-specific retrieval, multi\-dimensional reasoning, and topology\-guided tool\-sequence generation\. We also construct topology\-guided extensions of four tool\-planning benchmarks\. Across the evaluated datasets and local LLM backbones, TopoPlanner consistently outperforms the compared baselines; the ablations and structure\-specific diagnostics further support explicit regional modeling as an effective inductive bias within the evaluated scope\.

### AI use statement

Generative AI tools assisted with language editing and implementation of the topology\-guided data\-construction pipeline; an LLM also generated requests under fixed workflow constraints, as documented in Appendix[D\.1](https://arxiv.org/html/2610.07004#A4.SS1)\. All outputs and scientific claims were reviewed and verified by the authors\.

## References

- S\. Barbarossa and S\. SardellittiTopological signal processing over simplicial complexes\.IEEE Transactions on Signal Processing\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p1.1)\.
- Barberoet al\.\(2022\)F\. Barbero, C\. Bodnar, H\. S\. de Ocáriz Borde, M\. Bronstein, P\. Veličković, and P\. LiòSheaf neural networks with connection laplacians\.External Links:2206\.08702Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1),[§3\.2](https://arxiv.org/html/2610.07004#S3.SS2.p2.1.2)\.
- Battiloroet al\.\(2024\)C\. Battiloro, Z\. Wang, H\. Riess, P\. Di Lorenzo, and A\. RibeiroTangent bundle convolutional learning: from manifolds to cellular sheaves and back\.IEEE Transactions on Signal Processing72,pp\. 1892–1909\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1)\.
- Bestaet al\.\(2024\)M\. Besta, N\. Blach, A\. Kubicek, R\. Gerstenberger, M\. Podstawski, L\. Gianinazzi, J\. Gajda, T\. Lehmann, H\. Niewiadomski, P\. Nyczyk,et al\.Graph of thoughts: solving elaborate problems with large language models\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.38,pp\. 17682–17690\.Cited by:[§6](https://arxiv.org/html/2610.07004#S6.p1.1)\.
- Bodnaret al\.\(2021a\)C\. Bodnar, F\. Frasca, N\. Otter, Y\. Wang, P\. Liò, G\. F\. Montúfar, and M\. M\. BronsteinWeisfeiler and lehman go cellular: CW networks\.InAdvances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6\-14, 2021, virtual,M\. Ranzato, A\. Beygelzimer, Y\. N\. Dauphin, P\. Liang, and J\. W\. Vaughan \(Eds\.\),pp\. 2625–2640\.External Links:[Link](https://proceedings.neurips.cc/paper/2021/hash/157792e4abb490f99dbd738483e0d2d4-Abstract.html)Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1)\.
- Bodnaret al\.\(2021b\)C\. Bodnar, F\. Frasca, Y\. Wang, N\. Otter, G\. F\. Montufar, P\. Lio, and M\. BronsteinWeisfeiler and lehman go topological: message passing simplicial networks\.InInternational conference on machine learning,pp\. 1026–1037\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1)\.
- Bodnaret al\.\(2022\)C\. Bodnar, F\. D\. Giovanni, B\. P\. Chamberlain, P\. Lio, and M\. M\. BronsteinNeural sheaf diffusion: a topological perspective on heterophily and oversmoothing in GNNs\.InAdvances in Neural Information Processing Systems,Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1)\.
- Bubecket al\.\(2023\)S\. Bubeck, V\. Chandrasekaran, R\. Eldan, J\. Gehrke, E\. Horvitz, E\. Kamar, P\. Lee, Y\. T\. Lee, Y\. Li, S\. Lundberg,et al\.Sparks of artificial general intelligence: early experiments with gpt\-4\.arXiv preprint arXiv:2303\.12712\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p1.1)\.
- Chaiet al\.\(2023\)Z\. Chai, T\. Zhang, L\. Wu, K\. Han, X\. Hu, X\. Huang, and Y\. YangGraphLLM: boosting graph reasoning ability of large language model\.arXiv preprint arXiv:2310\.05845\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p3.1)\.
- Chenet al\.\(2025\)M\. Chen, S\. Fan, G\. Cao, Y\. Liu, and H\. LiuUSPilot: an embodied robotic assistant ultrasound system with a large language model enhanced graph planner\.IEEE Robotics Autom\. Lett\.10\(10\),pp\. 10027–10034\.External Links:[Link](https://doi.org/10.1109/LRA.2025.3598625),[Document](https://dx.doi.org/10.1109/LRA.2025.3598625)Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p3.1),[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p3.1)\.
- Chenet al\.\(2026\)W\. Chen, W\. Li, D\. Yao, X\. Meng, C\. Gong, and J\. BiGTool: graph enhanced tool planning with large language model\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=bn47cqGQ7l)Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p3.1),[§1](https://arxiv.org/html/2610.07004#S1.p5.1),[§4\.1](https://arxiv.org/html/2610.07004#S4.SS1.p1.1),[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p3.1)\.
- DeepSeek\-AI \(2024\)DeepSeek\-AIDeepSeek\-v3 technical report\.CoRRabs/2412\.19437\.External Links:[Link](https://doi.org/10.48550/arXiv.2412.19437),[Document](https://dx.doi.org/10.48550/ARXIV.2412.19437),2412\.19437Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p2.1)\.
- Ebliet al\.\(2020\)S\. Ebli, M\. Defferrard, and G\. SpreemannSimplicial neural networks\.InAdvances in Neural Information Processing Systems Workshop on Topological Data Analysis and Beyond,Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- Fatemiet al\.\(2024\)B\. Fatemi, J\. Halcrow, and B\. PerozziTalk like a graph: encoding graphs for large language models\.InThe Twelfth International Conference on Learning Representations, ICLR,External Links:[Link](https://openreview.net/forum?id=IuXR1CCrSi)Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p2.1)\.
- Giustiet al\.\(2023\)L\. Giusti, C\. Battiloro, L\. Testa, P\. Di Lorenzo, S\. Sardellitti, and S\. BarbarossaCell attention networks\.In2023 International Joint Conference on Neural Networks \(IJCNN\),pp\. 1–8\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- \[16\]C\. W\. J\. Goh, C\. Bodnar, and P\. LioSimplicial attention networks\.InICLR 2022 Workshop on Geometrical and Topological Representation Learning,Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- Guoet al\.\(2023\)J\. Guo, L\. Du, and H\. LiuGpt4graph: can large language models understand graph structured data? an empirical evaluation and benchmarking\.arXiv preprint arXiv:2305\.15066\.Cited by:[§6](https://arxiv.org/html/2610.07004#S6.p2.1)\.
- Hajijet al\.\(2022\)M\. Hajij, G\. Zamzmi, T\. Papamarkou, N\. Miolane, A\. Guzmán\-Sáenz, and K\. N\. RamamurthyHigher\-order attention networks\.arXiv\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- Hajijet al\.\(2020\)M\. Hajij, K\. Istvan, and G\. ZamzmiCell complex neural networks\.InAdvances in Neural Information Processing Systems Workshop on TDA & Beyond,Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- Hajijet al\.\(2023\)M\. Hajij, G\. Zamzmi, T\. Papamarkou, N\. Miolane, A\. Guzmán\-Sáenz, K\. N\. Ramamurthy, T\. Birdal, T\. K\. Dey, S\. Mukherjee, S\. N\. Samaga, N\. Livesay, R\. Walters, P\. Rosen, and M\. T\. SchaubTopological deep learning: going beyond graph data\.External Links:2206\.00606Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1)\.
- Hansen and Ghrist \(2019\)J\. Hansen and R\. GhristToward a spectral theory of cellular sheaves\.Journal of Applied and Computational Topology3,pp\. 315–358\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1),[§2](https://arxiv.org/html/2610.07004#S2.p1.1),[§3\.2](https://arxiv.org/html/2610.07004#S3.SS2.p2.1.2)\.
- Hansen and Gebhart \(2020\)J\. Hansen and T\. GebhartSheaf neural networks\.External Links:2012\.06333Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1)\.
- Heet al\.\(2024\)X\. He, Y\. Tian, Y\. Sun, N\. Chawla, T\. Laurent, Y\. LeCun, X\. Bresson, and B\. HooiG\-retriever: retrieval\-augmented generation for textual graph understanding and question answering\.Advances in Neural Information Processing Systems37,pp\. 132876–132907\.Cited by:[§3\.2](https://arxiv.org/html/2610.07004#S3.SS2.p3.4)\.
- Jianget al\.\(2025\)J\. Jiang, K\. Zhou, X\. Zhao, Y\. Song, C\. Zhu, H\. Zhu, and J\. WenKG\-agent: an efficient autonomous agent framework for complex reasoning over knowledge graph\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\), ACL 2025,pp\. 9505–9523\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p1.1)\.
- Kingma and Ba \(2014\)D\. P\. Kingma and J\. BaAdam: a method for stochastic optimization\.CoRRabs/1412\.6980\.Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p4.1)\.
- Liuet al\.\(2023\)B\. Liu, Y\. Jiang, X\. Zhang, Q\. Liu, S\. Zhang, J\. Biswas, and P\. StoneLlm\+ p: empowering large language models with optimal planning proficiency\.arXiv preprint arXiv:2304\.11477\.Cited by:[§6](https://arxiv.org/html/2610.07004#S6.p1.1)\.
- Minegishiet al\.\(2025\)G\. Minegishi, H\. Furuta, T\. Kojima, Y\. Iwasawa, and Y\. MatsuoTopology of reasoning: understanding large reasoning models through reasoning graph properties\.CoRRabs/2506\.05744\.External Links:[Link](https://doi.org/10.48550/arXiv.2506.05744),[Document](https://dx.doi.org/10.48550/ARXIV.2506.05744),2506\.05744Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p4.1),[§1](https://arxiv.org/html/2610.07004#S1.p3.1)\.
- Mitraet al\.\(2024\)A\. Mitra, L\. Del Corro, G\. Zheng, S\. Mahajan, D\. Rouhana, A\. Codas, Y\. Lu, W\. Chen, O\. Vrousgos, C\. Rosset, F\. Silva, H\. Khanpour, Y\. Lara, and A\. AwadallahAgentInstruct: toward generative teaching with agentic flows\.arXiv preprint arXiv:2407\.03502\.Cited by:[Appendix D](https://arxiv.org/html/2610.07004#A4.p1.1)\.
- Perozziet al\.\(2024\)B\. Perozzi, B\. Fatemi, D\. Zelle, A\. Tsitsulin, M\. Kazemi, R\. Al\-Rfou, and J\. HalcrowLet your graph do the talking: encoding structured data for llms\.External Links:2402\.05862Cited by:[§3\.4](https://arxiv.org/html/2610.07004#S3.SS4.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p3.1)\.
- Roziereet al\.\(2023\)B\. Roziere, J\. Gehring, F\. Gloeckle, S\. Sootla, I\. Gat, X\. E\. Tan, Y\. Adi, J\. Liu, R\. Sauvestre, T\. Remez,et al\.Code llama: open foundation models for code\.arXiv preprint arXiv:2308\.12950\.Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p2.1)\.
- Sardellittiet al\.\(2021\)S\. Sardellitti, S\. Barbarossa, and L\. TestaTopological signal processing over cell complexes\.InAsilomar Conference on Signals, Systems, and Computers,Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p1.1)\.
- Schicket al\.\(2024\)T\. Schick, J\. Dwivedi\-Yu, R\. Dessì, R\. Raileanu, M\. Lomeli, E\. Hambro, L\. Zettlemoyer, N\. Cancedda, and T\. ScialomToolformer: language models can teach themselves to use tools\.Advances in Neural Information Processing Systems36\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p1.1)\.
- Shenet al\.\(2024a\)Y\. Shen, K\. Song, X\. Tan, D\. Li, W\. Lu, and Y\. ZhuangHugginggpt: solving ai tasks with chatgpt and its friends in hugging face\.Advances in Neural Information Processing Systems36\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p1.1),[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p1.1)\.
- Shenet al\.\(2024b\)Y\. Shen, K\. Song, X\. Tan, W\. Zhang, K\. Ren, S\. Yuan, W\. Lu, D\. Li, and Y\. ZhuangTaskbench: benchmarking large language models for task automation\.Advances in Neural Information Processing Systems37,pp\. 4540–4574\.Cited by:[§D\.2](https://arxiv.org/html/2610.07004#A4.SS2.p1.1),[§1](https://arxiv.org/html/2610.07004#S1.p1.1),[§1](https://arxiv.org/html/2610.07004#S1.p5.1),[§4\.1](https://arxiv.org/html/2610.07004#S4.SS1.p1.1),[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p1.1)\.
- Shinnet al\.\(2024\)N\. Shinn, F\. Cassano, A\. Gopinath, K\. Narasimhan, and S\. YaoReflexion: language agents with verbal reinforcement learning\.Advances in Neural Information Processing Systems36\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p2.1),[§6](https://arxiv.org/html/2610.07004#S6.p1.1)\.
- Tanget al\.\(2024\)J\. Tang, Y\. Yang, W\. Wei, L\. Shi, L\. Su, S\. Cheng, D\. Yin, and C\. HuangGraphgpt: graph instruction tuning for large language models\.InProceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval,pp\. 491–500\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p3.1),[§3\.4](https://arxiv.org/html/2610.07004#S3.SS4.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p3.1)\.
- Wanget al\.\(2023\)H\. Wang, S\. Feng, T\. He, Z\. Tan, X\. Han, and Y\. TsvetkovCan language models solve graph problems in natural language?\.Advances in Neural Information Processing Systems36\.Cited by:[§6](https://arxiv.org/html/2610.07004#S6.p2.1)\.
- Wanget al\.\(2024a\)L\. Wang, C\. Ma, X\. Feng, Z\. Zhang, H\. Yang, J\. Zhang, Z\. Chen, J\. Tang, X\. Chen, Y\. Lin,et al\.A survey on large language model based autonomous agents\.Frontiers of Computer Science18\(6\),pp\. 1–26\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p1.1)\.
- Wanget al\.\(2022\)L\. Wang, N\. Yang, X\. Huang, B\. Jiao, L\. Yang, D\. Jiang, R\. Majumder, and F\. WeiText embeddings by weakly\-supervised contrastive pre\-training\.ArXivabs/2212\.03533\.Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p4.1)\.
- Wanget al\.\(2024b\)X\. Wang, Y\. Chen, L\. Yuan, Y\. Zhang, Y\. Li, H\. Peng, and H\. JiExecutable code actions elicit better llm agents\.InProceedings of the 41st International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.235,pp\. 50208–50232\.Cited by:[Appendix D](https://arxiv.org/html/2610.07004#A4.p1.1),[§4\.2](https://arxiv.org/html/2610.07004#S4.SS2.p2.1.1)\.
- Weiet al\.\(2022\)J\. Wei, X\. Wang, D\. Schuurmans, M\. Bosma, F\. Xia, E\. Chi, Q\. V\. Le, D\. Zhou,et al\.Chain\-of\-thought prompting elicits reasoning in large language models\.Advances in neural information processing systems35,pp\. 24824–24837\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p2.1),[§6](https://arxiv.org/html/2610.07004#S6.p1.1)\.
- Wei and Wei \(2025\)X\. Wei and G\. WeiPersistent sheaf laplacians\.Foundations of data science \(Springfield, Mo\.\)7\(2\),pp\. 446\.Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p3.1),[§3\.2](https://arxiv.org/html/2610.07004#S3.SS2.p2.1.2)\.
- Wuet al\.\(2024\)X\. Wu, Y\. Shen, C\. Shan, K\. Song, S\. Wang, B\. Zhang, J\. Feng, H\. Cheng, W\. Chen, Y\. Xiong, and D\. LiCan graph learning improve planning in llm\-based agents?\.InAdvances in Neural Information Processing Systems,A\. Globersons, L\. Mackey, D\. Belgrave, A\. Fan, U\. Paquet, J\. M\. Tomczak, and C\. Zhang \(Eds\.\),External Links:[Link](http://papers.nips.cc/paper/_files/paper/2024/hash/098d1bd3eb6156a4c2f834563cdcf617-Abstract-Conference.html)Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p3.1),[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p3.1)\.
- Yanget al\.\(2025\)A\. Yang, A\. Li, B\. Yang,et al\.Qwen3 technical report\.CoRRabs/2505\.09388\.External Links:[Link](https://doi.org/10.48550/arXiv.2505.09388),[Document](https://dx.doi.org/10.48550/ARXIV.2505.09388),2505\.09388Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p2.1)\.
- Yang and Isufi \(2023\)M\. Yang and E\. IsufiConvolutional learning on simplicial complexes\.External Links:2301\.11163Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- Yanget al\.\(2022\)R\. Yang, F\. Sala, and P\. BogdanEfficient representation learning for higher\-order data with simplicial complexes\.InProceedings of the First Learning on Graphs Conference,B\. Rieck and R\. Pascanu \(Eds\.\),Proceedings of Machine Learning Research, Vol\.198,pp\. 13:1–13:21\.External Links:[Link](https://proceedings.mlr.press/v198/yang22a.html)Cited by:[Appendix I](https://arxiv.org/html/2610.07004#A9.SS0.SSS0.Px1.p2.1.1)\.
- Yaoet al\.\(2024\)S\. Yao, D\. Yu, J\. Zhao, I\. Shafran, T\. Griffiths, Y\. Cao, and K\. NarasimhanTree of thoughts: deliberate problem solving with large language models\.Advances in Neural Information Processing Systems36\.Cited by:[§1](https://arxiv.org/html/2610.07004#S1.p2.1),[§6](https://arxiv.org/html/2610.07004#S6.p1.1)\.
- Zhanget al\.\(2025\)S\. Zhang, X\. Ma, Z\. Cao, Z\. Zhang, and H\. ZhaoPlan\-over\-graph: towards parallelable llm agent schedule\.arXiv preprint arXiv:2502\.14563\.Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p3.1),[§6](https://arxiv.org/html/2610.07004#S6.p2.1)\.
- Zhenget al\.\(2023\)L\. Zheng, W\. Chiang, Y\. Sheng, S\. Zhuang, Z\. Wu, Y\. Zhuang, Z\. Lin, Z\. Li, D\. Li, E\. Xing,et al\.Judging llm\-as\-a\-judge with mt\-bench and chatbot arena\.Advances in neural information processing systems36,pp\. 46595–46623\.Cited by:[§5\.1](https://arxiv.org/html/2610.07004#S5.SS1.p2.1)\.

## Appendix AProofs

### A\.1Proofs regarding Proposition[1](https://arxiv.org/html/2610.07004#Thmproposition1)

###### Proof\.

Contractibility of the spanning tree\.For the connected underlying undirected graphGuG\_\{u\}, a spanning tree𝒯\\mathcal\{T\}is connected and acyclic, hence contractible\.A contractible subspace can be continuously shrunk to a point\.

Collapsing a contractible subspace\.Consider the quotient mapγ:Gu→Gu/𝒯\\gamma:G\_\{u\}\\to G\_\{u\}/\\mathcal\{T\}that identifies all points of𝒯\\mathcal\{T\}with a single vertexv0v\_\{0\}\. Because𝒯\\mathcal\{T\}is a contractible subcomplex of the graph, the quotient map is a homotopy equivalence\. Hence there exists a homotopy inverses:Gu/𝒯→Gus:G\_\{u\}/\\mathcal\{T\}\\to G\_\{u\}such thats∘γ≃idGus\\circ\\gamma\\simeq\\mathrm\{id\}\_\{G\_\{u\}\}andγ∘s≃idGu/𝒯\\gamma\\circ s\\simeq\\mathrm\{id\}\_\{G\_\{u\}/\\mathcal\{T\}\}\. Thus,Gu≃Gu/𝒯G\_\{u\}\\simeq G\_\{u\}/\\mathcal\{T\}\.

Induced isomorphism on first homology\.Homotopy\-equivalent spaces have isomorphic homology groups\. Hence the induced mapγ∗:H1​\(Gu,ℤ\)→H1​\(Gu/𝒯,ℤ\)\\gamma\_\{\*\}:H\_\{1\}\(G\_\{u\};\\mathbb\{Z\}\)\\to H\_\{1\}\(G\_\{u\}/\\mathcal\{T\};\\mathbb\{Z\}\)is an isomorphism\.

Intuition in graph terms\.The spanning tree𝒯\\mathcal\{T\}contains no cycles, so collapsing it does not remove or merge any cycles inGuG\_\{u\}\. Each fundamental cycle inGuG\_\{u\}\(formed by a non\-tree edge and the unique tree path connecting its endpoints\) becomes a loop based at the collapsed tree vertex\. Thus, collapsing𝒯\\mathcal\{T\}preserves the independent cycles measured byH1​\(Gu\)H\_\{1\}\(G\_\{u\}\)\.∎

### A\.2Proof of the Fundamental\-Cycle Basis Claim

###### Proof\.

LetGu=\(V,E\)G\_\{u\}=\(V,E\)be a finite connected undirected graph underlying a directed workflow graph, and let𝒯⊂Gu\\mathcal\{T\}\\subset G\_\{u\}be a spanning tree\. Edge directions remain attributes for planning but do not alter the cycle\-space argument\.

Existence and uniqueness of fundamental cycles\.For each non\-tree edgee=\(u,v\)∈E∖𝒯e=\(u,v\)\\in E\\setminus\\mathcal\{T\}, there exists a unique simple pathP𝒯​\(u,v\)P\_\{\\mathcal\{T\}\}\(u,v\)in𝒯\\mathcal\{T\}connectinguuandvv, by acyclicity of𝒯\\mathcal\{T\}\. ConcatenatingeewithP𝒯​\(u,v\)P\_\{\\mathcal\{T\}\}\(u,v\)defines a unique simple cycle

Ce=e∪P𝒯​\(u,v\)⊂G\.C\_\{e\}=e\\cup P\_\{\\mathcal\{T\}\}\(u,v\)\\subset G\.Under the quotient mapγ:Gu→Gu/𝒯\\gamma:G\_\{u\}\\to G\_\{u\}/\\mathcal\{T\}, the tree pathP𝒯​\(u,v\)P\_\{\\mathcal\{T\}\}\(u,v\)is mapped to that point, soCeC\_\{e\}becomes a nontrivial loop inGu/𝒯G\_\{u\}/\\mathcal\{T\}\.

Spanning and independence in homology\.The cyclomatic number ofGuG\_\{u\}isβ1​\(Gu\)=\|E\|−\|V\|\+1\\beta\_\{1\}\(G\_\{u\}\)=\|E\|\-\|V\|\+1, which equals the number of non\-tree edges\.Thus there are exactlyβ1​\(G\)\\beta\_\{1\}\(G\)fundamental cycles\.

Any cycle inGuG\_\{u\}is a linear combination of these fundamental cycles: whenever traversal encounters a non\-tree edgeee, the correspondingCeC\_\{e\}eliminates the associated tree segment\.

These cycles are independent inH1​\(Gu\)H\_\{1\}\(G\_\{u\}\): underγ\\gamma, each fundamental cycle maps to a distinct loop inGu/𝒯G\_\{u\}/\\mathcal\{T\}, and loops around different edges of a wedge of circles are homologically independent\.

Hence the set

\{\[Ce\]∣e∈E∖𝒯\}\\\{\[C\_\{e\}\]\\mid e\\in E\\setminus\\mathcal\{T\}\\\}forms a basis ofH1​\(Gu\)H\_\{1\}\(G\_\{u\}\)under the stated connected\-graph assumption\.

Topological summary\.Different choices of spanning tree yield different fundamental\-cycle edge sets, but their homology classes always spanH1​\(Gu\)H\_\{1\}\(G\_\{u\}\)\. These loops therefore capture all independent cycle\-space relations of the underlying graph, while the retained edge directions preserve the workflow semantics used by the planner\.∎

## Appendix BTheoretical Role of the Cellular Structure

The homotopy and cycle\-basis results above justify the lifting construction\. We next clarify what the lifted cells contribute to representation learning and retrieval\. These statements characterize the structural inductive bias of TopoPlanner; boundary closure alone does not certify runtime correctness\.

###### Proposition 2\(Fixed\-depth regional communication\)\.

LetRRbe a workflow region containing two boundary elements whose graph distance exceedsLLin the pairwise 1\-skeleton\. In anLL\-layer local message\-passing network, the representation of either element cannot depend on the other\. IfRRis represented by a shared 2\-cell, every boundary element is incident to that cell, and information can be exchanged across the region through a boundary\-to\-coface update followed by a coface\-to\-boundary update, regardless of boundary length\.

###### Proof\.

Local pairwise message passing expands a receptive field by at most one graph hop per layer\. Hence two elements at distance greater thanLLcannot influence one another afterLLlayers\. After liftingRRto a 2\-cell, each boundary element is connected to the shared coface through an incidence relation\. A boundary\-to\-coface update followed by a coface\-to\-boundary update therefore communicates across the region in constant depth\. This is a representational shortcut rather than a correctness guarantee; a suitably constructed hypergraph can provide a related shortcut, while the cellular representation additionally retains graded boundary relations\. ∎

###### Proposition 3\(Incidence\-consistency energy\)\.

For a boundary\-closed candidate𝒴\\mathcal\{Y\}, letH⁡\(𝒴\)H\(\\mathcal\{Y\}\)be its directed Hasse incidence graph and let the normalized coface\-to\-boundary residual be

\(δq​𝒉\)σ,τ=𝒞σ→τq​\(𝒉σ\)^−𝒉τ^,τ≺σ\.\(\\delta\_\{q\}\\bm\{h\}\)\_\{\\sigma,\\tau\}=\\widehat\{\\mathcal\{C\}^\{q\}\_\{\\sigma\\rightarrow\\tau\}\(\\bm\{h\}\_\{\\sigma\}\)\}\-\\widehat\{\\bm\{h\}\_\{\\tau\}\},\\qquad\\tau\\prec\\sigma\.\(18\)Then the cosine inconsistency in Eq\. \(8\) is a weighted quadratic incidence energy because1−cos⁡\(𝐚,𝐛\)=12​‖𝐚^−𝐛^‖221\-\\cos\(\\bm\{a\},\\bm\{b\}\)=\\frac\{1\}\{2\}\\\|\\widehat\{\\bm\{a\}\}\-\\widehat\{\\bm\{b\}\}\\\|\_\{2\}^\{2\}\. In the quadratic implementation, the same construction has the form

Eq​\(𝒴,𝒉\)=‖Wq1/2​δq​𝒉‖22=𝒉⊤​Lq​𝒉,Lq=δq⊤​Wq​δq\.E\_\{q\}\(\\mathcal\{Y\},\\bm\{h\}\)=\\\|W\_\{q\}^\{1/2\}\\delta\_\{q\}\\bm\{h\}\\\|\_\{2\}^\{2\}=\\bm\{h\}^\{\\top\}L\_\{q\}\\bm\{h\},\\qquad L\_\{q\}=\\delta\_\{q\}^\{\\top\}W\_\{q\}\\delta\_\{q\}\.\(19\)Consequently, low energy indicates proximity to assignments that agree across the selected incidences\.

###### Proposition 4\(Closure prevents consistency by omission\)\.

LetSSbe a selected set of cells,cl⁡\(S\)\\operatorname\{cl\}\(S\)its boundary closure, andI⁡\(S\)I\(S\)the set of coface–boundary incidences whose two cells are both contained inSS\. With non\-negative incidence weights and per\-incidence residualseq​\(σ,τ\)≥0e\_\{q\}\(\\sigma,\\tau\)\\geq 0,

Eq​\(cl⁡\(S\),𝒉\)=Eq​\(S,𝒉\)\+∑\(σ,τ\)∈I⁡\(cl⁡\(S\)\)∖I⁡\(S\)wσ​τ​eq​\(σ,τ\)≥Eq​\(S,𝒉\)\.E\_\{q\}\(\\operatorname\{cl\}\(S\),\\bm\{h\}\)=E\_\{q\}\(S,\\bm\{h\}\)\+\\sum\_\{\(\\sigma,\\tau\)\\in I\(\\operatorname\{cl\}\(S\)\)\\setminus I\(S\)\}w\_\{\\sigma\\tau\}e\_\{q\}\(\\sigma,\\tau\)\\geq E\_\{q\}\(S,\\bm\{h\}\)\.\(20\)Thus closure forces the objective to evaluate newly included incidences between retained cofaces and their required boundary cells, rather than treating the added cells as an independent subcomplex\. Moreover, let𝒴⋆\\mathcal\{Y\}^\{\\star\}be a reachable closed reference workflow and𝒴\\mathcal\{Y\}a competing closed workflow\. If the competitor’s relevance advantage is at mostρ\\rhowhile its excess incidence inconsistency is at leastμ\\mu, then forJq​\(𝒴\)=r¯q​\(𝒴\)−ϵ¯q​\(𝒴\)J\_\{q\}\(\\mathcal\{Y\}\)=\\bar\{r\}\_\{q\}\(\\mathcal\{Y\}\)\-\\bar\{\\epsilon\}\_\{q\}\(\\mathcal\{Y\}\),

Jq​\(𝒴⋆\)−Jq​\(𝒴\)≥μ−ρ\.J\_\{q\}\(\\mathcal\{Y\}^\{\\star\}\)\-J\_\{q\}\(\\mathcal\{Y\}\)\\geq\\mu\-\\rho\.\(21\)Henceμ\>ρ\\mu\>\\rhois a sufficient conditional margin for preferring the incidence\-compatible workflow\. This criterion explains consistency and closure only under its stated assumptions\.

## Appendix CAlgorithm Details

Based on the theoretical proofs provided in Section[A\.2](https://arxiv.org/html/2610.07004#A1.SS2), we detail the computational procedure for lifting the task graph into a cellular complex\. Algorithm[1](https://arxiv.org/html/2610.07004#alg1)outlines the process of extracting the fundamental cycle basis using a spanning tree approach\. This method guarantees a linear number of cycles relative to the cyclomatic numberβ1\\beta\_\{1\}, ensuring the scalability discussed in Section[J](https://arxiv.org/html/2610.07004#A10)\.

Algorithm 1Fundamental Cycle Basis Construction via Spanning Tree0:Connected underlying undirected graphGu=\(V,E\)G\_\{u\}=\(V,E\); optional maximum lengthKm​a​xK\_\{max\}

0:Fundamental cycle set𝒞\\mathcal\{C\}\(a complete basis whenKm​a​xK\_\{max\}is None\)

1:Initialize:Disjoint Set Union \(DSU\) structure for cycle detection\.

2:

𝒯←∅\\mathcal\{T\}\\leftarrow\\emptyset\{Initialize Spanning Tree edges\}

3:

En​o​n←∅E\_\{non\}\\leftarrow\\emptyset\{Initialize Non\-Tree edges\}

4:

𝒞←∅\\mathcal\{C\}\\leftarrow\\emptyset\{Initialize Cycle Basis\}

5:\{Phase 1: Build Spanning Tree \(Kruskal\-like logic\)\}

6:foreach edge

\(u,v\)∈E\(u,v\)\\in Edo

7:if

FindSet​\(u\)≠FindSet​\(v\)\\textsc\{FindSet\}\(u\)\\neq\\textsc\{FindSet\}\(v\)then

8:

𝒯←𝒯∪\{\(u,v\)\}\\mathcal\{T\}\\leftarrow\\mathcal\{T\}\\cup\\\{\(u,v\)\\\}
9:

UnionSet​\(u,v\)\\textsc\{UnionSet\}\(u,v\)
10:else

11:

En​o​n←En​o​n∪\{\(u,v\)\}E\_\{non\}\\leftarrow E\_\{non\}\\cup\\\{\(u,v\)\\\}
12:endif

13:endfor

14:\{Phase 2: Extract Fundamental Cycles\}

15:Construct adjacency list for

𝒯\\mathcal\{T\}to enable path traversal\.

16:foreach non\-tree edge

e=\(u,v\)∈En​o​ne=\(u,v\)\\in E\_\{non\}do

17:\{Find the unique path in

𝒯\\mathcal\{T\}connecting

uuand

vv\}

18:

P𝒯​\(u,v\)←BFS​\(s​t​a​r​t=u,t​a​r​g​e​t=v,g​r​a​p​h=𝒯\)P\_\{\\mathcal\{T\}\}\(u,v\)\\leftarrow\\textsc\{BFS\}\(start=u,target=v,graph=\\mathcal\{T\}\)
19:\{Form the cycle by combining the non\-tree edge and the tree path\}

20:

Ce←P𝒯​\(u,v\)∪\{e\}C\_\{e\}\\leftarrow P\_\{\\mathcal\{T\}\}\(u,v\)\\cup\\\{e\\\}
21:if

Km​a​xK\_\{max\}is Noneor

\|Ce\|≤Km​a​x\|C\_\{e\}\|\\leq K\_\{max\}then

22:

𝒞←𝒞∪\{Ce\}\\mathcal\{C\}\\leftarrow\\mathcal\{C\}\\cup\\\{C\_\{e\}\\\}
23:endif

24:endfor

25:return

𝒞\\mathcal\{C\}

The homology and basis claims use the untruncated settingKm​a​x=NoneK\_\{max\}=\\mathrm\{None\}\. With a finiteKm​a​xK\_\{max\}, the algorithm returns only the retained length\-filtered subset, which is not claimed to span the full cycle space\.

## Appendix DData Construction and Prompt Details

To ensure reproducibility and facilitate future research, we describe the topology\-guided data construction workflow and provide the prompt template used by TopoPlanner during inference\. The data extension is not produced by a one\-shot generation prompt\. Instead, it is generated by executable scripts developed through an agentic code\-writing workflow, following the idea of code\-action agents \([Wang et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib6)\) and agentic data construction \([Mitra et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib5)\)\.

### D\.1Agentic Topology\-Guided Construction Workflow

Given human\-specified workflow\-topology requirements, Codex is used as a code\-executing agent to implement and iterate the data construction pipeline\. Algorithm[2](https://arxiv.org/html/2610.07004#alg2)summarizes the process: it mines valid motifs from the original tool graph, instantiates samples, generates requests under fixed topology constraints, validates them, and creates leakage\-controlled splits\.

#### Structure constraints\.

The construction code treats the original tool graph as the source of structural validity\. For each dataset, it loads the tool inventory and directed dependency links, builds adjacency lists and an edge lookup table, and samples candidate motifs only from this graph\. We use three concrete paradigms:directed loop, such asA→B→C→AA\\rightarrow B\\rightarrow C\\rightarrow A;merge, where two dependency paths converge to a shared downstream tool, such asA→CA\\rightarrow CandA→B→CA\\rightarrow B\\rightarrow C; andloop\-merge, where a merge structure is further connected by a closing path back to an earlier tool\. A candidate is accepted only if all of its workflow dependencies are present in the original edge set, all task nodes belong to the tool inventory, and the resulting task graph satisfies the intended topological pattern\.Thus, topology is fixed before request generation\.

#### Codex workflow instructions\.

Codex is not prompted to directly invent final samples\. Instead, it receives module\-level implementation instructions and iteratively edits executable construction programs\. The main instructions used in the workflow are summarized below:

- •Motif mining:“Sample valid directed\-loop, merge, and loop\-merge motifs from each tool graph\.”
- •Sample construction:“For each valid motif, construct task nodes, task links, and task steps in the original dataset schema\. Record motif statistics for later inspection\.”
- •Request generation:“Generate a natural request from the fixed, hidden tool topology\.”
- •Validation and merging:“Validate tools, edges, node\-link consistency, identifiers, and motifs; repair or reject errors before merging leakage\-controlled splits\.”

Algorithm 2Agentic Topology\-Guided Data Construction0:Dataset collection

𝒟\\mathcal\{D\}, target counts

\{Nd\}\\\{N\_\{d\}\\\}, topology types

𝒞\\mathcal\{C\}
0:Extended datasets with train/test splits

1:foreach dataset

d∈𝒟d\\in\\mathcal\{D\}do

2:Load tool graph

Gd=\(𝒯d,ℰd\)G\_\{d\}=\(\\mathcal\{T\}\_\{d\},\\mathcal\{E\}\_\{d\}\)and tool descriptions

3:Build adjacency lists and valid edge lookup from

ℰd\\mathcal\{E\}\_\{d\}
4:

𝒮d←∅\\mathcal\{S\}\_\{d\}\\leftarrow\\emptyset
5:while

\|𝒮d\|<Nd\|\\mathcal\{S\}\_\{d\}\|<N\_\{d\}do

6:Sample a topology type

c∈𝒞c\\in\\mathcal\{C\}
7:Mine a candidate motif

mmof type

ccfrom

GdG\_\{d\}
8:if

mmis not structurally valid under

ℰd\\mathcal\{E\}\_\{d\}then

9:continue

10:endif

11:Instantiate

mmas task nodes, task links, and task steps

12:Generate a user request conditioned on tools, descriptions, and motif

mm
13:Form candidate sample

ss
14:ifValidateSample\(s,𝒯d,ℰd,c\)\(s,\\mathcal\{T\}\_\{d\},\\mathcal\{E\}\_\{d\},c\)acceptsthen

15:

𝒮d←𝒮d∪\{s\}\\mathcal\{S\}\_\{d\}\\leftarrow\\mathcal\{S\}\_\{d\}\\cup\\\{s\\\}
16:endif

17:endwhile

18:Group samples by request, task nodes, and task links

19:Merge

𝒮d\\mathcal\{S\}\_\{d\}into the original dataset and assign leakage\-controlled splits

20:endfor

21:returnExtended datasets

#### Validation algorithm\.

The final validator is deterministic and is applied after request generation\. Algorithm[3](https://arxiv.org/html/2610.07004#alg3)summarizes the logic\.

Algorithm 3Topology\-Guided Sample Validation0:Candidate sample

ss, tool set

𝒯\\mathcal\{T\}, valid edge set

ℰ\\mathcal\{E\}, target topology type

cc
0:Accept or reject

ss
1:Extract task nodes

VsV\_\{s\}and task links

EsE\_\{s\}from

ss
2:ifany node in

VsV\_\{s\}is not in

𝒯\\mathcal\{T\}then

3:returnReject

4:endif

5:ifany link in

EsE\_\{s\}is not in

ℰ\\mathcal\{E\}then

6:returnReject

7:endif

8:iftask steps, task nodes, and task links are structurally inconsistentthen

9:returnReject

10:endif

11:if

ssdoes not satisfy the target topological pattern

ccthen

12:returnReject

13:endif

14:if

ssduplicates an existing identifier or an existing workflow keythen

15:returnRepair or reject

16:endif

17:returnAccept

### D\.2Human Evaluation Protocol

We further conduct a human evaluation to assess the quality of the topology\-guided data extension\. Following the evaluation dimensions used in TaskBench \([Shen et al\. \(2024b\)](https://arxiv.org/html/2610.07004#bib.bib11)\), each sample is rated from 1 to 5 along three axes:Naturalness, which measures whether the user request is fluent and realistic;Complexity, which measures whether the task requires non\-trivial multi\-step tool use; andAlignment, which measures whether the request semantics match the annotated task graph\.

To reduce single\-perspective bias, we invite three human evaluators with different backgrounds: one task\-planning researcher who focuses on structural correctness, one domain practitioner who focuses on tool semantics, and one user\-facing reviewer who focuses on request naturalness\. For each dataset, evaluators inspect a randomly sampled subset of the augmented Cycle examples together with their task nodes and task links\. The final score is the average over evaluators and sampled examples\.These values are descriptive expert ratings rather than inferential population estimates\.This expert assessment is used only to rate benchmark instances; it does not involve crowdsourcing, collection of personal data, or interventions on participants\. The results are reported in Table[4](https://arxiv.org/html/2610.07004#A4.T4)\.

Table 4:Human ratings \(1–5\) for the topology\-guided data extension\.
### D\.3Measures to Prevent Data Leakage

We strictly isolate the training and evaluation phases to prevent data contamination:

- •Offline construction:The data extension is performed before model training and evaluation\. No generation\-time construction state is exposed to the evaluated planner\.
- •Grouped splitting:Augmented samples are grouped by normalized request, ordered task nodes, and dependency links before train\-test assignment\. This reduces the risk that near\-duplicate workflow graphs appear across training and testing splits\.
- •Format preservation:The augmented samples are merged into the original dataset schema, and all evaluated methods use the same updated split\.

### D\.4Model Overview and API\-Compatible Interface

Figure[2](https://arxiv.org/html/2610.07004#S2.F2)in the main text summarizes the local open\-source TopoPlanner pipeline\. Here we clarify the API deployment mode\. When the backbone is accessed only through an API, the model exposes text completions but not token embeddings, so the local graph\-token interface in the main model cannot be applied directly\. We therefore keep the same cellular lifting, retrieval, and multi\-dimensional reasoning modules locally, use the API LLM only for textual proposal generation, and let the local topology module perform the final topology\-guided selection and graph\-consistent decoding\.

![Refer to caption](https://arxiv.org/html/2610.07004v1/Pics/model_topo_api.png)Figure 5:API\-compatible TopoPlanner with local topology\-guided proposal selection\.
### D\.5TopoPlanner Inference Prompts

#### Local graph\-token prompt\.

For local open\-source LLMs, TopoPlanner follows the same output interface as the evaluated tool\-planning benchmarks: the LLM produces one tool name per line, and dependency edges are reconstructed by the shared evaluation protocol\. Given a requestqq, TopoPlanner retrieves a closed cellular subcomplex𝒳q∗\\mathcal\{X\}^\{\*\}\_\{q\}, encodes it into a graph token𝒉𝒳q\\bm\{h\}\_\{\\mathcal\{X\}\_\{q\}\}, and injects it at the\[graph\]…\[/graph\]position\. The textual part of the prompt is:

Local Planning Prompt:\# GOAL \#: Please use the provided tools to solve the problem\.\# GRAPH CONTEXT \#:\[graph\]𝒉𝒳q\\bm\{h\}\_\{\\mathcal\{X\}\_\{q\}\}\[/graph\]\# TASK LIST \#: \{tool\_list\}\# USER REQUEST \#: \{user\_request\}\# OUTPUT FORMAT \#: Output only one exact tool name per line:Tool1: tool\_nameTool2: tool\_name

#### API\-accessible LLMs\.

For Qwen3\-235B and DeepSeek\-V3, the interface is text\-only and does not expose token embeddings or support replacing a placeholder with𝒉𝒳q\\bm\{h\}\_\{\\mathcal\{X\}\_\{q\}\}\. We therefore do not claim graph\-token injection for these models\. Instead, the API LLM predicts textual task steps, candidate tools, and coarse task links from the plain\-text tool list and user request, while the local lifted cellular encoder performs topology\-guided tool scoring and graph\-consistent decoding on top of these proposals, as illustrated in Figure[5](https://arxiv.org/html/2610.07004#A4.F5)\. We also do not include GTool as an API baseline, because its graph\-enhanced formulation likewise assumes direct model\-side graph/embedding injection, which is unavailable under the same black\-box API constraint\.

## Appendix EAdditional Results on Large LLMs

Table[5](https://arxiv.org/html/2610.07004#A5.T5)reports the main results on API\-accessible large LLMs, including Qwen3\-235B and DeepSeek\-V3\-671B, using the API interface described above\. These numbers should therefore be interpreted as gains from topology\-guided proposal selection and decoding over black\-box textual outputs, rather than as hidden\-state graph\-token injection into the API models themselves\.

Table 5:API\-backbone results with the API\-compatible topology interface\.
## Appendix FLimitations, Broader Impacts, and Asset Use

#### Limitations\.

Our empirical evaluation covers four benchmark\-style tool\-planning datasets; unconstrained real\-world deployments remain unevaluated\. The lifting mechanism targets loop, merge, and loop\-merge workflow regions, andλC​I\\lambda\_\{CI\}is selected per dataset\. In the black\-box API setting, TopoPlanner uses topology\-guided proposal selection and decoding because graph\-token injection is unavailable\.

#### Broader impacts\.

Topology\-consistent planning can improve dependency preservation in workflows with feedback, verification, or branch merging\. When connected to external APIs or action tools, the same capability can increase execution risk; the released artifacts therefore comprise benchmark data and research code rather than a turnkey autonomous agent\.

#### Asset attribution and licensing\.

The paper builds on existing benchmarks, backbone models, and baseline implementations, all of which are credited in the main text and bibliography\.The released repository preserves attribution and provides access notes for the licenses and terms governing TaskBench, ToolBench, and the backbone models or APIs\.

## Appendix GAdditional Evaluation Diagnostics

This section complements the main experiments with diagnostics of benchmark validity, cycle semantics, component effects, structural accuracy, transfer, and robustness\. Unless stated otherwise, the analyses use the same fixed test examples and evaluation definitions as the main experiments; they characterize TopoPlanner in this controlled setting rather than establish runtime correctness in an unconstrained open\-world environment\.

### G\.1Benchmark Validity Beyond Topology\-Guided Augmentation

#### Motif\-leakage audit\.

We group augmented examples by normalized request and exact ordered node–link structure before splitting\. Table[6](https://arxiv.org/html/2610.07004#A7.T6)reports no repeated normalized construction key between train and test\. A few graph\-only overlaps remain in HuggingFace and Multimedia because different requests can instantiate the same valid motif; none occur in Daily Life\.

Table 6:Motif\-leakage audit on augmented TaskBench domains\.
#### Held\-out topology\.

We evaluate held\-out structure in one controlled setting: a merge topology absent from the corresponding training split\. Table[7](https://arxiv.org/html/2610.07004#A7.T7)reports TopoPlanner and its paired improvement over GTool on the same HuggingFace/Vicuna\-7B examples, with confidence intervals obtained by paired bootstrap over test examples\. This evidence is specific to the tested setting and does not establish generalization to every unseen workflow topology\.

Table 7:Held\-out merge\-topology results on HuggingFace/Vicuna\-7B\.
#### Original non\-augmented workflows\.

To test whether the observed gains are confined to topology\-guided evaluation examples, Table[8](https://arxiv.org/html/2610.07004#A7.T8)evaluates original DAG workflows and the subset whose undirected workflow graph has positive cycle rank\. The latter contains 47 of 837 HuggingFace DAGs and 12 of 565 Multimedia DAGs\. These examples come from the source benchmarks rather than the augmented loop/merge construction\. This diagnostic evaluates performance on original examples; by itself, it does not isolate the effect of using augmented examples during training\.

Table 8:Results on original workflows \(%\)\.

### G\.2Executable Interpretation of Workflow Cycles

TheCyclecategory groups loop, merge, and loop\-merge motifs because each induces a closed cycle\-level region in the lifted cellular representation\. A merge is represented as a cycle\-level cell because its multiple dependency paths bound a closed region; this structural notion does not imply repeated execution\. For motifs containing a directed loop, the loop represents bounded feedback, revision, reuse, or finite transformation at the workflow\-graph level, rather than mutually blocking preconditions or an instruction to execute indefinitely\. We audit all 2,266 loop\-bearing requests using non\-exclusive semantic cue categories\. Requests unmatched by the cue lexicon are manually assigned to finite transformation only if they specify a finite tool\-call sequence\.

Table 9:Bounded/finite semantics audit for loop\-bearing requests \(%; cues may overlap\)\.We also inspect raw generated tool sequences with a diagnostic guard ofmax⁡\(8,2×gold tool count\)\\max\(8,2\\times\\text\{gold tool count\}\)\. “Repeat” flags any repeated tool call, “over\-step” flags a sequence exceeding the guard, and “safe stop” denotes that neither trigger occurs\. This offline diagnostic does not replace executor\-level stopping\.

Table 10:Offline guarded\-stop audit \(%; repeat/over\-step↓\\downarrow\)\.
### G\.3Component Diagnostics

Table[11](https://arxiv.org/html/2610.07004#A7.T11)extends the main ablation with inference and representation diagnostics\. The hypergraph variant tests whether arbitrary higher\-order grouping alone explains the gain, while the no\-consistency and no\-closure variants isolate the two components of the retrieval criterion\. The former rows alter the trained architecture or objective, whereas “no Eq\. 9 consistency” and “no boundary closure” are inference\-time interventions; the two groups should therefore not be interpreted as directly interchangeable ablations\. Across both backbones and datasets, the full model exceeds every tested variant on N\-F1, L\-F1, and Accuracy, although the effect sizes vary by setting\.

Table 11:Extended component diagnostics \(%\); training and inference variants are not directly comparable\.
### G\.4Structure\-Specific Evaluation

#### Merge and reuse dependencies\.

Merge edges point to nodes with in\-degree greater than one, reuse edges leave nodes with out\-degree greater than one, and M/R recall is computed on their union\. The four\-domain 7B subgroup contains 804 examples and 2,325 gold merge/reuse edges for each backbone\. Merge and reuse are not independent cell types; this diagnostic tests regional dependency preservation\.

Table 12:Merge/reuse subgroup results \(%\)\.
#### Execution order\.

For each predicted tool sequence, we check each gold dependencyu→vu\\rightarrow v\. Pair measures macro\-averaged correctness over gold dependency pairs, with missing endpoints counted as errors\. Dep\. is an example\-level all\-or\-nothing score requiring every gold dependency’s endpoints to be present and ordered correctly\.

Table 13:Execution\-order results \(%\)\.

### G\.5Paired Statistical Significance

We pair TopoPlanner and GTool predictions on the same fixed test instances\. N\-F1, L\-F1, and Accuracy differences are evaluated by example\-level paired bootstrap with 10,000 resamples\. Table[14](https://arxiv.org/html/2610.07004#A7.T14)reports representative paired differences and 95% confidence intervals\. All listed two\-sided paired\-bootstrap tests havep<0\.0002p<0\.0002\. These intervals quantify example\-level uncertainty for fixed checkpoints, not variation across training runs\.

Table 14:Paired TopoPlanner–GTool differences with 95% bootstrap CIs \(scores in\[0,1\]\[0,1\]\)\.
### G\.6Cross\-Domain Transfer and Incomplete\-Graph Robustness

#### Graph\-grounded transfer\.

The source\-domain checkpoint is evaluated in a different target domain without target\-domain parameter updates\. Target\-domain tool descriptions and the target dependency graph remain available at inference\. This is graph\-grounded transfer to unseen\-but\-described tools and target graphs, not unconstrained discovery of unregistered tools\.

Table 15:Cross\-domain transfer without target\-domain updates \(scores in\[0,1\]\[0,1\]\)\.
#### Incomplete dependency graphs\.

We keep the gold workflows unchanged, remove a controlled fraction of dependency edges from the input graph before training and inference, and recompute edge and 2\-cell features from the remaining graph\. Table[16](https://arxiv.org/html/2610.07004#A7.T16)shows that node selection is comparatively stable, whereas link recovery degrades more strongly because it depends directly on the available structural evidence\. This diagnostic covers controlled missing edges, not general corruption\.

Table 16:Robustness to missing dependency edges \(%\)\.

### G\.7Retrieval Scale and Workflow Length

Retrieval scores cells in the available tool graph rather than enumerating every path or subgraph\. All tool nodes and 2\-cells are retained; only the dense Daily Life edge set uses a deterministic 512\-edge prefilter\. Table[17](https://arxiv.org/html/2610.07004#A7.T17)reports timing without LLM generation\.

Table 17:Retrieval\-pool size and mean CPU time over 50 fixed queries\.Table[18](https://arxiv.org/html/2610.07004#A7.T18)groups examples by gold tool\-call length and compares TopoPlanner with GTool on the same examples\. The gains generally increase for medium and long workflows, while the lower length MAE indicates that the improvement is not explained only by producing longer sequences\.

Table 18:TopoPlanner–GTool differences by gold tool\-call length \(percentage points\)\.

## Appendix HWorkflow Examples and Structural Interpretation

The following examples illustrate how loop, merge, and loop\-merge workflows are represented in the lifted complex\. They explain the structural information available to TopoPlanner; because per\-example baseline predictions are not shown, they are not presented as qualitative evidence of baseline failure\.

### H\.1Case Study 1: HuggingFace

Example ID:paper\_cycle\_huggingface\_0005\. Request summary:extract information from a historical document, highlight key entities and dates, convert the result to speech, enhance the audio, transcribe it back, and then revisit the original document question answering step using the refined transcript\.

#### Topology\.

This workflow forms aloop\-mergepattern:Document QA→\\rightarrowToken Classification→\\rightarrowText\-to\-Speech→\\rightarrowAudio\-to\-Audio→\\rightarrowASR→\\rightarrowDocument QA, with an additional direct edgeDocument QA→\\rightarrowText\-to\-Speech\. The direct edge matters because the speech synthesis stage must inherit both the initial extraction and the entity\-focused refinement, while the ASR output closes a feedback loop for iterative correction\.

#### Structural interpretation\.

The lifted representation places the direct merge path and the feedback path on the boundary of the same cycle\-level region\. Boundary\-closed retrieval therefore exposes both relations to the planner rather than representing only a single linear path\.

### H\.2Case Study 2: Multimedia

Example ID:paper\_cycle\_multimedia\_0002\. Request summary:transcribe a raw video interview, summarize it, generate relevant topics, rewrite the narration, denoise the audio, synchronize the new voiceover with the video, and refine the narration again if synchronization is unsatisfactory\.

#### Topology\.

The workflow is:Video\-to\-Text→\\rightarrowText Summarizer→\\rightarrowTopic Generator→\\rightarrowVoice Changer→\\rightarrowAudio Noise Reduction→\\rightarrowVideo Synchronization→\\rightarrowVideo\-to\-Text, with an additional direct edgeVideo\-to\-Text→\\rightarrowTopic Generator\. This creates a multi\-stage feedback loop in which the synchronization result may trigger another transcription\-and\-revision pass\.

#### Structural interpretation\.

The region contains both the shortcut intoTopic Generatorand the closing edge back toVideo\-to\-Text, making the dual\-source topic dependency and synchronization feedback jointly available during cellular reasoning\.

### H\.3Case Study 3: Daily Life

Example ID:paper\_cycle\_dailylife\_0005\. Request summary:share a conference poster, print it for a manager, book a flight, pay the registration bill, search for attendee reviews, and if necessary share a cancellation notice and rebook a later flight\.

#### Topology\.

The workflow is a loop\-merge pattern:share\_by\_social\_network→\\rightarrowprint\_document→\\rightarrowbook\_flight→\\rightarrowdaily\_bill\_payment→\\rightarrowsearch\_by\_engine→\\rightarrowshare\_by\_social\_network, with an additional direct edgeshare\_by\_social\_network→\\rightarrowbook\_flight\.The request therefore couples communication, logistics, payment, and post\-hoc revision in a closed rather than one\-way workflow\.

#### Structural interpretation\.

Boundary closure keeps the direct booking dependency together with the late feedback edge that reopens communication and trip planning, representing the request as a closed region rather than a one\-way chain\.

### H\.4Case Study 4: ToolBench

Example ID:toolbench\_circle\_0005\. Request summary:generate a face image, consult a zodiac\-sign prediction, produce a flirty line conditioned on that prediction, and then adjust the generated face based on the tone of the final line\.

#### Topology\.

This ToolBench example forms a compactloop\-mergestructure:generate a face→\\rightarrowzodiac prediction→\\rightarrowgenerate flirty line→\\rightarrowgenerate a face, with an additional direct edgegenerate a face→\\rightarrowgenerate flirty line\. The direct edge expresses that the final line depends not only on zodiac information but also on the face\-generation context, while the feedback edge turns the line into a refinement signal for the image generator\.

#### Structural interpretation\.

Here the cycle\-level cell couples the direct face\-to\-line dependency with the feedback edge from the line to image generation\. This makes the merge and refinement relations jointly available even in ToolBench’s larger tool inventory\.

## Appendix IAdditional Related Work

#### Topological Deep Learning\.

Topological deep learning \(TDL\) builds upon early advances in Topological Signal Processing \(TSP\) \([Barbarossa and Sardellitti \(2020\)](https://arxiv.org/html/2610.07004#bib.bib33);[Sardellitti et al\. \(2021\)](https://arxiv.org/html/2610.07004#bib.bib34)\), which emphasized that many real\-world systems exhibit interactions that go beyond pairwise relations and are more naturally described by high\-dimensional topological structures\. This insight has motivated the generalization of classical graph\-theoretic tools from pairwise graphs to richer topological domains, such as simplicial complexes \(SCs\), which model interactions among fixed\-size groups, and cell complexes \(CWs\), which further generalize this representation to arbitrary polyhedral cells\.

Along this line, extensions of the Weisfeiler–Lehman \(WL\) test to SCs and CWs \([Bodnar et al\. \(2021b\)](https://arxiv.org/html/2610.07004#bib.bib47);[Bodnar et al\. \(2021a\)](https://arxiv.org/html/2610.07004#bib.bib31)\) have provided theoretical foundations for distinguishing and propagating high\-dimensional structural information, thereby enabling principled message passing beyond nodes and edges\.Building on these ideas, convolutional architectures operate on SCs and CWs \([Ebli et al\. \(2020\)](https://arxiv.org/html/2610.07004#bib.bib35);[Yang et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib36);[Hajij et al\. \(2020\)](https://arxiv.org/html/2610.07004#bib.bib37);[Yang and Isufi \(2023\)](https://arxiv.org/html/2610.07004#bib.bib38);[Hajij et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib39)\), while attentional variants model higher\-dimensional neighborhoods \([Goh et al\. \(\)](https://arxiv.org/html/2610.07004#bib.bib40);[Giusti et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib41)\)\.

To unify these heterogeneous developments, the combinatorial complex \(CC\) framework \([Hajij et al\. \(2023\)](https://arxiv.org/html/2610.07004#bib.bib42)\) was introduced as a general abstraction that subsumes SCs, CWs, and hypergraphs within a single message\-passing formalism, allowing a systematic treatment of multi\-dimensional relational structures\. In parallel, Sheaf Neural Networks \(SNNs\) \([Hansen and Ghrist \(2019\)](https://arxiv.org/html/2610.07004#bib.bib29);[Hansen and Gebhart \(2020\)](https://arxiv.org/html/2610.07004#bib.bib43);[Bodnar et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib45);[Battiloro et al\. \(2024\)](https://arxiv.org/html/2610.07004#bib.bib46);[Barbero et al\. \(2022\)](https://arxiv.org/html/2610.07004#bib.bib44);[Wei and Wei \(2025\)](https://arxiv.org/html/2610.07004#bib.bib49)\) have explored a complementary perspective by modeling local consistency constraints via sheaf theory, demonstrating strong performance in settings with heterophily and structured local interactions\.

Recently, topological perspectives have been applied to analyze reasoning in large language models\.[Minegishi et al\. \(2025\)](https://arxiv.org/html/2610.07004#bib.bib32)introduce*reasoning graphs*by clustering hidden\-state representations across reasoning steps and analyze their structural properties—such as cyclicity, diameter, and small\-world characteristics—on mathematical reasoning benchmarks\. These developments suggest that topological structure is increasingly relevant to LLM reasoning, but direct topology\-aware planning over tool workflows remains underexplored, which is the gap our work addresses\.

## Appendix JComputational Complexity Analysis

This section characterizes the computational cost of TopoPlanner\.The total computational overhead can be decomposed into four stages aligned with the model design: cellular workflow lifting, cosheaf\-consistent cellular retrieval, multi\-dimensional structural reasoning, and LLM tool planning\.

### J\.1Theoretical Analysis

#### 1\. Topological Lifting\.

The construction extracts a fundamental cycle basis from the underlying undirected graphGu=\(V,E\)G\_\{u\}=\(V,E\)\. For a connected graph, we first construct a spanning tree𝒯\\mathcal\{T\}inO⁡\(\|V\|\+\|E\|\)O\(\|V\|\+\|E\|\)time\. Each of theβ1=\|E\|−\|V\|\+1\\beta\_\{1\}=\|E\|\-\|V\|\+1non\-tree edges induces one fundamental cycle; standard cycle\-basis algorithms compute the basis inO⁡\(\|V\|⋅\|E\|\)O\(\|V\|\\cdot\|E\|\)time\.

- •Efficiency:This lifting can be precomputed for each dataset/tool graph and cached together with the graph features\. During training and inference, TopoPlanner reads the precomputed cellular structure and only applies request\-dependent retrieval and encoding\.

#### 2\. Cosheaf\-Consistent Cellular Retrieval\.

For each request, TopoPlanner scores cells by request relevance and cosheaf\-induced boundary compatibility\. The practical implementation first applies a cheap edge prefilter, then performs closure\-preserving greedy selection\.Its cost is linear in the number of retained candidate cells after prefiltering; Table[17](https://arxiv.org/html/2610.07004#A7.T17)reports the measured retrieval time separately from LLM decoding\.

#### 3\. Multi\-Dimensional Structural Reasoning\.

Our encoder employs a message\-passing neural network over the retrieved cell complex\. Let𝒳q∗\\mathcal\{X\}^\{\*\}\_\{q\}denote the retrieved subcomplex andℰa​d​j\\mathcal\{E\}\_\{adj\}denote the boundary and coface adjacency connections in the lifted complex\.

- •One reasoning layer costsO⁡\(\|𝒳q∗\|⋅d2\+\|ℰa​d​j\|⋅d\)O\(\|\\mathcal\{X\}^\{\*\}\_\{q\}\|\\cdot d^\{2\}\+\|\\mathcal\{E\}\_\{adj\}\|\\cdot d\)for hidden dimensiondd\.
- •Linear scaling in retained incidences:Unlike global Transformer attention, which scales asO⁡\(\|𝒳q∗\|2\)O\(\|\\mathcal\{X\}^\{\*\}\_\{q\}\|^\{2\}\), message passing is confined to boundary and coface relations\. Its cost is therefore linear in the retained incidence connections; for the dense Daily Life edge pool, retrieval first applies the 512\-edge prefilter in Table[17](https://arxiv.org/html/2610.07004#A7.T17)\.

#### 4\. LLM Tool Planning Overhead\.

The local open\-source variant decodes autoregressively with a frozen planner LLM and one injected graph token\. The API variant uses topology to rerank proposals\.

- •LLM latency dominates, with approximate per\-token complexityO⁡\(T⋅dm​o​d​e​l2\)O\(T\\cdot d\_\{model\}^\{2\}\)\.
- •Measured retrieval cost:Table[17](https://arxiv.org/html/2610.07004#A7.T17)reports mean CPU times of 22\.89–39\.45 ms over 50 fixed queries\. These measurements exclude LLM generation and therefore do not establish end\-to\-end latency overhead\.

### J\.2Scalability Discussion

Enumerating all simple cycles can be exponential, especially in dense graphs\. TopoPlanner instead constructs one fundamental cycle per non\-tree edge, so the untruncated number of 2\-cells equals the cycle rankβ1=\|E\|−\|V\|\+1\\beta\_\{1\}=\|E\|\-\|V\|\+1for a connected graph\. This remains linear in graph size even for the dense Daily Life graph; its request\-time retrieval additionally applies the deterministic 512\-edge prefilter reported in Table[17](https://arxiv.org/html/2610.07004#A7.T17)\.

相似文章

多智能体LLM工作流的推理时图工程

arXiv cs.AI

本文介绍了ReActNet,一个无需训练的框架,为多智能体LLM系统合成任务条件化的时序工作流图,提升协调性和性能,超越固定或学习拓扑的基线。

利用LLMs的可证完备泛化规划

arXiv cs.AI

本文介绍了一种在Lean中利用LLMs自动生成具有完备性形式化证明的泛化规划的方法,并在基准领域上进行了评估,展示了在自动规划验证方面的显著进步。

M-Plan:结合记忆编排的 LLM 智能体综合规划框架

arXiv cs.AI

M-Plan 是一个闭环多智能体系统框架,融合长期记忆与短期记忆,并结合全局-局部及过去-当前的双重引导,以提升 LLM 智能体在长时程多轮任务中的规划能力,在 ALFWorld、Webshop 和 PDDL 上超越了基线方法。