A task that asks for acc_all gets no column and no warning
A task that asks for acc_all gets no column and no warning
acc_all is registered as a metric with aggregation="mean" (lm_eval/api/metrics.py:423-429), but nothing ever emits an acc_all key: the default process_results produces acc only (lm_eval/api/task.py:1555-1568 for multiple_choice, :1464-1467 for loglikelihood), and _compute_task_aggregations iterates whatever process_results returned (lm_eval/evaluator_utils.py:193). A task that asks for it therefore gets a results table with no acc_all column at all — indistinguishable from the metric having worked:
metric_list declared : ['acc', 'acc_all']
process_results gave : ['acc']
-> no acc_all, no error, no warning about the missing metricReproduced against a real ConfigurableTask at d6de8164. tests/test_registry.py:33 asserts "acc_all": True in the registry, so the metric is reachable as a registry entry while being unreachable as a result.
Two related things in the same corner, which is why I think this wants a decision rather than a patch from me:
Its stderr is dead code. stderr_for_metric builds {mean: mean_stderr, acc_all: acc_all_stderr} (metrics.py:620), keyed by function object, and the lookup arrives with the task's aggregation — which for acc_all is mean. So acc_all_stderr can never be selected, and acc_all is not in aggregation_registry, so a YAML cannot ask for it either. If the metric were revived as-is, the printed pair would be acc_all = 0.5 next to acc_all_stderr = 0.0 — a score with a zero error bar where the honest SE is about 0.177.
The two functions disagree on what a question is. They carry the same comment ("Only count as correct if all answers are labeled correctly for each question"), but acc_all groups by (paragraph_id, question_id) (metrics.py:429-430) and acc_all_stderr groups by question_id alone (:448). The paragraph_id half of the metric's key is the proof that question ids are only paragraph-local, so the stderr collapses across paragraphs. With two paragraphs × four questions × two sub-answers, all correct except one sub-answer in paragraph 0: the metric gives 0.5 while its stderr's grouping zeroes every question group and reports 0.0.
So the options I see are: delete acc_all/acc_all_stderr and drop the registry assertion, or make the metric real — emit acc_all from process_results, key the stderr map by metric rather than by aggregation function, and align the grouping. I lean towards the second only if SuperGLUE-style tasks are actually meant to report it, because a revival touches three files and the default process_results for both multiple_choice and loglikelihood.
I have not written a patch for either direction. Happy to; I would rather you say which.
Verification
lm-evaluation-harness at d6de8164 (main), Python 3.11, driving a real ConfigurableTask through _compute_task_aggregations plus direct calls to acc_all/acc_all_stderr. The three outputs above are printed values, not readings. No shipped task in lm_eval/tasks/ currently asks for acc_all (grep -rn "metric: acc_all" lm_eval/tasks/ is empty), so this is a trap for a task author rather than something visible in today's numbers.
Source: EleutherAI/lm-evaluation-harness