PathLAD+: An Improved Exact Algorithm for Subgraph Isomorphism Problem

Yiyuan Wang, Chenghou Jin, Shaowei Cai, Qingwei Lin

Abstract

PathLAD+ is a state-of-the-art exact algorithm for the Subgraph Isomorphism Problem (SIP) that introduces a "probing" phase to gather search intelligence and an adaptive propagation strategy. By dynamically switching between heavy and light pruning based on real-time performance, it outperforms existing solvers like Glasgow+Clq across massive real-world datasets.

Introduction

The Subgraph Isomorphism Problem (SIP) is a classic NP-complete challenge: given a "pattern" graph, the goal is to find an exact copy of it within a larger "target" graph. This problem is fundamental to various domains, including chemical compound searching, social network analysis, and computer vision.

Because the search space grows exponentially, researchers typically use exact algorithms that employ backtracking search combined with propagation—pruning techniques that remove impossible candidates from the search tree. However, a classic trade-off exists: strong propagation prunes more of the tree but is computationally expensive, while weak propagation is fast but may lead the algorithm down many dead-end paths. Most existing solvers utilize a fixed strategy, which often leads to suboptimal performance on either very large or particularly "hard" graph instances.

Methods

PathLAD+ improves upon the established PathLAD algorithm through three primary innovations:

  1. Probing Search (ProSearch): Before the main search begins, the algorithm executes a series of short, limited "probes." If these probes do not find a solution immediately, they record "intelligence" (info) regarding which pattern-to-target vertex pairings appeared most frequently in valid partial matches.
  2. Novel Matching Ordering (oscore): When selecting a target vertex to test, PathLAD+ employs a new scoring function. This function integrates structural information (vertex degree) with the dynamic intelligence gathered during the probing phase, prioritizing high-potential candidates early in the search.
  3. Adaptive Propagation Method (APM): APM monitors the search's "conflict ratio" (the frequency of dead ends). If the search progresses smoothly, it utilizes strong propagation (LAD-filtering and Global All-Different constraints). If the search begins to struggle and backtrack frequently, it dynamically switches to weak propagation (Forward Checking), allowing for faster exploration of the search tree.

Experimental Evaluation

The authors evaluated PathLAD+ on a comprehensive suite of 15,396 instances across eight benchmarks, including computer vision datasets, synthetic graphs, and large-scale graphs with up to 6,671 vertices.

Detailed benchmark results comparing PathLAD+ with other algorithms.

Results and Discussion

PathLAD+ demonstrated clear dominance over state-of-the-art competitors, including Glasgow+Clq, RI, and VF2. As shown in the performance data, PathLAD+ solved a total of 15,197 instances, the highest among all tested algorithms.

Performance comparison of PathLAD+ against state-of-the-art solvers.

Key insights from the results include:

  • Intelligence from Failure: The probing phase effectively turns failed search attempts into a roadmap. Even a 1-second probe provides statistical hints that guide the subsequent search.
  • The "One-Way" Switch: A one-way transition from strong to weak propagation proved highly effective. Once a search branch becomes difficult, the overhead of complex filtering rarely pays off compared to the speed of weak propagation.
  • Robustness on Hard Instances: On the difficult meshes-CVIU11 benchmark, PathLAD+ left only 10 instances unsolved, significantly fewer than its competitors. In the phase-transition benchmark, it solved 134 instances, a substantial improvement over the 44 solved by the original PathLAD.

Conclusion

PathLAD+ represents a significant advancement in SIP solvers by leveraging adaptive search strategies. While highly effective, future work could address parameter sensitivity regarding the propagation switching thresholds and explore two-way switching mechanisms. Furthermore, the "Adaptive Propagation" meta-heuristic holds promise for other NP-hard problems, such as the Maximum Clique problem or general Constraint Satisfaction Problems (CSPs).

Summary updated

BibTeX
@inproceedings{wang2023pathlad,
  author = {Yiyuan Wang and Chenghou Jin and Shaowei Cai and Qingwei Lin},
  title = {{PathLAD+: An Improved Exact Algorithm for Subgraph Isomorphism Problem}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/626},
}
Figure