[논문 리뷰] MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models
MetaMath는 순방향 및 역방향 질문 부트스트래핑으로 만들어진 새로운 MetaMathQA 데이터셋을 사용해 오픈소스 LLM을 미세조정하여 수학적 추론을 향상시키고, GSM8K와 MATH에서 오픈소스 모델 중 최첨단 성능을 달성한다.
Large language models (LLMs) have pushed the limits of natural language understanding and exhibited excellent problem-solving ability. Despite the great success, most existing open-source LLMs (e.g., LLaMA-2) are still far away from satisfactory for solving mathematical problem due to the complex reasoning procedures. To bridge this gap, we propose MetaMath, a fine-tuned language model that specializes in mathematical reasoning. Specifically, we start by bootstrapping mathematical questions by rewriting the question from multiple perspectives without extra knowledge, which results in a new dataset called MetaMathQA. Then we fine-tune the LLaMA-2 models on MetaMathQA. Experimental results on two popular benchmarks (i.e., GSM8K and MATH) for mathematical reasoning demonstrate that MetaMath outperforms a suite of open-source LLMs by a significant margin. Our MetaMath-7B model achieves 66.4% on GSM8K and 19.4% on MATH, exceeding the state-of-the-art models of the same size by 11.5% and 8.7%. Particularly, MetaMath-70B achieves an accuracy of 82.3% on GSM8K, slightly better than GPT-3.5-Turbo. We release all the MetaMathQA dataset, the MetaMath models with different model sizes and the training code for public use.
연구 동기 및 목표
- 데이터 기반 미세조정을 통해 오픈소스 LLM의 수학 문제 해결 능력을 향상시키고자 동기를 부여한다.
- 다양한 순방향 및 역방향 추론 변형을 생성하기 위해 질문 부트스트래핑을 제안한다.
- 일반화를 높이기 위해 정답 증강과 재구문으로 훈련 데이터를 확장한다.
- 다양한 모델 크기에서 GSM8K와 MATH에 대해 MetaMath가 강력한 성능을 달성함을 보여준다.
제안 방법
- Forward(원문 및 LLM-재구문 질문)와 backward(자기 검증 및 FOBAR) 추론 변형으로 MetaMathQA를 생성한다.
- 정답 증강을 통해 다양한 추론 경로를 생성한다(RFT 스타일의 거절 샘플링) 및 정답 증강을 얻는다.
- 질문에 주어진 추론 경로의 최대우도(MLE)로 MetaMathQA에 대해 LLaMA-2 모델을 미세조정한다.
- 2-3개의 증강: AnsAug, Rephrasing, SV, FOBAR; 미세조정을 위한 D_MetaMathQA로 결합한다.
- 모델 크기에 따라 오픈소스 및 비공개 벤치마크를 대상으로 GSM8K와 MATH에서 평가한다.
실험 결과
연구 질문
- RQ1Forward 및 backward 방향으로의 질문 부트스트래핑이 오픈소스 LLM의 수학적 추론을 향상시킬 수 있는가?
- RQ2질문 스타일 증강의 다양성이 GSM8K 및 MATH에서 일반화에 어떤 영향을 미치는가?
- RQ3다른 증강 유형(AnsAug, Rephrase, SV, FOBAR)이 미세조정 결과에 미치는 영향은 무엇인가?
- RQ4역방향 추론 강화가 표준 벤치마크에서의 성능 향상으로 이어지는가?
주요 결과
- MetaMath는 7B, 13B, 70B 계열에서 GSM8K와 MATH에 대해 오픈소스 최첨단 성능을 달성한다.
- MetaMath-7B는 GSM8K에서 66.5%, MATH에서 19.8%를 달성하여 기존 오픈소스 모델보다 각각 11.5%와 8.7% 앞선다.
- MetaMath-70B는 GSM8K에서 82.3%에 도달하여 GPT-3.5-Turbo보다 약간 우수하다.
- 오픈소스 규모(11-50B)에서 동료들 중 최고이며; 51-70B에서도 MetaMath가 다시 최고 점수를 달성한다.
- 부트스트랩된 질문의 다양성은 정확도와 양의 상관관계가 있다(Pearson 0.972).
- 역방향 추론 증강(SV, FOBAR)은 역방향 수학 능력과 전반적 성능을 크게 향상시킨다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.