atlas

Research map / Large language models / Agents, code and math

Neuro-Symbolic Data Generation for Math Reasoning

NeurIPS 2024 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a neuro-symbolic framework that mutates formal (SMT-LIB) math problems via projected MCMC and symbolic solvers, informalizes them with GPT-4, and fine-tunes LLaMA-2 and Mistral on the resulting 860K-example dataset.

Problem

LLMs remain weak at mathematical reasoning, and existing math data generation either sacrifices validity (prompt-based rephrasing) or diversity (template-based rewriting), limiting high-quality supervised math data.

Approach

Generate math problems by mutating formalized SMT-LIB problems with simplification and complication operators, sample auxiliary variables via projected MCMC with symbolic solver inverse projection to ensure validity and diversity, then informalize back to natural language with GPT-4 and verify reasoning paths with symbolic solvers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on neuro-symbolically generated math data instead of existing baseline dataLLaMA-2 7B · GSM8Kaccuracy: 68.4 -> 79.0; +10.6Helped
Train on neuro-symbolically generated math data instead of existing baseline dataLLaMA-2 7B · MATHaccuracy: 19.8 -> 30.4; +10.6Helped
Train on neuro-symbolically generated math data instead of existing baseline dataLLaMA-2 13B · GSM8Kaccuracy: 72.3 -> 84.1; +10.1Helped
Train on neuro-symbolically generated math data instead of existing baseline dataLLaMA-2 13B · MATHaccuracy: 22.4 -> 33.7; +11.3Helped
Train on neuro-symbolically generated math data instead of existing baseline dataMistral 7B · GSM8Kaccuracy: 83.2 -> 86.8; +3.6Helped
Train on neuro-symbolically generated math data instead of existing baseline dataMistral 7B · MATHaccuracy: 33.0 -> 37.3; +4.3Helped
Use neuro-symbolically generated data rather than MetaMathQA with the same 240K GSM8K training budgetLLaMA-2 7B · GSM8Kaccuracy: 66.1 -> 72.7; ↑6.6Helped
Use neuro-symbolically generated data rather than MetaMathQA with the same 240K GSM8K training budgetLLaMA-2 7B · SVAMPaccuracy: 61.7 -> 78.8; ↑17.1Helped
Use neuro-symbolically generated data rather than MetaMathQA with the same 155K MATH training budgetLLaMA-2 7B · GSM8Kaccuracy: 28.6 -> 42.1; ↑ 13.5Helped
Use neuro-symbolically generated data rather than MetaMathQA with the same 155K MATH training budgetLLaMA-2 7B · SVAMPaccuracy: 49.0 -> 73.4; ↑ 24.4Helped
Add the mutation operation to informalization (ablation)GPT-4 informalization · GSM8K sample (1,000 problems)consistency rate: 75.6 -> 41.6Hurt
Use informalization pattern P1 (operations 1–5) (ablation)GPT-4 informalization · GSM8K sample (1,000 problems)consistency rate: 90.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K MATH MetaMathQA SVAMP ASDiv DyVal

Benchmarks: GSM8K MATH SVAMP ASDiv DyVal Hungarian High School National Finals Exam

Metrics: accuracy (pass@1) BLEU score for contamination consistency rate diversity gain

Baselines: WizardMath MuggleMATH MAmmoTH MetaMath MetaMathQA Tora

Builds on: MetaMath projected MCMC SMT-LIB PySMT QLoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy