Mathoctopus/Cross_7B

Model

πŸ™ Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations

2

10 commits

1 linked in READMEs

updated Nov 2, 2023

See the code

README

πŸ™ Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations

Project Page: https://mathoctopus.github.io/

Paper: https://arxiv.org/abs/2310.20246.pdf

Code: https://github.com/microsoft/MathOctopus

Introduction

We introduce πŸ™ MathOctopus, a series of open-source large language models (LLMs) specifically tailored for multilingual math problem-solving. The MathOctopus models are trained on πŸ€— MGSM8KInstruct Dataset, encompassing ten distinct languages. MathOctopus notably outperforms conventional open-source LLMs and exhibits superiority over ChatGPT in few-shot scenarios.

Datasets

MGSM8KInstruct

Training DatasetEnSwZhBnDeEsFrJaRuThOverall
MGSM8KInstruct747374727466653974667470746974717361747373.6K

MSVAMP

Test DatasetEnSwZhBnDeEsFrJaRuThOverall
MSVAMP100010001000100010001000100010001000100010K

Usage

Our dataset and models are all available at Huggingface.

πŸ€— MGSM8KInstruct_Parallel Dataset

πŸ€— MGSM8KInstruct_Cross Dataset

πŸ€— MSVAMP Dataset

Models

Base Model: LLamaParallel-TrainingCross-Training
7B-LLaMA 2πŸ™ MathOctopus-Parallel-7BπŸ™ MathOctopus-Cross-7B
πŸ™MathOctopus-Parallel-xRFT-7BπŸ™MathOctopus-Cross-xRFT-7B
13B-LLaMA 2πŸ™ MathOctopus-Parallel-13BπŸ™ MathOctopus-Cross-13B
πŸ™MathOctopus-Parallel-xRFT-13BπŸ™[MathOctopus-Cross-xRFT-13B]
33B-LLaMA 1πŸ™ MathOctopus-Parallel-33BπŸ™ [MathOctopus-Cross-33B]
70B-LLaMA 2Coming soon!Coming Soon!

*-Parallel refers to our model trained with the parallel-training strategy.

*-Cross refers to our model trained with cross-training strategy.

*-xRFT means we train the model with multilingual rejection sampling.

Overall Results on MGSM

7B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC52.023.631.618.838.039.236.427.233.621.632.2
xRFT-MathOctopusC51.224.033.218.836.041.237.629.636.425.233.3
MathOctopusP-LoRA30.415.223.610.422.824.826.418.022.014.820.8
MathOctopusP52.439.238.428.844.842.443.636.039.634.440.0
xRFT-MathOctopusP54.838.445.233.243.645.238.035.648.436.441.9

13B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC56.427.239.224.047.649.647.640.442.024.839.9
xRFT-MathOctopusC53.628.045.221.248.046.446.035.245.628.839.8
MathOctopusP53.242.848.835.244.448.048.443.247.646.845.8
xRFT-MathOctopusP51.646.051.242.049.253.249.639.647.646.047.6

30-34B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC55.624.436.019.240.451.244.427.237.221.635.7
xRFT-MathOctopusC53.627.634.419.247.247.644.830.838.822.836.7
MathOctopusP56.446.852.035.247.253.248.039.245.641.246.5
xRFT-MathOctopusP51.647.252.437.651.252.844.441.650.047.647.6

Overall Results on MSVAMP

7B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC49.236.643.630.248.646.846.442.546.734.042.5
xRFT-MathOctopusC49.937.743.332.946.547.647.342.746.636.243.1
MathOctopusP-LoRA30.415.223.610.422.824.826.418.022.014.820.8
MathOctopusP46.540.142.529.143.545.446.042.545.435.741.7
xRFT-MathOctopusP46.842.343.232.843.144.545.343.242.140.542.4

13B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC56.640.449.030.350.954.254.746.352.435.747.1
xRFT-MathOctopusC52.941.949.234.150.552.851.545.850.235.746.5
MathOctopusP50.743.442.631.848.449.450.641.146.939.344.4
xRFT-MathOctopusP44.643.446.434.247.748.249.943.148.239.544.5

30-34B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC51.542.146.223.250.552.152.942.250.533.444.5
xRFT-MathOctopusC48.142.843.623.348.750.048.943.444.635.542.9
MathOctopusP56.446.852.035.247.253.248.039.245.641.246.5
xRFT-MathOctopusP48.042.346.136.247.548.548.345.847.241.245.1

MathOctopus in English

ModelsGSM8KSVAMP
LLaMA 2-7B42.438.3
MathOctopusP-7B49.346.8
MathOctopusC-7B50.849.3
LLaMA 2-13B51.050.9
MathOctopusP-13B55.552.1
MathOctopusC-13B56.656.6
LLaMA 1-33B50.049.0
MathOctopusP-33B56.052.5
MathOctopusC-33B53.751.5

Intended Uses

These models are trained for research purposes. They are designed to solve multilingual math problems. They can be used in educational software, tutoring systems, or any application where a solution to a math problem is needed.

Citation

Please cite our paper if you use our data, model or code. Please also kindly cite the original dataset papers.

@misc{chen2023breaking,
      title={Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations}, 
      author={Nuo Chen and Zinan Zheng and Ning Wu and Linjun Shou and Ming Gong and Yangqiu Song and Dongmei Zhang and Jia Li},
      year={2023},
      eprint={2310.20246},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
endpoints_compatible
llama
pytorch
text-generation
text-generation-inference
transformers

Mathoctopus/Cross_7B

Model

πŸ™ Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations

2

10 commits

1 linked in READMEs

updated Nov 2, 2023

See the code

README

πŸ™ Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations

Project Page: https://mathoctopus.github.io/

Paper: https://arxiv.org/abs/2310.20246.pdf

Code: https://github.com/microsoft/MathOctopus

Introduction

We introduce πŸ™ MathOctopus, a series of open-source large language models (LLMs) specifically tailored for multilingual math problem-solving. The MathOctopus models are trained on πŸ€— MGSM8KInstruct Dataset, encompassing ten distinct languages. MathOctopus notably outperforms conventional open-source LLMs and exhibits superiority over ChatGPT in few-shot scenarios.

Datasets

MGSM8KInstruct

Training DatasetEnSwZhBnDeEsFrJaRuThOverall
MGSM8KInstruct747374727466653974667470746974717361747373.6K

MSVAMP

Test DatasetEnSwZhBnDeEsFrJaRuThOverall
MSVAMP100010001000100010001000100010001000100010K

Usage

Our dataset and models are all available at Huggingface.

πŸ€— MGSM8KInstruct_Parallel Dataset

πŸ€— MGSM8KInstruct_Cross Dataset

πŸ€— MSVAMP Dataset

Models

Base Model: LLamaParallel-TrainingCross-Training
7B-LLaMA 2πŸ™ MathOctopus-Parallel-7BπŸ™ MathOctopus-Cross-7B
πŸ™MathOctopus-Parallel-xRFT-7BπŸ™MathOctopus-Cross-xRFT-7B
13B-LLaMA 2πŸ™ MathOctopus-Parallel-13BπŸ™ MathOctopus-Cross-13B
πŸ™MathOctopus-Parallel-xRFT-13BπŸ™[MathOctopus-Cross-xRFT-13B]
33B-LLaMA 1πŸ™ MathOctopus-Parallel-33BπŸ™ [MathOctopus-Cross-33B]
70B-LLaMA 2Coming soon!Coming Soon!

*-Parallel refers to our model trained with the parallel-training strategy.

*-Cross refers to our model trained with cross-training strategy.

*-xRFT means we train the model with multilingual rejection sampling.

Overall Results on MGSM

7B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC52.023.631.618.838.039.236.427.233.621.632.2
xRFT-MathOctopusC51.224.033.218.836.041.237.629.636.425.233.3
MathOctopusP-LoRA30.415.223.610.422.824.826.418.022.014.820.8
MathOctopusP52.439.238.428.844.842.443.636.039.634.440.0
xRFT-MathOctopusP54.838.445.233.243.645.238.035.648.436.441.9

13B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC56.427.239.224.047.649.647.640.442.024.839.9
xRFT-MathOctopusC53.628.045.221.248.046.446.035.245.628.839.8
MathOctopusP53.242.848.835.244.448.048.443.247.646.845.8
xRFT-MathOctopusP51.646.051.242.049.253.249.639.647.646.047.6

30-34B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC55.624.436.019.240.451.244.427.237.221.635.7
xRFT-MathOctopusC53.627.634.419.247.247.644.830.838.822.836.7
MathOctopusP56.446.852.035.247.253.248.039.245.641.246.5
xRFT-MathOctopusP51.647.252.437.651.252.844.441.650.047.647.6

Overall Results on MSVAMP

7B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC49.236.643.630.248.646.846.442.546.734.042.5
xRFT-MathOctopusC49.937.743.332.946.547.647.342.746.636.243.1
MathOctopusP-LoRA30.415.223.610.422.824.826.418.022.014.820.8
MathOctopusP46.540.142.529.143.545.446.042.545.435.741.7
xRFT-MathOctopusP46.842.343.232.843.144.545.343.242.140.542.4

13B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC56.640.449.030.350.954.254.746.352.435.747.1
xRFT-MathOctopusC52.941.949.234.150.552.851.545.850.235.746.5
MathOctopusP50.743.442.631.848.449.450.641.146.939.344.4
xRFT-MathOctopusP44.643.446.434.247.748.249.943.148.239.544.5

30-34B ModelEnSwZhBnDeEsFrJaRuThOverall
MathOctopusC51.542.146.223.250.552.152.942.250.533.444.5
xRFT-MathOctopusC48.142.843.623.348.750.048.943.444.635.542.9
MathOctopusP56.446.852.035.247.253.248.039.245.641.246.5
xRFT-MathOctopusP48.042.346.136.247.548.548.345.847.241.245.1

MathOctopus in English

ModelsGSM8KSVAMP
LLaMA 2-7B42.438.3
MathOctopusP-7B49.346.8
MathOctopusC-7B50.849.3
LLaMA 2-13B51.050.9
MathOctopusP-13B55.552.1
MathOctopusC-13B56.656.6
LLaMA 1-33B50.049.0
MathOctopusP-33B56.052.5
MathOctopusC-33B53.751.5

Intended Uses

These models are trained for research purposes. They are designed to solve multilingual math problems. They can be used in educational software, tutoring systems, or any application where a solution to a math problem is needed.

Citation

Please cite our paper if you use our data, model or code. Please also kindly cite the original dataset papers.

@misc{chen2023breaking,
      title={Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations}, 
      author={Nuo Chen and Zinan Zheng and Ning Wu and Linjun Shou and Ming Gong and Yangqiu Song and Dongmei Zhang and Jia Li},
      year={2023},
      eprint={2310.20246},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
endpoints_compatible
llama
pytorch
text-generation
text-generation-inference
transformers