CoolFace
Datasetpublic

lipichandrakar/Prompt-Framing-Bias-LLM

๐Ÿง  Prompt Framing and Socio-Demographic Bias in LLMs Dataset by: Lipi ChandrakarMSc Data Science and Analytics, University of Hertfordshire (2025) ๐Ÿ“„ Associated Paper More Responses, More Harm: How Prompt Framing and Decoding Choices Shape Socio-Demographic Bias in Open-Source LLMs๐Ÿ“Ž https://doi.org/10.5281/zenodo.20169051 If you use this dataset please cite:Chandrakar, L. (2025). More Responses, More Harm. Zenodo. https://doi.org/10.5281/zenodo.20169051โ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/lipichandrakar/Prompt-Framing-Bias-LLM.

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes8downloads
Dataset Card

๐Ÿง  Prompt Framing and Socio-Demographic Bias in LLMs

Dataset by: Lipi Chandrakar MSc Data Science and Analytics, University of Hertfordshire (2025)

๐Ÿ“„ Associated Paper

More Responses, More Harm: How Prompt Framing and Decoding Choices Shape Socio-Demographic Bias in Open-Source LLMs ๐Ÿ“Ž https://doi.org/10.5281/zenodo.20169051

If you use this dataset please cite: Chandrakar, L. (2025). More Responses, More Harm. Zenodo. https://doi.org/10.5281/zenodo.20169051

๐Ÿ“˜ Overview

This dataset investigates how prompt framing and decoding strategy influence socio-demographic bias in LLM outputs. It contains ~5,000 annotated prompt-response pairs with toxicity, offensiveness, and identity bias scores across five demographic categories.

Key finding: naive multi-sampling (k=3) amplifies bias rather than reducing it โ€” race-related scores increased tenfold compared to single-output generation.

๐Ÿ“‚ Dataset Structure

ColumnDescription
promptInput prompt given to the LLM
templateFraming type (base, safety, counterbias, self_critique)
modelModel used (gpt2, qwen3-0.6b)
kDecoding condition (1 or 3)
responseModel generated output
tox_toxicityDetoxify toxicity score (0-1)
offensive_scoreDetoxify offensiveness score (0-1)
bias_scoreDetoxify identity bias score (0-1)
resplencharsResponse length in characters
resplenwordsResponse length in words

๐Ÿ“ Files Included

FileDescription
mergedk1with_len.csvMain dataset k=1 runs both models
mergedmitigationruns.csvMitigation strategy results
mitigation_scored.csvFinal scored results

๐Ÿงฉ Usage

from datasets import load_dataset

dataset = loaddataset( "lipichandrakar/Prompt-Framing-Bias-LLM" ) df = dataset["train"].topandas()

๐Ÿ“Š Categories Covered

  • โ€”Race
  • โ€”Religion
  • โ€”Gender
  • โ€”Age
  • โ€”Profession

๐Ÿค– Models Used

  • โ€”GPT-2 (Radford et al., 2019)
  • โ€”Qwen-3B (Bai et al., 2023)

โš–๏ธ License

CC BY 4.0 โ€” free to use with attribution