Manuscript Offprint

arXiv:2609.09004

Evaluation of Contextual Understanding in Large Language Models

Subavarshana Arumugam, Mamta Nallaretnam, Kithuni Wickramasinghe, Chamath Gunapala, Pragatheeswaran Vipulanandan, Uthayasanker Thayasivam, Kamal Premaratne

Abstract

Large Language Models (LLMs) demonstrate impressive performance across diverse NLP tasks, yet their ability to exhibit genuine contextual understanding remains uncertain. Traditional evaluation metrics such as perplexity, BiLingual Evaluation Understudy (BLEU), or surface-level accuracy fail to reveal how well LLMs extract, integrate, and reason over contextual information—a gap particularly critical in question answering, where models must align responses with contextually grounded knowledge rather than memorized associations. We propose a novel knowledge graph-based evaluation framework introducing Semantic Structural Similarity for KGs (S3KG), a hybrid similarity measure integrating structural and semantic similarity into a continuous evaluation score, alongside a diagnostic framework for categorizing reasoning errors. To validate this pipeline, we evaluate S3KG against established metrics on a curated question-answer (QA) benchmark, demonstrating its effectiveness in measuring correctness, faithfulness, and interpretability in LLM-generated responses.

1. Introduction

Large language models (LLMs) have transformed natural language processing, demonstrating strong performance on tasks ranging from open-domain question answering (QAing) to complex reasoning (Izacard & Grave, 2021; Wei et al., 2022). Yet a fundamental question persists: do these models genuinely understand the context they process, or do they exploit statistical correlations to produce plausible outputs without true comprehension? This is especially con-

sequential in high-stakes domains such as medical and legal QAing, where responses must be grounded in the provided context rather than memorized priors.

References (36)