Beyond Accuracy: Dissecting Mathematical Reasoning for LLMs Under Reinforcement Learning
Paper • 2506.04723 • Published • 1
Run sparkle-reasoning/SparkleRL-7B-Stage1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/sparkle-reasoning/SparkleRL-7B-Stage1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/sparkle-reasoning/SparkleRL-7B-Stage1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use sparkle-reasoning/SparkleRL-7B-Stage1 with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("sparkle-reasoning/SparkleRL-7B-Stage1")
model = AutoModelForCausalLM.from_pretrained("sparkle-reasoning/SparkleRL-7B-Stage1", device_map="auto")SparkleRL-7B-Stage1 is the Stage 1 RL-tuned model used in the paper Beyond Accuracy: Dissecting Mathematical Reasoning for LLMs Under Reinforcement Learning.
Paper: https://arxiv.org/abs/2506.04723
Code: https://github.com/sparkle-reasoning/sparkle
Project Page: https://sparkle-reasoning.github.io/
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
name = "sparkle-reasoning/SparkleRL-7B-Stage1"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(
name, torch_dtype=torch.float16, device_map="auto"
)
prompt = "Solve step by step: If 3x + 5 = 20, what is x?"
inp = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inp, max_new_tokens=256)
print(tok.decode(out[0], skip_special_tokens=True))
@misc{wang2025accuracydissectingmathematicalreasoning,
title={Beyond Accuracy: Dissecting Mathematical Reasoning for LLMs Under Reinforcement Learning},
author={Jiayu Wang and Yifei Ming and Zixuan Ke and Caiming Xiong and Shafiq Joty and Aws Albarghouthi and Frederic Sala},
year={2025},
eprint={2506.04723},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2506.04723},
}