arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.13645cs.LG
收藏

FuseSampleAgg: 预算知识图谱刷新与验证的单遍邻域估计

FuseSampleAgg: One-Pass Neighborhood Estimation for Budgeted Knowledge-Graph Refresh and Validation

University of Novi Sad(诺维萨德大学);Shanghai Key Lab of Intelligent Information Processing(上海智能信息处理重点实验室);College of Computer Science and Artificial Intelligence(计算机科学与人工智能学院);Fudan University(复旦大学);Institute of Automation(自动化研究所);Chinese Academy of Sciences(中国科学院)

Aleksandar Stanković, Haoran Du, Xinming Wang

AI总结:

提出一种融合的PyTorch CUDA算子,通过单遍采样和聚合实现邻域均值估计,避免显式子图构建,在保持GraphSAGE-mean语义的同时,将端到端步延迟提升2.24-3.48倍,瞬态内存降低至1/160。

摘要:

网络和网络安全中的运营知识图谱(KG)管道越来越需要在严格的时间、内存和审计预算下刷新嵌入,特别是当策划的馈送和LLM辅助提取加速KG更新时。小批量KG学习中一个重复的每步成本是邻域上下文估计:无放回的均匀邻居采样后接均值聚合。常见框架通过采样子图物化和中间特征收集来实现此估计器,增加了内核启动、分配器压力和瞬态内存峰值。我们提出单遍邻域估计,一个融合的PyTorch CUDA算子,它采样邻居并直接输出采样邻域的均值,避免了显式块构建,同时为相同的采样邻居ID保留了GraphSAGE-mean语义。它支持种子控制采样和可选的保存索引重放,用于可重复的验证和回归测试。在大型图小批量工作负载上,与调优的DGL基线相比,它将FP32端到端步延迟提高了2.24倍至3.48倍,并在我们的测量中将瞬态GPU内存减少了高达160倍。在OGB KG补全基准(如WikiKG2和BioKG)上,它减少了步时间和峰值VRAM,同时匹配种子变异范围内的排名质量,提高了预算KG刷新的时间-质量比。

英文摘要:

Operational knowledge-graph (KG) pipelines in networking and cybersecurity increasingly need to refresh embeddings under strict time, memory, and audit budgets, especially as curated feeds and LLM-assisted extraction accelerate KG updates. A recurring per-step cost in mini-batch KG learning is neighborhood-context estimation: uniform neighbor sampling without replacement followed by mean aggregation. Common frameworks implement this estimator through sampled-subgraph materialization and intermediate feature gathers, adding kernel launches, allocator pressure, and transient memory spikes. We present One-Pass Neighborhood Estimation, a fused PyTorch CUDA operator that samples neighbors and directly emits the sampled-neighborhood mean, avoiding explicit block construction while preserving GraphSAGE-mean semantics for the same sampled neighbor IDs. It supports seed-controlled sampling and optional saved-index replay for reproducible validation and regression testing. Across large-graph mini-batch workloads, it improves FP32 end-to-end step latency by 2.24x-3.48x over tuned DGL baselines and reduces transient GPU memory by up to 160x in our measurements. On OGB KG completion benchmarks such as WikiKG2 and BioKG, it reduces step time and peak VRAM while matching ranking quality within seed variability, improving time-to-quality for budgeted KG refresh.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑