Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Indeed Engineering 31 min read Research hardMaster

Bootstrap Confidence Intervals for LLM Evaluation

When LLM outputs are non-deterministic, the cluster bootstrap gives near-nominal 95% coverage with the narrowest intervals. It runs each of N inputs k times and resamples whole inputs with all their runs. A simulation of a 4-class classifier at 70% accuracy compares five strategies. Single-draw cluster and hierarchical bootstraps are overly conservative, and mode-aggregation estimates majority-vote accuracy instead of single-call accuracy, so its coverage collapses to zero for k > 2. A variance decomposition via intraclass correlation guides the N-versus-k tradeoff, with k = 3 or 5 recommended when affordable.

Assumes: bootstrap resamplingconfidence intervalsLLM evaluation basicslaw of total variance

Related posts

  • Calibrating LLM-Based Population Estimates with Human Validation

    Indeed Engineering mediumAdept

    The share of records an LLM classifies as positive is only an apparent prevalence. Sensitivity and specificity estimated from a small human-validated sample can correct it with the Rogan–Gladen estimator, and a delta-method variance gives a confidence interval. Simulations show the correction becomes unstable as Se+Sp−1 approaches zero, with error growing roughly as 1/D, so weak classifiers need much more validation data. In an Indeed job-matching opportunity-sizing study, about 100 human labels (Se 73.5%, Sp 77.8%) moved apparent coverage of 56.4% to a corrected 66.6% (95% CI 47.9–85.3%), which informed which investment to prioritize.

  • BenchMIRT: What are LLM benchmarks actually measuring?

    Hugging Face hardMaster

    BenchMIRT applies multidimensional Item Response Theory to LLM benchmark results at the level of individual prompts, estimating each question's difficulty and discrimination along latent capability dimensions. Trained on 100 LLMs across 16 benchmarks and 34K+ questions, it recovered two stable dimensions, safety and general reasoning, without being told which benchmark measured what. It found that BBQ and WMDP track general reasoning more than safety, and that HarmBench's copyright prompts behave differently from its harmful-request prompts. Keeping only the most discriminative 10% of questions largely preserved model rankings, and held-out item prediction reached 79% accuracy versus 70% for a per-benchmark-average baseline, though average scores still rank models slightly better.

  • Theoretical Limits of Language Model Alignment

    Apple Machine Learning Research hardMaster

    The maximum expected reward gain achievable under a fixed KL-divergence budget in KL-regularized language model alignment has a closed form governed by a Jeffreys divergence term, not the √KL used in prior analyses. Rewritten as a covariance under the base model, it gives an estimator that predicts achievable alignment gains from base model samples alone. With proxy rewards, the gap from ideal alignment (reward hacking) grows with reward error and with smaller KL penalties, and reward ensembling provably mitigates it. On safety and summarization tasks, best-of-N comes close to the theoretical KL–reward frontier while PPO and GRPO fall well short, which suggests better algorithms are needed to reach optimal alignment without high inference costs.

  • Can foundation models label data like humans?

    Hugging Face hardMaster

    Human preference labels from Scale AI and GPT-4 pairwise ratings on a 327-prompt blind test set produce the same Elo ordering of four open instruction-tuned models (Vicuna-13B, Koala-13B, OpenAssistant-12B, Dolly-12B), but the margins between models differ. GPT-4 evaluation shows clear positional bias on a 1–8 Likert scale. When GPT-4 also rates human-written demonstrations, it ranks them below most models, which suggests it favors verbose, LLM-style outputs. Treat GPT-4-based "preferred to ChatGPT" claims with caution, and be wary of training on and evaluating with another LLM, since this can amount to unintentional doping.

  • Introducing the Open Chain of Thought Leaderboard

    Hugging Face mediumAdept

    The Open CoT Leaderboard ranks LLMs by the accuracy gain from chain-of-thought prompting (accuracy with CoT minus loglikelihood accuracy without it) rather than by absolute accuracy, which makes it more robust to training-data contamination. Models are evaluated on LogiQA and LSAT multiple-choice reasoning tasks using six CoT generation regimes: two prompting strategies (Classic "think step by step" and Reflect) crossed with greedy, beam search and sampling decoding, and the best gain across regimes is reported. Early results across 30 models show small 7B models like Phi-2 can gain more from CoT than larger ones such as Mixtral, and instruction/chat finetuning improves both baseline accuracy and CoT gains. No single regime is best for every model and task, and CoT sometimes reduces accuracy.

The quest for software engineering knowledge.

Look:
Layout: