[论文解读] G-thinker: Big Graph Mining Made Easier and Faster
G-thinker 是一种用于计算密集型子图查找任务(如图匹配和团检测)的分布式图挖掘框架,通过支持以子图为重心的编程模型和高效、内存受限的执行方式,实现最小化通信开销。与 Pregelix 和 Arabesque 等现有系统相比,G-thinker 在相同硬件条件下实现了数量级的性能提升,可扩展处理比以往大两个数量级的图。
This paper proposes a general system for compute-intensive graph mining tasks that find from a big graph all subgraphs that satisfy certain requirements (e.g., graph matching and community detection). Due to the broad range of applications of such tasks, many single-threaded algorithms have been proposed. However, graphs such as online social networks and knowledge graphs often have billions of vertices and edges, which require distributed processing in order to scale. Unfortunately, existing distributed graph processing systems such as Pregel and GraphLab are designed for data-intensive analytics, and are inefficient for compute-intensive graph mining tasks since computation over any data is coupled with the data's access that involves network transmission. We propose a distributed graph mining framework, called G-thinker, which is designed for compute-intensive graph mining workloads. G-thinker provides an intuitive graph-exploration API for the convenient implementation of various graph mining algorithms, and the runtime engine provides efficient execution with bounded memory consumption, light network communication, and parallelism between computation and communication. Extensive experiments were conducted, which demonstrate that G-thinker is orders of magnitude faster than existing solution, and can scale to graphs that are two orders of magnitude larger given the same hardware resources.
研究动机与目标
- 解决现有数据密集型分布式图系统(如 Pregel、GraphLab)在处理计算密集型子图挖掘工作负载时的低效问题。
- 克服顶点为中心模型在自然且高效地表达子图为中心算法方面的局限性。
- 在有限内存和低网络 I/O 的条件下,实现对百亿条边图的可扩展、高性能子图查找任务(如图匹配、团检测)执行。
- 提供用户友好的、以子图为重心的编程接口,支持回溯和增量子图探索,而无需物化子图。
- 通过允许多个共享公共顶点的子图在同一位置共存并共享顶点信息(如邻接边),最小化冗余数据传输与存储。
提出的方法
- 提出一种以子图为重心的编程模型,允许开发人员使用类似串行算法的回溯和增量子图构建方式表达算法。
- 设计一种运行时引擎,将计算与数据访问解耦,实现计算与通信之间的并行性。
- 实现一种任务调度机制,通过缓冲区和缓存管理(T_cache,任务缓冲区)从磁盘流式加载子图,并保持内存使用量在可控范围内。
- 引入一种新颖的 LSH-Queue 数据结构,用于组织子图任务,实现接近顺序的磁盘 I/O,降低随机访问开销。
- 通过顶点缓存(T_cache)实现同一台机器上子图之间的顶点数据共享(如邻接边),最大限度减少冗余网络传输。
- 通过允许跨机器独立、异步处理子图任务,避免全局同步,从而提升负载均衡性和容错能力。
实验结果
研究问题
- RQ1分布式图挖掘系统能否在计算密集型子图查找工作负载上,相对于数据密集型框架实现显著的性能提升?
- RQ2在不物化子图的前提下,如何在分布式环境中高效支持以子图为重心的编程?
- RQ3在大规模子图挖掘中,能否实现有限的内存使用量和减少的网络 I/O?
- RQ4与现有系统相比,该系统在图规模和硬件资源增加时的可扩展性如何?
- RQ5系统参数(如缓冲区容量和顶点缓存大小)对性能有何影响?
主要发现
- 在图匹配任务中,G-thinker 相较于 Pregelix 和 Arabesque 实现了数量级的性能提升,在 YouTube 图上仅用约 20 秒完成任务,而两者因内存或磁盘溢出而失败。
- 在三角形计数任务中,G-thinker 显著快于 Arabesque 和 Pregelix,在 16 节点集群上完成 Friendster 图的计算仅耗时 78 秒,而 NScale 耗时 1986 秒。
- G-thinker 在垂直扩展(每台机器增加工作节点数)和水平扩展(增加机器数量)方面均表现出良好可扩展性,尤其在图匹配等高度计算密集型工作负载中优势明显。
- 系统性能对缓冲区容量和 T_cache 大小最为敏感,最优性能在缓冲区容量 ≥10^4 且 T_cache 较大时达到,但性能在较宽泛的参数范围内仍保持稳定。
- LSH-Queue 有效降低了随机磁盘 I/O,提升了计算密集型任务的性能;而 stream-queue 因开销更低,在轻量级工作负载中更为高效。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。