Cookbook: A framework for improving LLM generative abilities via programmatic data generating templates
Not on the map. Why?
Abstract (arXiv)
Fine-tuning large language models (LLMs) on instruction datasets is a common way to improve their generative capabilities. However, instruction datasets can be expensive and time-consuming to manually curate, and while LLM-generated data is less labor-intensive, it may violate user privacy agreements or terms of service of LLM providers. Therefore, we seek a way of constructing instruction datasets with samples that are not generated by humans or LLMs but still improve LLM generative capabilities. In this work, we introduce Cookbook, a framework that programmatically generates training data consisting of simple patterns over random tokens, resulting in a scalable, cost-effective approach that avoids legal and privacy issues. First, Cookbook uses a template -- a data generating Python function -- to produce training data that encourages the model to learn an explicit pattern-based rule that corresponds to a desired task. We find that fine-tuning on Cookbook-generated data is able to improve performance on its corresponding task by up to 52.7 accuracy points. Second, since instruction datasets improve performance on multiple downstream tasks simultaneously, Cookbook algorithmically learns how to mix data from various templates to optimize performance on multiple tasks. On the standard multi-task GPT4ALL evaluation suite, Mistral-7B fine-tuned using a Cookbook-generated dataset attains the best accuracy on average compared to other 7B parameter instruction-tuned models and is the best performing model on 3 out of 8 tasks. Finally, we analyze when and why Cookbook improves performance and present a metric that allows us to verify that the improvement is largely explained by the model's generations adhering better to template rules.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 37 of its 55 references that are in the map. First posted on arXiv 7 Oct 2024.
Builds on
37 of 55 references.
References · 37
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Mistral 7Bcited by 3,164
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
25 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 372
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2016Data Programming: Creating Large Training Sets, Quicklycited by 246
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
- 2023Skill-it! A Data-Driven Skills Framework for Understanding and Training Language Modelscited by 121
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
- 2018Training Complex Models with Multi-Task Weak Supervisioncited by 106
- 2021WRENCH: A Comprehensive Benchmark for Weak Supervisioncited by 96
- 2019Studying the Inductive Biases of RNNs with Synthetic Variations of Natural Languagescited by 37
- 2021Does Pretraining for Summarization Require Knowledge Transfer?cited by 30
- 2024Learning to Generate Instruction Tuning Datasets for Zero-Shot Task Adaptationcited by 27
- 2022Insights into Pre-training via Simpler Synthetic Taskscited by 26
- 2023TART: A plug-and-play Transformer module for task-agnostic reasoningcited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025BARE: Leveraging Base Language Models for Few-Shot Synthetic Data Generation
- 2025Rewriting Pre-Training Data Boosts LLM Performance in Math and Code
- 2024Seed-Free Synthetic Data Generation Framework for Instruction-Tuning LLMs: A Case Study in Thai
- 2024CodecLM: Aligning Language Models with Tailored Synthetic Data
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
- 2024Evaluating Language Models as Synthetic Data Generators
- 2024A Survey on Data Synthesis and Augmentation for Large Language Models
- 2025Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation