Do LLMs Understand Context? A Knowledge Graph-Based Evaluation Framework
Subavarshana Arumugam, Mamta Nallaretnam, Kithuni Wickramasinghe, Chamath Gunapala, Pragatheeswaran Vipulanandan, Kamal Premaratne, Uthayasanker Thayasivam
Abstract
While large language models (LLMs) have achieved remarkable linguistic capabilities, a profound question lingers at their core: do these models truly comprehend context or simply excel at pattern matching on an unprecedented scale? Contextual understanding in LLMs refers to the ability to correctly extract relevant information from a given context, integrate it into a coherent internal representation, and reason over it to produce factually consistent and contextually grounded responses. However, traditional methods such as BiLingual Evaluation Understudy (BLEU) and perplexity simply measure surface-level performance. This reveals a critical gap in question answering (QA), where responses must be contextually grounded rather than simply being memorized associations. To fill this void, we propose a novel knowledge graph (KG) based evaluation framework for LLM contextual understanding in QA. Central to this is Semantic Structural Similarity for KGs (S3KG), a hybrid similarity measure combining structural and semantic signals into a single score. In addition, a diagnostic analysis framework is developed to identify and categorize reasoning errors at the triplet level, enabling fine-grained analysis of model failures. Together, across nine benchmarks, S3KG achieves F1 gains of up to points over the strongest baseline and AUROC up to .
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- Accepted in : AACL-IJCNLP 2026
Related papers
Revisiting LLMs as Context Engineers
Shared title terminologycs.AIJunrui Zhang, Zeyu Xu, Runchuan Zhu et al.
PseuDRAGON: Knowledge-Guided Local LLMs for Financial-Data Pseudonymization in Closed Networks
Shared title terminologycs.AIGwangui Hong, Seonho An, Seonkyu Lim et al.
ALLOT: Budgeted Hybrid-Memory Routing for Knowledge Updates in LLMs
Shared title terminologycs.AIShanfeng Huang, Zhou Fang, Song Xiao et al.
Context-dependent agent evaluation with orthogonal equilibrium learning
Shared title terminologycs.AIHaorui Ma, Zehua Zang, Jiangmeng Li et al.
DeepEdu-F: A Framework for Efficient and Scalable Agentic LLMs in Vietnamese Education
Shared title terminologycs.AIQuang Nguyen, Hieu Nguyen, Toan Pham et al.
Evaluating Budgeted Context Projection with Unexecuted Companion Runs
Shared title terminologycs.AIGuangzhe Zhang