LLMs Are Not a Silver Bullet: A Case Study on Software Fairness

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Li, Xinyue, Li, Sixuan, Xiao, Ying, Zhang, Jie M., Yang, Zhou, Liu, Xuanzhe, Chen, Zhenpeng
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915936566509568
author Li, Xinyue
Li, Sixuan
Xiao, Ying
Zhang, Jie M.
Yang, Zhou
Liu, Xuanzhe
Chen, Zhenpeng
author_facet Li, Xinyue
Li, Sixuan
Xiao, Ying
Zhang, Jie M.
Yang, Zhou
Liu, Xuanzhe
Chen, Zhenpeng
contents Fairness is a critical requirement for human-related, high-stakes software systems, motivating extensive research on bias mitigation. Prior work has largely focused on tabular data settings using traditional Machine Learning (ML) methods. With the rapid rise of Large Language Models (LLMs), recent studies have begun to explore their use for bias mitigation in the same setting. However, it remains unclear whether LLM-based methods offer advantages over traditional ML methods, leaving software engineers without clear guidance for practical adoption. To address this gap, we present a large-scale study comparing state-of-the-art ML- and LLM-based bias mitigation methods. We find that ML-based methods consistently outperform LLM-based methods in both fairness and predictive performance, with even strong LLMs failing to surpass established ML baselines. To understand why prior LLM-based studies report favorable results, we analyze their evaluation settings and show that these gains are largely driven by artificially balanced test data rather than realistic imbalanced distributions. We further observe that existing LLM-based methods primarily rely on in-context learning and thus fail to leverage all available training data. Motivated by this, we explore supervised fine-tuning on the full training set and find that, while it achieves competitive results, its advantages over traditional ML methods remain limited. These findings suggest that LLMs are not a silver bullet for software fairness.
format Preprint
id arxiv_https___arxiv_org_abs_2604_12640
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LLMs Are Not a Silver Bullet: A Case Study on Software Fairness
Li, Xinyue
Li, Sixuan
Xiao, Ying
Zhang, Jie M.
Yang, Zhou
Liu, Xuanzhe
Chen, Zhenpeng
Software Engineering
Fairness is a critical requirement for human-related, high-stakes software systems, motivating extensive research on bias mitigation. Prior work has largely focused on tabular data settings using traditional Machine Learning (ML) methods. With the rapid rise of Large Language Models (LLMs), recent studies have begun to explore their use for bias mitigation in the same setting. However, it remains unclear whether LLM-based methods offer advantages over traditional ML methods, leaving software engineers without clear guidance for practical adoption. To address this gap, we present a large-scale study comparing state-of-the-art ML- and LLM-based bias mitigation methods. We find that ML-based methods consistently outperform LLM-based methods in both fairness and predictive performance, with even strong LLMs failing to surpass established ML baselines. To understand why prior LLM-based studies report favorable results, we analyze their evaluation settings and show that these gains are largely driven by artificially balanced test data rather than realistic imbalanced distributions. We further observe that existing LLM-based methods primarily rely on in-context learning and thus fail to leverage all available training data. Motivated by this, we explore supervised fine-tuning on the full training set and find that, while it achieves competitive results, its advantages over traditional ML methods remain limited. These findings suggest that LLMs are not a silver bullet for software fairness.
title LLMs Are Not a Silver Bullet: A Case Study on Software Fairness
topic Software Engineering
url https://arxiv.org/abs/2604.12640