Statistical Hypothesis Testing for Auditing Robustness in Language Models
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
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Reasoning with Language Model is Planning with World Modelcited by 861
- 2016Inherent Trade-Offs in the Fair Determination of Risk Scorescited by 586
- 2019MoverScore: Text Generation Evaluating with Contextualized Embeddings and Earth Mover Distancecited by 418
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 404
- 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 223
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
- 2018Reducing Gender Bias in Abusive Language Detectioncited by 152
4 more
- 2018Counterfactual Fairness in Text Classification through Robustnesscited by 151
- 2020Re-evaluating Evaluation in Text Summarizationcited by 145
- 2024The Oscars of AI Theater: A Survey on Role-Playing with Language Modelscited by 48
- 2021A Triangle Inequality for Cosine Similaritycited by 13
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2026Audit Me If You Can: Query-Efficient Active Fairness Auditing of Black-Box LLMscited by 6
- 2026Tiny Autoregressive Recursive Modelscited by 6
- 2025Deep Hierarchical Learning with Nested Subspace Networks for Large Language Modelscited by 5
- 2025Syntactic Framing Fragility: An Audit of Robustness in LLM Ethical Decisionscited by 2
- 2026No More, No Less: Least-Privilege Language Modelscited by 1
- 2026Metadata Predictability Is Not Evidence Dependence: An Intervention-Based Audit for Weak-Label Benchmarkscited by 0
- 2026Black-Box Auditing of Epistemic Reliability in Multi-Agent Debate Distillationcited by 0
- 2026A Distributional Framework for Behavioral Characterization and Risk Management of Large Language Modelscited by 0
- 2026A Distributional Framework for Behavioral Characterization and Risk Management of Large Language Models8 Oct 2026
- 2026Black-Box Auditing of Epistemic Reliability in Multi-Agent Debate Distillation26 Sep 2026
- 2026Metadata Predictability Is Not Evidence Dependence: An Intervention-Based Audit for Weak-Label Benchmarks22 May 2026
- 2026Tiny Autoregressive Recursive Models9 Mar 2026
- 2026No More, No Less: Least-Privilege Language Models30 Jan 2026
- 2026Audit Me If You Can: Query-Efficient Active Fairness Auditing of Black-Box LLMs6 Jan 2026
- 2025Syntactic Framing Fragility: An Audit of Robustness in LLM Ethical Decisions27 Dec 2025
- 2025Deep Hierarchical Learning with Nested Subspace Networks for Large Language Models22 Sep 2025