Abstract
Standard Graph Neural Networks (GNNs) rely on fixed aggregation rules, often failing in complex reasoning tasks or noisy environments. We present Policy Message Passing (PMP), a framework that treats graph inference as a sequential decision-making process. By employing a reasoning agent to stochastically select message-passing functions based on reasoning history, PMP introduces a "strategy" to graph communication. Our results demonstrate that PMP significantly outperforms existing models in visual reasoning, puzzle-solving, and robust classification under high noise.
Introduction
Graph Neural Networks (GNNs) have become the standard for processing relational data. However, most GNN architectures utilize a static message-passing scheme where information is aggregated uniformly across all edges. This "one-size-fits-all" approach is suboptimal for tasks requiring multi-step logical deduction or when the graph contains spurious connections. In such scenarios, the model should ideally prioritize certain communication paths or ignore others entirely.
Methodology: Inference as Sequential Decision Making
Policy Message Passing (PMP) reformulates graph inference. Instead of a deterministic update, PMP introduces a parameterized policy—a "reasoning agent"—that governs the flow of information.
Stochastic Message Selection
For each edge $(i, j)$ at time step $t$, the agent selects a function $f_k$ from a predefined set $\{f_k\}$. This set includes a "null" function, allowing the model to dynamically prune edges. The selection is guided by a policy $\pi(z | v_i, v_j, h)$, where $h$ represents the reasoning history.
Variational Learning and Reasoning History
To maintain consistency across multiple steps, each agent possesses a hidden state that tracks previous actions. Training is conducted within a variational inference framework, maximizing the Evidence Lower Bound (ELBO). To handle discrete action sampling, the Gumbel-softmax trick is employed, ensuring the entire pipeline remains end-to-end differentiable.
Experimental Evaluation
We evaluated PMP across three challenging domains:
- Visual Reasoning ("Where am I"): Inferring object coordinates on a grid from local context and a single reference point.
- Image Puzzle Solving: Reassembling shuffled patches from Visual Genome, COCO, and CelebA datasets.
- Robust Social Network Classification: Classifying nodes in the Cora dataset under varying levels of synthetic edge noise.
Results and Discussion
PMP demonstrates a clear advantage in tasks requiring strategic communication. On the "Where am I" task, PMP achieved 81.26% accuracy, nearly tripling the performance of standard GNNs (32.92%). In image puzzle solving on COCO $6 \times 6$, PMP reached 90.53% accuracy, significantly surpassing Recurrent Relational Networks (62.52%).
A key strength of PMP is its robustness. When the Cora dataset was injected with 200% noisy edges, PMP maintained 50.3% accuracy, whereas Graph Attention Networks (GAT) dropped to 34.53%. This suggests the agent successfully learns to identify and ignore irrelevant edges using the "null" message function.
Conclusion
Policy Message Passing shifts the paradigm of GNNs from static calculators to adaptive reasoners. By integrating a learnable policy into the message-passing loop, PMP achieves superior performance and robustness. Future work will explore expanding the function set and optimizing the computational overhead associated with multi-trajectory sampling.
Summary updated