MIND: Math Informed syNthetic Dialogues for Pretraining LLMs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Akter, Syeda Nahida, Prabhumoye, Shrimai, Kamalu, John, Satheesh, Sanjeev, Nyberg, Eric, Patwary, Mostofa, Shoeybi, Mohammad, Catanzaro, Bryan
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913807161360384
author Akter, Syeda Nahida
Prabhumoye, Shrimai
Kamalu, John
Satheesh, Sanjeev
Nyberg, Eric
Patwary, Mostofa
Shoeybi, Mohammad
Catanzaro, Bryan
author_facet Akter, Syeda Nahida
Prabhumoye, Shrimai
Kamalu, John
Satheesh, Sanjeev
Nyberg, Eric
Patwary, Mostofa
Shoeybi, Mohammad
Catanzaro, Bryan
contents The utility of synthetic data to enhance pretraining data quality and hence to improve downstream task accuracy has been widely explored in recent large language models (LLMs). Yet, these approaches fall inadequate in complex, multi-hop and mathematical reasoning tasks as the synthetic data typically fails to add complementary knowledge to the existing raw corpus. In this work, we propose a novel large-scale and diverse Math Informed syNthetic Dialogue (MIND) generation method that improves the mathematical reasoning ability of LLMs. Specifically, using MIND, we generate synthetic conversations based on OpenWebMath (OWM), resulting in a new math corpus, MIND-OWM. Our experiments with different conversational settings reveal that incorporating knowledge gaps between dialog participants is essential for generating high-quality math data. We further identify an effective way to format and integrate synthetic and raw data during pretraining to maximize the gain in mathematical reasoning, emphasizing the need to restructure raw data rather than use it as-is. Compared to pretraining just on raw data, a model pretrained on MIND-OWM shows significant boost in mathematical reasoning (GSM8K: +13.42%, MATH: +2.30%), including superior performance in specialized knowledge (MMLU: +4.55%, MMLU-STEM: +4.28%) and general purpose reasoning tasks (GENERAL REASONING: +2.51%).
format Preprint
id arxiv_https___arxiv_org_abs_2410_12881
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MIND: Math Informed syNthetic Dialogues for Pretraining LLMs
Akter, Syeda Nahida
Prabhumoye, Shrimai
Kamalu, John
Satheesh, Sanjeev
Nyberg, Eric
Patwary, Mostofa
Shoeybi, Mohammad
Catanzaro, Bryan
Artificial Intelligence
Computation and Language
The utility of synthetic data to enhance pretraining data quality and hence to improve downstream task accuracy has been widely explored in recent large language models (LLMs). Yet, these approaches fall inadequate in complex, multi-hop and mathematical reasoning tasks as the synthetic data typically fails to add complementary knowledge to the existing raw corpus. In this work, we propose a novel large-scale and diverse Math Informed syNthetic Dialogue (MIND) generation method that improves the mathematical reasoning ability of LLMs. Specifically, using MIND, we generate synthetic conversations based on OpenWebMath (OWM), resulting in a new math corpus, MIND-OWM. Our experiments with different conversational settings reveal that incorporating knowledge gaps between dialog participants is essential for generating high-quality math data. We further identify an effective way to format and integrate synthetic and raw data during pretraining to maximize the gain in mathematical reasoning, emphasizing the need to restructure raw data rather than use it as-is. Compared to pretraining just on raw data, a model pretrained on MIND-OWM shows significant boost in mathematical reasoning (GSM8K: +13.42%, MATH: +2.30%), including superior performance in specialized knowledge (MMLU: +4.55%, MMLU-STEM: +4.28%) and general purpose reasoning tasks (GENERAL REASONING: +2.51%).
title MIND: Math Informed syNthetic Dialogues for Pretraining LLMs
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2410.12881