Research proposal · November 2026

AgentHyperEvo: Learning Higher‑Order Structural Co‑evolution of Dynamic Heterogeneous Hypergraphs in Long‑Horizon LLM Agents

Long-horizon LLM agents execute tasks through four coupled runtime structures: task dependencies, compute-resource allocation, tool invocation, and cache reuse. Each is a dynamic graph with its own semantics, yet a local change in one layer can propagate across the others, trigger feedback, and accumulate over many rounds. This proposal introduces AgentHyperEvo, a dynamic heterogeneous hypergraph framework that learns this higher-order structural co-evolution and predicts the multi-layer consequences of local structural interventions.

1. The Research Problem

An LLM agent that runs for hours is a runtime system. A planner decomposes goals, a scheduler allocates compute and API capacity, an executor calls tools, and a cache manager stores and reuses intermediate results. Every one of these processes leaves a trace, and every trace is a graph that changes during execution.

Four layers are central to this runtime, summarised in Table 1. They are not independent views of the same data. They are coupled processes with different semantics, different time scales, and different notions of a structural event.

Table 1. The four runtime-semantic layers of a long-horizon agent.
LayerStructural semantics
Task dependencyGeneration, dependency, branching, and merging of tasks
Compute resourceAllocation, sharing, contention, and migration of computational resources
Tool invocationTool invocation instances, execution order, and data dependencies
Cache reuseCache generation, sharing, eviction, and reuse relations

The coupling is direct. Splitting a task into parallel subtasks changes the task graph, but it also changes the number of concurrent tool calls, the resource-demand pattern, and the set of intermediate results eligible for caching. If two subtasks contend for the same GPU or rate-limited API, the scheduler may serialise them, delaying dependent tool calls and reducing cache hits. Conversely, a tool timeout, an anomalous tool result, or a cache eviction can invalidate a planning assumption and force the agent to regenerate part of the task graph. A resource shortage may trigger migration, changing data locality and therefore tool execution order and cache reuse. These effects propagate, feed back, and accumulate across many rounds.

Existing agent-infrastructure systems optimise individual components of this runtime. Task-dependency and tool-call structure are exploited for parallel function calling [1]; application-level dependencies are exposed for serving [2]; workflows are scheduled atomically on GPU clusters [3]; agentic inference is made program-aware [4]; and workflows are managed as graphs for serving efficiency [5]. These systems show that explicit execution structure yields substantial latency and cost benefits. What remains missing is a model of the execution system as a whole: in the surveyed work, we have not found a method that represents task, resource, tool, and cache as separate dynamic layers of a single heterogeneous hypergraph, learns the higher-order structural co-evolution among those layers, or predicts how a local structural intervention will reshape the other layers over time.

Research question. How can the higher-order structural co-evolution among the multiple dynamic execution graphs of a long-horizon LLM agent be learned, and how can the effect of a local structural transformation on the future overall execution structure be predicted?

AgentHyperEvo answers this question with four coupled parts: a four-layer dynamic heterogeneous hypergraph representation, a joint co-evolution model, a counterfactual predictor, and an optimizer that selects valid structural transformations using predicted future trajectories.

2. State of the Art

Agent execution graphs and inference infrastructure

LLMCompiler [1] compiles a task plan into a directed acyclic graph of function calls and executes independent calls in parallel, making task dependencies explicit. Parrot [2] introduces semantic variables that expose dependencies between LLM requests and optimises application-level serving. SAGA [3] schedules agent workflows atomically on GPU clusters, ThunderAgent [4] provides program-aware agentic inference, and GraphFlow [5] manages agent workflows as graphs for LLM-agent serving.

Collectively, these systems demonstrate that making execution structure explicit produces significant latency and cost improvements. However, each addresses a subset of the four runtime processes—typically task dependencies and tool calls, or scheduling and resource allocation—and treats the relevant structure as given by the runtime rather than as an object to be learned and predicted.

Hypergraph representation learning

A graph describes pairwise relations, whereas a hypergraph allows a single hyperedge to connect an arbitrary number of nodes. This makes multi-entity joint participation a first-class learning object rather than a collection of pairwise links. Hypergraph Neural Networks (HGNN) [6] generalise graph convolution to hypergraphs through hyperedge-level aggregation, and AllSet [7] provides a multiset-function framework that subsumes a broad family of hypergraph neural networks.

These works supply the representational machinery for higher-order structure learning, but they are primarily designed for static, homogeneous hypergraphs. They do not provide layer-specific runtime semantics, heterogeneous cross-layer hyperedges whose members come from different layers, or mechanisms through which hyperedges and their membership are created, dissolved, and reorganised as an execution unfolds.

Dynamic and temporal graph learning

Temporal Graph Networks (TGN) [8] maintain per-node memories and update them from a stream of timestamped events, enabling continuous-time dynamic graph learning. Recent work [9] shows that higher-order structure improves link prediction on temporal graphs. These methods model the evolution of a single graph, or of a fixed higher-order pattern within it.

What they do not address is the joint evolution of several heterogeneous layers, in which an event in one layer changes the event distribution in another, nor do they support counterfactual queries about structural interventions.

Research gap

Bridging these lines requires four capabilities:

  1. Representation. A unified four-layer dynamic heterogeneous hypergraph with typed nodes, intra-layer and cross-layer hyperedges, and dynamic membership.
  2. Co‑evolution. A learnable model capturing cross-layer propagation, joint triggering, and recursive feedback.
  3. Counterfactual prediction. Prediction of future multi-layer trajectories under local structural interventions.
  4. Optimization. A procedure that uses these predictions under task-correctness constraints.

AgentHyperEvo is designed around these four requirements.

3. Proposed Method

The method has four parts. The first fixes the object being learned; the second learns its evolution; the third turns the model into a counterfactual predictor; the fourth uses predictions to choose structural transformations.

3.1 Dynamic multilayer heterogeneous hypergraph

At time t, the overall execution hypergraph is

Ht = (Vt, Et, Xt),

where Vt is the set of heterogeneous nodes, Et is the set of intra-layer and cross-layer hyperedges, and Xt collects the associated runtime attributes.

Nodes are typed by layer. Let Λ = {T, R, C, K} denote the layer set, and let ℓ(v) ∈ Λ be the layer of node v. The node set is partitioned accordingly:

Vt = ⋃L ∈ Λ VLt,   VLt ∩ VL′t = ∅   (L ≠ L′).

A hyperedge is a tuple

e = (τe, Me, te, xe),   Me ⊆ Vt,   |Me| ≥ 2,

where τe is its type, Me its member set, te its timestamp, and xe its runtime attributes. Intra-layer hyperedges have all members in one layer; cross-layer hyperedges have members in two or more layers. The type records this layer signature together with the relation semantics, so that a tool-call hyperedge joining a task, a tool instance, and a resource is distinct from a cache-reuse hyperedge joining a tool instance and several cached objects.

Definition. A dynamic multilayer heterogeneous execution hypergraph is a time-indexed sequence {Ht}t ≥ 0 with typed nodes and hyperedges, in which nodes, hyperedges, and hyperedge membership may be created, removed, or reorganised at each step.

The dynamics are expressed as structural edits. At each step,

Ht+1 = Ht ⊕ Δt,   Δt = (ΔV+t,   ΔV−t,   ΔE+t,   ΔE−t,   ΔMt),

where ΔV±t are node births and deaths, ΔE±t are hyperedge births and deaths, and ΔMt records membership replacements. Requiring the model to score structural edits, rather than to predict a fixed-size adjacency matrix, is essential: the number of nodes and hyperedges changes throughout a long-horizon run, and the same node may change its structural role without being removed.

Four-layer execution hypergraph Four stacked bands labeled task dependency, compute resource, tool invocation, and cache reuse. Each band contains five nodes and a shaded intra-layer hyperedge. Dashed arrows connect adjacent bands, and two outer curves denote a cross-layer hyperedge and recursive feedback. Task dependency Compute resource Tool invocation Cache reuse
Four runtime layers with intra-layer hyperedges (shaded) and cross-layer higher-order relations. The outer curves denote a cross-layer hyperedge spanning non-adjacent layers and recursive feedback.

3.2 Higher-order structural co-evolution

Given the current hypergraph and a summary of its evolution history, the model predicts the joint next-step structure:

Ĥt+1 = Fθ(Ht, St),

where St denotes historical structural evolution information and Fθ is the co-evolution model to be learned. The prediction targets are:

We formulate the predictor over structural events. A structural delta is generated from a distribution conditioned on all layers,

Δt ∼ pθ(Δt | Ht, St),   Ĥt+1 = Ht ⊕ Δ̂t,

and multi-step predictions are obtained by autoregressive application,

Ĥt+1:t+K = Fθ(K)(Ht, St).

The model combines four components. A typed hyperedge encoder maps nodes, hyperedges, and their memberships to layer-specific embeddings, with cross-layer hyperedges encoded as higher-order relations over heterogeneous members. A temporal memory maintains per-node, per-hyperedge, and per-layer states that summarise St and are updated by observed structural events. A co-evolution predictor conditions the next-event distribution on all layers and on the cross-layer context, so that a task event can change the event scores in the resource, tool, and cache layers, and vice versa. A structured decoder emits a valid structural edit—birth, death, or membership change—rather than independent pairwise links, which keeps the predicted hypergraph well formed.

Training combines next-event likelihood on observed trajectories with a multi-step rollout loss that penalises compounding structural error, together with auxiliary objectives for membership prediction and cross-layer relation prediction. The rollout loss matters because the downstream use of the model is a K-step forecast, not a one-step reconstruction.

3.3 Counterfactual structure prediction

For a candidate intervention a applied to any layer—replacement of a local task subgraph, a change in a resource allocation relation, an adjustment of a tool invocation, or a change in a cache reuse relation—the model predicts the future multi-layer trajectory

Ĥ(a)t+1:t+K = Fθ(Ht, St, a).

Operationally, the intervention is applied to a copy of the current state, H(a)t = do(Ht, a), and the predictor is rolled forward K steps. Conditioning on a explicitly, rather than only on the post-intervention state, is what makes the query counterfactual: the same observed state can be paired with different candidate interventions.

Training data comes from paired rollouts under controlled initial states. The immediate, deterministic consequences of an intervention are known by construction—splitting a task creates its child tasks, for instance—while the subsequent cross-layer response must be learned. The objective therefore separates the two: the rule-determined part of the delta is applied exactly, and the model is trained on the residual evolution. A paired counterfactual loss rewards the model for correctly ordering interventions by their downstream structural effect, in addition to fitting each observed trajectory.

Counterfactual rollouts from a controlled state A solid line shows observed execution up to time t. At t, an intervention branches into two predicted multi-layer trajectories, with and without the intervention, which are compared by cost. observed execution intervention a with a without a K-step prediction → cost comparison → a*
Counterfactual prediction from the same controlled state. The model rolls out K-step multi-layer trajectories for each candidate intervention; the optimizer compares their predicted costs.

3.4 Overall execution structure optimization

Given a set of valid candidate transformations, the agent selects

a* = arg mina ∈ Avalid C(Ĥ(a)t+1:t+K),

where Avalid is the set of structural transformations that satisfy execution constraints and C is the overall execution cost.

Validity is defined by task correctness and quality requirements, together with resource and tool-availability limits; a transformation that lowers predicted cost but violates these requirements is excluded. The cost aggregates the runtime quantities that the four layers expose, including latency, token and compute consumption, failure and retry penalties, and cache misses. Because predicted trajectories are uncertain and the space of interventions is combinatorial, candidate interventions are generated from high-probability structural events proposed by the model and evaluated by rollout, with predictive uncertainty taken into account. The procedure is receding-horizon: after the selected transformation is executed, the hypergraph is updated with observed events and optimization is repeated.

3.5 Experimental design and evaluation

Data. We instrument an agent runtime to emit timestamped events from its planner, scheduler, tool executor, and cache manager, and reconstruct the four-layer hypergraph and its evolution trajectory from these events. Long-horizon tasks are drawn from data analysis, document processing, and mathematical reasoning, each of which exercises all four layers but with different structural patterns.

Baselines and ablations. AgentHyperEvo is compared with a dynamic heterogeneous graph without hyperedges, a temporal hypergraph model, an association bipartite graph, and a deterministic runtime model. Ablations remove cross-layer hyperedges, evolution history, and counterfactual training, respectively, to isolate the contribution of each component.

Metrics. Table 2 summarises the evaluation. Structural prediction uses node and hyperedge birth–death F1 and membership accuracy; higher-order relation prediction uses cross-layer hyperedge F1; feedback prediction uses the direction and magnitude accuracy of cross-layer effects; counterfactual prediction uses intervention-effect error and the rank correlation of interventions; generalization uses structure combinations and task families unseen during training; and execution optimization uses cost reduction at matched task success and quality. All comparisons are made at matched task correctness, so that a cost reduction cannot be obtained by degrading output quality.

Table 2. Evaluation dimensions and their research objectives.
Evaluation dimensionResearch objectiveRepresentative metric
Structural predictionAccurately predict future multi-layer graph structureBirth/death F1, membership accuracy
Higher-order relation predictionIdentify joint interactions among multiple layersCross-layer hyperedge F1
Feedback predictionCapture bidirectional cross-layer structural evolutionEffect direction and magnitude accuracy
Counterfactual predictionEstimate the impact of different structural interventionsIntervention-effect error, rank correlation
GeneralizationPredict unseen structural combinationsHeld-out task and structure performance
Execution optimizationReduce overall execution costCost reduction at matched success

4. Expected Contributions and Conclusions

  1. Dynamic heterogeneous hypergraph representation. A unified multi-layer, higher-order representation of long-horizon agent execution, in which task, resource, tool, and cache structures are modelled as distinct yet coupled dynamic layers.
  2. Higher-order co-evolution learning. A graph-learning mechanism that learns joint interactions, cross-layer propagation, and recursive feedback among heterogeneous layers, going beyond the single-graph evolution assumed by existing temporal and hypergraph models.
  3. Counterfactual structure prediction. A predictive relation between local structural interventions and future overall graph structure, providing the foundation for adaptive execution-structure optimization.

AgentHyperEvo aims to reveal, from a graph-machine-learning perspective, the structural evolution laws of the complex runtime systems behind long-horizon agents, and to advance the intersection of dynamic heterogeneous graph learning and agentic execution infrastructure. The framework will be evaluated end to end: predicted structures against observed trajectories, predicted intervention effects against paired rollouts, and selected transformations against the execution cost of unmodified runs at equal task quality.

References

  1. S. Kim et al., “An LLM Compiler for Parallel Function Calling,” ICML, 2024.
  2. C. Lin et al., “Parrot: Efficient Serving of LLM-based Applications with Semantic Variable,” OSDI, 2024.
  3. D. Guo et al., “SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusters,” 2026.
  4. H. Kang et al., “ThunderAgent: A Simple, Fast and Program-Aware Agentic Inference System,” 2026.
  5. A. Li et al., “GraphFlow: A Graph-Based Workflow Management for Efficient LLM-Agent Serving,” ICML, 2026.
  6. Y. Feng et al., “Hypergraph Neural Networks,” AAAI, 2019.
  7. E. Chien et al., “You Are AllSet: A Multiset Function Framework for Hypergraph Neural Networks,” ICLR, 2022.
  8. E. Rossi et al., “Temporal Graph Networks for Deep Learning on Dynamic Graphs,” 2020.
  9. J. Liu et al., “Higher-order Structure Boosts Link Prediction on Temporal Graphs,” 2025.