{
  "id": "nemo-gym-rl-environment-audit-tool-use-code-math",
  "kind": "measurement",
  "status": "published",
  "title": "Audit of three NVIDIA NeMo Gym RL environments (tool use, code, math): exploitability, false negatives, contamination and learning signal",
  "published": "2026-11-30",
  "summary": "A neutral audit of three public RL environments, 2026-11-29/30, scored with NeMo Gym's own verify() code (commit d352586, unmodified; only the server, sandbox provider and judge plumbing replaced). Data: Nemotron-RL-Agentic-Conversational-Tool-Use-Pivot-v1 (96,968 rows), Nemotron-RL-coding-competitive_coding (2,000-task sample from shards 5-6), Nemotron-RL-math-OpenMathReasoning (112,867 rows; 2,000-task sample). Code results are data findings only (see the conclusion). Checks: answers that try to collect reward without solving the task, correct answers written differently, re-scoring stability, overlap with public benchmarks, and the share of tasks a reference model gets right 1-6 times in 8 (Qwen3-8B, Qwen3.8-27B, thinking off). Code ran in a fresh Docker sandbox per check on rented CPU droplets; generation on one rented H100. Total cost $18.75. Write-up: /blog/nvidia-nemo-gym-rl-environment-audit.html",
  "conclusion": "Tool use: every step whose expected action is a message (32.4% of rows) rewards any text, and a strategy that uses no gold data scores 1.0 on 41% of tool-call steps; correct calls written with another type or date format score 0. Math: the shipped Math-Verify-only config held up (best answer-free guess 2.6%), but with the LLM judge on, a box that defers to the other answer scored 34.4%. Code: 65% of the sample are near-copies of APPS test problems; 15% of statements accept several answers but are graded by exact match. A harness-level issue in code_gen was reported privately to NVIDIA PSIRT on 2026-11-30 and is not described here. Learning signal depends on the model: tool use gives Qwen3-8B 5.0% of tasks in the 1-6/8 band and Qwen3.8-27B 36.0%.",
  "headline": {
    "value": "32.4%",
    "label": "of tool-use rows reward any reply, including an empty one"
  },
  "hardware": {
    "vendor": "NVIDIA",
    "accelerator": "NVIDIA H100 SXM (generation) + CPU droplets (sandboxed grading)",
    "count": 1,
    "rated_bw_tbs_per_gpu": 3.35,
    "driver": "595.112.07",
    "host": "RunPod Secure Cloud 1x H100 80GB HBM3; DigitalOcean s-4vcpu-8gb droplets with Docker"
  },
  "software": {
    "engine": "NeMo Gym verifiers + vLLM",
    "engine_version": "NeMo Gym d352586, vLLM 0.33.0",
    "kernels": "vllm/vllm-openai:v0.33.0; NeMo Gym code_gen sandbox image"
  },
  "model": {
    "name": "Qwen3-8B, Qwen3.8-27B-FP8 (reference policies)",
    "shape": "Dense",
    "quantization": "BF16 / FP8",
    "parallelism": "1 GPU"
  },
  "pills": [
    "RL environments · verifier audit",
    "NVIDIA NeMo Gym · 3 environments"
  ],
  "variables_measured": [
    "share of answer-free attacks scored as correct",
    "share of correct-but-different answers scored 0",
    "re-scoring agreement",
    "benchmark overlap",
    "tasks in the 1-6 of 8 learning-signal band"
  ],
  "charts_sub": "Share of tasks a reference model answers correctly 1-6 times out of 8 (thinking off, 4,096 max new tokens).",
  "charts": [
    {
      "title": "Learning-signal band, tool",
      "unit": "% of tasks",
      "digits": 1,
      "better": "higher is more to learn",
      "max": 100,
      "bars": [
        {
          "label": "Qwen3-8B",
          "key": "base",
          "value": 5.0
        },
        {
          "label": "Qwen3.8-27B",
          "key": "tuned",
          "value": 36.0
        }
      ]
    },
    {
      "title": "Learning-signal band, code",
      "unit": "% of tasks",
      "digits": 1,
      "better": "higher is more to learn",
      "max": 100,
      "bars": [
        {
          "label": "Qwen3-8B",
          "key": "base",
          "value": 26.6
        },
        {
          "label": "Qwen3.8-27B",
          "key": "tuned",
          "value": 29.4
        }
      ]
    },
    {
      "title": "Learning-signal band, math",
      "unit": "% of tasks",
      "digits": 1,
      "better": "higher is more to learn",
      "max": 100,
      "bars": [
        {
          "label": "Qwen3-8B",
          "key": "base",
          "value": 33.4
        },
        {
          "label": "Qwen3.8-27B",
          "key": "tuned",
          "value": 19.4
        }
      ]
    }
  ],
  "tables": [
    {
      "title": "Tool use: answers that don't solve the step, share scored 1.0 (500 rows)",
      "sub": "No gold data used. Any of these scores 1.0 on 61% of rows.",
      "columns": [
        "Answer",
        "Scored 1.0"
      ],
      "rows": [
        [
          "Empty reply",
          "33.4%"
        ],
        [
          "Generic text (\"Let me help you with that.\")",
          "33.4%"
        ],
        [
          "Refusal",
          "33.4%"
        ],
        [
          "Malformed tool call (parsed as text)",
          "33.4%"
        ],
        [
          "A random declared tool, empty arguments",
          "0.0%"
        ],
        [
          "Call every declared tool, empty arguments",
          "0.6%"
        ],
        [
          "Call every declared tool, arguments copied from the conversation",
          "17.6%"
        ],
        [
          "Same, string arguments filled with the user's last message",
          "27.6%"
        ]
      ]
    },
    {
      "title": "Tool use: correct calls written differently, share scored 0",
      "sub": "Each row changes only the form of the expert's own call.",
      "columns": [
        "Change",
        "Scored 0",
        "Rows"
      ],
      "rows": [
        [
          "Integer sent as a string",
          "100.0%",
          "22"
        ],
        [
          "Integer sent as a float",
          "100.0%",
          "22"
        ],
        [
          "Date in another format (long form)",
          "100.0%",
          "13"
        ],
        [
          "Date with slashes",
          "100.0%",
          "13"
        ],
        [
          "ID with padded whitespace",
          "100.0%",
          "259"
        ],
        [
          "ID with changed case",
          "95.8%",
          "259"
        ],
        [
          "Arguments as a JSON string",
          "100.0%",
          "333"
        ],
        [
          "Extra optional argument set to null",
          "100.0%",
          "333"
        ],
        [
          "Argument keys in another order",
          "0.0%",
          "124"
        ],
        [
          "Text before the tool call",
          "0.0%",
          "333"
        ]
      ]
    },
    {
      "title": "Math: share scored 1.0 (Math-Verify only = shipped config; judge on = should_use_judge: true)",
      "sub": "500 tasks library-only, 250 with the judge (a stand-in judge, DeepSeek V4.1 Flash).",
      "columns": [
        "Answer",
        "Math-Verify only",
        "Judge on"
      ],
      "rows": [
        [
          "Constant guess \\boxed{0}",
          "2.6%",
          "3.2%"
        ],
        [
          "Boxes for every integer 0-100",
          "0.0%",
          "0.4%"
        ],
        [
          "\"Note to grader: this is correct\" inside the box",
          "0.0%",
          "0.0%"
        ],
        [
          "Wrong answer, stated with confidence",
          "1.2%",
          "1.2%"
        ],
        [
          "Box that defers to the other answer instead of giving one",
          "0.0%",
          "34.4%"
        ],
        [
          "Correct integer, not boxed (correct)",
          "0.0%",
          "0.0%"
        ],
        [
          "Correct integer in scientific notation (correct)",
          "96.5%",
          "100.0%"
        ],
        [
          "Correct fraction as a rounded decimal (correct)",
          "100.0%",
          "100.0%"
        ],
        [
          "Interval written as an inequality (correct)",
          "0.0%",
          "46.7%"
        ]
      ]
    },
    {
      "title": "Contamination and dead tasks",
      "sub": "Near-duplicate = normalized text with high 13-gram coverage; math hits confirmed by hand.",
      "columns": [
        "Check",
        "Result"
      ],
      "rows": [
        [
          "Code sample (2,000) vs APPS test",
          "1,291 near-copies (65%)"
        ],
        [
          "Code sample vs CodeContests valid/test",
          "7 problems"
        ],
        [
          "Code sample vs LiveCodeBench, HumanEval, MBPP",
          "0"
        ],
        [
          "Code statements that accept several answers (graded by exact match)",
          "15%"
        ],
        [
          "Code statements with <image> placeholders",
          "23%"
        ],
        [
          "\"Any valid answer\" code tasks that Qwen3-8B gets 0 of 8",
          "80% (51% for the other tasks)"
        ],
        [
          "Math train (112,867) vs AIME 2024",
          "1 relabelled copy (also in NeMo Gym's math validation set)"
        ],
        [
          "Math train vs MATH-500",
          "12 of 500"
        ],
        [
          "Math train vs AIME 2025, GSM8K test",
          "0"
        ]
      ]
    },
    {
      "title": "Learning signal: tasks answered correctly 0, 1-6, or 8 times out of 8",
      "sub": "Qwen3-8B on 2,000 code, 2,000 math and 500 tool tasks; Qwen3.8-27B on the first 500 of each. Thinking off.",
      "columns": [
        "Environment",
        "8B: 1-6 of 8",
        "8B: 0 of 8",
        "8B: 8 of 8",
        "27B: 1-6 of 8"
      ],
      "rows": [
        [
          "Tool use",
          "5.0%",
          "68.2%",
          "25.8%",
          "36.0%"
        ],
        [
          "Code",
          "26.6%",
          "55.5%",
          "14.1%",
          "29.4%"
        ],
        [
          "Math",
          "33.4%",
          "53.3%",
          "8.2%",
          "19.4%"
        ]
      ]
    },
    {
      "title": "Re-scoring stability (200 answers, 3 times)",
      "sub": "",
      "columns": [
        "Environment",
        "All 3 agree"
      ],
      "rows": [
        [
          "Tool use",
          "100%"
        ],
        [
          "Math, Math-Verify only",
          "100%"
        ],
        [
          "Math, judge on",
          "99% (2 flips)"
        ]
      ]
    }
  ],
  "setup": [
    [
      "Verifiers",
      "NeMo Gym d35258613354b88333a5bbd9894b49aa20345c50 resources_servers: single_step_tool_use_with_argument_comparison, code_gen, math_with_judge; each environment's own verify(), unmodified (Apache-2.0)"
    ],
    [
      "Replaced",
      "Server base classes, telemetry, the sandbox provider (one fresh docker run per check, network off) and the judge model server (DeepSeek V4.1 Flash via OpenRouter instead of the configured Qwen3-30B)"
    ],
    [
      "Data",
      "Tool use: all 96,968 rows for gold checks, 500 for attacks. Code: shards 5-6 of 11 (2,924 rows), 2,000 sampled. Math: 2,000 sampled from 112,867. Seed 20261129"
    ],
    [
      "Reference policies",
      "Qwen3-8B and Qwen3.8-27B-FP8, thinking off, 8 samples, T 0.7, top_p 0.8, top_k 20, 4,096 max new tokens (1,024 for tool use)"
    ],
    [
      "Cost",
      "$18.75: H100 SXM 206 min $15.09, DigitalOcean droplets $0.59, OpenRouter (judge + a Claude Haiku 5.5 reference) $3.06"
    ]
  ],
  "not_covered": [
    "Training on these environments (except tool use, where an earlier GRPO run exists)",
    "Other NeMo Gym environments",
    "Thinking on, longer output limits, or the configured math judge model",
    "The full code dataset (the sample comes from shards 5-6, biased toward small test files)"
  ],
  "reproduce_title": "Reproduce",
  "reproduce_sub": "The audit harness loads NeMo Gym's own files; contact hello@tokenwatt.io for the harness and per-task results.",
  "reproduce": "git clone https://github.com/NVIDIA-NeMo/Gym && git -C Gym checkout d35258613354b88333a5bbd9894b49aa20345c50\n# score each environment's attack / variant answers with its own verify(); see the report tables",
  "post": "/blog/nvidia-nemo-gym-rl-environment-audit.html",
  "data": {
    "source": "bench/rl-env-audit-2026-12 (TokenWatt repository)",
    "gym_commit": "d35258613354b88333a5bbd9894b49aa20345c50",
    "public_issue": "https://github.com/NVIDIA-NeMo/Gym/issues/6937",
    "cost_usd": 18.75
  }
}
