Pride and Prejudice: LLM Amplifies Self-Bias in Self-Refinement

Wenda Xu, Guanglei Zhu, Xuandong Zhao, Liangming Pan, Lei Li +1 more
2/18/2024
cs.CLcs.AI

Official code: xu1998hz/llm_self_bias (10 stars, last commit 2024-04-18).

Abstract

Recent studies show that large language models (LLMs) improve their performance through self-feedback on certain tasks while degrade on others. We discovered that such a contrary is due to LLM's bias in evaluating their own output. In this paper, we formally define LLM's self-bias - the tendency to favor its own generation - using two statistics. We analyze six LLMs (GPT-4, GPT-3.5, Gemini, LLaMA2, Mixtral and DeepSeek) on translation, constrained text generation, and mathematical reasoning tasks. We find that self-bias is prevalent in all examined LLMs across multiple languages and tasks. Our analysis reveals that while the self-refine pipeline improves the fluency and understandability of model outputs, it further amplifies self-bias. To mitigate such biases, we discover that larger model size and external feedback with accurate assessment can significantly reduce bias in the self-refine pipeline, leading to actual performance improvement in downstream tasks. The code and data are released at https://github.com/xu1998hz/llm_self_bias.

View on arXivView PDF

Code Implementations(1)

This is the project to quantify the issues with LLM's self evaluation

100Shell, PythonJan 29, 20242 years ago

Similar Papers

Cite this paper

@article{xu2024pride,
  title  = {Pride and Prejudice: LLM Amplifies Self-Bias in Self-Refinement},
  author = {Wenda Xu and Guanglei Zhu and Xuandong Zhao and Liangming Pan and Lei Li and William Yang Wang},
  year   = {2024},
  eprint = {2402.11436},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.11436v2}
}

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

Discussion