Skip to content

Clean metrics computation #3471

Open
Open

Description

@mpatel31415

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

  1. changed the title [-]Clean statistics computation[/-] [+]Clean metrics computation[/+] on Sep 17, 2026
  2. KashmirAwana commented on Sep 17, 2026

    @KashmirAwana

    I'd check how metrics are currently being computed in responses_api_agents/scicode_agent/app.py to see what kind of structure or naming conventions might be missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions