Saved in:
Bibliographic Details
Main Authors: Wei, Qiyao, Morrell, Edward, Goetz, Lea, van der Schaar, Mihaela
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.19925
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911284735246336
author Wei, Qiyao
Morrell, Edward
Goetz, Lea
van der Schaar, Mihaela
author_facet Wei, Qiyao
Morrell, Edward
Goetz, Lea
van der Schaar, Mihaela
contents Evaluating the open-form textual responses generated by Large Language Models (LLMs) typically requires measuring the semantic similarity of the response to a (human generated) reference. However, there is evidence that current semantic similarity methods may capture syntactic or lexical forms over semantic content. While benchmarks exist for semantic equivalence, they often suffer from high generation costs due to reliance on subjective human judgment, limited availability for domain-specific applications, and unclear definitions of equivalence. This paper introduces a novel method for generating benchmarks to evaluate semantic similarity methods for LLM outputs, specifically addressing these limitations. Our approach leverages knowledge graphs (KGs) to generate pairs of natural-language statements that are semantically similar or dissimilar, with dissimilar pairs categorized into one of four sub-types. We generate benchmark datasets in four different domains (general knowledge, biomedicine, finance, biology), and conduct a comparative study of semantic similarity methods including traditional natural language processing scores and LLM-as-a-judge predictions. We observe that the sub-type of semantic variation, as well as the domain of the benchmark impact the performance of semantic similarity methods, with no method being consistently superior. Our results present important implications for the use of LLM-as-a-judge in detecting the semantic content of text. Code is available at https://github.com/QiyaoWei/semantic-kg and the dataset is available at https://huggingface.co/datasets/QiyaoWei/Semantic-KG.
format Preprint
id arxiv_https___arxiv_org_abs_2511_19925
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Semantic-KG: Using Knowledge Graphs to Construct Benchmarks for Measuring Semantic Similarity
Wei, Qiyao
Morrell, Edward
Goetz, Lea
van der Schaar, Mihaela
Artificial Intelligence
Evaluating the open-form textual responses generated by Large Language Models (LLMs) typically requires measuring the semantic similarity of the response to a (human generated) reference. However, there is evidence that current semantic similarity methods may capture syntactic or lexical forms over semantic content. While benchmarks exist for semantic equivalence, they often suffer from high generation costs due to reliance on subjective human judgment, limited availability for domain-specific applications, and unclear definitions of equivalence. This paper introduces a novel method for generating benchmarks to evaluate semantic similarity methods for LLM outputs, specifically addressing these limitations. Our approach leverages knowledge graphs (KGs) to generate pairs of natural-language statements that are semantically similar or dissimilar, with dissimilar pairs categorized into one of four sub-types. We generate benchmark datasets in four different domains (general knowledge, biomedicine, finance, biology), and conduct a comparative study of semantic similarity methods including traditional natural language processing scores and LLM-as-a-judge predictions. We observe that the sub-type of semantic variation, as well as the domain of the benchmark impact the performance of semantic similarity methods, with no method being consistently superior. Our results present important implications for the use of LLM-as-a-judge in detecting the semantic content of text. Code is available at https://github.com/QiyaoWei/semantic-kg and the dataset is available at https://huggingface.co/datasets/QiyaoWei/Semantic-KG.
title Semantic-KG: Using Knowledge Graphs to Construct Benchmarks for Measuring Semantic Similarity
topic Artificial Intelligence
url https://arxiv.org/abs/2511.19925