SkyMath: Technical Report

Liu Yang, Haihua Yang, Wenjun Cheng, Lei Lin, Chenxia Li, Yifu Chen, Lunan Liu, Jianfei Pan, Tianwen Wei, Biye Li, Liang Zhao, Lijie Wang, Bo Zhu, Guoliang Li, Xuejie Wu, Xilin Luo, Rui HuarXiv 2023 · OpenReview

Abstract

Large language models (LLMs) have shown great potential to solve varieties of natural language processing (NLP) tasks, including mathematical reasoning. In this work, we present SkyMath, a large language model for mathematics with 13 billion parameters. By applying self-compare fine-tuning, we have enhanced mathematical reasoning abilities of Skywork-13B-Base remarkably. On GSM8K, SkyMath outperforms all known open-source models of similar size and has established a new SOTA performance.

Introduction

While Large Language Models (LLMs) have revolutionized natural language processing, mathematical reasoning remains a significant hurdle. There is a persistent performance gap between closed-source giants like GPT-4 and open-source models when it comes to multi-step logic and symbolic manipulation. Standard Supervised Fine-Tuning (SFT), where a model mimics "correct" answers, often fails to capture the complex, branching logic required for math.

SkyMath is a new 13-billion parameter LLM specifically optimized to bridge this gap. Built upon the Skywork-13B-Base model, SkyMath focuses on teaching the model not just the right answer, but how to recognize and correct its own mistakes.

Methodology

The development of SkyMath involved two primary strategies: Instruction Boosting and Self-Compare Fine-Tuning.

SkyMath training pipeline overview including Instruction Boosting and Self-compare fine-tuning stages.

Instruction Boosting

Rather than simply increasing data volume, the team focused on increasing data complexity. They mutated existing math problems through four lenses:

  • Concretizing: Making abstract problems more specific.
  • Adding Constraints: Introducing new rules to the problem.
  • Deepening: Increasing the number of logical steps required.
  • Rephrasing: Changing linguistic structure to ensure robustness.

Self-Compare Fine-Tuning

This core innovation mimics human learning from errors. The model generates multiple answers to a problem, and "self-compare prompts" are constructed where the model views its own incorrect attempts alongside the ground truth. This training allows the model to identify and rectify specific logical fallacies in its reasoning.

Datasets

The model was trained and evaluated using several key benchmarks: GSM8K (grade school math), MATH (competition-level problems), and CMath (Chinese Elementary School Math). Additionally, MathInstruct and MetaMathQA were used for initial instruction tuning.

Key Results

SkyMath-13B demonstrated impressive gains over other models in the 13B parameter class, setting new benchmarks for open-source reasoning performance.

Comparison of SkyMath with other 13B parameter models on GSM8K, Math, and CMath benchmarks.

As shown in the table above, SkyMath achieved 72.33% accuracy on GSM8K, establishing a new SOTA for 13B models. It also performed exceptionally well on the Chinese CMath dataset with a score of 77.27%, significantly outperforming competitors like WizardMath and BaiChuan1. On the challenging MATH benchmark, it reached 16.98%, remaining highly competitive without the use of external tools like Python interpreters.

Discussion and Future Work

The success of SkyMath highlights that for reasoning tasks, the difficulty and diversity of training prompts (Instruction Boosting) and the ability to learn from failure (Self-Compare) are more critical than sheer data volume. Furthermore, the strong performance on CMath suggests that mathematical reasoning is a latent ability that transcends language barriers.

While SkyMath leads among open-source models of its size, it still trails behind massive closed-source models like GPT-4. Future work will explore integrating "Program of Thoughts" (PoT) techniques and Reinforcement Learning from Human Feedback (RLHF) to further refine reasoning capabilities.

Summary updated

BibTeX
@misc{yang2023skymath,
  author = {Liu Yang and Haihua Yang and Wenjun Cheng and Lei Lin and Chenxia Li and Yifu Chen and Lunan Liu and Jianfei Pan and Tianwen Wei and Biye Li and Liang Zhao and Lijie Wang and Bo Zhu and Guoliang Li and Xuejie Wu and Xilin Luo and Rui Hu},
  title = {{SkyMath: Technical Report}},
  year = {2023},
  eprint = {2310.16713},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16713},
}
Figure