Surfacing Biases in Large Language Models using Contrastive Input Decoding
Not on the map. Why?
Abstract (arXiv)
Ensuring that large language models (LMs) are fair, robust and useful requires an understanding of how different modifications to their inputs impact the model's behaviour. In the context of open-text generation tasks, however, such an evaluation is not trivial. For example, when introducing a model with an input text and a perturbed, "contrastive" version of it, meaningful differences in the next-token predictions may not be revealed with standard decoding strategies. With this motivation in mind, we propose Contrastive Input Decoding (CID): a decoding algorithm to generate text given two inputs, where the generated text is likely given one input but unlikely given the other. In this way, the contrastive generations can highlight potentially subtle differences in how the LM output differs for the two inputs in a simple and interpretable manner. We use CID to highlight context-specific biases that are hard to detect with standard decoding strategies and quantify the effect of different input perturbations.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 23 of its 29 references that are in the map. First posted on arXiv 12 May 2023.
Builds on
23 of 29 references.
References · 23
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,304
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2016Semantics derived automatically from language corpora contain human-like biasescited by 894
- 2017Counterfactual Fairnesscited by 802
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 657
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 346
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
11 more
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
- 2019Lipstick on a Pig: Debiasing Methods Cover up Systematic Gender Biases in Word Embeddings But do not Remove Themcited by 268
- 2020Detecting Emergent Intersectional Biases: Contextualized Word Embeddings Contain a Distribution of Human-like Biasescited by 167
- 2019It's All in the Name: Mitigating Gender Bias with Name-Based Counterfactual Data Substitutioncited by 102
- 2022Interpreting Language Models with Contrastive Explanationscited by 91
- 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2019Perturbation Sensitivity Analysis to Detect Unintended Model Biasescited by 74
- 2018Probably Approximately Metric-Fair Learningcited by 29
- 2022LMentry: A Language Model Benchmark of Elementary Language Taskscited by 21
- 2018Identify Susceptible Locations in Medical Records via Adversarial Attacks on Deep Predictive Modelscited by 15
Built on by
Citing papers per year: 2023: 6; 2024: 2; 2025: 3.
11 papers.
- 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 78
- 2023Contrastive Decoding Improves Reasoning in Large Language Modelscited by 71
- 2023Instructive Decoding: Instruction-Tuned Large Language Models are Self-Refiner from Noisy Instructionscited by 24
- 2023Are Emily and Greg Still More Employable than Lakisha and Jamal? Investigating Algorithmic Hiring Bias in the Era of ChatGPTcited by 23
- 2024Seeing the Image: Prioritizing Visual Correlation by Contrastive Alignmentcited by 19
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Frameworkcited by 11
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2023Speculative Contrastive Decodingcited by 9
- 2023Large Language Models can Contrastively Refine their Generation for Better Sentence Representation Learningcited by 3
- 2025Multi-Amateur Contrastive Decoding for Text Generationcited by 3
- 2025Interpolative Decoding: Exploring the Spectrum of Personality Traits in LLMscited by 0
- 2025Interpolative Decoding: Exploring the Spectrum of Personality Traits in LLMs23 Dec 2025
- 2025Multi-Amateur Contrastive Decoding for Text Generation22 Jun 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework24 Oct 2024
- 2024Seeing the Image: Prioritizing Visual Correlation by Contrastive Alignment28 May 2024
- 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinations25 Dec 2023
- 2023Speculative Contrastive Decoding15 Nov 2023
- 2023Instructive Decoding: Instruction-Tuned Large Language Models are Self-Refiner from Noisy Instructions1 Nov 2023
- 2023Large Language Models can Contrastively Refine their Generation for Better Sentence Representation Learning17 Oct 2023
- 2023Are Emily and Greg Still More Employable than Lakisha and Jamal? Investigating Algorithmic Hiring Bias in the Era of ChatGPT8 Oct 2023
- 2023Contrastive Decoding Improves Reasoning in Large Language Models17 Sep 2023