Lune

ICLR2022Top-tier venue

Triangle and Four Cycle Counting with Predictions in Graph Streams

Justin Y. Chen, Talya Eden, Piotr Indyk, Honghao Lin, Shyam Narayanan, Ronitt Rubinfeld, Sandeep Silwal, Tal Wagner, David P. Woodruff, Michael Zhang

Abstract

We propose data-driven one-pass streaming algorithms for estimating the number of triangles and four cycles, two fundamental problems in graph analytics that are widely studied in the graph data stream literature. Recently, Hsu et al. (2019a) and Jiang et al. (2020) applied machine learning techniques in other data stream problems, using a trained oracle that can predict certain properties of the stream elements to improve on prior "classical" algorithms that did not use oracles. In this paper, we explore the power of a "heavy edge" oracle in multiple graph edge streaming models. In the adjacency list model, we present a one-pass triangle counting algorithm improving upon the previous space upper bounds without such an oracle. In the arbitrary order model, we present algorithms for both triangle and four cycle estimation with fewer passes and the same space complexity as in previous algorithms, and we show several of these bounds are optimal. We analyze our algorithms under several noise models, showing that the algorithms perform well even when the oracle errs. Our methodology expands upon prior work on "classical" streaming algorithms, as previous multi-pass and random order streaming algorithms can be seen as special cases of our algorithms, where the first pass or random order was used to implement the heavy edge oracle. Lastly, our experiments demonstrate advantages of the proposed method compared to state-of-theart streaming algorithms.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

14 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Primal-Dual method for Learning Augmented Algorithms cites Near-Optimal Bounds for Online Caching with Machine Learned Advice
  • The Primal-Dual method for Learning Augmented Algorithms cites Online Scheduling via Learned Weights
  • The Primal-Dual method for Learning Augmented Algorithms cites Learning Space Partitions for Nearest Neighbor Search
  • Improved Learning-augmented Algorithms for k-means and k-medians Clustering cites Near-Optimal Bounds for Online Caching with Machine Learned Advice
  • Learning-Augmented Algorithms for Online Linear and Semidefinite Programming cites The Primal-Dual method for Learning Augmented Algorithms
  • Learning-Augmented Algorithms for Online Linear and Semidefinite Programming cites Near-Optimal Bounds for Online Caching with Machine Learned Advice
  • Learning-Augmented Algorithms for Online Linear and Semidefinite Programming cites Online Scheduling via Learned Weights
  • Learning-Augmented Algorithms for Online Linear and Semidefinite Programming cites Learning Space Partitions for Nearest Neighbor Search
  • Learning-Augmented Algorithms for Online Linear and Semidefinite Programming cites Faster Matchings via Learned Duals
  • KwikBucks: Correlation Clustering with Cheap-Weak and Expensive-Strong Signals cites The Primal-Dual method for Learning Augmented Algorithms
  • Faster Matchings via Learned Duals cites The Primal-Dual method for Learning Augmented Algorithms
  • Faster Matchings via Learned Duals cites Near-Optimal Bounds for Online Caching with Machine Learned Advice
  • Faster Matchings via Learned Duals cites Online Scheduling via Learned Weights
  • Improved Frequency Estimation Algorithms with and without Predictions cites Improved Learning-augmented Algorithms for k-means and k-medians Clustering
  • Improved Frequency Estimation Algorithms with and without Predictions cites Online Scheduling via Learned Weights
  • Improved Frequency Estimation Algorithms with and without Predictions cites KwikBucks: Correlation Clustering with Cheap-Weak and Expensive-Strong Signals
  • Improved Frequency Estimation Algorithms with and without Predictions cites Faster Matchings via Learned Duals
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Learning-Augmented Algorithms for Online Linear and Semidefinite ProgrammingElena Grigorescu, Young-San Lin, Sandeep Silwal, Maoyuan Song et al.NeurIPS 2022 · 20 citations
  2. Improved Frequency Estimation Algorithms with and without PredictionsAnders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal et al.NeurIPS 2023 · 16 citations
  3. Accurate and Fast Approximate Graph Pattern Mining at ScaleAnna Arpaci-Dusseau, Zixiang Zhou, Xuhao ChenVLDB 2025 · 6 citations
  4. Improved Learning-augmented Algorithms for k-means and k-medians ClusteringThy Dinh Nguyen, Anamay Chaturvedi, Huy L. NguyenICLR 2023 · 3 citations
  5. KwikBucks: Correlation Clustering with Cheap-Weak and Expensive-Strong SignalsSandeep Silwal, Sara Ahmadian, Andrew Nystrom, Andrew McCallum et al.ICLR 2023 · 3 citations

Builds on13

  1. The Primal-Dual method for Learning Augmented AlgorithmsÉtienne Bamas, Andreas Maggiori, Ola SvenssonNeurIPS 2020 · 171 citations
  2. Learning Space Partitions for Nearest Neighbor SearchYihe Dong, Piotr Indyk, Ilya P. Razenshteyn, Tal WagnerICLR 2020 · 104 citations
  3. Faster Matchings via Learned DualsMichael Dinitz, Sungjin Im, Thomas Lavastida, Benjamin Moseley et al.NeurIPS 2021 · 98 citations
  4. Near-Optimal Bounds for Online Caching with Machine Learned AdviceDhruv RohatgiSODA 2020 · 88 citations
  5. Online Scheduling via Learned WeightsSilvio Lattanzi, Thomas Lavastida, Benjamin Moseley, Sergei VassilvitskiiSODA 2020 · 83 citations

Related papers

  1. Near-Optimal Four-Cycle Counting in Graph StreamsSebastian Lüderssen, Stefan Neumann, Pan PengSODA 2026 · 1 citation
  2. A Quantum Advantage for a Natural Streaming ProblemJohn KallaugherFOCS 2021 · 6 citations
  3. Learning-Augmented Data Stream AlgorithmsTanqiu Jiang, Yi Li, Honghao Lin, Yisong Ruan et al.ICLR 2020 · 53 citations
  4. Four-Cycle Counting in Low-Degeneracy Graph StreamsSebastian Lüderssen, Stefan Neumann, Pan PengKDD 2026
  5. GREAT: Generalized Reservoir Sampling based Triangle Counting Estimation over Streaming GraphsSiyue Wu, Dingming Wu, Sinhong Cheuk, Tsz Nam Chan et al.VLDB 2025
Dusk over the sea between two cliffs drawn in fine vertical lines