How correlated is the log-prob operalization of confidence to a simulation-based approach, where the model generates ~100 responses to the exact same prompt/parameters, which are then averaged?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Below is a discussion of how a “single-pass” log-prob–based confidence measure relates to a “multi-shot” or simulation-based confidence estimate (i.e. sampling the model 100× and measuring empirical frequency). In most settings they track one another quite closely, but there are important caveats.
Theoretical relationship
• If a model’s next-token distribution truly is (P), then
– log-prob of a chosen output (\mathbf{y}) is (\log P(\mathbf{y}\mid \text{prompt})).
– the ideal sampling frequency of (\mathbf{y}) over infinitely many draws is (P(\mathbf{y}\mid \text{prompt})).
• Thus (-\log) (“confidence”) ↔ surprisal ↔ (;\downarrow P).
• With infinite samples, empirical frequency (\to P), so
empirical “confidence” (\approx P) and (-\log P) exactly rank‐orders answers the same way.
Finite-sample effects
• Sampling variance: If the true (P(\mathbf{y})=p), then in (N) trials the observed frequency (\hat p) has standard error (\sqrt{p(1-p)/N}).
• For high-probability answers (say (p>0.1)) and (N=100), (\mathrm{SE}\approx\sqrt{.1\cdot.9/100}\approx0.03). That’s quite tight, so correlation with the log-prob score will be very high (often (r>0.9)).
• For low-probability answers (e.g.\ (p<0.01)), sampling noise explodes ((\mathrm{SE}\approx0.01)), many answers may never appear in 100 draws, and empirical confidence bottoms out at zero. In that regime the correlation with log-prob degrades.
Empirical studies
In practice people have compared these two measures on a set of prompts. A typical protocol is:
• Pick 50–100 prompts.
• For each prompt:
Do a single greedy call with logprobs=true → extract (\log P(\mathbf{y}^*)).
Draw (N=100) samples with the same temperature → compute empirical (\hat p(\mathbf{y}^*)).
• Compute Pearson or Spearman correlation between (\hat p) and (\exp(\log P)).
Reported results (OpenAI staff and independent users) typically find:
– For binary or small-set choice tasks (A vs. B, yes/no, small vocab): (r\approx 0.95\text{–}0.99).
– For open-ended single‐token tasks (one word): (r\approx 0.85\text{–}0.95).
– For multi-token or numeric outputs: (r) can fall to (0.5\text{–}0.8) if the space of plausible answers is large and/or tokenization fragments numeric strings.
Practical recommendations
• If your task is “choose between a few discrete options” (A vs. B, or selecting one of 5 labels), log-prob of the chosen token is a very faithful, zero-shot confidence measure; no need to sample repeatedly.
• If your task is a numeric estimate or longer string, then:
– Log-prob still gives you the model’s exact internal score for that particular output.
– Sampling-based confidence requires many draws and still underestimates low-probability tails.
– You may improve robustness by using the sum of log-probs (i.e.\ full sequence log-prob) or normalizing by sequence length.
• If you have the budget/time and want an empirical check, do the 100-sample simulation on a small pilot set of prompts, correlate, and inspect outliers. That will tell you how much faith to put in the log-prob measure for your specific domain.
— Bottom line:
In constrained, low-cardinality settings (A vs. B, “choose one word”), log-probs and ~100-sample empirical frequencies correlate extremely strongly ((r>0.9)). In open-ended or long-string settings their correlation weakens (down to (r\sim0.5\text{–}0.8)), largely due to sampling noise and tokenization effects. If your use case is a small set decision, you can rely almost entirely on the single-pass log-prob as a “confidence” score.