mlsanityData to 7 Oct 2026

Take Care of Your Prompt Bias! Investigating and Mitigating Prompt Bias in Factual Knowledge Extraction

arXiv 2403.09963 ↗First posted 15 Mar 2024cs.CL cs.AI cs.IRcited by 13

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2017On Calibration of Modern Neural Networkscited by 4,860
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  7. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  8. 2019Language Models as Knowledge Bases?cited by 1,922
  9. 2017Decoupled Weight Decay Regularizationcited by 1,722
  10. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  11. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  12. 2019How Can We Know What Language Models Know?cited by 953
38 more
  1. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
  2. 2021GPT Understands, Toocited by 715
  3. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  4. 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
  5. 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 657
  6. 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 442
  7. 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
  8. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
  9. 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
  10. 2019Measuring Bias in Contextualized Word Representationscited by 275
  11. 2019Evaluating Gender Bias in Machine Translationcited by 247
  12. 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 240
  13. 2020Measuring and Reducing Gendered Correlations in Pre-trained Modelscited by 222
  14. 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
  15. 2019Counterfactual Data Augmentation for Mitigating Gender Stereotypes in Languages with Rich Morphologycited by 200
  16. 2023Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERTcited by 155
  17. 2019Queens are Powerful too: Mitigating Gender Bias in Dialogue Generationcited by 152
  18. 2021RedditBias: A Real-World Resource for Bias Evaluation and Debiasing of Conversational Language Modelscited by 149
  19. 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
  20. 2023Towards Making the Most of ChatGPT for Machine Translationcited by 138
  21. 2021Multilingual LAMA: Investigating Knowledge in Multilingual Pretrained Language Modelscited by 132
  22. 2019End-to-End Bias Mitigation by Modelling Biases in Corporacited by 127
  23. 2018Assessing Gender Bias in Machine Translation -- A Case Study with Google Translatecited by 121
  24. 2020Towards Debiasing NLU Models from Unknown Biasescited by 116
  25. 2019On Measuring and Mitigating Biased Inferences of Word Embeddingscited by 112
  26. 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
  27. 2019Pretrained Encyclopedia: Weakly Supervised Knowledge-Pretrained Language Modelcited by 102
  28. 2019E-BERT: Efficient-Yet-Effective Entity Embeddings for BERTcited by 96
  29. 2023Mitigating Label Biases for In-context Learningcited by 88
  30. 2023Error Analysis Prompting Enables Human-Like Translation Evaluation in Large Language Modelscited by 87
  31. 2022PromptBERT: Improving BERT Sentence Embeddings with Promptscited by 75
  32. 2019Reducing Gender Bias in Word-Level Language Models with a Gender-Equalizing Loss Functioncited by 57
  33. 2020Understanding and Improving Lexical Choice in Non-Autoregressive Translationcited by 55
  34. 2022BERTScore is Unfair: On Social Bias in Language Model-Based Metrics for Text Generationcited by 48
  35. 2022Should We Rely on Entity Mentions for Relation Extraction? Debiasing Relation Extraction with Counterfactual Analysiscited by 30
  36. 2022Toward Efficient Language Model Pretraining and Downstream Adaptation via Self-Evolution: A Case Study on SuperGLUEcited by 24
  37. 2024Healthcare Copilot: Eliciting the Power of General LLMs for Medical Consultationcited by 17
  38. 2023Bag of Tricks for Effective Language Model Pretraining and Downstream Adaptation: A Case Study on GLUEcited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 5; 2026: 2.

13 papers.

Sort:

By area: