Papers › MathFusion: Enhancing Mathematic Problem-solving of LLM through Instruction Fusion

MathFusion: Enhancing Mathematic Problem-solving of LLM through Instruction Fusion

20 Mar 2025arXiv:2503.16212archive 2025-07-28

Qizhi Pei, Lijun Wu, Zhuoshi Pan, Yu Li, Honglin Lin, Chenlin Ming, Xin Gao, Conghui He, Rui Yan

Large Language Models (LLMs) have shown impressive progress in mathematical reasoning. While data augmentation is promising to enhance mathematical problem-solving ability, current approaches are predominantly limited to instance-level modifications-such as rephrasing or generating syntactic variations-which fail to capture and leverage the intrinsic relational structures inherent in mathematical knowledge. Inspired by human learning processes, where mathematical proficiency develops through systematic exposure to interconnected concepts, we introduce MathFusion, a novel framework that enhances mathematical reasoning through cross-problem instruction synthesis. MathFusion implements this through three fusion strategies: (1) sequential fusion, which chains related problems to model solution dependencies; (2) parallel fusion, which combines analogous problems to reinforce conceptual understanding; and (3) conditional fusion, which creates context-aware selective problems to enhance reasoning flexibility. By applying these strategies, we generate a new dataset, \textbf{MathFusionQA}, followed by fine-tuning models (DeepSeekMath-7B, Mistral-7B, Llama3-8B) on it. Experimental results demonstrate that MathFusion achieves substantial improvements in mathematical reasoning while maintaining high data efficiency, boosting performance by 18.0 points in accuracy across diverse benchmarks while requiring only 45K additional synthetic instructions, representing a substantial improvement over traditional single-instruction approaches. Our datasets, models, and code are publicly available at https://github.com/QizhiPei/mathfusion.

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="2503.16212")

Code

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

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

qizhipei/mathfusion officialmentioned in papermentioned on GitHubpytorchApache-2.0 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

18 samples harvested; 10 ran; 0 honoured the contract we drafted; 8 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.

10ran
8unverified

Licence: 0 of the 18 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 qizhipei/mathfusion. “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.

async_wrap qizhipei/mathfusion/evaluation/dart_math/parallel.py official repository ran Apache-2.0 (permissive) · ace871f6d9931df1 · report
extract_ans_from_math_sol qizhipei/mathfusion/evaluation/dart_math/data.py official repository ran fingerprinted Apache-2.0 (permissive) · f184066eadcee200 · report
extract_level_from_math_dp qizhipei/mathfusion/evaluation/dart_math/data.py official repository ran Apache-2.0 (permissive) · 4abb06623d7c704d · report
get_answer_type_text qizhipei/mathfusion/evaluation/dart_math/olympiadbench.py official repository ran Apache-2.0 (permissive) · bed2810b31296fa1 · report
get_pathname_from_name_or_path qizhipei/mathfusion/evaluation/dart_math/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · f249e05f5c701d28 · report
get_single_answer_type_text qizhipei/mathfusion/evaluation/dart_math/olympiadbench.py official repository ran Apache-2.0 (permissive) · 0047d2388e36a9dd · report
load_json qizhipei/mathfusion/evaluation/dart_math/utils.py official repository ran Apache-2.0 (permissive) · 3c40f841274b3441 · report
load_jsonl qizhipei/mathfusion/evaluation/dart_math/utils.py official repository ran Apache-2.0 (permissive) · fb57a712227893bd · report
make_prompt qizhipei/mathfusion/evaluation/dart_math/olympiadbench.py official repository ran Apache-2.0 (permissive) · e6eeb93f5a059925 · report
seq_consume_preset_queue_w_each_timeout qizhipei/mathfusion/evaluation/dart_math/parallel.py official repository ran Apache-2.0 (permissive) · c2dd672c3bad60d7 · report
choice_answer_clean qizhipei/mathfusion/evaluation/dart_math/grader.py official repository unverified Apache-2.0 (permissive) · 809c0178a7ae90ff · report
convert_expr qizhipei/mathfusion/evaluation/latex2sympy/latex2sympy2.py official repository unverified Apache-2.0 (permissive) · 9675ce6b40daf814 · report
convert_relation qizhipei/mathfusion/evaluation/latex2sympy/latex2sympy2.py official repository unverified Apache-2.0 (permissive) · d3b7a1bd2b1b514a · report
get_icl_egs qizhipei/mathfusion/evaluation/dart_math/gen.py official repository unverified Apache-2.0 (permissive) · ecd6408282b087da · report
get_n_shots qizhipei/mathfusion/evaluation/dart_math/gen.py official repository unverified Apache-2.0 (permissive) · ac56cd1c0989eb82 · report
is_digit qizhipei/mathfusion/evaluation/dart_math/grader.py official repository unverified Apache-2.0 (permissive) · fb37d3c84b18e368 · report
latex2sympy qizhipei/mathfusion/evaluation/latex2sympy/latex2sympy2.py official repository unverified Apache-2.0 (permissive) · 699bf6581fe5aa36 · report
parse_digits qizhipei/mathfusion/evaluation/dart_math/grader.py official repository unverified Apache-2.0 (permissive) · 7d4b7f8c3875b126 · report

Tasks

Data AugmentationMathematical Problem-SolvingMathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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