You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FEAT: Report a confidence interval for objective scorer accuracy (Wald SE is 0 at 100%) #4493
Is your feature request related to a problem? Please describe.
ObjectiveScorerMetrics.accuracy_standard_error is the Wald standard error, sqrt(acc * (1 - acc) / n) (scorer_evaluator.py, _compute_metrics). It is 0 whenever the accuracy is 0 or 1. Two entries in refusal_metrics.jsonl hit this: SelfAskRefusalScorer at 105/105 and 150/150 both report accuracy_standard_error: 0.0, so a reader would conclude the accuracy is known exactly. Their 95% Wilson intervals are [0.965, 1] and [0.975, 1].
Describe the solution you'd like
Now that #3889 added compute_wilson_ci, I'd like to add accuracy_ci_lower / accuracy_ci_upper to ObjectiveScorerMetrics. They can be computed from accuracy and num_responses, so existing registry entries get them without re-running any evaluation. accuracy_standard_error would stay as it is, with its docstring saying it is the Wald value. The pretty printer and the scorer metrics doc page would show the interval; the GUI could follow in a separate PR.
Additional context
This is separate from the calibration/correction helper planned in #3579 (attack success rate), cc Nithin (@nithin42). Roman Lutz (@romanlutz), could you assign this to me? I have a branch ready.
Activity