Papers › JiuZhang3.0: Efficiently Improving Mathematical Reasoning by Training Small Data...

JiuZhang3.0: Efficiently Improving Mathematical Reasoning by Training Small Data Synthesis Models

23 May 2024arXiv:2405.14365archive 2025-07-28

Kun Zhou, Beichen Zhang, Jiapeng Wang, Zhipeng Chen, Wayne Xin Zhao, Jing Sha, Zhichao Sheng, Shijin Wang, Ji-Rong Wen

Mathematical reasoning is an important capability of large language models~(LLMs) for real-world applications. To enhance this capability, existing work either collects large-scale math-related texts for pre-training, or relies on stronger LLMs (\eg GPT-4) to synthesize massive math problems. Both types of work generally lead to large costs in training or synthesis. To reduce the cost, based on open-source available texts, we propose an efficient way that trains a small LLM for math problem synthesis, to efficiently generate sufficient high-quality pre-training data. To achieve it, we create a dataset using GPT-4 to distill its data synthesis capability into the small LLM. Concretely, we craft a set of prompts based on human education stages to guide GPT-4, to synthesize problems covering diverse math knowledge and difficulty levels. Besides, we adopt the gradient-based influence estimation method to select the most valuable math-related texts. The both are fed into GPT-4 for creating the knowledge distillation dataset to train the small LLM. We leverage it to synthesize 6 million math problems for pre-training our JiuZhang3.0 model, which only needs to invoke GPT-4 API 9.3k times and pre-train on 4.6B data. Experimental results have shown that JiuZhang3.0 achieves state-of-the-art performance on several mathematical reasoning datasets, under both natural language reasoning and tool manipulation settings. Our code and data will be publicly released in \url{https://github.com/RUCAIBox/JiuZhang3.0}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.14365")

Code

Syntology Ran 3 of 12 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 3 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rucaibox/jiuzhang3.0 officialmentioned in papermentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 3 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran
9unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from rucaibox/jiuzhang3.0. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

generate_completions rucaibox/jiuzhang3.0/eval/model_utils.py official repository ran no licence file found · pointer only · 1525d8bc0fc8d5a0 · report
get_response rucaibox/jiuzhang3.0/eval/math_eval_openai.py official repository ran no licence file found · pointer only · e6e097bbc1e5c6d4 · report
shuffle rucaibox/jiuzhang3.0/prepare_train_data.py official repository ran no licence file found · pointer only · c35f14527d73a1ed · report
compare_numerical_ans rucaibox/jiuzhang3.0/eval/math_utils.py official repository unverified no licence file found · pointer only · 81082f28e1440f9d · report
extract_multi_choice_answer rucaibox/jiuzhang3.0/eval/parser.py official repository unverified no licence file found · pointer only · ed2f4689128f9885 · report
is_digit rucaibox/jiuzhang3.0/eval/grader.py official repository unverified no licence file found · pointer only · fb37d3c84b18e368 · report
is_number rucaibox/jiuzhang3.0/eval/math_utils.py official repository unverified no licence file found · pointer only · 1c1060f6e43d5dfa · report
load_hf_lm_and_tokenizer rucaibox/jiuzhang3.0/eval/model_utils.py official repository unverified no licence file found · pointer only · ee71a94d9dd1b8e9 · report
mp_solve rucaibox/jiuzhang3.0/eval/math_eval_openai.py official repository unverified no licence file found · pointer only · de7ce7175a9cbe34 · report
my_parse_latex rucaibox/jiuzhang3.0/eval/math_utils.py official repository unverified no licence file found · pointer only · 73925940858a62b3 · report
parse_digits rucaibox/jiuzhang3.0/eval/grader.py official repository unverified no licence file found · pointer only · 7d4b7f8c3875b126 · report
str_to_pmatrix rucaibox/jiuzhang3.0/eval/grader.py official repository unverified no licence file found · pointer only · ad19a7a80772794c · report

Tasks

Knowledge DistillationMathMathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGPT-4Knowledge DistillationLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSETSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections