paper-with-me

홈 › Papers

From If-Statements to ML Pipelines: Revisiting Bias in Code-Generation

2026-04-23 · Minh Duc Bui, Xenia Heilmann, Mattia Cerrato, Manuel Mager, Katharina von der Wense arxiv

Prior work evaluates code generation bias primarily through simple conditional statements, which represent only a narrow slice of real-world programming and reveal solely overt, explicitly encoded bias. We demonstrate that this approach dramatically underestimates bias in practice by examining a more realistic task: generating machine learning (ML) pipelines. Testing both code-specialized and general-instruction large language models, we find that generated pipelines exhibit significant bias during feature selection. Sensitive attributes appear in 87.7% of cases on average, despite models demonstrably excluding irrelevant features (e.g., including "race" while dropping "favorite color" for credit scoring). This bias is substantially more prevalent than that captured by conditional statements, where sensitive attributes appear in only 59.2% of cases. These findings are robust across prompt mitigation strategies, varying numbers of attributes, and different pipeline difficulty levels. Our results challenge simple conditionals as valid proxies for bias evaluation and suggest current benchmarks underestimate bias risk in practical deployments.

📄 PDF Abstract BibTeX arXiv:2604.21716

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Bias in LLMs as Annotators: The Effect of Party Cues on Labelling Decision by Large Language Models

2024-08-28 · Sebastian Vallejo Vera, Hunter Driggers

Human coders are biased. We test similar biases in Large Language Models (LLMs) as annotators. By replicating an experiment run by Ennser-Jedenastik and Meyer (2018), we find evidence that LLMs use political information,…

Different Time, Different Language: Revisiting the Bias Against Non-Native Speakers in GPT Detectors

2026-02-05 · Adnan Al Ali, Jindřich Helcl, Jindřich Libovický arxiv

LLM-based assistants have been widely popularised after the release of ChatGPT. Concerns have been raised about their misuse in academia, given the difficulty of distinguishing between human-written and generated text. T…

COBIAS: Assessing the Contextual Reliability of Bias Benchmarks for Language Models

2024-02-22 · Priyanshul Govil, Hemang Jain, Vamshi Krishna Bonagiri, Aman Chadha 외

Large Language Models (LLMs) often inherit biases from the web data they are trained on, which contains stereotypes and prejudices. Current methods for evaluating and mitigating these biases rely on bias-benchmark datase…

Intent-conditioned and Non-toxic Counterspeech Generation using Multi-Task Instruction Tuning with RLAIF

2024-03-15 · Amey Hengle, Aswini Kumar, Sahajpreet Singh, Anil Bandhakavi 외

Counterspeech, defined as a response to mitigate online hate speech, is increasingly used as a non-censorial solution. Addressing hate speech effectively involves dispelling the stereotypes, prejudices, and biases often …

Sentence

Can We Derive Explicit and Implicit Bias from Corpus?

2019-05-31 · Bo Wang, Baixiang Xue, Anthony G. Greenwald

Language is a popular resource to mine speakers' attitude bias, supposing that speakers' statements represent their bias on concepts. However, psychology studies show that people's explicit bias in statements can be diff…