arXiv:2506.13173cs.DScs.LG2025-06

用预测+采样实现海量时序图的高效三角计数

Efficient Approximate Temporal Triangle Counting in Streaming with Predictions

  • 结合时序边的三角形数量预测与简单采样策略
  • 仅用次线性内存即达无偏且高精度估计
  • 适合处理超大规模时序图,对噪声预测也鲁棒

三角计数是静态图和时序图中的基础问题,其中边携带事件时间信息。在现代大规模时序图(数百万节点、数十亿时序边)中,流式处理与资源效率至关重要。然而,现有精确与近似算法难以应对大规模场景。为此,我们提出STEP算法,可从时序边流中高效近似所有八类时序三角形的数量。STEP融合对每条时序边参与三角形数目的预测与简单采样策略,实现可扩展性、高效性与多类型三角形的同时高精度估计。理论分析证明,仅使用次线性内存即可获得无偏且高度准确的估计;即使预测存在噪声,也能显著降低估计方差。在包含高达数十亿边的大规模时序图上的大量实验表明,STEP输出高质量估计,且比现有最优方法更高效。

原文摘要 · Abstract (English)

Triangle counting is a fundamental and widely studied problem on static graphs, and recently on temporal graphs, where edges carry information on the timings of the associated events. Streaming processing and resource efficiency are crucial requirements for counting triangles in modern massive temporal graphs, with millions of nodes and up to billions of temporal edges. However, current exact and approximate algorithms are unable to handle large-scale temporal graphs. To fill such a gap, we introduce STEP, a scalable and efficient algorithm to approximate temporal triangle counts from a stream of temporal edges. STEP combines predictions to the number of triangles a temporal edge is involved in, with a simple sampling strategy, leading to scalability, efficiency, and accurate approximation of all eight temporal triangle types simultaneously. We analytically prove that, by using a sublinear amount of memory, STEP obtains unbiased and very accurate estimates. In fact, even noisy predictions can significantly reduce the variance of STEP's estimates. Our extensive experiments on massive temporal graphs with up to billions of edges demonstrate that STEP outputs high-quality estimates and is more efficient than state-of-the-art methods.

时序图三角计数流式计算近似算法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。