GLOW: Graph-Language Co-Reasoning for Agentic Workflow Performance Prediction

Wei Guan, Jian Cao, Jinyu Cai, Qiqi Cai, See-Kiong NgarXiv 2025 · DOI

Introduction

As AI evolves from simple chat interfaces to complex Agentic Workflows (AWs), the challenge of system design has intensified. In these workflows, multiple specialized agents—such as coders, reviewers, and testers—collaborate in structured sequences to solve sophisticated tasks. However, identifying the optimal arrangement of these agents currently relies on exhaustive search and execution, a process that is both computationally expensive and prohibitively slow due to repeated Large Language Model (LLM) API calls.

The Challenge of Workflow Optimization

Designing a high-performing AW requires navigating a vast search space of potential graph topologies and agent prompts. Traditional evaluation methods require executing every candidate workflow to measure its success. While automated search algorithms can generate thousands of candidates, running them all is impractical.

Existing proxy models designed to predict performance without execution often fall short. Graph Neural Networks (GNNs) excel at understanding structural dependencies but fail to grasp the semantic nuances of agent prompts. Conversely, standard LLMs understand text but struggle with complex graph topologies and error propagation logic. This gap necessitates a unified approach that combines structural "map-reading" with deep semantic reasoning.

The GLOW Framework

To address these limitations, the authors introduce GLOW, a framework that employs a "co-reasoning" strategy to bridge the gap between workflow structure and semantics. The architecture is built upon three primary pillars:

  1. Graph-oriented LLM Instruction Tuning: Recognizing that off-the-shelf LLMs are often "graph-illiterate," the researchers instruction-tuned a Qwen-1.7B model on a specialized dataset of 23,346 graph reasoning tasks. This enables the model to accurately parse and reason about graph structures described in plain text.
  2. Dual-branch Representation Learning: GLOW utilizes a two-pronged approach to encode workflows. One branch uses a GNN to capture raw topological dependencies (the "skeleton"), while the second branch uses the graph-tuned LLM to extract high-level semantic reasoning from agent roles and prompts (the "brain").
  3. Contrastive Alignment Strategy: The model employs a triplet loss function to align these representations. This forces the model to cluster successful workflows together in a latent space while pushing underperforming ones away, significantly improving its ability to rank candidate designs.
The GLOW architecture featuring dual-branch representation learning and contrastive alignment.

Evaluation and Benchmarks

GLOW was rigorously tested using FLORA-Bench, a comprehensive suite for agentic workflows covering three core domains:

  • Code Generation: Evaluated via HumanEval and MBPP.
  • Mathematical Problem Solving: Tested on GSM8K and MATH.
  • General Reasoning: Measured using the MMLU benchmark.

Key Results and Efficiency

GLOW demonstrates a transformative impact on the workflow design process, achieving state-of-the-art accuracy while drastically reducing overhead:

  • Massive Speedup: When integrated into the AFLOW automated generation framework, GLOW reduced total computation time by 98.7%. It can evaluate thousands of potential configurations in seconds rather than hours.
  • High Fidelity: Despite the speed, the quality of workflows discovered using GLOW as a surrogate remained nearly identical to those found through full execution, with a negligible score decrease of only 0.031.
  • Synergistic Performance: Ablation studies confirmed that the combination of GNN structure and LLM semantics is essential; removing either component resulted in a significant drop in prediction accuracy.
Performance vs. Time comparison across HumanEval, MBPP, and MMLU benchmarks, highlighting GLOW's efficiency.

Conclusion and Future Directions

GLOW represents a significant step forward in making agentic workflow design practical and scalable. By providing a high-fidelity, execution-free performance predictor, it allows developers to focus on high-potential designs. Future work will aim to expand GLOW's capabilities beyond Directed Acyclic Graphs (DAGs) to include workflows with cycles and dynamic routing, as well as exploring how larger LLM backbones might further enhance semantic reasoning in even more diverse domains.

Summary updated

BibTeX
@misc{guan2025glow,
  author = {Wei Guan and Jian Cao and Jinyu Cai and Qiqi Cai and Jianqi Gao and See-Kiong Ng},
  title = {{GLOW: Graph-Language Co-Reasoning for Agentic Workflow Performance Prediction}},
  year = {2025},
  eprint = {2512.15751},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.15751},
}
Figure