PRD: Peer Rank and Discussion Improve Large Language Model based Evaluations

Ruosen Li, Teerth Patel, Xinya Du
7/6/2023
cs.CLcs.AI

No official code found. Best implementation: bcdnlp/PRD (14 stars, MIT, last commit 2024-04-21).

Abstract

Nowadays, the quality of responses generated by different modern large language models (LLMs) is hard to evaluate and compare automatically. Recent studies suggest and predominantly use LLMs for reference-free evaluation of open-ended question answering. More specifically, they use the recognized "strongest" LLM as the evaluator, which conducts pairwise comparisons of candidate models' answers and provides a ranking score. However, this intuitive method has multiple problems, such as bringing in self-enhancement (favoring its own answers) and positional bias. We draw insights and lessons from the educational domain (Cho & MacArthur, 2011; Walsh, 2014) to improve LLM-based evaluations. Specifically, we propose (1) the peer rank (PR) algorithm that takes into account each peer LLM's pairwise preferences of all answer pairs, and outputs a final ranking of models; and (2) peer discussion (PD), where we prompt two LLMs to discuss and try to reach a mutual agreement on the preferences of two answers. We conduct experiments on two benchmark datasets. We find that our approaches achieve higher accuracy and align better with human judgments. Interestingly, PR can induce a relatively accurate self-ranking of models under the anonymous setting, where each model's name is unrevealed. Our work provides space to explore evaluating models that are hard to compare for humans.

View on arXivView PDF

Code Implementations(1)

bcdnlp/PRDCommunity100%
MIT

PRD: Peer Rank and Discussion Improve Large Language Model based Evaluations

141HTML, ShellJul 4, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2023prd,
  title  = {PRD: Peer Rank and Discussion Improve Large Language Model based Evaluations},
  author = {Ruosen Li and Teerth Patel and Xinya Du},
  year   = {2023},
  eprint = {2307.02762},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.02762v3}
}

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

Discussion