Hybrid Learning with New Value Function for the Maximum Common Subgraph Problem

Yanli Liu, Jiming Zhao, Chu-Min Li, Hua Jiang, Kun HearXiv 2022

Abstract

Maximum Common induced Subgraph (MCS) is an important NP-hard problem with wide real-world applications. Branch-and-Bound (BnB) is the basis of a class of efficient algorithms for MCS, consisting in successively selecting vertices to match and pruning when it is discovered that a solution better than the best solution found so far does not exist. The method of selecting the vertices to match is essential for the performance of BnB. In this paper, we propose a new value function and a hybrid selection strategy used in reinforcement learning to define a new vertex selection method, and propose a new BnB algorithm, called McSplitDAL, for MCS. Extensive experiments show that McSplitDAL significantly improves the current best BnB algorithms, McSplit+LL and McSplit+RL. An empirical analysis is also performed to illustrate why the new value function and the hybrid selection strategy are effective.

Introduction

The Maximum Common induced Subgraph (MCS) problem is a fundamental challenge in graph theory, requiring the identification of the largest subgraph shared between two given graphs. Its complexity—categorized as NP-hard—stems from the astronomical number of possible vertex mappings. Despite this difficulty, solving MCS is critical for practical applications ranging from molecular comparison in biochemistry to pattern recognition in social networks and malware detection.

State-of-the-art exact solvers typically utilize a Branch-and-Bound (BnB) framework. These algorithms explore a search tree by making sequential decisions on vertex matching (branching) and discarding paths that cannot yield a superior solution (pruning). While recent research has successfully applied Reinforcement Learning (RL) to optimize vertex selection, these methods often fall into a trap known as the "Matthew effect," where the algorithm repeatedly selects the same high-reward vertices, leading to stagnation in local optima.

The McSplitDAL Framework

To overcome the limitations of existing RL-based solvers, we propose McSplitDAL, an algorithm that introduces two primary innovations: a novel value function and a hybrid selection strategy.

1. Domain Action Learning (DAL) Value Function

Traditional RL policies for MCS focus almost exclusively on reducing the "upper bound"—the maximum possible size of a solution within a specific branch. While effective for pruning, this narrow focus ignores the structural complexity of the remaining graph. The DAL value function introduces a second metric: graph simplification. It rewards actions that split the graph into a higher number of "domains" (disjoint sets of potential matches). By rewarding the decomposition of the problem into smaller, independent sub-problems, the algorithm can solve complex instances more efficiently.

2. Hybrid Selection Strategy

To prevent the search from becoming trapped by greedy heuristics, McSplitDAL employs a hybrid selection strategy. The algorithm alternates between a standard RL policy and the new DAL policy based on a usage counter ($NbApp$). If a policy fails to find an improved solution within a certain threshold, the algorithm switches strategies to diversify the search. If a better solution is found, the counter resets, allowing the successful strategy to continue its exploration. This mechanism ensures a balance between exploiting known high-reward paths and exploring new structural possibilities.

Experimental Evaluation

We evaluated McSplitDAL against a massive benchmark of 24,761 instances, categorized into two main groups:

  • Biochemical Reactions: 9,316 instances representing metabolic networks.
  • Large Subgraph Isomorphism (SI) Instances: 15,445 instances derived from 3D modeling, image segmentation, and random scale-free networks.

Key Results

In head-to-head comparisons with the previous state-of-the-art solvers, McSplit+RL and McSplit+LL, McSplitDAL demonstrated superior performance:

  • Increased Success Rate: On a subset of 2,229 difficult instances, McSplitDAL solved 292 more instances than McSplit+LL (a 16.3% improvement) and 437 more than McSplit+RL.
  • Search Efficiency: The algorithm significantly reduced the number of recursive calls required to prove optimality, indicating that the DAL value function successfully identifies more effective branching paths.
  • Ablation Insights: Our analysis confirmed that while the DAL value function alone improves performance, the hybrid strategy is essential for achieving peak efficiency by preventing the algorithm from getting stuck in local optima.

Conclusion

McSplitDAL advances the state-of-the-art in MCS solving by recognizing that pruning efficiency and structural simplification are equally vital. By integrating a dual-reward value function with a hybrid selection strategy, the algorithm effectively navigates the search space and avoids the pitfalls of previous RL-based approaches. Future work will explore adaptive switching mechanisms that can dynamically adjust to the specific topology of the graphs being processed, potentially extending these hybrid learning techniques to other complex graph matching problems.

Summary updated

BibTeX
@misc{liu2022hybrid,
  author = {Yanli Liu and Jiming Zhao and Chu-Min Li and Hua Jiang and Kun He},
  title = {{Hybrid Learning with New Value Function for the Maximum Common Subgraph Problem}},
  year = {2022},
  eprint = {2208.08620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.08620},
}
Figure