atlas

Research map / Large language models / Language, safety and interpretability

Statistical Hypothesis Testing for Auditing Robustness in Language Models

ICML 2025 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes distribution-based perturbation analysis (DBPA), a permutation-test hypothesis testing framework that compares Monte Carlo output distributions of black-box LLMs in a cosine-similarity space to audit robustness to input perturbations and model changes.

Problem

Testing whether LLM outputs change under an intervention (input perturbation or model swap) is hard because outputs are stochastic and full output distributions are intractable and not semantically interpretable.

Approach

Reframe LLM perturbation analysis as a frequentist two-sample test: pool k samples from original and perturbed prompts, compare within-group vs cross-group embedding cosine similarity distributions via Jensen-Shannon divergence, and obtain p-values by permutation; the JSD value serves as effect size.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a Comedian persona instructionGPT-4 · Medical role perturbationeffect size (JSD): 0.22 -> 0.32$^{***}$Helped
Add a Child persona instructionGPT-3.5 · Persona perturbationeffect size (JSD): 0.21 -> 0.33$^{**}$Helped
Add medical persona instructionsGPT-4 and GPT-3.5 · Medical role perturbationsignificant output shiftNo clear effect
Add non-medical persona instructionsGPT-4 and GPT-3.5 · Creative role perturbationsignificant output shiftHelped
Add persona instructions to prompts longer than 800 tokensPersona experiment · Persona perturbation, prompts above 800 tokensdetectable output shiftHurt
Replace JSD with alternative distribution distance measures (ablation)DBPA · Persona perturbationsignificance decisionsNo clear effect
Replace embedding similarity with BLEU or ROUGE (ablation)DBPA · Role-play perturbationssemantic reliabilityHurt
Replace Ada embeddings with alternative embedding models (ablation)DBPA · Persona perturbationeffect size: 0.33$^{**}$ -> 0.48$^{***}$Mixed

Surprising findings

Limitations

Experimental setup

Datasets: synthetic patient feature prompts for NICE CVD guidelines

Benchmarks: persona perturbation healthcare prompts CVD treatment recommendation TPR/FPR cross-model alignment vs GPT-4

Metrics: JSD effect size permutation p-value TPR FPR ROC AUC

Baselines: BLEU ROUGE BERTScore MoverScore

Builds on: permutation testing Jensen-Shannon divergence

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy