FairCoder: Probing LLM Bias in High-Stakes Decision Making via Coding Tasks
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly used in high-stakes decisions such as hiring and college admissions, making their social bias a critical concern. While LLMs are trained to refuse explicitly biased requests, bias can be leaked implicitly during LLM planning and reasoning process. As code becomes the primary medium for LLM internal logic-writing, we introduce FairCoder, a benchmark that frames decision-making as coding tasks to systematically probe LLM bias across employment, education, and healthcare domains, covering multiple fairness definitions. Considering that existing metrics may fail when LLMs frequently refuse the request, we propose FairScore, a metric that jointly captures refusal behavior and group-level outcome diversity. Experiments with a 1k-sample dataset on powerful LLMs reveal consistent and previously underexplored bias patterns, such as prioritizing applicants from high-income families in college admissions. Our findings highlight the risks of deploying LLMs as decision-making agents and provide a comprehensive evaluation framework for future research.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 25 of its 42 references that are in the map. First posted on arXiv 9 Jan 2025.
Builds on
25 of 42 references.
References · 25
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2017Counterfactual Fairnesscited by 802
- 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 683
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 410
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 346
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 314
13 more
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 222
- 2023"Kelly is a Warm Person, Joseph is a Role Model": Gender Biases in LLM-Generated Reference Letterscited by 196
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2024Cognitive Bias in Decision-Making with LLMscited by 104
- 2023Red teaming ChatGPT via Jailbreaking: Bias, Robustness, Reliability and Toxicitycited by 86
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 50
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
- 2023Uncovering and Quantifying Social Biases in Code Generationcited by 25
- 2024Bias Unveiled: Investigating Social Bias in LLM-Generated Codecited by 25
- 2023Fairness of ChatGPTcited by 19
- 2024CEB: Compositional Evaluation Benchmark for Fairness in Large Language Modelscited by 17
- 2024CLIMB: A Benchmark of Clinical Bias in Large Language Modelscited by 7
Built on by
Citing papers per year: 2025: 5; 2026: 4.
9 papers.
- 2025VisBias: Measuring Explicit and Implicit Social Biases in Vision Language Modelscited by 14
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2025MateInfoUB: A Real-World Benchmark for Testing LLMs in Competitive, Multilingual, and Multimodal Educational Taskscited by 1
- 2026CARV: A Diagnostic Benchmark for Compositional Analogical Reasoning in Multimodal LLMscited by 1
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Codecited by 1
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectivescited by 0
- 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generationcited by 0
- 2026How Reasoning Shapes Social Bias in LLM-Generated Code?cited by 0
- 2026How Reasoning Shapes Social Bias in LLM-Generated Code?7 Aug 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generation23 Apr 2026
- 2026CARV: A Diagnostic Benchmark for Compositional Analogical Reasoning in Multimodal LLMs30 Mar 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025MateInfoUB: A Real-World Benchmark for Testing LLMs in Competitive, Multilingual, and Multimodal Educational Tasks3 Jul 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectives18 Mar 2025
- 2025VisBias: Measuring Explicit and Implicit Social Biases in Vision Language Models10 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Debiasing LLMs by Masking Unfairness-Driving Attention Heads
- 2025Guiding LLM Decision-Making with Fairness Reward Models
- 2025Robustly Improving LLM Fairness in Realistic Settings via Interpretability
- 2026Fair Like Us? Auditing LLM Alignment in Resource Allocation
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigation
- 2024With a Grain of SALT: Are LLMs Fair Across Social Dimensions?
- 2025Silenced Biases: The Dark Side LLMs Learned to Refuse
- 2025BiasGuard: A Reasoning-enhanced Bias Detection Tool For Large Language Models