Skip to content

fix(audio_eval): report no_answer as the true share of empty answers - #6959

Open
pzelasko wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
pzelasko:pr/audio-eval-no-answer-true-share
Open

pzelasko wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
pzelasko:pr/audio-eval-no-answer-true-share

Conversation

@pzelasko

Copy link
Copy Markdown
Contributor

What does this PR do?

audio_eval: publishes no_answer as the true percentage of entries whose answer is empty, instead of half of it.

Why. AudioMetrics.get_metrics divided no_answer by 2.0 for every aggregation mode, with the comment "compensate for double-counting in base metrics". The base _compute_pass_at_k adds no_answer once per entry, so there is no double count and the division only halved the real value. Checked on main with two entries: one empty and one non-empty generation has a true share of 50 but published 25.0; two empty generations published 50.0 instead of 100.0. A reader comparing no_answer with the share of empty outputs in the rollouts would see a factor of two.

What changed.

  • resources_servers/audio_eval/_scoring/evaluation/metrics/audio_metrics.py: removed the no_answer / 2.0 block. pass@k, pass@1[avg-of-k] and majority@k no_answer values come straight from the base class, unchanged.
  • resources_servers/audio_eval/README.md: replaced the "no_answer is halved" bullet in "Known behaviors inherited from NeMo Skills" with a statement of what no_answer is (percentage of scored entries whose extracted answer is empty or None).
  • resources_servers/audio_eval/tests/test_scoring_audio_metrics.py: the test that asserted 25.0 is renamed and now asserts 50.0 (1 empty of 2), 100.0 (2 of 2) and 0.0 (none empty). The neighbouring tests of the base pass@k and majority@k paths call the base class directly and are unaffected.

Related issue: none.

Validation

  • gym env test --resources-server audio_eval: 202 passed, 0 failed (server environment built from uv.lock).
  • Mutation check: putting the / 2.0 back makes the renamed test fail (1 failed, 31 passed in test_scoring_audio_metrics.py); the file was restored afterwards.
  • Core environment (CI-like, no setuptools, git available): tests/unit_tests/test_public_api_facades.py, 1042 passed.
  • ruff check / ruff format --check, scoped pre-commit (including the guardwords hook), and detect-secrets-hook on the changed files: pass.
  • Search of the server, its tests and benchmarks/ for other halving or "double counting" statements: none left; no benchmark on main reads the audio no_answer value.

Rollouts

N/A. The change is arithmetic in metric aggregation and is covered by unit tests; no model behavior, prompt or verifier logic changes.

Compatibility and benchmark impact

  • Published no_answer values of every benchmark that uses AudioMetrics (or a subclass that calls its get_metrics) double: for example 2.5 becomes 5.0, and the maximum is now 100 instead of 50.
  • No other metric, key name or row-level output changes. Values published earlier with the halved convention are not comparable with new ones for this one key.
  • Benchmark PRs that carry their own metrics subclass with a copy of the division need the same one-line removal.

Review gates

  • Files: resources_servers/audio_eval/{README.md,_scoring/evaluation/metrics/audio_metrics.py,tests/test_scoring_audio_metrics.py}. No .github/, pyproject.toml, lock file or shared docs touched; no new dependencies.

Checklist

  • Contributing guidelines read.
  • Focused change: one metric correction, with test and README.
  • Tests added and passing (gym env test, facade test); mutation caught.
  • Documentation updated (server README).
  • Local lint, format, pre-commit and secrets hook pass.
  • DCO sign-off.

🤖 Generated with Claude Code

AudioMetrics.get_metrics divided no_answer by 2.0 to "compensate double
counting", but the base metrics add no_answer once per entry, so the
published value was half the real percentage (1 empty of 2 gave 25.0).
Remove the division and the README bullet that documented it, and pin the
true share in the test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Piotr Żelasko <pzelasko@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:mid Autobot PR risk: mid bug Something isn't working area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters needs-review PR is ready for code review and waiting on a reviewer labels Nov 30, 2026

This branch has not been deployed

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

Labels

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer risk:mid Autobot PR risk: mid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants