Existing LLMs Are Not Self-Consistent For Simple Tasks

Zhenru Lin, Jiawen Tao, Yang Yuan, Andrew Chi-Chih YaoarXiv 2025 · OpenReview

Abstract

Large Language Models (LLMs) have grown increasingly powerful, yet ensuring their decisions remain transparent and trustworthy requires self-consistency—no contradictions in their internal reasoning. Our study reveals that even on simple tasks, such as comparing points on a line or a plane, or reasoning in a family tree, all smaller models are highly inconsistent, and even state-of-the-art models like DeepSeek-R1 and GPT-o4-mini are not fully self-consistent. To quantify and mitigate these inconsistencies, we introduce inconsistency metrics and propose two automated methods—a graph-based and an energy-based approach. While these fixes provide partial improvements, they also highlight the complexity and importance of self-consistency in building more reliable and interpretable AI. The code and data are available at https://github.com/scorpio-nova/llm-self-consistency.

Introduction: Beyond Accuracy

Traditional evaluation of Large Language Models (LLMs) focuses primarily on accuracy: does the model's output match a known ground-truth? However, accuracy alone does not guarantee that a model is trustworthy or interpretable. A model might provide a correct answer for the wrong reasons, or worse, maintain a set of internal beliefs that are logically contradictory.

This paper argues for a shift toward evaluating self-consistency. For an AI to be truly reliable, its internal "world map" must be coherent. For instance, if a model claims "A is older than B" and "B is older than C," it must also conclude that "A is older than C." Violations of these transitive properties represent "internal hallucinations" that undermine the model's reasoning capabilities.

Comparison of traditional evaluation versus the proposed self-consistency framework.

Methodology: Quantifying Logical Coherence

To formalize the measurement of self-consistency, we treat binary relationships (e.g., temporal order, spatial direction, or kinship) through the lens of Category Theory. Relationships are viewed as morphisms that must satisfy specific logical constraints like transitivity and acyclicity. We propose two primary methods to identify and rectify inconsistencies:

  1. Graph-Based Approach: We represent the model's assertions as a directed graph. In a consistent system, this graph should be a Directed Acyclic Graph (DAG). We utilize Tarjan’s algorithm to detect logical loops (cycles) and calculate an Inconsistency Score based on the minimum number of edge flips required to resolve these contradictions.
  2. Energy-Based Model (EBM): We map entities into a coordinate space where an energy function penalizes violations of stated relations. By minimizing this energy via gradient descent, we can project inconsistent model outputs onto a consistent spatial or temporal map.
Visualizing inconsistency scores through graph-based analysis of model-generated timelines compared to ground truth.

Experimental Evaluation

We evaluated 12 prominent models, including GPT-4o, o1-mini, DeepSeek-R1, and various Llama and Qwen variants, across three distinct domains:

  • Temporal (1D): Ordering release dates of artworks and historical birth dates.
  • Spatial (2D): Determining relative positions of US cities, states, and synthetic fictional locations.
  • Kinship (Multi-hop): Inferring complex family relations (e.g., "who is the aunt of X?") from a set of base facts.

Key Insights and Results

Our findings reveal a significant gap between model scale and logical coherence. While larger models like GPT-4o and DeepSeek-V3 generally maintain inconsistency scores below 20%, smaller models (7B to 16B parameters) are frequently "highly inconsistent," with scores reaching 80-90% on complex tasks.

Crucially, we discovered that Accuracy $\neq$ Consistency. Supervised Fine-Tuning (SFT) aimed at increasing factual knowledge often worsened inconsistency. Models learned more facts but failed to integrate them into a logically coherent structure. Furthermore, the current "forward-only" architecture of next-token prediction appears fundamentally biased against enforcing backward consistency, leading to reasoning "houses of cards" where a single error cascades into multiple contradictions.

While "reasoning" models like GPT-o1-mini show improved ability to detect contradictions in provided prompts, they still fail to maintain perfect internal consistency. Our EBM method, however, proved highly effective at recovering accurate "ground truth" maps from inconsistent outputs, suggesting that post-processing can partially mitigate these architectural flaws.

Conclusion and Future Directions

Even state-of-the-art LLMs struggle with simple logical consistency. While our graph-based and EBM methods provide tools to quantify and fix these errors post-hoc, the challenge remains to develop architectures that are inherently self-consistent. Achieving true reliability in AI will require moving beyond simple next-token prediction toward training objectives that explicitly prioritize logical coherence and reality-alignment.

Summary updated

BibTeX
@misc{lin2025existing,
  author = {Zhenru Lin and Jiawen Tao and Yang Yuan and Andrew Chi-Chih Yao},
  title = {{Existing LLMs Are Not Self-Consistent For Simple Tasks}},
  year = {2025},
  eprint = {2506.18781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.18781},
}
Figure