mlsanityData to 14 Oct 2026

Statistical Hypothesis Testing for Auditing Robustness in Language Models

arXiv 2506.07947 ↗First posted 9 Jun 2025cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Consider the problem of testing whether the outputs of a large language model (LLM) system change under an arbitrary intervention, such as an input perturbation or changing the model variant. We cannot simply compare two LLM outputs since they might differ due to the stochastic nature of the system, nor can we compare the entire output distribution due to computational intractability. While existing methods for analyzing text-based outputs exist, they focus on fundamentally different problems, such as measuring bias or fairness. To this end, we introduce distribution-based perturbation analysis, a framework that reformulates LLM perturbation analysis as a frequentist hypothesis testing problem. We construct empirical null and alternative output distributions within a low-dimensional semantic similarity space via Monte Carlo sampling, enabling tractable inference without restrictive distributional assumptions. The framework is (i) model-agnostic, (ii) supports the evaluation of arbitrary input perturbations on any black-box LLM, (iii) yields interpretable p-values; (iv) supports multiple perturbations via controlled error rates; and (v) provides scalar effect sizes. We demonstrate the usefulness of the framework across multiple case studies, showing how we can quantify response changes, measure true/false positive rates, and evaluate alignment with reference models. Above all, we see this as a reliable frequentist hypothesis testing framework for LLM auditing.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 16 of its 29 references that are in the map. First posted on arXiv 9 Jun 2025.

Builds on

16 of 29 references.

References · 16

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  3. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  4. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  6. 2023Reasoning with Language Model is Planning with World Modelcited by 861
  7. 2016Inherent Trade-Offs in the Fair Determination of Risk Scorescited by 586
  8. 2019MoverScore: Text Generation Evaluating with Contextualized Embeddings and Earth Mover Distancecited by 418
  9. 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 404
  10. 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 223
  11. 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
  12. 2018Reducing Gender Bias in Abusive Language Detectioncited by 152
4 more
  1. 2018Counterfactual Fairness in Text Classification through Robustnesscited by 151
  2. 2020Re-evaluating Evaluation in Text Summarizationcited by 145
  3. 2024The Oscars of AI Theater: A Survey on Role-Playing with Language Modelscited by 48
  4. 2021A Triangle Inequality for Cosine Similaritycited by 13

Built on by

Cited by year (2026 to 14 Oct)

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

8 papers.