LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMs

Do Xuan Long, Hai Nguyen Ngoc, Tiviatis Sim, Hieu Dao, Shafiq Joty +3 more
8/16/2024
cs.CL

No official code found. Best implementation: dxlong2000/FormatBiasEval (11 stars, last commit 2025-11-25).

Abstract

We present the first systematic evaluation examining format bias in performance of large language models (LLMs). Our approach distinguishes between two categories of an evaluation metric under format constraints to reliably and accurately assess performance: one measures performance when format constraints are adhered to, while the other evaluates performance regardless of constraint adherence. We then define a metric for measuring the format bias of LLMs and establish effective strategies to reduce it. Subsequently, we present our empirical format bias evaluation spanning four commonly used categories -- multiple-choice question-answer, wrapping, list, and mapping -- covering 15 widely-used formats. Our evaluation on eight generation tasks uncovers significant format bias across state-of-the-art LLMs. We further discover that improving the format-instruction following capabilities of LLMs across formats potentially reduces format bias. Based on our evaluation findings, we study prompting and fine-tuning with synthesized format data techniques to mitigate format bias. Our methods successfully reduce the variance in ChatGPT's performance among wrapping formats from 235.33 to 0.71 (%$^2$).

View on arXivView PDF

Code Implementations(1)

Official codes for NAACL 2025 paper "LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMs"

112PythonAug 12, 202411 months ago

Similar Papers

Cite this paper

@article{long2024llms,
  title  = {LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMs},
  author = {Do Xuan Long and Hai Nguyen Ngoc and Tiviatis Sim and Hieu Dao and Shafiq Joty and Kenji Kawaguchi and Nancy F. Chen and Min-Yen Kan},
  year   = {2024},
  eprint = {2408.08656},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.08656v2}
}

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

Discussion