ConsistencyChecker: Tree-based Evaluation of LLM Generalization Capabilities

Zhaochen Hong, Haofei Yu, Jiaxuan You
6/14/2025
cs.AIcs.CL

Official code: ulab-uiuc/consistencychecker (3 stars, MIT, last commit 2026-01-05).

Abstract

Evaluating consistency in large language models (LLMs) is crucial for ensuring reliability, particularly in complex, multi-step interactions between humans and LLMs. Traditional self-consistency methods often miss subtle semantic changes in natural language and functional shifts in code or equations, which can accumulate over multiple transformations. To address this, we propose ConsistencyChecker, a tree-based evaluation framework designed to measure consistency through sequences of reversible transformations, including machine translation tasks and AI-assisted programming tasks. In our framework, nodes represent distinct text states, while edges correspond to pairs of inverse operations. Dynamic and LLM-generated benchmarks ensure a fair assessment of the model's generalization ability and eliminate benchmark leakage. Consistency is quantified based on similarity across different depths of the transformation tree. Experiments on eight models from various families and sizes show that ConsistencyChecker can distinguish the performance of different models. Notably, our consistency scores-computed entirely without using WMT paired data-correlate strongly (r > 0.7) with WMT 2024 auto-ranking, demonstrating the validity of our benchmark-free approach. Our implementation is available at: https://github.com/ulab-uiuc/consistencychecker.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2025 Main] A Python package that evaluates Large Language Models (LLMs) through a novel tree-based approach

30PythonNov 4, 20249 months agoMIT

Cite this paper

@article{hong2025consistencychecker,
  title  = {ConsistencyChecker: Tree-based Evaluation of LLM Generalization Capabilities},
  author = {Zhaochen Hong and Haofei Yu and Jiaxuan You},
  year   = {2025},
  eprint = {2506.12376},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.12376v2}
}

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/2506.12376.svg)](https://codeofpaper.com/paper/2506.12376)

Discussion