[Paper Review] RLMiner: Finding the Most Frequent k-sized Subgraph via Reinforcement Learning
RLMiner formulates finding the most frequent induced k-subgraph in a single labeled graph as a multi-task reinforcement learning problem and delivers an approximation method with linear-in-k time complexity, using a task-state-aware GNN inside SAC. It achieves close-to-ground-truth frequencies with much faster and more stable runtimes than exact enumeration.
Identifying the most frequent induced subgraph of size $k$ 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 $k$. 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 $k$ with a time complexity linear to $k$. 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.
Motivation & Objective
- Motivate the problem of finding the most frequent induced subgraph of size k in a single labeled graph without relying on the Downward Closure Property (DCP).
- Develop a reinforcement learning framework to approximate the solution efficiently, avoiding exhaustive subgraph enumeration.
- Propose a task-state-aware Graph Neural Network to capture k-dependent local structures and enable multi-task learning across different k values.
- Demonstrate that RLMiner achieves high approximation quality with significantly shorter and more stable runtimes than traditional exact methods.
Proposed method
- Formulate the problem as a multi-task Markov Decision Process, with each subgraph size k as a separate task.
- Use a discrete-action Soft Actor-Critic (SAC) framework to learn policies over node-adding actions that build k-sized induced subgraphs.
- Introduce a task-state-aware Graph Neural Network that combines task representation and state representation into message passing to capture local subgraph structure.
- Incorporate task-aware and state-aware message passing (LEConv-based) to encode local graphs, with gating and skip-connection mechanisms to manage depth and information flow.
- Employ a prediction head (Actor and Critic) with multi-head attention to estimate action probabilities and Q-values based on local subgraph representations.
- Define a tailored reward signal that normalizes frequency guidance to stabilize learning across graphs, with training-time access to the optimal subgraph when available (or an approximate normalization when not).
- Achieve linear-in-k inference by performing k steps, each selecting one node to extend the current partial subgraph, avoiding explicit subgraph counting during inference.
Experimental results
Research questions
- RQ1Can reinforcement learning, particularly a multi-task SAC framework, effectively identify the most frequent induced k-subgraph in a single labeled graph without DCP-based pruning?
- RQ2How can a task-state-aware GNN be designed to capture k-dependent local subgraph structures and support multi-task learning across different k?
- RQ3What reward design best stabilizes training and yields high-quality approximation across diverse target graphs and subgraph sizes?
- RQ4How does RLMiner compare to exact enumeration and other approximate methods in terms of approximation quality and runtime?
Key findings
- RLMiner can approximate the most frequent induced k-subgraph with a frequency close to the ground-truth while offering much shorter and more stable runtimes than exact enumeration.
- The time complexity for finding a k-sized subgraph with RLMiner is linear in k, under the proposed framework.
- A task-state-aware GNN architecture is effective for multi-task reinforcement learning on graphs, enabling shared knowledge across k-values.
- Experiments on real-world datasets show favorable approximation ratios across various k (5–9) and datasets, compared to baselines like exact enumeration and random sampling.
- The approach avoids subgraph counting during inference, contributing to substantial efficiency gains over traditional methods.
- Reward normalization strategies (including a graph-size-and-density-based normalization) are explored to stabilize training across graphs of varying size and density.
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.