Semantic-Eval : A Semantic Comprehension Evaluation Framework for Large Language Models Generation without Training

Shusheng Li, Jiale Li, Yifei Qu, Xinwei Shi, Yanliang Guo, Ziyi He, Yubo Wang, Wenjun TanACL 2025

Abstract

Evaluating the quality of text generated by Large Language Models (LLMs) remains a significant challenge. Traditional metrics often fail to capture semantic nuances, while LLM-based evaluators are computationally expensive and prone to bias. We introduce Semantic-Eval, a training-free framework that evaluates text based on deep semantic meaning. By integrating graph-based sentence weighting (SemanticRank) and Natural Language Inference (NLI), Semantic-Eval achieves superior correlation with human judgment across diverse NLP tasks compared to standard metrics like BLEU and BERTScore.

Introduction

The rapid advancement of LLMs has necessitated robust evaluation metrics. However, traditional tools such as BLEU and ROUGE rely heavily on n-gram overlap. These metrics penalize semantically identical but lexically distinct sentences—for instance, "The cake is delicious" and "This dessert tastes amazing" would receive a low similarity score despite conveying the same meaning.

While "LLM-as-a-judge" approaches (e.g., using GPT-4) offer better semantic understanding, they introduce high costs, latency, and potential evaluator bias. Semantic-Eval addresses these issues by providing a consistent, training-free alternative that bridges the gap between simple lexical metrics and complex LLM-based evaluation.

Methodology

Semantic-Eval employs a multi-stage pipeline designed to treat text as a structured collection of semantic units rather than a simple sequence of words.

The Semantic-Eval pipeline architecture, illustrating sentence segmentation, SemanticRank weighting, and NLI integration.

The framework operates through four key stages:

  1. Sentence-Level Segmentation & Embedding: Reference and candidate texts are segmented into individual sentences. These sentences are then converted into high-dimensional vectors using the text-embedding-3-large model.
  2. SemanticRank (Graph-based Weighting): Recognizing that not all sentences contribute equally to a text's core meaning, Semantic-Eval builds an undirected graph where nodes represent sentences and edges represent cosine similarity. A modified TextRank algorithm is applied to assign weights based on sentence centrality.
  3. Cross-Text Similarity: A similarity matrix is calculated between the reference and candidate sentences. These scores are then re-weighted using the importance values derived from SemanticRank.
  4. NLI Integration: To prevent high scores for semantically opposite statements (e.g., contradictions), the framework incorporates a pre-trained Natural Language Inference model (roberta-large-mnli). This provides a confidence score that penalizes candidates contradicting the reference.

Experimental Results

The framework was validated across eight datasets spanning four major tasks: sentence similarity, text summarization, sentiment analysis, and natural language Q&A.

Performance Comparison

Semantic-Eval consistently outperformed traditional and BERT-based metrics. A notable example is found in sentiment analysis tasks, where the framework demonstrated a significantly higher alignment with human preferences.

Correlation results on IMDB and Yelp Polarity datasets, showing Semantic-Eval's superiority over traditional and BERT-based metrics.

On the IMDB dataset, Semantic-Eval achieved a Pearson correlation ($r$) of 0.705, substantially higher than BERTScore's 0.542. While GPT-4 remains the top-performing evaluator in terms of raw correlation, Semantic-Eval offers a more reproducible and cost-effective alternative, successfully closing much of the performance gap.

LLM Benchmarking

The authors utilized Semantic-Eval to rank 13 different LLMs. On the XSUM summarization dataset, GPT-4o mini and GLM-4-9b-chat were identified as leading models, while smaller or older architectures like Qwen-7B-Chat showed lower semantic alignment.

Discussion and Conclusion

The success of Semantic-Eval highlights two critical insights: the importance of sentence-level "centrality" in evaluation and the necessity of NLI-based sanity checks to detect contradictions that embeddings might miss.

Despite its strengths, the framework's performance is inherently tied to the quality of its underlying embedding and NLI models. Future work will focus on refining these components for highly technical domains and further narrowing the performance gap with state-of-the-art LLM judges while maintaining a training-free, deterministic approach.

Summary updated

BibTeX
@inproceedings{li2025semantic,
  author = {Shusheng Li and Jiale Li and Yifei Qu and Xinwei Shi and Yanliang Guo and Ziyi He and Yubo Wang and Wenjun Tan},
  title = {{Semantic-Eval : A Semantic Comprehension Evaluation Framework for Large Language Models Generation without Training}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure