Take Care of Your Prompt Bias! Investigating and Mitigating Prompt Bias in Factual Knowledge Extraction
Not on the map. Why?
Abstract (arXiv)
Recent research shows that pre-trained language models (PLMs) suffer from "prompt bias" in factual knowledge extraction, i.e., prompts tend to introduce biases toward specific labels. Prompt bias presents a significant challenge in assessing the factual knowledge within PLMs. Therefore, this paper aims to improve the reliability of existing benchmarks by thoroughly investigating and mitigating prompt bias. We show that: 1) all prompts in the experiments exhibit non-negligible bias, with gradient-based prompts like AutoPrompt and OptiPrompt displaying significantly higher levels of bias; 2) prompt bias can amplify benchmark accuracy unreasonably by overfitting the test datasets, especially on imbalanced datasets like LAMA. Based on these findings, we propose a representation-based approach to mitigate the prompt bias during inference time. Specifically, we first estimate the biased representation using prompt-only querying, and then remove it from the model's internal representations to generate the debiased representations, which are used to produce the final debiased outputs. Experiments across various prompts, PLMs, and benchmarks show that our approach can not only correct the overfitted performance caused by prompt bias, but also significantly improve the prompt retrieval capability (up to 10% absolute performance gain). These results indicate that our approach effectively alleviates prompt bias in knowledge evaluation, thereby enhancing the reliability of benchmark assessments. Hopefully, our plug-and-play approach can be a golden standard to strengthen PLMs toward reliable knowledge bases. Code and data are released in https://github.com/FelliYang/PromptBias.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 50 of its 66 references that are in the map. First posted on arXiv 15 Mar 2024.
Builds on
50 of 66 references.
References · 50
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2019How Can We Know What Language Models Know?cited by 953
38 more
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2021GPT Understands, Toocited by 715
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 657
- 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 442
- 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2019Measuring Bias in Contextualized Word Representationscited by 275
- 2019Evaluating Gender Bias in Machine Translationcited by 247
- 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 240
- 2020Measuring and Reducing Gendered Correlations in Pre-trained Modelscited by 222
- 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
- 2019Counterfactual Data Augmentation for Mitigating Gender Stereotypes in Languages with Rich Morphologycited by 200
- 2023Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERTcited by 155
- 2019Queens are Powerful too: Mitigating Gender Bias in Dialogue Generationcited by 152
- 2021RedditBias: A Real-World Resource for Bias Evaluation and Debiasing of Conversational Language Modelscited by 149
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2023Towards Making the Most of ChatGPT for Machine Translationcited by 138
- 2021Multilingual LAMA: Investigating Knowledge in Multilingual Pretrained Language Modelscited by 132
- 2019End-to-End Bias Mitigation by Modelling Biases in Corporacited by 127
- 2018Assessing Gender Bias in Machine Translation -- A Case Study with Google Translatecited by 121
- 2020Towards Debiasing NLU Models from Unknown Biasescited by 116
- 2019On Measuring and Mitigating Biased Inferences of Word Embeddingscited by 112
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2019Pretrained Encyclopedia: Weakly Supervised Knowledge-Pretrained Language Modelcited by 102
- 2019E-BERT: Efficient-Yet-Effective Entity Embeddings for BERTcited by 96
- 2023Mitigating Label Biases for In-context Learningcited by 88
- 2023Error Analysis Prompting Enables Human-Like Translation Evaluation in Large Language Modelscited by 87
- 2022PromptBERT: Improving BERT Sentence Embeddings with Promptscited by 75
- 2019Reducing Gender Bias in Word-Level Language Models with a Gender-Equalizing Loss Functioncited by 57
- 2020Understanding and Improving Lexical Choice in Non-Autoregressive Translationcited by 55
- 2022BERTScore is Unfair: On Social Bias in Language Model-Based Metrics for Text Generationcited by 48
- 2022Should We Rely on Entity Mentions for Relation Extraction? Debiasing Relation Extraction with Counterfactual Analysiscited by 30
- 2022Toward Efficient Language Model Pretraining and Downstream Adaptation via Self-Evolution: A Case Study on SuperGLUEcited by 24
- 2024Healthcare Copilot: Eliciting the Power of General LLMs for Medical Consultationcited by 17
- 2023Bag of Tricks for Effective Language Model Pretraining and Downstream Adaptation: A Case Study on GLUEcited by 11
Built on by
Citing papers per year: 2024: 6; 2025: 5; 2026: 2.
13 papers.
Sort:
By area:
- 2024A Comprehensive Survey of Bias in LLMs: Current Landscape and Future Directionscited by 27
- 2024LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMscited by 24
- 2024Uncertainty Aware Learning for Language Model Alignmentcited by 13
- 2024What Matters in Memorizing and Recalling Facts? Multifaceted Benchmarks for Knowledge Probing in Language Modelscited by 8
- 2025Exposing and Mitigating Calibration Biases and Demographic Unfairness in MLLM Few-Shot In-Context Learning for Medical Image Classificationcited by 5
- 2024Building Accurate Translation-Tailored LLMs with Language Aware Instruction Tuningcited by 3
- 2025Chinese Toxic Language Mitigation via Sentiment Polarity Consistent Rewritescited by 2
- 2025Examples as the Prompt: A Scalable Approach for Efficient LLM Adaptation in E-Commercecited by 1
- 2025Single LLM Debate, MoLaCE: Mixture of Latent Concept Experts Against Confirmation Biascited by 1
- 2026Mitigating Prompt-Induced Cognitive Biases in General-Purpose AI for Software Engineeringcited by 1
- 2024Exploring prompts to elicit memorization in masked language model-based named entity recognitioncited by 0
- 2025Unleashing the True Potential of LLMs: A Feedback-Triggered Self-Correction with Long-Term Multipath Decodingcited by 0
- 2026FramingQA: Does the Question Shape the Answer? Measuring the Compositional Framing Effect7 Sep 2026
- 2026Mitigating Prompt-Induced Cognitive Biases in General-Purpose AI for Software Engineering18 Apr 2026
- 2025Single LLM Debate, MoLaCE: Mixture of Latent Concept Experts Against Confirmation Bias29 Dec 2025
- 2025Unleashing the True Potential of LLMs: A Feedback-Triggered Self-Correction with Long-Term Multipath Decoding9 Sep 2025
- 2025Exposing and Mitigating Calibration Biases and Demographic Unfairness in MLLM Few-Shot In-Context Learning for Medical Image Classification29 Jun 2025
- 2025Chinese Toxic Language Mitigation via Sentiment Polarity Consistent Rewrites21 May 2025
- 2025Examples as the Prompt: A Scalable Approach for Efficient LLM Adaptation in E-Commerce14 Mar 2025
- 2024A Comprehensive Survey of Bias in LLMs: Current Landscape and Future Directions24 Sep 2024
- 2024LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMs16 Aug 2024
- 2024What Matters in Memorizing and Recalling Facts? Multifaceted Benchmarks for Knowledge Probing in Language Models18 Jun 2024
- 2024Uncertainty Aware Learning for Language Model Alignment7 Jun 2024
- 2024Exploring prompts to elicit memorization in masked language model-based named entity recognition5 May 2024
1 more
- 2024Uncertainty Aware Learning for Language Model Alignmentcited by 13
- 2024Uncertainty Aware Learning for Language Model Alignment7 Jun 2024
- 2024A Comprehensive Survey of Bias in LLMs: Current Landscape and Future Directionscited by 27
- 2024LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMscited by 24
- 2024What Matters in Memorizing and Recalling Facts? Multifaceted Benchmarks for Knowledge Probing in Language Modelscited by 8
- 2024Building Accurate Translation-Tailored LLMs with Language Aware Instruction Tuningcited by 3
- 2025Chinese Toxic Language Mitigation via Sentiment Polarity Consistent Rewritescited by 2
- 2025Examples as the Prompt: A Scalable Approach for Efficient LLM Adaptation in E-Commercecited by 1
- 2026Mitigating Prompt-Induced Cognitive Biases in General-Purpose AI for Software Engineeringcited by 1
- 2024Exploring prompts to elicit memorization in masked language model-based named entity recognitioncited by 0
- 2025Unleashing the True Potential of LLMs: A Feedback-Triggered Self-Correction with Long-Term Multipath Decodingcited by 0
- 2026FramingQA: Does the Question Shape the Answer? Measuring the Compositional Framing Effectcited by 0
- 2026FramingQA: Does the Question Shape the Answer? Measuring the Compositional Framing Effect7 Sep 2026
- 2026Mitigating Prompt-Induced Cognitive Biases in General-Purpose AI for Software Engineering18 Apr 2026
- 2025Unleashing the True Potential of LLMs: A Feedback-Triggered Self-Correction with Long-Term Multipath Decoding9 Sep 2025
- 2025Chinese Toxic Language Mitigation via Sentiment Polarity Consistent Rewrites21 May 2025
- 2025Examples as the Prompt: A Scalable Approach for Efficient LLM Adaptation in E-Commerce14 Mar 2025
- 2024A Comprehensive Survey of Bias in LLMs: Current Landscape and Future Directions24 Sep 2024
- 2024LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMs16 Aug 2024
- 2024What Matters in Memorizing and Recalling Facts? Multifaceted Benchmarks for Knowledge Probing in Language Models18 Jun 2024
- 2024Exploring prompts to elicit memorization in masked language model-based named entity recognition5 May 2024
- 2024Building Accurate Translation-Tailored LLMs with Language Aware Instruction Tuning21 Mar 2024