Repository navigation
Description
Queue rank 39/48 · Difficulty 3/5 · Status on main: not_fixed
NVBug: https://nvbugspro.nvidia.com/bug/6790140 · NVBug priority: Unprioritized · ARB: Ananth Subramaniam
GitHub: none found (gh issue/PR search for "math_advanced_calculations" returned no related item)
Summary
52 of the 6000 published train rows in nvidia/Nemotron-RL-math-advanced_calculations carry ground_truth reference expressions that cannot produce finite real values under the component's intentionally counter-intuitive calculators. The tool schema requires solution: float and the verifier json.loadses real numbers, so these rows cannot be prepared. Breakdown: 45 complex finals, 6 TypeError, 1 ValueError (domain), 1 OverflowError. This is a data defect, not a model-quality failure.
Reproduction
From the Gym checkout (no model needed):
value = power(a=cos(radians=5.0), b=sin(radians=6.0)) # row 1010, expr idx 6
# -> (-0.876...+0.110...j); json.dumps([value]) raises "complex is not JSON serializable"
Affected zero-based rows: 1010,1341,1749,... (52 total, listed in bug record).
Root cause
Calculators use alternate semantics — sin→cos, cos→sin, power(a,b)→a**(b+2) (math_advanced_calculations_tools.py:40,45,55). 52 reference expressions assume standard semantics, so they raise negative bases to non-integer powers (complex) or hit math-domain/overflow. The references, not the calculators, are wrong.
Status on main (not_fixed)
math_advanced_calculations_tools.py:38-55anddataset_preprocess.pyare byte-identical to bug rev0612372(git diff 0612372..HEADempty); onlyapp.py/config changed since (unrelated Ray/legacy-env).- The real-float contract is the pydantic
solution: float(app.py:56) plusjson.dumpsat preparation;app.py:109json.loads(ground_truth). (app.py:117runsfloat()on the model's predicted output, not ground_truth.) dataset_preprocess.py:213loadsNexusflow/MultiverseMathHard, not the README/config dataset;eval+json.dumps(:233,:269) would crash on these rows. No preparation entry point exists for the NVIDIA repo.
Proposed fix
Primary (data owner / ARB): regenerate the 52 affected references so they yield finite real targets under the shipped semantics; re-validate the full 6000-row corpus before re-publishing. Gym-side PR: add a documented preparation entry point for nvidia/Nemotron-RL-math-advanced_calculations in dataset_preprocess.py (load correct repo, evaluate with shipped functions, explicitly detect+report complex/exception rows — never silently round or drop), update README.md, and add a unit test asserting all prepared rows are finite real floats. Do not substitute simplified_values.
Validation
Re-run QA testcases/environments/math_advanced_calculations.py; the full-dataset assertion (expect.true(not preparation_errors), ~:474) expects preparation_error_count → 0 in dataset_contract.json.
Triage
Difficulty 3/5 — root cause pinpointed and unit-testable without GPU, but needs a design choice (correct vs. documented-filter) and the real references live in an external HF dataset the QA engineer may not own. Effort ~8 h. Needs GPU/model: no. External dependency: nvidia/Nemotron-RL-math-advanced_calculations HF dataset.
Reviewer notes
Verifier confirmed not_fixed and difficulty 3 (high confidence). Corrections applied: the real-float contract is reattributed to pydantic solution: float (app.py:56) + json.dumps at prep, clarifying that app.py:117's float() acts on the model's predicted output, not ground_truth; the full-dataset gate line reference corrected to ~:474 (the assertion, not the json.loads line). Testcase name verified.
Activity