Research map / Large language models / Language, safety and interpretability
The Invisible Hand: Unveiling Provider Bias in Large Language Models for Code Generation
Xiaoyu Zhang, Juan Zhai, Shiqing Ma, Qingshuang Bao, Weipeng Jiang, Qian Wang, Chao Shen, Yang Liu
Xi’an Jiaotong University · University of Massachusetts Amherst · Wuhan University · Nanyang Technological University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
add chain-of-thought prompting · provider bias, generation · Gini Index: GPT-4o 0.86 -> 0.87 No clear effect
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| ask the model to generate code blocks using several different services (Multiple) (ablation) | seven LLMs, generation task · provider bias, generation | Gini Index: GPT-4o 0.86 -> 0.76; Claude 0.88 -> 0.82 | Improved |
| add chain-of-thought prompting (ablation) | seven LLMs, generation task · provider bias, generation | Gini Index: GPT-4o 0.86 -> 0.87 | No clear effect |
| add Debias prompt (ablation) | seven LLMs, generation task · provider bias, generation | Gini Index: GPT-4o 0.86 -> 0.88 | No clear effect |
| add Simple (fair and objective) prompt (ablation) | seven LLMs, generation task · provider bias, generation | Gini Index: GPT-4o 0.86 -> 0.88 | No clear effect |
| add Ask-Specific instruction to keep the source service (ablation) | seven LLMs, modification tasks · provider bias, modification | Modification Ratio: GPT-4o 26.90 -> 7.50; Llama 25.30 -> 3.30 | Improved |
| add Ask-General instruction not to change the service (ablation) | seven LLMs, modification tasks · provider bias, modification | Modification Ratio: GPT-4o 26.90 -> 14.00 | Improved |
| add chain-of-thought prompting (ablation) | GPT-4o, modification tasks · provider bias, modification | Modification Ratio: 26.90 -> 17.80 | Improved |
| add Debias prompt (ablation) | GPT-4o, modification tasks · provider bias, modification | Modification Ratio: 26.90 -> 33.90 | Hurt |
| add Quick Answer prompt (ablation) | GPT-4o, modification tasks · provider bias, modification | Modification Ratio: 26.90 -> 36.50 | Hurt |
Open problems in bias measurement and mitigation
Do bias findings in LLMs hold beyond binary gender, English prompts, templated inputs and a few open models?
- Only a few open or small models were tested. · 22 papers state it
- Gender is treated as binary, leaving non-binary identities out. · 20 papers state it
- Bias is measured in English only, with other languages untested. · 18 papers state it
Closest papers by meaning
- BiasBusters: Uncovering and Mitigating Tool Selection Bias in Large Language Models (ICLR 2026 · similarity 0.87)
- Copilot Arena: A Platform for Code LLM Evaluation in the Wild (ICML 2025 · similarity 0.87)
- Bias Unveiled: Investigating Social Bias in LLM-Generated Code (AAAI 2025 · similarity 0.87)
- Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (ICML 2024 · similarity 0.86)
- Position: TrustLLM: Trustworthiness in Large Language Models (ICML 2024 · similarity 0.86)
- EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluations (NeurIPS 2024 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.