Repository navigation
Description
Use cases, pain points, and background
Right now metrics can be calculated per benchmark in any way (e.g. responses_api_agents/scicode_agent/app.py _across_run_stats) without any naming conventions nor structure (e.g. one function with clearly defined input per metric). This makes writing general code difficult. For example generic confidence interval and comparison code must infer which keys are scores and which are statistics from their names.
We need a way to still provide flexibility but with clean rules.
Description
Define a consistent contract for benchmark metrics that keeps benchmark-specific scoring formulas while making metrics discoverable and reusable by generic analysis code.
Design
Define each scalar metric, or parameterized metric family, with a stable name, a callable over predefined input (e.g. task-grouped verify responses), and metadata describing its observation unit and eligibility for repeat-based statistics. Expose that metadata to downstream consumers, use shared names for framework-generated statistics, and retain the existing flat aggregate metric output and legacy hooks during migration.
Out of scope
Changing benchmark scores, requiring confidence intervals for every metric, or migrating every benchmark in this issue.
Acceptance Criteria
- The metric contract documents names, inputs, outputs and uncertainty eligibility.
- A representative benchmark such as SciCode uses the contract, with tests confirming its existing scores and per-repeat results.
- Generic aggregation and comparison code can identify eligible point estimates from metadata without benchmark-specific name heuristics.
- Existing aggregate metric consumers and legacy metric hooks remain supported
- Code in reward_profile.py and nemo_gym/comparison uses the new contract.
Activity
[-]Clean statistics computation[/-][+]Clean metrics computation[/+]KashmirAwana commentedon Sep 17, 2026
I'd check how metrics are currently being computed in
responses_api_agents/scicode_agent/app.pyto see what kind of structure or naming conventions might be missing.