EMNLP 2024finding7 citations

ChatGLM-Math: Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline

Yifan Xu, Xiao Liu, Xinghan Liu, Zhenyu Hou, Yueyan Li, Xiaohan Zhang, Zihan Wang, Aohan Zeng

Abstract

Large language models (LLMs) have shown excellent mastering of human language but still struggle in real-world applications that require mathematical problem-solving. While many strategies and datasets to enhance LLMs’ mathematics are developed, it remains a challenge to simultaneously maintain and improve both language and mathematical capabilities in deployed LLM systems. In this work, we tailor the Self-Critique pipeline, which addresses the challenge in the feedback learning stage of LLM alignment. We first train a general Math-Critique model from the LLM itself to provide feedback signals. Then, we sequentially employ rejective fine-tuning and direct preference optimization over the LLM’s own generations for data collection. Based on ChatGLM3-32B, we conduct experiments on both academic and our newly created challenging dataset, MathUserEval. Results show that our pipeline significantly enhances the LLM’s mathematical problem-solving while still improving its language ability, outperforming LLMs that could be two times larger. Related techniques have been deployed to ChatGLM, an online serving LLM. Related evaluation datasets and scripts are released at https://github.com/THUDM/ChatGLM-Math.

BibTeX
@inproceedings{xu-etal-2024-chatglm,
    title = "{C}hat{GLM}-Math: Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline",
    author = "Xu, Yifan  and
      Liu, Xiao  and
      Liu, Xinghan  and
      Hou, Zhenyu  and
      Li, Yueyan  and
      Zhang, Xiaohan  and
      Wang, Zihan  and
      Zeng, Aohan  and
      Du, Zhengxiao  and
      Wenyi, Zhao  and
      Tang, Jie  and
      Dong, Yuxiao",
    editor = "Al-Onaizan, Yaser  and
      Bansal, Mohit  and
      Chen, Yun-Nung",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-emnlp.569/",
    doi = "10.18653/v1/2024.findings-emnlp.569",
    pages = "9733--9760"
}
ChatGLM-Math: Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline · EMNLP 2024