Do LLMs Understand Context? A Knowledge Graph-Based Evaluation Framework

Subavarshana Arumugam, Mamta Nallaretnam, Kithuni Wickramasinghe, Chamath Gunapala, Pragatheeswaran Vipulanandan +2 more
9/24/2026
cs.AIcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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 $+7.6$ points over the strongest baseline and AUROC up to $0.973$.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{arumugam2026llms,
  title  = {Do LLMs Understand Context? A Knowledge Graph-Based Evaluation Framework},
  author = {Subavarshana Arumugam and Mamta Nallaretnam and Kithuni Wickramasinghe and Chamath Gunapala and Pragatheeswaran Vipulanandan and Kamal Premaratne and Uthayasanker Thayasivam},
  year   = {2026},
  eprint = {2609.30484},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.30484v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.30484.svg)](https://codeofpaper.com/paper/2609.30484)

Discussion