paper-with-me

홈 › Papers

Training and Evaluating Language Models with Template-based Data Generation

2024-11-27 · Yifan Zhang

The rapid advancement of large language models (LLMs) such as GPT-3, PaLM, and Llama has significantly transformed natural language processing, showcasing remarkable capabilities in understanding and generating language. However, these models often struggle with tasks requiring complex reasoning, particularly in mathematical problem-solving, due in part to the scarcity of large-scale, high-quality, domain-specific datasets necessary for training sophisticated reasoning abilities. To address this limitation, we introduce Template-based Data Generation (TDG), a novel approach that leverages LLMs (GPT-4) to automatically generate parameterized meta-templates, which are then used to synthesize a vast array of high-quality problems and solutions. Leveraging TDG, we create TemplateMath Part I: TemplateGSM, a dataset comprising over 7 million synthetically generated grade school math problems--each accompanied by code-based and natural language solutions--with the potential to generate an effectively unlimited number more. This dataset alleviates the scarcity of large-scale mathematical datasets and serves as a valuable resource for pre-training, fine-tuning, and evaluating LLMs in mathematical reasoning. Our method not only enables the generation of virtually infinite data but also elevates data augmentation to a new level by using GPT-4 for meta-template generation, ensuring diverse and high-quality problem structures. The TemplateMath Part I: TemplateGSM dataset is publicly available at https://huggingface.co/datasets/math-ai/TemplateGSM. The code is available at https://github.com/iiis-ai/TemplateMath.

📄 PDF Abstract BibTeX arXiv:2411.18104

Code (1)

iiis-ai/templatemath 공식 구현

Tasks

Data AugmentationMathMathematical Problem-SolvingMathematical Reasoning

Methods 이 논문이 사용한 방법론

15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
Attention 설명 없음
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…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
{Dispute@FaQ-s}How to file a dispute with Expedia? How to file a dispute with Expedia? To file a complaint against Expedia, first try contacting their customer service directly. You can reach them by phone at…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Evaluating Semantic Accuracy of Data-to-Text Generation with Natural Language Inference

2020-11-21 · INLG (ACL) 2020 12 · Ondřej Dušek, Zdeněk Kasner

A major challenge in evaluating data-to-text (D2T) generation is measuring the semantic accuracy of the generated text, i.e. checking if the output text contains all and only facts supported by the input data. We propose…

Data-to-Text GenerationNatural Language InferenceText Generation

Sanitizing Synthetic Training Data Generation for Question Answering over Knowledge Graphs

2020-09-10 · Trond Linjordet, Krisztian Balog

Synthetic data generation is important to training and evaluating neural models for question answering over knowledge graphs. The quality of the data and the partitioning of the datasets into training, validation and tes…

Knowledge GraphsQuestion AnsweringSynthetic Data Generation

Detection and Measurement of Syntactic Templates in Generated Text

2024-06-28 · Chantal Shaib, Yanai Elazar, Junyi Jessy Li, Byron C. Wallace

Recent work on evaluating the diversity of text generated by LLMs has focused on word-level features. Here we offer an analysis of syntactic features to characterize general repetition in models, beyond frequent n-grams.…

DiversityMemorization

Evaluating Gender Bias Transfer from Film Data

2022-07-01 · NAACL (GeBNLP) 2022 7 · Amanda Bertsch, Ashley Oh, Sanika Natu, Swetha Gangu 외

Films are a rich source of data for natural language processing. OpenSubtitles (Lison and Tiedemann, 2016) is a popular movie script dataset, used for training models for tasks such as machine translation and dialogue ge…

Dialogue GenerationMachine TranslationSentenceSentence Embedding+2

Evaluating Prompt Engineering Techniques for RAG in Small Language Models: A Multi-Hop QA Approach

2026-02-14 · Amir Hossein Mohammadi, Ali Moeinian, Zahra Razavizade, Afsaneh Fatemi 외 arxiv

Retrieval Augmented Generation (RAG) is a powerful approach for enhancing the factual grounding of language models by integrating external knowledge. While widely studied for large language models, the optimization of RA…

Prompt Engineering