CalibraEval: Calibrating Prediction Distribution to Mitigate Selection Bias in LLMs-as-Judges

Haitao Li, Junjie Chen, Qingyao Ai, Zhumin Chu, Yujia Zhou +2 more
10/20/2024
cs.CL

No official code found. Best implementation: CSHaitao/CalibraEval (3 stars, last commit 2025-02-15).

Abstract

The use of large language models (LLMs) as automated evaluation tools to assess the quality of generated natural language, known as LLMs-as-Judges, has demonstrated promising capabilities and is rapidly gaining widespread attention. However, when applied to pairwise comparisons of candidate responses, LLM-based evaluators often exhibit selection bias. Specifically, their judgments may become inconsistent when the option positions or ID tokens are swapped, compromising the effectiveness and fairness of the evaluation result. To address this challenge, we introduce CalibraEval, a novel label-free method for mitigating selection bias during inference. Specifically, CalibraEval reformulates debiasing as an optimization task aimed at adjusting observed prediction distributions to align with unbiased prediction distributions. To solve this optimization problem, we propose a non-parametric order-preserving algorithm (NOA). This algorithm leverages the partial order relationships between model prediction distributions, thereby eliminating the need for explicit labels and precise mathematical function modeling.Empirical evaluations of LLMs in multiple representative benchmarks demonstrate that CalibraEval effectively mitigates selection bias and improves performance compared to existing debiasing methods. This work marks a step toward building more robust and unbiased automated evaluation frameworks, paving the way for improved reliability in AI-driven assessments

View on arXivView PDF

Code Implementations(1)

The official repo for CalibraEval: Calibrating Prediction Distribution to Mitigate Selection Bias in LLMs-as-Judges

30PythonOct 20, 20241 years ago

Similar Papers

Cite this paper

@article{li2024calibraeval,
  title  = {CalibraEval: Calibrating Prediction Distribution to Mitigate Selection Bias in LLMs-as-Judges},
  author = {Haitao Li and Junjie Chen and Qingyao Ai and Zhumin Chu and Yujia Zhou and Qian Dong and Yiqun Liu},
  year   = {2024},
  eprint = {2410.15393},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.15393v1}
}

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

Discussion