Reinforcement Learning Enhanced Weighted Sampling for Accurate Subgraph Counting on Fully Dynamic Graph Streams

Kaixin Wang, Cheng Long, Da Yan, Jie Zhang, H. V. Jagadish
11/13/2022
cs.DBcs.LG
rl

Official code: wangkaixin219/WSD (1 star, C++, last commit 2022-02-13).

Abstract

As the popularity of graph data increases, there is a growing need to count the occurrences of subgraph patterns of interest, for a variety of applications. Many graphs are massive in scale and also fully dynamic (with insertions and deletions of edges), rendering exact computation of these counts to be infeasible.

Show full abstract

Common practice is, instead, to use a small set of edges as a sample to estimate the counts. Existing sampling algorithms for fully dynamic graphs sample the edges with uniform probability. In this paper, we show that we can do much better if we sample edges based on their individual properties. Specifically, we propose a weighted sampling algorithm called WSD for estimating the subgraph count in a fully dynamic graph stream, which samples the edges based on their weights that indicate their importance and reflect their properties. We determine the weights of edges in a data-driven fashion, using a novel method based on reinforcement learning. We conduct extensive experiments to verify that our technique can produce estimates with smaller errors while often running faster compared with existing algorithms.

View on arXivView PDF

Code Implementations(1)

wangkaixin219/WSDOfficial100%
10C++, PythonFeb 9, 20224 years ago

Similar Papers

Cite this paper

@article{wang2022reinforcement,
  title  = {Reinforcement Learning Enhanced Weighted Sampling for Accurate Subgraph Counting on Fully Dynamic Graph Streams},
  author = {Kaixin Wang and Cheng Long and Da Yan and Jie Zhang and H. V. Jagadish},
  year   = {2022},
  eprint = {2211.06793},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.06793}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.06793.svg)](https://codeofpaper.com/paper/2211.06793)

Discussion