NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Soft-prompt Tuning for Large Language Models to Evaluate Bias

Jacob-Junqi Tian, David Emerson, Sevil Zanjani Miyandoab, Deval Pandya, Laleh Seyyed-Kalantari, Faiza Khan KhattakarXiv 2023

TL;DR

This paper introduces the use of soft-prompt tuning as a highly efficient, human-bias-free "fairness probe" to evaluate social biases in Large Language Models (LLMs). By freezing the base model's weights and optimizing a small set of continuous prompt embeddings for sentiment analysis, the authors uncover persistent and systemic biases across sensitive attributes like age, sexuality, and disability in the OPT and LLaMA model families.

What Problem Does This Paper Address?

As LLMs are increasingly deployed in real-world applications, identifying and quantifying their inherent social biases is critical. Traditional bias evaluation methods typically rely on either full-model fine-tuning or manual prompt engineering. Both approaches have significant drawbacks:

  1. Full fine-tuning is computationally expensive and alters the model's underlying weights, potentially masking or distorting the original biases inherited during pre-training.
  2. Manual prompt engineering is highly sensitive to wording and risks injecting the evaluator's own human biases into the test framework.

To bridge this gap, the authors explore whether parameter-efficient fine-tuning (PEFT)—specifically soft-prompt tuning—can serve as a standardized, reproducible, and objective probe to measure group fairness without altering the base model's weights.

Methods

The authors leverage continuous prompt optimization to condition LLMs on a ternary sentiment classification task (positive, negative, neutral).

Instead of using discrete natural language prompts, soft-prompt tuning prepends a small sequence of trainable virtual token embeddings ($n=8$) to the input text. During training, the weights of the core language model remain completely frozen, and only the prompt embeddings are updated via a standard AdamW optimizer. This ensures that the task-specific representations do not explicitly modify the biases already present in the pre-training data.

Figure 1: Illustration of the prompt-tuning approach used for parameter efficient fine-tuning of the models. The prompt tokens, depicted with orange hatching, are initialized as the beginning-of-sequence token embedding. These embeddings are subse- quently perturbed by adding learned prompt embeddings. All weights are frozen except for the prompt embedding layer.

To quantify bias, the authors measure False Positive Rate (FPR) Gaps across protected groups:

  • Positive FPR Gap: The rate at which negative or neutral statements about a protected group are erroneously classified as positive (indicating favorable bias).
  • Negative FPR Gap: The rate at which positive or neutral statements about a protected group are erroneously classified as negative (indicating unfavorable bias).

Datasets

  • Tuning Datasets: The soft prompts were optimized using two distinct sentiment datasets mapped to a 3-way classification task:
  • SemEval-2018 (Task 1-Valence Ordinal Classification), derived from English tweets.
  • SST-5 (Stanford Sentiment Treebank Five-way), derived from movie reviews.
  • Evaluation Dataset: Bias evaluation was conducted using the comprehensive synthetic evaluation templates designed by Czarnowska, Vyas, and Shah (2021). These templates isolate sensitive attributes by swapping identity adjectives (e.g., "adult", "young", "old") into identical sentence structures.

Key Insights and Ideas

  • The Frozen-Weight Advantage: Because soft-prompt tuning tunes only ~0.003% of the total model parameters while keeping the base LLM frozen, it acts as a clean diagnostic tool. It reveals the innate bias of the pre-trained model rather than artifacts introduced by extensive fine-tuning.
  • Cross-Scale Consistency: One of the most striking findings is that these bias patterns remain remarkably consistent regardless of model size (ranging from 125M to 13B parameters) or model family (OPT vs. LLaMA). This suggests that scaling up models does not inherently dilute or eliminate systemic data biases.

Key Results

The fairness probe revealed significant disparities across multiple sensitive attributes:

  • Sexuality: Across nearly all models and datasets, the asexual and homosexual groups consistently suffered from elevated Negative FPR Gaps (erroneously cast in a negative light) and lower Positive FPR Gaps. Conversely, the bisexual group frequently benefited from disproportionately positive misclassifications.
  • Age: The adult group consistently received favorable treatment from the models, whereas the old and young groups suffered from higher rates of negative misclassifications.
  • Disability: Evaluation on the SST-5 dataset revealed significant negative gaps in Positive FPR for groups associated with hearing, mobility, and sight impairments, while individuals with chronic illness faced a large, disproportionate positive gap in Negative FPR.

Limitations and Future Work

While soft-prompt tuning proved to be an effective bias probe, the authors note several limitations:

  • Template Simplicity: The evaluation relied on relatively simple, synthetic sentence structures. Future work will explore how models behave when probed with more complex, natural language templates.
  • Metric Alignment: The study focuses on directional group fairness metrics (FPR gaps). The authors acknowledge that optimizing for one fairness formulation can sometimes conflict with others.
  • Task Scope: The evaluation was restricted to sentiment analysis. Expanding this methodology to other downstream tasks (like question-answering or summarization) and broader sensitive attributes remains an open area for research.

Summary updated

BibTeX
@misc{tian2023soft,
  author = {Jacob-Junqi Tian and David Emerson and Sevil Zanjani Miyandoab and Deval Pandya and Laleh Seyyed-Kalantari and Faiza Khan Khattak},
  title = {{Soft-prompt Tuning for Large Language Models to Evaluate Bias}},
  year = {2023},
  eprint = {2306.04735},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04735},
}
Figure