Knowledge Resource
Research Summary: When Who You Are Can Change the Code You Get: A Study of Persona-Induced Bias in LLM Code Generation
- Original authors
- Attribution requires verification
- Original source
- arXiv — Computers and Society
- Summary & Analysis prepared by
- Aziz Shuaib Ausi
- Resource type
- Research Summary / Knowledge Resource
- Resource published on AZIZ OS
- 26 September 2026
- Reading time
- 1 min
- Publication type
- Knowledge Resource
- Availability
- Open access
About this Summary & Analysis
AZIZ OS provides independently prepared summaries and analytical interpretations of externally published research and knowledge sources. The underlying works remain attributable to their original authors and rights holders. This resource is intended to improve accessibility and understanding and does not replace the original publication.
A large-scale empirical study investigates how user demographic information, conveyed through personas, influences the technical quality of code generated by Large Language Models (LLMs). The research, which compared proprietary (Gemini 2.5 Pro) and open-weight (GPT-OSS-120B) models across 35,000+ generated programs, found that demographic cues can affect code generation. This suggests potential biases in AI programming assistants.
Why it matters
The potential for Large Language Models to generate varying code quality based on user demographics introduces significant ethical and operational risks. This research highlights the necessity for developers and users of AI programming assistants to understand and mitigate algorithmic bias, ensuring equitable and consistent technical outcomes irrespective of user identity.
Key insights
- The study focused on persona-induced bias in LLM-based code generation.
- It utilized 18 demographic personas covering nationality, gender, and experience level, compared against a neutral baseline.
- Two LLMs, Gemini 2.5 Pro (proprietary) and GPT-OSS-120B (open-weight), were evaluated.
- Over 35,000 programs were generated and analyzed.
- Analysis included demographic marker leakage, functional correctness, maintainability, code style, and security.
- Preliminary results indicate that demographic cues produce effects on generated code quality, though the specific nature of these effects is not detailed in the provided abstract.
Source
arXiv — Computers and Society — https://arxiv.org/abs/2609.22102
Related intelligence and resources
Previous
Initial Evaluation of Potential Bias in Coverage of Humans in Wikidata
Next
Convex AI Compositionality and the Governance of AI System Populations
Functional Emotion Without Character: Large Language Models, Aristotelian Disposition, and the Limits of Behavioral Alignment
Knowledge Resource
AI-inferred expressed well-being and collective-action discourse in climate-change campaigns on X
Knowledge Resource
The Tethys Dataset: Seven Years of Hourly Smart Water Metering and a Pipeline for Making It Usable
Knowledge Resource
When Disability Disclosure Travels: Memory, Privacy, and Contextual Integrity in Conversational AI
Knowledge Resource
Convex AI Compositionality and the Governance of AI System Populations
Knowledge Resource
Initial Evaluation of Potential Bias in Coverage of Humans in Wikidata
Knowledge Resource
Citation
Cite the original work (APA 7)
The original source is authoritative for this citation. Cite the source publication directly — this attribution is pending verification. Open the original source.
Verification
This is an authenticated AZIZ OS resource record.
- Verification ID
- ASA-EXE-2026-00878
- Version
- v1.0 · r0
- Issued
- 26 September 2026
- Resource prepared by
- Aziz Shuaib Ausi
- Resource status
- Research Summary / Knowledge Resource
- Underlying work
- When Who You Are Can Change the Code You Get: A Study of Persona-Induced Bias in LLM Code Generation
- Original authors
- Attribution requires verification
- Original source
- arXiv — Computers and Society
- Provenance status
- Attribution requires verification
- Rights
- Underlying publication rights remain with the respective copyright holder(s). Refer to the original source for authoritative publication and licensing information.
This verification confirms the AZIZ OS resource record and its documented provenance. It does not establish authorship of the underlying external work.