Repository navigation
Description
Problem
In an AVERAGE_OF_AVERAGES suite, a child that is itself a suite is scored by _compute_child_average (src/olmo_eval/runners/processing/aggregation.py) as the mean of child.expand(), which pools all of its leaf tasks. The child's own aggregation strategy and nesting are ignored. When the child is itself an average of averages over groups of different sizes, its contribution is wrong, and so is the parent's score.
The flattened value is also reported under the child's own name, so a suite name can carry two different values. One is what the suite reports when run on its own; the other is what it reports when it appears inside a parent.
Reproduction
On main at 730f206, with the per-task scores from an allenai/Olmo-3-7B-Instruct run:
from olmo_eval.runners.processing.aggregation import compute_suite_aggregations
scores = {
"bfcl_simple": 0.8325, "bfcl_java": 0.50, "bfcl_javascript": 0.48,
"bfcl_multiple": 0.81, "bfcl_parallel": 0.68, "bfcl_parallel_multiple": 0.375,
"bfcl_irrelevance": 0.925, "bfcl_live": 0.7166,
}
results = {
name: {"metrics": {"accuracy": {"bfcl": s}}, "primary_metric": "accuracy:bfcl"}
for name, s in scores.items()
}
for spec in (["bfcl"], ["bfcl:non_live"]):
out = compute_suite_aggregations(spec, results)
for name in ("bfcl", "bfcl:non_live"):
if name in out:
print(spec[0], "->", name, out[name]["metrics"]["primary_score"])bfcl -> bfcl {'average': 0.68705}
bfcl -> bfcl:non_live {'average': 0.6575}
bfcl:non_live -> bfcl:non_live {'average': 0.67883}
bfcl:non_live averages four terms and bfcl_irrelevance, and its first term, bfcl:non_live_simple, covers three tasks. Run on its own it reports 0.6788, which is BFCL's definition. Inside bfcl it is pooled into a plain mean of seven tasks, 0.6575. bfcl then reports 0.6870 rather than 0.6977.
Affected suites on main
These are the AVERAGE_OF_AVERAGES suites with a child that is itself AVERAGE_OF_AVERAGES over groups of unequal size, found by scanning all 299 registered suites:
| Suite | Flattened child | Task counts of the child's groups |
|---|---|---|
bfcl |
bfcl:non_live |
3, 1, 1, 1, 1 |
olmobase:easy:qa:rc |
mmlu:rc:olmo3base |
18, 13, 12, 14 |
science:all |
science:nojudge |
21, 23, 10, 6, 1, 1, 1, 12 |
science:nojudge |
science:core |
1, 1, 1, 18 |
science:nojudge |
science:biology |
20, 1, 1, 1 |
science:nojudge |
science:math |
1, 1, 7, 1, 1, 1 |
In each case the flattened child weights its groups by how many tasks they hold, instead of equally. #429 adds bfcl:prompt and bfcl:base, which have the same structure as bfcl.
Expected
A child suite should contribute the value it reports when run on its own, computed with its own strategy and applied recursively. A suite name should have one value in a given run.
Impact
Suite-level scores already saved for the suites above disagree with their own definitions. Task-level scores are unaffected.
Related: #84, which asks for explicit weights in nested suites. Found while working on #429.
Activity
GBX-Max1220 commentedon Oct 10, 2026
Hi, I read through #448 and the relevant aggregation code.
The issue seems to come from
_compute_child_average()flattening nested suites rather than preserving each child's aggregation strategy. The BFCL example makes the inconsistency especially clear.I'd be interested in working on a focused fix, starting with a regression test for the nested-suite case and then updating the aggregation logic while keeping existing behavior for flat suites.
Is anyone already working on this, or would this be a useful contribution to take on?