Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    FileNotFoundError
Message:      Couldn't find any data file at /src/services/worker/jaival17/MATH. Couldn't find 'jaival17/MATH' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/jaival17/MATH@f7c9374719bf513aacd2b50238fe8ee233f5aa18/train.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.toml', '.md', '.lance', '.tsfile', '.vortex', '.fa', '.fasta', '.fna', '.ffn', '.faa', '.frn', '.afa', '.gb', '.gbk', '.genbank', '.fq', '.fastq', '.pdb', '.ent', '.cif', '.mmcif', '.PDB', '.ENT', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
                  config_names = get_dataset_config_names(
                      path=dataset,
                      token=hf_token,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                      path,
                  ...<4 lines>...
                      **download_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1178, in dataset_module_factory
                  raise FileNotFoundError(
                  ...<2 lines>...
                  ) from None
              FileNotFoundError: Couldn't find any data file at /src/services/worker/jaival17/MATH. Couldn't find 'jaival17/MATH' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/jaival17/MATH@f7c9374719bf513aacd2b50238fe8ee233f5aa18/train.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.toml', '.md', '.lance', '.tsfile', '.vortex', '.fa', '.fasta', '.fna', '.ffn', '.faa', '.frn', '.afa', '.gb', '.gbk', '.genbank', '.fq', '.fastq', '.pdb', '.ent', '.cif', '.mmcif', '.PDB', '.ENT', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

MATH (RLVR format)

This is the MATH competition-mathematics dataset (Hendrycks et al., 2021) in the verl-style RLVR (reinforcement learning with verifiable rewards) format. We used it to train and evaluate A-NSR and CW-NSR in our paper Adaptive Negative Reinforcement for LLM Reasoning: Dynamically Balancing Correction and Diversity in RLVR.

The files are an unmodified copy of the preprocessed MATH data released by Zhu et al. with The Surprising Effectiveness of Negative Reinforcement in LLM Reasoning (NeurIPS 2025). The data_source field is TianHongZXY/MATH. We re-host the data so that our experiments can be reproduced with exactly the same files.

Dataset summary

Split Problems Use in our paper
train 7,500 RLVR training (10 epochs, prompt batch size 128)
test 5,000 Evaluation (Pass@k, k = 1 … 256)

Each problem has a difficulty level (1–5), one of seven subjects, a reference step-by-step solution, and a final answer (target). The final answer is used for rule-based reward checking.

Subject distribution

Subject Train Test
Algebra 1,744 1,187
Counting & Probability 771 474
Geometry 870 479
Intermediate Algebra 1,295 903
Number Theory 869 540
Prealgebra 1,205 871
Precalculus 746 546

Difficulty distribution

Level Train Test
Level 1 564 437
Level 2 1,348 894
Level 3 1,592 1,131
Level 4 1,690 1,214
Level 5 2,304 1,324
Level ? (unlabeled in the original data) 2 0

Data fields

Field Type Description
level string Difficulty, "Level 1" … "Level 5"
type string Subject (see table above)
data_source string Always "TianHongZXY/MATH"
prompt list of {role, content} Chat-format prompt: one user message containing the problem statement
ability string Always "math"
reward_model.style string Always "rule" (rule-based verifiable reward)
reward_model.ground_truth.question string Problem statement
reward_model.ground_truth.solution string Reference solution from MATH, with the answer in \boxed{}
reward_model.ground_truth.target string Final answer used for reward computation
extra_info.index int Index within the split
extra_info.split string "train" or "test"

Example

{
  "level": "Level 3",
  "type": "Algebra",
  "data_source": "TianHongZXY/MATH",
  "prompt": [{"role": "user", "content": "How many vertical asymptotes does the graph of $y=\\frac{2}{x^2+x-6}$ have?"}],
  "ability": "math",
  "reward_model": {
    "style": "rule",
    "ground_truth": {
      "question": "How many vertical asymptotes does the graph of $y=\\frac{2}{x^2+x-6}$ have?",
      "solution": "The denominator of the rational function factors into $x^2+x-6=(x-2)(x+3)$. ... Therefore, the graph has $\\boxed{2}$ vertical asymptotes.",
      "target": "2"
    }
  },
  "extra_info": {"index": 0, "split": "test"}
}

Usage

from datasets import load_dataset

ds = load_dataset("<your-username>/MATH-RLVR")
print(ds["train"][0]["prompt"][0]["content"])
print(ds["train"][0]["reward_model"]["ground_truth"]["target"])

The prompt field holds only the raw problem. In our experiments with Qwen2.5-Math-1.5B, it was wrapped in the following chat template, which is the same as in Zhu et al. and SimpleRL-Zoo:

<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
{input}
Please reason step by step, and put your final answer
within \boxed{}.<|im_end|>
<|im_start|>assistant

The reward is binary: a response is correct if the answer in its final \boxed{} matches target under a math-equivalence check, and incorrect otherwise.

Source and license

Citation

If you use this dataset, please cite the original MATH paper and the work whose preprocessing we reuse:

@inproceedings{hendrycks2021math,
  title     = {Measuring Mathematical Problem Solving With the {MATH} Dataset},
  author    = {Hendrycks, Dan and Burns, Collin and Kadavath, Saurav and Arora, Akul and Basart, Steven and Tang, Eric and Song, Dawn and Steinhardt, Jacob},
  booktitle = {NeurIPS Datasets and Benchmarks},
  year      = {2021}
}

@inproceedings{zhu2025nsr,
  title     = {The Surprising Effectiveness of Negative Reinforcement in {LLM} Reasoning},
  author    = {Zhu, Xinyu and Xia, Mengzhou and Wei, Zhepei and Chen, Wei-Lin and Chen, Danqi and Meng, Yu},
  booktitle = {NeurIPS},
  year      = {2025}
}

Our paper:

@article{ingle2026adaptive,
  title  = {Adaptive Negative Reinforcement for {LLM} Reasoning: Dynamically Balancing Correction and Diversity in {RLVR}},
  author = {Ingle, Yash and Chauhan, Jaival and Yadav, Ankit and Mishra, Sudhakar},
  year   = {2026}
}

Code: A-NSR · CW-NSR

Downloads last month
37

Paper for jaival17/MATH