ReaGAN: Node-as-Agent-Reasoning Graph Agentic Network

Ziyi Ye (叶子逸), Minghao Guo, Xi Zhu, Jingyuan Huang, Kai Mei, Yongfeng ZhangarXiv 2025 · DOI

Introduction

Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data. However, most existing GNNs follow a rigid, globally synchronized message-passing paradigm. This "one-size-fits-all" approach assumes that every node should aggregate information from its immediate neighbors in an identical fashion. This leads to significant bottlenecks, particularly in handling noisy nodes or capturing long-range semantic dependencies in sparse graphs. Traditional GNNs are often limited by a local-global disconnect, where they excel at local structural similarity but fail to account for global semantic relationships between distant nodes.

Comparison between traditional GNN fixed message passing and ReaGAN's local and global aggregation approach.

The ReaGAN Framework

ReaGAN (Retrieval-augmented Graph Agentic Network) addresses these limitations by reimagining each node as an autonomous agent. Instead of passive aggregation, nodes in ReaGAN actively plan their interactions using a frozen Large Language Model (LLM) as a reasoning engine. This framework transforms the graph learning process into a decentralized, multi-agent reasoning task.

Architecture and Reasoning Loop

Each node-agent operates within a cycle of perception, planning, action, and memory update. The architecture is composed of four core modules:

  1. Planning: A frozen LLM (specifically Qwen2.5-14B-Instruct) acts as the "brain." Based on the node's current memory and context, the LLM decides which action will most benefit the node's representation.
  2. Memory: This module stores the node's original text features, its current aggregated features, and lists of both local-structure and global-semantic neighbors.
  3. Actions: The agent can choose from several operations: LocalAggregation (gathering info from direct neighbors), GlobalAggregation (using retrieval tools), NoOp (no operation, to avoid noise), or Prediction (final label assignment).
  4. Tool-Use (RAG): ReaGAN integrates Retrieval-Augmented Generation as a tool. If a node determines its local neighborhood is insufficient, it can query a structure-free database of all nodes to find semantically similar "global neighbors" across the entire graph.
The ReaGAN architecture illustrating the agentic loop of planning, action, and memory update for each node.

Key Innovations and Insights

The Power of "NoOp"

A critical finding in the development of ReaGAN is the utility of the NoOp action. By allowing nodes to "opt-out" of message passing when their internal representation is already sufficient, the model effectively prevents the "over-smoothing" and noise accumulation common in deep GNNs. This autonomy ensures that informative nodes are not diluted by irrelevant data from their neighbors.

Label Anonymization

To ensure the LLM performs genuine reasoning about the graph structure rather than relying on pre-trained semantic shortcuts (e.g., guessing "Machine Learning" because it sees the word "algorithm"), the authors implement label anonymization. By changing category labels to generic identifiers like "Label_1," the LLM is forced to compare the target node's features against the features of labeled neighbors in its memory, leading to more robust and generalized classification.

Adaptive Retrieval Strategies

The research highlights that global semantic augmentation is most effective when used as a fallback. "Strategy B"—where global retrieval is only triggered when local information is critically low—performed best on sparse graphs like Citeseer. This suggests that while global context is a powerful tool, the local graph structure should remain the primary source of truth when available.

Experimental Evaluation

ReaGAN was evaluated on three standard node classification benchmarks: Cora, Citeseer, and Chameleon. Despite using a frozen LLM with no gradient-based training or task-specific fine-tuning, the model achieved remarkably competitive results:

  • Cora: Achieved 84.95% accuracy, slightly outperforming fully supervised models like GCN (84.71%) and GraphSAGE (84.35%).
  • Citeseer: Reached 60.25% accuracy, remaining competitive with established GNNs in a sparser environment.
  • Chameleon: Achieved 43.80% accuracy, demonstrating versatility across different graph types (Wikipedia-based vs. citation networks).

Ablation studies confirmed that both the agentic planning and the global retrieval components are essential; removing either led to a measurable performance drop across all datasets.

Conclusion and Future Work

ReaGAN represents a significant shift toward more flexible and autonomous graph learning. By empowering nodes with reasoning capabilities and global retrieval tools, it overcomes the structural constraints of traditional message-passing. While currently computationally intensive due to per-node LLM inference, future work will focus on scaling these agentic interactions through parallelized scheduling and exploring decentralized decision-making in multi-agent graph environments.

Summary updated

BibTeX
@misc{2025reagan,
  author = {Ziyi Ye (叶子逸) and Minghao Guo and Xi Zhu and Jingyuan Huang and Kai Mei and Yongfeng Zhang},
  title = {{ReaGAN: Node-as-Agent-Reasoning Graph Agentic Network}},
  year = {2025},
  eprint = {2508.00429},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.00429},
}
Figure