[Paper Review] Aligning with Logic: Measuring, Evaluating and Improving Logical Preference Consistency in Large Language Models
This paper proposes a universal framework to measure and improve logical consistency in large language models (LLMs) using three core properties: transitivity, commutativity, and negation invariance. By refining noisy pairwise preference annotations via rank aggregation and logically extrapolating additional comparisons, the method enhances LLMs' internal consistency without sacrificing human preference alignment, leading to improved performance in logic-dependent algorithms and stronger correlations with model robustness.
Large Language Models (LLMs) are expected to be predictable and trustworthy to support reliable decision-making systems. Yet current LLMs often show inconsistencies in their judgments. In this work, we examine logical preference consistency as a foundational requirement for building more dependable LLM systems, ensuring stable and coherent decision-making while minimizing erratic or contradictory outputs. To quantify the logical preference consistency, we propose a universal evaluation framework based on three fundamental properties: transitivity, commutativity and negation invariance. Through extensive experimentation across diverse LLMs, we demonstrate that these properties serve as strong indicators of judgment robustness. Furthermore, we introduce a data refinement and augmentation technique, REPAIR, that enhances logical consistency while maintaining alignment with human preferences. Finally, we show that improving consistency leads to better performance in LLM-driven logic-based algorithms, reinforcing stability and coherence in decision-making systems.
Motivation & Objective
- To address the lack of systematic evaluation and improvement of logical consistency in LLMs, which undermines reliability and trustworthiness in decision-making.
- To establish logical consistency—specifically transitivity, commutativity, and negation invariance—as a critical proxy for model robustness and reliability.
- To develop a data refinement and augmentation technique that enhances logical consistency at training time without degrading alignment to human preferences.
- To demonstrate that higher logical consistency improves performance and efficiency in logic-driven downstream algorithms, such as preference ranking aggregation.
Proposed method
- Propose a general mathematical framework to quantify logical consistency using three fundamental proxies: transitivity, commutativity, and negation invariance.
- Apply rank aggregation methods (e.g., Borda count, Kemeny-Young) to estimate partially or totally ordered preference rankings from noisy, sparse pairwise comparisons.
- Use the estimated rankings to logically extrapolate and augment the original pairwise comparison data, generating new, consistent training examples.
- Fine-tune LLMs on the refined and augmented data to improve their internal logical consistency while preserving alignment with human preferences.
- Evaluate consistency using controlled experiments on SummEval with calibrated and raw results to reduce positional bias.
- Integrate LLMs as logical operators in a sorting-based preference ranking algorithm to assess performance gains from improved consistency.

Experimental results
Research questions
- RQ1To what extent do state-of-the-art LLMs exhibit logical inconsistencies in transitivity, commutativity, and negation invariance?
- RQ2Can logical consistency serve as a reliable proxy for overall model robustness and reliability?
- RQ3Does data refinement via rank aggregation improve logical consistency in LLMs without compromising alignment to human preferences?
- RQ4How does enhanced logical consistency affect the performance and efficiency of logic-dependent downstream algorithms?
Key findings
- Phi-3-mini outperformed GPT-3.5-turbo in ranking performance despite slightly lower human judgment accuracy, primarily due to stronger transitivity.
- Models with higher commutativity showed greater performance gains from calibration, indicating reduced reliance on positional correction and lower computational cost.
- The data refinement and augmentation framework significantly improved logical consistency across diverse LLMs, including Llama 3, Gemma, and Phi-3, without degrading human preference alignment.
- LLMs trained on refined data achieved better performance and lower computational requirements when used as logical operators in a sorting-based preference aggregation algorithm.
- A strong correlation was observed between logical consistency and overall model robustness, validating consistency as a key proxy for reliability.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.