Atom: An Efficient Query Serving System for Embedding-based Knowledge Graph Reasoning with Operator-level Batching
Qihui Zhou, Peiqi Yin, Xiao Yan, Changji Li, Guanxian Jiang, James Cheng
Abstract
Knowledge graph reasoning (KGR) answers logical queries over a knowledge graph (KG), and embedding-based KGR (EKGR) becomes popular recently, which embeds both queries and KG entities such that the vector embeddings of a query and its answer entities are similar. Compared with traditional KGR methods based on subgraph matching, EKGR produces fewer intermediate results and is more robust to missing and noisy information in the KG. However, existing systems are inefficient for serving online EKGR queries because they can only batch queries of the same type for execution (i.e., query-level batching ) and hence have limited batching opportunities due to the heterogeneity of queries. To serve EKGR queries efficiently, we propose the Atom system with operator-level batching, which decomposes queries into operators and batches operators of the same type from different queries for execution. The insight is that the types of operators are far fewer than the types of queries, and thus different queries typically share common operators, yielding more batching opportunities. To schedule the operators, Atom adopts a hybrid policy, which improves system throughput and avoids starving rare operators. For efficiency, Atom incorporates system optimizations including two-level pipeline, opportunistic submission, pre-allocated memory buffer, and tailored GPU kernels. Experiment results show that compared with existing systems, Atom can improve query throughput by over 20x and reduce query latency by over 5x. Micro experiments suggest that the designs and optimizations are effective in improving system performance.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 97f6293a-e786-47ef-98f1-6035ab6cc036Related papers
- FlashEKGR: Fast Embedding-Based Knowledge Graph Reasoning Models TrainingWentai Zhang, Teng Xu, Weiguang Wang, Junxing Li et al.ICDE 2026
- Neural-Answering Logical Queries on Knowledge GraphsLihui Liu, Boxin Du, Heng Ji, ChengXiang Zhai et al.KDD 2021 · 40 citations
- SMORE: Knowledge Graph Completion and Multi-hop Reasoning in Massive Knowledge GraphsHongyu Ren, Hanjun Dai, Bo Dai, Xinyun Chen et al.KDD 2022 · 31 citations
- Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical QueriesXiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen et al.KDD 2022 · 38 citations
- Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 citations
