[Paper Review] MAG-GNN: Reinforcement Learning Boosted Graph Neural Network
MAG-GNN proposes a reinforcement learning (RL)-based method to identify a minimal, expressive subset of subgraphs for Graph Neural Networks (GNNs), replacing the computationally expensive enumeration of all subgraphs. By using an RL agent to iteratively select high-discriminative subgraphs, MAG-GNN achieves state-of-the-art performance on multiple graph benchmarks while reducing inference time significantly compared to subgraph GNNs.
While Graph Neural Networks (GNNs) recently became powerful tools in graph learning tasks, considerable efforts have been spent on improving GNNs' structural encoding ability. A particular line of work proposed subgraph GNNs that use subgraph information to improve GNNs' expressivity and achieved great success. However, such effectivity sacrifices the efficiency of GNNs by enumerating all possible subgraphs. In this paper, we analyze the necessity of complete subgraph enumeration and show that a model can achieve a comparable level of expressivity by considering a small subset of the subgraphs. We then formulate the identification of the optimal subset as a combinatorial optimization problem and propose Magnetic Graph Neural Network (MAG-GNN), a reinforcement learning (RL) boosted GNN, to solve the problem. Starting with a candidate subgraph set, MAG-GNN employs an RL agent to iteratively update the subgraphs to locate the most expressive set for prediction. This reduces the exponential complexity of subgraph enumeration to the constant complexity of a subgraph search algorithm while keeping good expressivity. We conduct extensive experiments on many datasets, showing that MAG-GNN achieves competitive performance to state-of-the-art methods and even outperforms many subgraph GNNs. We also demonstrate that MAG-GNN effectively reduces the running time of subgraph GNNs.
Motivation & Objective
- To address the high computational cost of subgraph GNNs that enumerate all possible subgraphs for improved expressivity.
- To investigate whether a small, optimal subset of subgraphs can achieve comparable expressivity to full subgraph enumeration.
- To develop an efficient, scalable method that maintains high GNN expressivity without exhaustive search.
- To reduce the inference time of subgraph GNNs while preserving or improving predictive performance.
Proposed method
- MAG-GNN starts with a randomly sampled candidate set of rooted subgraphs from the input graph.
- An RL agent is trained to iteratively replace subgraphs in the candidate set to maximize a reward signal based on model performance.
- The agent uses a Q-table to estimate the expected reward of replacing a target subgraph with a new candidate subgraph.
- The subgraph replacement process is guided by a policy that selects the subgraph update with the highest expected reward at each step.
- The final selected subgraph set is used as input to a downstream GNN for prediction tasks.
- The method reduces exponential subgraph enumeration complexity to constant-step RL search, enabling efficient and expressive GNNs.
Experimental results
Research questions
- RQ1Can a small, optimally selected subset of subgraphs achieve the same expressivity as full subgraph enumeration in GNNs?
- RQ2Can reinforcement learning effectively identify the most discriminative subgraphs for improving GNN performance?
- RQ3Does reducing subgraph enumeration to a constant-step RL process maintain or improve GNN performance while reducing runtime?
- RQ4How does MAG-GNN compare to state-of-the-art subgraph GNNs in terms of accuracy and efficiency?
Key findings
- MAG-GNN achieves competitive performance to state-of-the-art methods, outperforming several subgraph GNNs on multiple datasets including ZINC and OGBG-MOLHIV.
- On the ZINC dataset, MAG-GNN achieves a test loss of 0.106 ± 0.014, significantly outperforming GIN (0.163 ± 0.004) and approaching the performance of more complex models like CIN (0.079 ± 0.006).
- With pre-training (MAG-GNN-PRE), the model improves further, achieving a test loss of 0.096 ± 0.009 on ZINC and 78.30 ± 1.08 on OGBG-MOLHIV.
- MAG-GNN reduces inference time significantly, being faster than edge-rooted subgraph GNNs like I²GNN and outperforming NGNN in accuracy despite similar efficiency.
- The model demonstrates adaptability to different base GNNs, suggesting potential for further performance gains through architecture integration.
- The ablation study confirms that MAG-GNN’s RL-based subgraph selection effectively balances expressivity and efficiency, avoiding overfitting seen in fixed-structure subgraph GNNs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.