paper-with-me

홈 › Papers

Uncovering and Quantifying Social Biases in Code Generation

2023-05-24 · NeurIPS 2023 11

With the popularity of automatic code generation tools, such as Copilot, the study of the potential hazards of these tools is gaining importance. In this work, we explore the social bias problem in pre-trained code generation models. We propose a new paradigm to construct code prompts and successfully uncover social biases in code generation models. To quantify the severity of social biases in generated code, we develop a dataset along with three metrics to evaluate the overall social bias and fine-grained unfairness across different demographics. Experimental results on three pre-trained code generation models (Codex, InCoder, and CodeGen) with varying sizes, reveal severe social biases. Moreover, we conduct analysis to provide useful insights for further choice of code generation models with low social bias. (This work contains examples that potentially implicate stereotypes, associations, and other harms that could be offensive to individuals in certain social groups.)

📄 PDF Abstract BibTeX arXiv:2305.15377

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Uncovering and Categorizing Social Biases in Text-to-SQL

2023-05-25 · Yan Liu, Yan Gao, Zhe Su, Xiaokang Chen 외

Content Warning: This work contains examples that potentially implicate stereotypes, associations, and other harms that could be offensive to individuals in certain social groups.} Large pre-trained language models are a…

Text to SQLText-To-SQL

Uncovering Implicit Gender Bias in Narratives through Commonsense Inference

2021-09-14 · Findings (EMNLP) 2021 11 · Tenghao Huang, Faeze Brahman, Vered Shwartz, Snigdha Chaturvedi

Pre-trained language models learn socially harmful biases from their training corpora, and may repeat these biases when used for generation. We study gender biases associated with the protagonist in model-generated stori…

SPAGBias: Uncovering and Tracing Structured Spatial Gender Bias in Large Language Models

2026-04-16 · Binxian Su, Haoye Lou, Shucheng Zhu, Weikang Wang 외 arxiv

Large language models (LLMs) are being increasingly used in urban planning, but since gendered space theory highlights how gender hierarchies are embedded in spatial organization, there is concern that LLMs may reproduce…

Story Generation

Ask Me Again Differently: GRAS for Measuring Bias in Vision Language Models on Gender, Race, Age, and Skin Tone

2025-08-26 · Shaivi Malik, Hasnat Md Abdullah, Sriparna Saha, Amit Sheth arxiv

As Vision Language Models (VLMs) become integral to real-world applications, understanding their demographic biases is critical. We introduce GRAS, a benchmark for uncovering demographic biases in VLMs across gender, rac…

Visual Question Answering

RAIGen: Rare Attribute Identification in Text-to-Image Generative Models

2026-02-06 · Silpa Vadakkeeveetil Sreelatha, Dan Wang, Serge Belongie, Muhammad Awais 외 arxiv

Text-to-image diffusion models achieve impressive generation quality but inherit and amplify training-data biases, skewing coverage of semantic attributes. Prior work addresses this in two ways. Closed-set approaches mit…