Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMs
|
2 |
+
|
3 |
+
This is a model for the paper "[MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMs](https://arxiv.org/pdf/2402.16352.pdf)".
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
## News
|
9 |
+
|
10 |
+
- **[2024-02-26]** Our paper is now accessible at [ArXiv Paper](https://arxiv.org/pdf/2402.16352.pdf).
|
11 |
+
|
12 |
+
## Introduction
|
13 |
+
|
14 |
+
Large language models (LLMs) have exhibited great potential in mathematical reasoning. However, there remains a performance gap in this area between existing open-source models and closed-source models such as GPT-4.
|
15 |
+
|
16 |
+
In this paper, we introduce **MathGenie**, a novel method for generating diverse and reliable math problems from a small-scale problem-solution dataset (denoted as *seed data*). We augment the ground-truth solutions of our seed data and train a back-translation model to translate the augmented solutions back into new questions. Subsequently, we generate code-integrated solutions for the new questions. To ensure the correctness of the code-integrated solutions, we employ rationale-based strategy for solution verification.
|
17 |
+
|
18 |
+
Various pretrained models, ranging from 7B to 70B, are trained on the newly curated data to test the effectiveness of the proposed augmentation technique, resulting in a family of models known as *MathGenieLM*. These models consistently outperform previous open-source models across five representative mathematical reasoning datasets, achieving state-of-the-art performance. In particular, MathGenieLM-InternLM2 achieves an accuracy of 87.7% on GSM8K and 55.7% on MATH, securing the best overall score among open-source language models.
|
19 |
+
|
20 |
+
You can refer to the [project homepage](https://mathgenie.github.io/) and [the paper](https://arxiv.org/pdf/2402.16352.pdf) for more details.
|
21 |
+
|
22 |
+
## Usage
|
23 |
+
|
24 |
+
### Models
|
25 |
+
|
26 |
+
Our [MathGenie-InterLM-20B](https://huggingface.co/MathGenie/MathGenie-InterLM-20B) model is available at Huggingface now.
|
27 |
+
|
28 |
+
| Base Model | Model |
|
29 |
+
| ------------ | ------------------------------------------------------------ |
|
30 |
+
| InternLM-20B | [MathGenie-InterLM-20B](https://huggingface.co/MathGenie/MathGenie-InterLM-20B) |
|
31 |
+
|
32 |
+
### Inference & Evaluation
|
33 |
+
|
34 |
+
Please refer to the [MathCoder repo](https://github.com/mathllm/MathCoder) for the detailed code for inference and evaluation of our MathGenieLM models.
|
35 |
+
|
36 |
+
## Citation
|
37 |
+
|
38 |
+
If you find this paper helpful to your research, please kindly cite this BibTex:
|
39 |
+
|
40 |
+
```
|
41 |
+
@misc{lu2024mathgenie,
|
42 |
+
title={MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMs},
|
43 |
+
author={Zimu Lu and Aojun Zhou and Houxing Ren and Ke Wang and Weikang Shi and Junting Pan and Mingjie Zhan and Hongsheng Li},
|
44 |
+
year={2024},
|
45 |
+
eprint={2402.16352},
|
46 |
+
archivePrefix={arXiv},
|
47 |
+
primaryClass={cs.CL}
|
48 |
+
}
|
49 |
+
```
|
50 |
+
|
51 |
+
```
|
52 |
+
@inproceedings{
|
53 |
+
wang2024mathcoder,
|
54 |
+
title={MathCoder: Seamless Code Integration in {LLM}s for Enhanced Mathematical Reasoning},
|
55 |
+
author={Ke Wang and Houxing Ren and Aojun Zhou and Zimu Lu and Sichun Luo and Weikang Shi and Renrui Zhang and Linqi Song and Mingjie Zhan and Hongsheng Li},
|
56 |
+
booktitle={The Twelfth International Conference on Learning Representations},
|
57 |
+
year={2024},
|
58 |
+
url={https://openreview.net/forum?id=z8TW0ttBPp}
|
59 |
+
}
|
60 |
+
```
|