Your eval’s confidence interval assumes independent examples. Yours are clustered.

· Source: Machine Learning on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Intermediate, medium

Summary

Confidence intervals calculated for model evaluation pass rates, including Wald, Wilson, and Clopper-Pearson methods, often incorrectly assume independent examples. Many evaluation sets, however, contain clustered data, such as multiple questions from the same document, turns from the same conversation, or paraphrases of a single case. This clustering inflates the apparent sample size, causing the computed confidence intervals to be too narrow and leading to false positives where non-significant model improvements are mistakenly declared significant. For instance, a 200-example eval from 40 source documents with an intra-cluster correlation (ICC) of 0.3 effectively yields only 91 independent examples, widening a naive ±3.5 point interval to ±5.2 points. Common clustering types include source, conversation, and template-based examples. The article proposes a cluster bootstrap method to correct this.

Key takeaway

For Machine Learning Engineers evaluating model performance and deciding on shipping improvements, your current confidence intervals are likely too narrow due to clustered evaluation data. This bias risks deploying changes that haven't truly beaten baseline. You should implement a cluster bootstrap method to compute honest confidence intervals, especially for RAG, multi-turn conversation, or template-augmented evals. This ensures you only ship statistically significant improvements, avoiding wasted effort on false positives.

Key insights

Clustered evaluation data invalidates standard confidence intervals, leading to overconfidence in reported model improvements.

Principles

Method

Implement a cluster bootstrap by resampling entire clusters with replacement, then calculating the confidence interval from the distribution of bootstrap means.

In practice

Topics

Best for: Machine Learning Engineer, Data Scientist, AI Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning on Medium.