paper-with-me

Papers

MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning

2023-10-05 · Ke Wang, Houxing Ren, Aojun Zhou, Zimu Lu, Sichun Luo, Weikang Shi, Renrui Zhang, Linqi Song, Mingjie Zhan, Hongsheng Li

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, execute code, and continue reasoning based on the execution output. In this paper, we present a method to fine-tune open-source language models, enabling them to use code for modeling and deriving math equations and, consequently, enhancing their mathematical reasoning abilities. We propose a method of generating novel and high-quality datasets with math problems and their code-based solutions, referred to as MathCodeInstruct. Each solution interleaves natural language, code, and execution results. We also introduce a customized supervised fine-tuning and inference approach. This approach yields the MathCoder models, a family of models capable of generating code-based solutions for solving challenging math problems. Impressively, the MathCoder models achieve state-of-the-art scores among open-source LLMs on the MATH (45.2%) and GSM8K (83.9%) datasets, substantially outperforming other open-source alternatives. Notably, the MathCoder model not only surpasses ChatGPT-3.5 and PaLM-2 on GSM8K and MATH but also outperforms GPT-4 on the competition-level MATH dataset. The dataset and models will be released at https://github.com/mathllm/MathCoder.

📄 PDF Abstract BibTeX arXiv:2310.03731

Code (1)

mathllm/mathcoder 공식 구현

Tasks

Arithmetic ReasoningGSM8KMathMathematical ReasoningMath Word Problem Solving

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

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

MISAR: A Multimodal Instructional System with Augmented Reality

2023-10-18 · Jing Bi, Nguyen Manh Nguyen, Ali Vosoughi, Chenliang Xu

Augmented reality (AR) requires the seamless integration of visual, auditory, and linguistic channels for optimized human-computer interaction. While auditory and visual inputs facilitate real-time and contextual user gu…

State Estimation

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

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

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 …

MathMathematical Reasoning

Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Models

2025-01-30 · Qika Lin, Tianzhe Zhao, Kai He, Zhen Peng 외

Due to the presence of the natural gap between Knowledge Graph (KG) structures and the natural language, the effective integration of holistic structural information of KGs with Large Language Models (LLMs) has emerged a…

Instruction FollowingKnowledge GraphsLink PredictionTriple Classification

Leveraging Large Language Models for Enhancing Autonomous Vehicle Perception

2024-12-28 · Athanasios Karagounis

Autonomous vehicles (AVs) rely on sophisticated perception systems to interpret their surroundings, a cornerstone for safe navigation and decision-making. The integration of Large Language Models (LLMs) into AV perceptio…

Autonomous DrivingAutonomous VehiclesDecision MakingSensor Fusion