English

RLMiner: Finding the Most Frequent k-sized Subgraph via Reinforcement Learning

Databases 2026-02-16 v2

Abstract

Identifying the most frequent induced subgraph of size kk in a target graph is a fundamental graph mining problem with direct implications for Web-related data mining and social network analysis. Despite its importance, finding the most frequent induced subgraph remains computationally expensive due to the NP-hard nature of the subgraph counting task. Traditional exact enumeration algorithms often suffer from high time complexity, especially for a large graph size kk. To mitigate this, existing approaches often utilize frequency measurement with the Downward Closure Property to reduce the search space, imposing additional constraints on the task. In this paper, we first formulate this task as a Markov Decision Process and approach it using a multi-task reinforcement learning framework. Specifically, we introduce RLMiner, a novel framework that integrates reinforcement learning with our proposed task-state-aware Graph Neural Network to find the most frequent induced subgraph of size kk with a time complexity linear to kk. Extensive experiments on real-world datasets demonstrate that our proposed RLMiner effectively identifies subgraphs with frequencies closely matching the ground-truth most frequent induced subgraphs, while achieving significantly shorter and more stable running times compared to traditional methods.

Keywords

Cite

@article{arxiv.2601.12416,
  title  = {RLMiner: Finding the Most Frequent k-sized Subgraph via Reinforcement Learning},
  author = {Wei Huang and Hanchen Wang and Dong Wen and Xin Cao and Bocheng Han and Ying Zhang and Wenjie Zhang},
  journal= {arXiv preprint arXiv:2601.12416},
  year   = {2026}
}