paper-with-me

홈 › Papers

MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Code

2024-10-10 · Zimu Lu, Aojun Zhou, Ke Wang, Houxing Ren, Weikang Shi, Junting Pan, Mingjie Zhan, Hongsheng Li

Code has been shown to be effective in enhancing the mathematical reasoning abilities of large language models due to its precision and accuracy. Previous works involving continued mathematical pretraining often include code that utilizes math-related packages, which are primarily designed for fields such as engineering, machine learning, signal processing, or module testing, rather than being directly focused on mathematical reasoning. In this paper, we introduce a novel method for generating mathematical code accompanied with corresponding reasoning steps for continued pretraining. Our approach begins with the construction of a high-quality mathematical continued pretraining dataset by incorporating math-related web data, code using mathematical packages, math textbooks, and synthetic data. Next, we construct reasoning steps by extracting LaTeX expressions, the conditions needed for the expressions, and the results of the expressions from the previously collected dataset. Based on this extracted information, we generate corresponding code to accurately capture the mathematical reasoning process. Appending the generated code to each reasoning step results in data consisting of paired natural language reasoning steps and their corresponding code. Combining this data with the original dataset results in a 19.2B-token high-performing mathematical pretraining corpus, which we name MathCode-Pile. Training several popular base models with this corpus significantly improves their mathematical abilities, leading to the creation of the MathCoder2 family of models. All of our data processing and training code is open-sourced, ensuring full transparency and easy reproducibility of the entire data collection and training pipeline. The code is released at https://github.com/mathllm/MathCoder2 .

📄 PDF Abstract BibTeX arXiv:2410.08196

Code (1)

mathllm/mathcoder2 공식 구현

Tasks

MathMathematical Reasoning

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar Papers 제목 키워드 기반

MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning

2023-10-05 · Ke Wang, Houxing Ren, Aojun Zhou, Zimu Lu 외

The recently released GPT-4 Code Interpreter has demonstrated remarkable proficiency in solving challenging math problems, primarily attributed to its ability to seamlessly reason with natural language, generate code, ex…

Arithmetic ReasoningGSM8KMathMathematical Reasoning+1

MathCoder-VL: Bridging Vision and Code for Enhanced Multimodal Mathematical Reasoning

2025-05-15 · Ke Wang, Junting Pan, Linda Wei, Aojun Zhou 외

Natural language image-caption datasets, widely used for training Large Multimodal Models, mainly focus on natural scenarios and overlook the intricate details of mathematical figures that are critical for problem-solvin…

cross-modal alignmentGeometry Problem SolvingMathMathematical Reasoning

Synthetic continued pretraining

2024-09-11 · Zitong Yang, Neil Band, Shuangping Li, Emmanuel Candès 외

Pretraining on large-scale, unstructured internet text enables language models to acquire a significant amount of world knowledge. However, this knowledge acquisition is data-inefficient--to learn a given fact, models mu…

Data AugmentationLanguage ModellingRetrieval-augmented GenerationWorld Knowledge

Improving LLMs' Generalized Reasoning Abilities by Graph Problems

2025-07-23 · Qifan Zhang, Nuo Chen, Zehua Li, Miao Peng 외 arxiv

Large Language Models (LLMs) have made remarkable strides in reasoning tasks, yet their performance often falters on novel and complex problems. Domain-specific continued pretraining (CPT) methods, such as those tailored…

Mathematical ReasoningRelational Reasoning

EstLLM: Enhancing Estonian Capabilities in Multilingual LLMs via Continued Pretraining and Post-Training

2026-03-02 · Aleksei Dorkin, Taido Purason, Emil Kalbaliyev, Hele-Andra Kuulmets 외 arxiv

Large language models (LLMs) are predominantly trained on English-centric data, resulting in uneven performance for smaller languages. We study whether continued pretraining (CPT) can substantially improve Estonian capab…