Abstract
The "LLM-as-a-judge" paradigm has become the industry standard for scalable model evaluation. However, it is plagued by fundamental logical inconsistencies, such as score-comparison conflicts and circular transitivity errors. We introduce TrustJudge, a probabilistic framework that mitigates these issues at the inference level. By employing distribution-sensitive scoring and likelihood-aware aggregation, TrustJudge preserves nuanced model confidence and resolves ambiguous ties. Our experiments across diverse benchmarks show that TrustJudge significantly reduces logical fallacies and improves alignment with human preferences without requiring model fine-tuning.
Introduction
Large Language Models (LLMs) are increasingly used to evaluate other models through single-score assessments or pairwise comparisons. Despite their scalability, these judges often exhibit irrational behavior. For instance, a judge might assign a higher score to Response A than Response B in isolation, yet prefer Response B in a direct head-to-head matchup. Furthermore, judges frequently violate transitivity, exhibiting circular logic (e.g., A > B, B > C, but C > A). These flaws undermine the reliability of automated benchmarks.
The TrustJudge Framework
TrustJudge addresses these inconsistencies by moving beyond rigid, discrete outputs to a probabilistic understanding of the model's internal state.
1. Distribution-Sensitive Scoring
Standard scoring often forces a model to map nuanced quality onto a narrow integer scale (e.g., 1-5), leading to significant information loss. TrustJudge instead utilizes a finer-grained scale (e.g., 1-100) and extracts the raw token probabilities (logits) for these scores. By applying a softmax function and calculating the expected value, TrustJudge produces a continuous metric that captures the model's true confidence levels.
2. Likelihood-Aware Aggregation
To resolve pairwise inconsistencies and position bias, TrustJudge evaluates both prompt orderings (A-B and B-A). It then aggregates the probabilities for "A wins," "B wins," and "Tie" across both trials. This approach ensures that the final decision is the mathematically most likely outcome based on the model's internal distribution, rather than a potentially biased text generation.
Experimental Setup
We evaluated TrustJudge using prompts from MT-Bench and ArenaHard, creating a dataset of 10.8k single-score instances and over 50k pairwise relations. The framework was tested on a wide array of models, including the Llama-3, Qwen2.5, and Gemma-2 families, as well as GPT-4o.
Results and Discussion
TrustJudge demonstrates a consistent ability to harmonize model judgments across different evaluation formats. By reducing the information loss inherent in discrete scales, the framework allows models to maintain logical consistency across multiple comparisons.
Key findings include:
- Reduction in Logical Errors: For Llama-3.1-70B-Instruct, TrustJudge reduced score-comparison inconsistency by 8.43% and transitivity violations by 10.82%.
- Empowering Smaller Models: Smaller models saw the most dramatic improvements. Llama-3.2-3B's transitivity violations dropped from 54.69% to 17.76%, making it a far more reliable judge.
- Improved Human Alignment: Fixing logical bugs directly translated to better accuracy. Exact match rates with human preferences increased by up to 6.85% compared to baseline methods.
Conclusion
TrustJudge provides a robust, inference-only solution to the logical fragility of LLM judges. By treating model outputs as probability distributions rather than static text, it preserves information and enforces logical consistency. Future work will explore using TrustJudge to provide higher-quality reward signals for preference-based training (DPO).
Summary updated