SEApr 14

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

arXiv:2604.1264071.4h-index: 11
AI Analysis

For software engineers seeking practical bias mitigation, this paper demonstrates that LLMs do not yet offer advantages over established ML methods, cautioning against over-reliance on LLMs.

This paper compares ML- and LLM-based bias mitigation methods for software fairness, finding that ML-based methods consistently outperform LLM-based methods in both fairness and predictive performance. Prior LLM-based gains are shown to be artifacts of artificially balanced test data, and even supervised fine-tuning of LLMs offers limited advantages over traditional ML.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes