cs.LGMar 18, 2026

Approximate Subgraph Matching with Neural Graph Representations and Reinforcement Learning

Authors: Kaiyang Li, Shihao Ji, Zhipeng Cai, Wei Li

Organizations: University of Connecticut, 352 Mansfield Road, Storrs, CT 06269, USA · Georgia State University, 33 Gilmer Street SE, Atlanta, GA 30303, USA

Abstract

Approximate subgraph matching (ASM) is a task that determines the approximate presence of a given query graph in a large target graph. Being an NP-hard problem, ASM is critical in graph analysis with a myriad of applications ranging from database systems and network science to biochemistry and privacy. Existing techniques often employ heuristic search strategies, which cannot fully utilize the graph information, leading to sub-optimal solutions. This paper proposes a Reinforcement Learning based Approximate Subgraph Matching (RL-ASM) algorithm that exploits graph transformers to effectively extract graph representations and RL-based policies for ASM. Our model is built upon the branch-and-bound algorithm that selects one pair of nodes from the two input graphs at a time for potential matches. Instead of using heuristics, we exploit a Graph Transformer architecture to extract feature representations that encode the full graph information. To enhance the training of the RL policy, we use supervised signals to guide our agent in an imitation learning stage. Subsequently, the policy is fine-tuned with the Proximal Policy Optimization (PPO) that optimizes the accumulative long-term rewards over episodes. Extensive experiments on both synthetic and real-world datasets demonstrate that our RL-ASM outperforms existing methods in terms of effectiveness and efficiency. Our source code is available at https://github.com/KaiyangLi1992/RL-ASM.

Figures & tables

Explore similar work

CardsList
  1. End-to-End Subgraph Detection with GraphDETR

    Jun 4, 2026Dexiong Chen, Till Hendrik Schulz, Karsten BorgwardtGraph Matching

  2. Equivariant Neural Primal-Dual Assignment for Maximum Common Edge Subgraphs

    Sep 26, 2026Jiaqing Xie, Yanchao Li, Zhuo Yang +3Graph MatchingEquivariant GNNs

  3. Graph Matching Relaxations and Amortization for Supervised Graph Prediction

    Sep 14, 2026Federico Méndez, Paul Krzakala, Gabriel Melo +3Learning to OptimizeGraph Matching