0

Nemotron RL Math Stack Overflow

Fresh

The Nemotron-RL-math-stack_overflow dataset contains mathematical problems and solutions sourced from the Stack Overflow forums. This is an implementation of https://huggingface.co/datasets/nvidia/Nemotron-RL-math-stack_overflow.

Type
RL Env
Runtime
ORS
License
unknown
Size
436336 tasks
Published
Feb 2026
Updated
Mar 2026

Cite

Notes

Only stored in your browser.

Nemotron-RL-Math-Stack-Overflow

⭐ OpenReward Environment Hugging Face Dataset

Description

Nemotron-RL-Math-Stack-Overflow is an environment for evaluating agents on mathematical problem-solving using problems extracted from Stack Overflow. Part of NVIDIA's NeMo Gym framework for reinforcement learning from verifiable reward (RLVR), it provides a large-scale collection of math problems with LLM-based grading for flexible mathematical equivalence checking.

Capabilities

  • Solving mathematical problems across a wide range of topics and difficulty levels
  • Handling various answer formats: fractions, decimals, expressions, boxed notation
  • Step-by-step mathematical reasoning

Compute Requirements

This is a single-turn environment with no sandbox. No special compute resources are required.

License

CC BY-SA 4.0.

Tasks

There are two splits in this environment:

  • Train: 436,306 tasks (one ambiguous dataset row is left out)
  • Validation: 30 tasks

Each task presents a math problem sourced from Stack Overflow and requires the agent to provide a final answer.

Reward Structure

This is a single-turn environment with binary reward:

  • 1.0 — Correct answer (mathematically equivalent to the reference; for a question that asks for any one example or counterexample, any answer that satisfies the question)
  • 0.0 — Incorrect answer

Grading is performed by gpt-5-mini, which evaluates mathematical equivalence across different representations (e.g., 5/9 = 0.555... = \boxed{5/9}). The grader sees the question as well as the reference, so that when the question admits many correct answers (e.g. "provide a counterexample") it checks the student's answer against the question rather than against the single reference. Includes a retry loop (3 attempts; the second and third use low reasoning effort) for robust evaluation. If the grader replies without a verdict on every attempt, the submission is not graded: the agent is told to resubmit, the episode continues, and the attempt does not count. If every attempt fails with an API error, the tool call raises.

Data

The dataset contains math problems and solutions sourced from Stack Overflow forums, extracted using methods similar to the OpenMathReasoning dataset. Only problems with extracted answers are included. Data is stored as a consolidated Parquet file on the OpenReward platform.

Source: nvidia/Nemotron-RL-math-stack_overflow

Tools

ToolDescription
answerSubmit your final answer to the math problem. Accepts numbers, expressions, fractions, boxed notation, etc. Returns binary reward with grading explanation.

Time Horizon

Nemotron-RL-Math-Stack-Overflow is a single-turn environment. The agent receives a math problem and submits one answer for a total of one tool call.

Environment Difficulty

The dataset covers a wide range of mathematical difficulty, from basic arithmetic to advanced topics found on Stack Overflow.

Other Environment Requirements

  • OpenAI API key: Required for LLM-based grading of mathematical equivalence. Pass via secrets={"openai_api_key": "..."}.

Safety

This environment evaluates mathematical reasoning and does not present direct safety risks. Agents interact only with math problems and a grading system.

Citations

@dataset{nvidia_nemotron_rl_math,
  author    = {NVIDIA},
  title     = {Nemotron-RL-math-stack\_overflow},
  year      = {2025},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/nvidia/Nemotron-RL-math-stack_overflow}
}