[Paper Review] Fast Detection of Maximum Common Subgraph via Deep Q-Learning.
This paper proposes RLMCS, a deep reinforcement learning approach using Graph Neural Networks and Deep Q-Networks to approximate the Maximum Common Subgraph (MCS) between two graphs. By leveraging an exploration tree and a novel joint graph embedding method, RLMCS achieves high accuracy and efficiency, outperforming exact solvers and supervised models on real-world datasets.
Detecting the Maximum Common Subgraph (MCS) between two input graphs is fundamental for applications in biomedical analysis, malware detection, cloud computing, etc. This is especially important in the task of drug design, where the successful extraction of common substructures in compounds can reduce the number of experiments needed to be conducted by humans. However, MCS computation is NP-hard, and state-of-the-art exact MCS solvers do not have worst-case time complexity guarantee and cannot handle large graphs in practice. Designing learning based models to find the MCS between two graphs in an approximate yet accurate way while utilizing as few labeled MCS instances as possible remains to be a challenging task. Here we propose RLMCS, a Graph Neural Network based model for MCS detection through reinforcement learning. Our model uses an exploration tree to extract subgraphs in two graphs one node pair at a time, and is trained to optimize subgraph extraction rewards via Deep Q-Networks. A novel graph embedding method is proposed to generate state representations for nodes and extracted subgraphs jointly at each step. Experiments on real graph datasets demonstrate that our model performs favorably to exact MCS solvers and supervised neural graph matching network models in terms of accuracy and efficiency.
Motivation & Objective
- To address the NP-hard challenge of Maximum Common Subgraph (MCS) detection in large graphs, especially in applications like drug design and malware detection.
- To develop a learning-based method that approximates MCS with high accuracy while minimizing reliance on labeled MCS instances.
- To improve computational efficiency over exact MCS solvers, which lack worst-case time guarantees and struggle with large graphs.
- To design a reinforcement learning framework that dynamically explores and extracts common subgraphs through node-by-node matching.
- To introduce a joint graph embedding technique that captures both node and subgraph representations at each step of the extraction process.
Proposed method
- RLMCS employs a reinforcement learning framework based on Deep Q-Networks (DQN) to optimize subgraph extraction by maximizing a reward signal derived from subgraph commonality.
- An exploration tree structure enables incremental subgraph construction by matching one node pair at a time across the two input graphs.
- A novel graph embedding method jointly encodes node features and the evolving subgraph structure at each step to generate state representations.
- The state representation is used by the DQN agent to select actions (node pair matches) that maximize cumulative reward over the subgraph extraction process.
- The model is trained end-to-end using experience replay and target networks to stabilize learning, with rewards shaped to favor larger, more common subgraphs.
- The framework supports both inductive and transductive inference, enabling generalization to unseen graph pairs with minimal fine-tuning.
Experimental results
Research questions
- RQ1Can a reinforcement learning-based approach achieve competitive MCS detection accuracy while significantly reducing computation time compared to exact solvers?
- RQ2How effective is a joint graph embedding method in capturing evolving subgraph states during incremental MCS extraction?
- RQ3To what extent can RLMCS generalize to unseen graph pairs with limited labeled MCS instances?
- RQ4How does RLMCS compare in accuracy and efficiency to supervised neural graph matching models on real-world graph datasets?
- RQ5Can the exploration tree mechanism in RLMCS effectively scale to larger graphs without sacrificing subgraph quality?
Key findings
- RLMCS achieves higher accuracy than state-of-the-art supervised neural graph matching models on real graph datasets, particularly in detecting larger common substructures.
- The model demonstrates superior efficiency, completing MCS detection in significantly less time than exact solvers, especially on larger graphs.
- RLMCS outperforms exact MCS solvers in terms of runtime scalability, handling graphs that are infeasible for exact methods due to computational complexity.
- The joint graph embedding method enables effective state representation learning, contributing to stable and high-reward policy learning in the DQN framework.
- The model generalizes well to unseen graph pairs, requiring minimal labeled data, which supports its practical deployment in real-world applications like drug design.
- Empirical results show that RLMCS maintains high precision and recall in MCS detection, even when the input graphs are structurally dissimilar.
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.