cs.LGMar 4, 2026

An LLM-Guided Query-Aware Inference System for GNN Models on Large Knowledge Graphs

Authors: Waleed Afandi, Hussein Abdallah, Ashraf Aboulnaga, Essam Mansour

Organizations: Concordia University · University of Texas at Arlington

Abstract

Efficient inference for graph neural networks (GNNs) on large knowledge graphs (KGs) is essential for many real-world applications. GNN inference queries are computationally expensive and vary in complexity, as each involves a different number of target nodes linked to subgraphs of diverse densities and structures. Existing acceleration methods, such as pruning, quantization, and knowledge distillation, instantiate smaller models but do not adapt them to the structure or semantics of individual queries. They also store models as monolithic files that must be fully loaded, and miss the opportunity to retrieve only the neighboring nodes and corresponding model components that are semantically relevant to the target nodes. These limitations lead to excessive data loading and redundant computation on large KGs. This paper presents KG-WISE, a task-driven inference paradigm for large KGs. KG-WISE decomposes trained GNN models into fine-grained components that can be partially loaded based on the structure of the queried subgraph. It employs large language models (LLMs) to generate reusable query templates that extract semantically relevant subgraphs for each task, enabling query-aware and compact model instantiation. We evaluate KG-WISE on six large KGs with up to 42 million nodes and 166 million edges. KG-WISE achieves up to 28x faster inference and 98% lower memory usage than state-of-the-art systems while maintaining or improving accuracy across both commercial and open-weight LLMs.

Figures & tables

Explore similar work

CardsList
  1. Search-on-Graph-R1: Training Large Language Models to Search Knowledge Graphs with Reinforcement Learning

    Jul 20, 2026Jia Ao Sun, Hao Yu, Fengran Mo +4LLM Reasoning with GraphsRL for Language Model Reasoning

  2. Code-on-Graph: Iterative Programmatic Reasoning via Large Language Models on Knowledge Graphs

    Jun 2, 2026Weiwei Ding, Zixuan Li, Long Bai +7LLM GroundingLLM Reasoning with Graphs

  3. Leveraging LLM-GNN Integration for Open-World Question Answering over Knowledge Graphs

    Apr 15, 2026Hussein Abdallah, Ibrahim Abdelaziz, Panos Kalnis +1Knowledge Graph Question AnsweringLLM Reasoning with Graphs