mlsanityData to 7 Oct 2026

Test-Time Fairness and Robustness in Large Language Models

arXiv 2406.07685 ↗First posted 11 Jun 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Frontier Large Language Models (LLMs) can be socially discriminatory or sensitive to spurious features of their inputs. Because only well-resourced corporations can train frontier LLMs, we need robust test-time strategies to control such biases. Existing solutions, which instruct the LLM to be fair or robust, rely on the model's implicit understanding of bias. Causality provides a rich formalism through which we can be explicit about our debiasing requirements. Yet, as we show, a naive application of the standard causal debiasing strategy, counterfactual data augmentation, fails under standard assumptions to debias predictions at an individual level at test time. To address this, we develop a stratified notion of debiasing called stratified invariance, which can capture a range of debiasing requirements from population level to individual level through an additional measurement that stratifies the predictions. We present a complete observational test for stratified invariance. Finally, we introduce a data augmentation strategy that guarantees stratified invariance at test time under suitable assumptions, together with a prompting strategy that encourages stratified invariance in LLMs. We show that our prompting strategy, unlike implicit instructions, consistently reduces the bias of frontier LLMs across a suite of synthetic and real-world benchmarks without requiring additional data, finetuning or pre-training.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 35 of its 55 references that are in the map. First posted on arXiv 11 Jun 2024.

Builds on

35 of 55 references.

References · 35

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  5. 2016Equality of Opportunity in Supervised Learningcited by 2,000
  6. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  7. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  8. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  9. 2023Towards Understanding Sycophancy in Language Modelscited by 988
  10. 2023BloombergGPT: A Large Language Model for Financecited by 923
  11. 2017Counterfactual Fairnesscited by 802
  12. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
23 more
  1. 2016Fair prediction with disparate impact: A study of bias in recidivism prediction instrumentscited by 671
  2. 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 346
  3. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
  4. 2017Fairness in Criminal Justice Risk Assessments: The State of the Artcited by 315
  5. 2022Prompting GPT-3 To Be Reliablecited by 258
  6. 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 249
  7. 2019Adversarial Training and Robustness for Multiple Perturbationscited by 182
  8. 2023The Capacity for Moral Self-Correction in Large Language Modelscited by 171
  9. 2021Understanding the Capabilities, Limitations, and Societal Impact of Large Language Modelscited by 159
  10. 2023Causal Parrots: Large Language Models May Talk Causality But Are Not Causalcited by 146
  11. 2023Evaluating and Mitigating Discrimination in Language Model Decisionscited by 117
  12. 2021Counterfactual Generative Networkscited by 111
  13. 2020Sample-Efficient Reinforcement Learning via Counterfactual-Based Data Augmentationcited by 57
  14. 2023Improving Diversity of Demographic Representation in Large Language Models via Collective-Critiques and Self-Votingcited by 46
  15. 2022Causal Fairness Analysiscited by 42
  16. 2020FIND: Human-in-the-Loop Debugging Deep Text Classifierscited by 40
  17. 2023Joint Prompt Optimization of Stacked LLMs using Variational Inferencecited by 32
  18. 2023Let's Do a Thought Experiment: Using Counterfactuals to Improve Moral Reasoningcited by 20
  19. 2022Counterfactual Fairness Is Basically Demographic Paritycited by 15
  20. 2023Large Language Models as Corporate Lobbyistscited by 13
  21. 2023Results on Counterfactual Invariancecited by 4
  22. 2022Bias Challenges in Counterfactual Data Augmentationcited by 3
  23. 2024Counterfactual Fairness Is Not Demographic Parity, and Other Observationscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.