MAG-GNN: Reinforcement Learning Boosted Graph Neural Network

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.

Paper

Similar papers

Peer review

Reviewer 9Mgd4/10 · confidence 2/52023-07-04

Summary

The authors present MAG-GNN, a subgraph-based Graph Neural Network (GNN) method that utilizes reinforcement learning to effectively identify discriminative subgraphs. They empirically assess the performance of MAG-GNN using both synthetic and real-world datasets.

Strengths

- The main elements of the RL framework are properly explained. - The empirical section includes clear and valuable research questions.

Weaknesses

1. The writing is significantly lacking in clarity and context. 2. The presentation of results lacks clarity.

Questions

1. Please provide clarification on what "this property" refers to in line 60. 2. Can you confirm if \mathbf{v} represents a set of k nodes in line 88? It seems so, but the notation is not defined. 3. In line 88, it would be helpful to provide context on why a subgraph GNN creates |V^k(G)| copies of the graph and an intuition of what this quantity represents. 4. In Equation (2), could you specify what j represents? 5. Could you explain what N refers to in Equation (3)? 6. In line 136, when you mention a "2-node-marked graph," could you provide a general definition of a node-marked graph? 7. What is meant by a "GNN run" or "MPNN run"? 8. The explanation in the text of Figure 2 is quite complex. Additional information from the authors would be appreciated to improve comprehension. 9. Is \mathcal{V}^k the same as V^k(G) mentioned in line 172? If so, it would be helpful to use standardized notation to help in understanding. 10. In section 4.1 on training MAG-GNN, it is challenging to grasp all the training procedure details solely from the text. It would be beneficial to include an algorithm that illustrates the training procedure. 11. The captions of Table 1 and Table 2 do not indicate which metrics are being presented. 12. What do the yellow cells indicate in Table 2? 13. All the tables and figures in the experimental section lack error bars. 14. How does the runtime of MAG-GNN vary with m and T in section 6.4 on runtime comparison?

Rating

4: Borderline reject: Technically solid paper where reasons to reject, e.g., limited evaluation, outweigh reasons to accept, e.g., good evaluation. Please use sparingly.

Confidence

2: You are willing to defend your assessment, but it is quite likely that you did not understand the central parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

1 poor

Contribution

3 good

Limitations

The authors have acknowledged the limitations of their proposed approach.

Authorsrebuttal2023-08-14

Dear Reviewer 9Mgd, Thank you for acknowledging our contribution, and we greatly appreciate your time to provide invaluable comments on our work. We just want to check and see if our rebuttal clears the confusion. In the rebuttal, we clarify the notation and terminology we adopted and provide pseudocode for better comprehension of the paper. We also include a runtime table varying $m$ and $k$ to understand the complexity of our method better. Following your suggestion, we plan to improve the presentation of the paper by clearly stating the assumption and providing a more detailed background. We are happy to answer any more questions you have and look forward to your reply. Submission 3693 authors

Reviewer jrFK6/10 · confidence 4/52023-07-05

Summary

The paper considers the problem of increased complexity of subgraph GNNs with respect to standard MPNNs, due to the enumeration of the entire bag of subgraphs for every given graph. The authors first study the need of enumerating all subgraphs, and show that there exist graphs where using a small subset of subgraphs have the same discriminative power as the entire bag of subgraphs. Motivated by these cases, the authors propose an RL-based approach, named MAG-GNN, to find the best subset of subgraphs to be employed in the task at hand. The method starts with a subset of subgraphs that are randomly selected. Then, it employs a DQN framework, where the Q-network is parametrized by a subgraph GNN, to replace each subgraph in the subset with a another subgraph. The new subgraph is obtained by replacing only one index of the node tuple identifying the subgraph. Upon reaching a maximum number of steps, the obtained subgraph set is passed through a downstream subgraph GNN for the final predictions.

Strengths

1. The problem of reducing the complexity of subgraph GNNs without trading off performances is significant. The authors identify graphs where a small subset of subgraphs has the same discriminative power as the full bag of subgraphs, which motivates the search for such subsets. 2. The combination of RL with subgraph GNNs is original, and represent a natural way of learning to select subgraphs.

Weaknesses

1. **The paper misses a thorough comparison with a random policy**, where a random subset of subgraphs is randomly selected at every forward pass. The authors consider tangentially the question in the experimental evaluation (Q1) but fail to answer in details. For every dataset you consider, there should be a table entry reporting the performance of the random baseline. **Such baseline should have the same $k$ and the same $m$ that you consider**. Furthermore, it should be based on the same architecture that MAG-GNN uses as downstream prediction model. Only with such comparison we can conclude that MAG-GNN performs better than random. Note that: - The answer of Q1 is insufficient, both because you consider only one dataset, and also because you focus only on one node tuple ($m=1$). Please include a table entry for every dataset. - The experiment in Appendix E reports a comparison with a random baseline that uses ensemble predictions. However, it would make more sense to aggregate the representations of the subgraphs and _then_ perform a prediction, an approach that is indeed followed by subgraph GNNs (as reported in Equation 3). The ensemble method instead predicts using each subgraph separately and then aggregates the predictions, which is clearly less powerful. Please include a comparison with random that does not use the ensemble approach, but that aggregates the representations of the $m$ subgraphs to obtain a graph representation, and then performs the prediction. Note that you should evaluate the same $m$ and $k$ values that you sweep on for MAG-GNN (up to 4 and 6 respectively). 2. **The paper misses comparisons with the I-MLE approach proposed in $k$-OSAN** to select subgraphs, which has exactly the same goal. 3. **The paper misses comparison with many subgraph GNNs**, such as Bevilacqua et al 2022, Zhang et al 2023. These methods obtain better performances than MAG-GNN for example on ZINC, using node-based subgraphs (where the bag of subgraph is of size $\vert V \vert$, and therefore are tractable). It is unclear what is the advantage of training an RL agent, which has much higher training time, and using $k$-order policies with $k>1$, if the performances are worse than node-based subgraph GNNs and the inference time is not better. 4. The comparison on the ZINC dataset is unfair because the model does not respect the parameter budget imposed by the dataset (500k). Currently he budget is twice the one that is allowed (three times if we consider the target q-network). Please fix and ensure you remain within the budget. 5. **The paper misses a thorough comparison with the model using the full bag and $k>1$**. Again, it should be based on the same architecture that MAG-GNN uses as downstream prediction model. Only in this way we can know what is the performance achievable with the full bag, and understand how distant MAG-GNN is from it. Bevilacqua et al 2022. Equivariant Subgraph Aggregation Networks. ICLR 2022 Zhang et al 2023. A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Tests. ICLR 2023

Questions

1. **What is the performance of _your prediction subgraph GNN_ (which is built on k-OSAN) when trained with random subsets of subgraphs (randomly selected at every forward)**? Note that I am asking to keep your downstream prediction subgraph GNN formulation identical to what you use in MAG-GNN (except the hyperparameter choices) in order to truly understand the impact of the RL agent. Please use $m$ and $k$ up to the values you consider for MAG-GNN. 2. Please include comparison with subgraphs GNNs (Bevilacqua et al 2022, Zhang et al 2023) and with k-OSAN with IMLE. 3. Table 7 shows that MAG-GNN with $m=1$ (and ensemble 3) achieves practically the same performance of the MAG-GNN that uses much higher $m$. Please investigate this aspect. Does it imply that MAG-GNN is effectively only learning to select one subgraph, and the other ones are unimportant (as it can get similar performances when choosing one or many)? 4. I think $f_p$ in Equation 9 should be $f_{rl, p}$. Indeed, using $f_p$ means that you take the representation of graph obtained through the prediction subgraph GNN. However, from the code I think you take the representation of graph obtained through the subgraph GNN that parametrizes the Q-network (that is based on $g_{rl}$). Please clarify. 5. In the SIMUL case, do you reset the replay buffer every time you train your downstream prediction subgraph GNN $g_p$? 6. What is the performance of _your prediction subgraph GNN_ when using the full bag and $k>1$ (that is, for various values of $k>1$)?

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

2 fair

Presentation

3 good

Contribution

2 fair

Limitations

n/a

Authorsrebuttal2023-08-14

Dear Reviewer jrFK, Again, we sincerely thank reviewer jfFK for the time and effort spent on the detailed comments. Many points you raised inspired us to evaluate our methods comprehensively. We just want to reach out to you at the end of the discussion session and see if our rebuttal addresses your main concerns. In short, we compare the random approach on more datasets varying $m$ and $k$, compare MAG-GNN with SOTA node-based subgraph GNN, and explain why full bag training was not included originally. We agree these are critical to present our work and are happy to include them in our revision to enhance the work. Please let us know any further questions you have, and we look forward to the discussion with you. Submission 3696 authors

Area Chair PWZo2023-08-16

Rebuttal to Reviewer jrFK

Reviewer jrFK, this seems like a thoughtful review. Did the rebuttal address your concerns? Thanks!

Reviewer jrFK2023-08-16

I appreciate the author's effort in the rebuttal, especially in adding the comparison to the random baseline. However, I would like to further raise a few points of discussion. 1. *Is the comparison with random fair in terms of number of parameters?* As discussed in the review, in the ZINC dataset your model was out of budget. Using a random policy reduces the number of parameters by 1/3. Since models on ZINC are known to have better performances with larger number of parameters, have you considered the impact of this? Generally speaking, I think you should report the number of parameters both without including the target q-network and when including it. In your reply you said you would run with hidden size 64 to respect the 500K budget, but results are not reported. 2. Can you try using mean pooling instead of sum pooling for the full bag training when k=2? I think the poor results you obtain with the full policy (similar to a MPNN) might be due to the aggregation that explodes when the number of subgraphs is too large. 3. Since your model is slightly different than k-OSAN (because you get different results), what are the results of the full bag when k=1?

Authorsrebuttal2023-08-17

We thank Reviewer jrFK for the continued discussion, and address the questions as follows. - Is the comparison with random fair in terms of number of parameters? As discussed in the review, in the ZINC dataset your model was out of budget. Using a random policy reduces the number of parameters by 1/3. Since models on ZINC are known to have better performances with larger number of parameters, have you considered the impact of this? Generally speaking, I think you should report the number of parameters both without including the target q-network and when including it. In your reply you said you would run with hidden size 64 to respect the 500K budget, but results are not reported. We strongly agree with the reviewer that MAG-GNN should stay within the parameters budget, and we want to clarify that **all ZINC experiments in the rebuttal have <500k parameters using a hidden dimension of 64**. Specifically, the number of parameters in the q-network is 202k, the prediction GNN is 253k, which add up to 455k<500k, and the number of target q-network is the same as the q-network 202k. However, because we do not directly train the target q-network (only update from the q-network) and we do not need the target network during inference (only 455k parameters used during inference), we believe this is still a fair setting. Comparing the ZINC experiment results presented in the rebuttal (<500k parameters) and the experiment in the paper, we found that MAG-GNN seems to be less sensitive to the hidden dimension, possibly because the q-network filtered out non-informative subgraphs, and the prediction network only needs to remember the information of a smaller set of subgraphs. For the random approach, **we stay with the 100 hidden dimension size**, resulting in 488k parameters. We will add the parameters comparison in our revision. - Can you try using mean pooling instead of sum pooling for the full bag training when k=2? I think the poor results you obtain with the full policy (similar to a MPNN) might be due to the aggregation that explodes when the number of subgraphs is too large. We would like first to bring up the point that we use batch normalization in our task MLP, which should also alleviate the exploding subgraphs issue. Nevertheless, we conducted k=2 full bag training using mean pooling. | | ZINC | SR25 | | --- | :---: | :---: | | k=1 (SUM) | 0.118 | 6.7 | | k=2 (SUM) | 0.261 | 100 | | k=2 (MEAN) | 0.247 | 100 | | 3-WLGNN | 0.256 | 6.7 | | MAG-GNN | 0.104 | 100 | Mean pooling seems to have slightly better performance but is still sub-optimal, possibly because mean pooling is not as injective as sum pooling, which makes it difficult for the MLP to distinguish graphs. - Since your model is slightly different than k-OSAN (because you get different results), what are the results of the full bag when k=1? The table in the response of W5 in the original rebuttal includes k=1 full bag results, and we paste the results in the table to the last question.

Reviewer jrFK2023-08-18

I think overall this paper represents a valuable contribution to the community. I have increased my score, but for the next revision I urge the authors to provide the comparison with the random baseline **in each table**.

Authorsrebuttal2023-08-19

We appreciate the reviewer for the initial thoughtful comments and responsible follow-ups. We will revise according to our discussion and thank you for your time and effort helping us improve the paper.

Reviewer SjU66/10 · confidence 2/52023-07-06

Summary

The paper aims to locate expressive subgraphs for graph representation learning. To do so, the author proposed to use deep Q Learning for training an efficient agent which optimizes the combinatorial problem of choosing the optimal subgraph. The proposed agent-aided GNN shows good performance and is able to transfer to real-world datasets.

Strengths

Motivation is interesting and the methodology is well explained. The experiment result seems sound. The proposed model is on par with state-of-the-art while using less computational resources.

Weaknesses

* How to train an effective agent seems to be a critical point. Despite that, the author has a brief discussion in sec 4.1, more quantitative analysis and illustration on this part can better support the author's choice of ORD. * The proposed method seems to be on par with the state-of-the-art. While I don't think absolute performance is an important concern given the method is more efficient. I think it's important to investigate in L316 Q3 how much of the RL agent expressiveness benefit the real-world datasets compared to random ones or human-designed ones. ------------------------------------------------------------------------------------- I've read the author's response to me and other reviewers which resolves my concern. I would like to remain my rating as weak accept.

Questions

* In table4, how is no RPE evaluated, why is no RPE on par with training agent on 3-CYCLE 6-CYCLE and SR25?

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

2: You are willing to defend your assessment, but it is quite likely that you did not understand the central parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

N/A

Authorsrebuttal2023-08-14

Dear Reviewer SjU6, Thank you again for acknowledging our contribution. We just want to check in and see if our rebuttal addressed the weaknesses you mentioned at the end of the reviewer period. In the rebuttal, we provide a timetable to discuss the difference between ORD and SIMUL training and clarify the PRE experiment setup. We also offer a more comprehensive comparison to the random approach. We really appreciate your critical comments encouraging us to inspect our approach further, and look forward to your reply. Submission 3693 authors

Reviewer kfK67/10 · confidence 2/52023-07-16

Summary

this paper proposes a strategy to select the optimal subset instead of extensive enumeration for the subgraph GNN. The proposed method can achieve comparative results and reduce the running time.

Strengths

1. the paper is well written and easy to follow. 2. the experiment part is thoroughly detailed。 3. the experiment shows the model can achieve the comparative result with subgraph GNN while significantly reducing the running time.

Weaknesses

N/A

Questions

N/A

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

2: You are willing to defend your assessment, but it is quite likely that you did not understand the central parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

N/A

Reviewer FiDZ4/10 · confidence 3/52023-07-25

Summary

This paper proposes a reinforcement learning boosted approach to subgraph graph neural networks (GNNs) that achieves high expressivity with constant complexity, instead of the exponential complexity of existing methods. They demonstrate the effectiveness and efficiency of their approach through experiments that compare it with the state-of-the-art methods.

Strengths

1. The paper is well-written. 2. The proposed MAG-GNN can achieve good expressivity while reducing the time complexity of subgraph enumeration.

Weaknesses

1. The authors report that most methods in Table 1 achieve 100% accuracy on the dataset. This suggests that the dataset may be too simple to adequately evaluate the expressivity of a model. The authors should consider applying more challenging datasets to better assess the performance of their models. 2. The table captions are vague and do not provide sufficient information for readers to interpret the experimental results properly. 3. In Section 3, the authors use the same data for training and test, which may lead to overfitting and unrealistic performance. 4. The notation |V^2| should be |V|^2. 5. The proof of the theorem is unclear and lacks details.

Questions

It seems no supporting for this statement: This reduces the exponential complexity of subgraph enumeration to the constant complexity of a subgraph search algorithm while keeping good expressivity

Rating

4: Borderline reject: Technically solid paper where reasons to reject, e.g., limited evaluation, outweigh reasons to accept, e.g., good evaluation. Please use sparingly.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

2 fair

Presentation

3 good

Contribution

2 fair

Limitations

The paper does not discuss limitations or potential social impacts.

Authorsrebuttal2023-08-14

Dear Reviewer FiDZ, Thank you again for acknowledging our contribution and raising valuable points to improve our paper. As the discussion period ends soon, we are just wondering if our rebuttal addresses your concerns. Following your comments, we explain the usage of datasets and clarify the notion and the intuition behind our theory. We provided more background to our work to highlight further our contribution, which we plan to include in our revision. We hope this helps present our paper in a clearer way to you. Looking forward to your reply! Submission 3693 authors

Reviewer egpV7/10 · confidence 3/52023-07-25

Summary

The paper introduces MAG-GNN, an RL approach for identifying important subgraphs. This is valuable since models using fewer subgraphs incur lower inference costs. Experimentally, the authors show that MAG-GNN retains the strong performance of sub-graph approaches while reducing the run time.

Strengths

The guiding question of the paper "Are a small number of subgraphs sufficient for graph problems?" is well-motivated. The proposed RL-based approach for identifying subgraphs is well-explained. The approach's performance and efficiency are validated on various benchmark datasets. The negative results of the node-level task are helpful, revealing both the current limit and future potential of the paper.

Weaknesses

**Training efficiency**. While MAG-GNN accelerates inference, the training process becomes more time-consuming. On smaller graphs, this training pipeline may dominate the overall computational costs. **Task scope**. MAG-GNN excels in graph-level tasks but underperforms in node-level tasks, as the authors gracefully acknowledge. **Baseline comparison**. The authors primarily compare MAG-GNN with methods using full subgraphs in the experiment section. Considering its efficiency goals, comparing it with other efficient alternatives, such as applying node/edge pruning approaches to the full graph and then using standard subgraph methods, would be useful.

Questions

Could the authors report the training time of MAG-GNN? Knowing the timeframe compared to baselines would be helpful, given that the training of MAG-GNN is costly. I am wondering if it is possible to visualize the discarded and remaining subgraph structures resulted from RL. Given the complexity and freedom of tuning of the reported RL approach, such visualizations could aid in understanding which subgraph structures are useful and which are not. In particular, it will be informative to apply this visualization technique to toy-like graphs, similar to those in Figure 1, where we already know which subgraph structures matter.

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

See the "Weaknesses" section above.

Authorsrebuttal2023-08-14

Dear Reviewer egpV, As the discussion period ends soon, we just want to reach out and see if our rebuttal answers your questions. In short, we present a detailed training time comparison, a performance comparison to the method you suggested, and visualizations of the agent steps in the attached pdf to address your concerns. Thank you again for your comments and suggestions to improve our paper! We look forward to your reply. Submission 3693 authors

Reviewer egpV2023-08-14

After rebuttal

Thanks to the authors for their response. Their reply addressed my questions, and I raised my score accordingly. I think it would be interesting to compare non-random edge drop experiments, though, in a context similar to the lottery ticket hypothesis for graphs (search SNIP, Synflow, etc for attempts on tabular and imagery data). Perhaps this is something worth exploring, if the authors have the time and interest.

Authorsrebuttal2023-08-14

Thank you

Thank you very much for reading our response and raising your score. We sincerely appreciate the proposed idea and would love to inspect it further.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC