Abstract
This study investigates whether mixing broad, general-purpose instruction data with task-specific data helps or hinders the creation of "specialist" NLP models. By evaluating LLaMA models on a variety of tasks, the researchers find that while generalist data acts as a "rising tide" for broad tasks and improves reasoning, machine-generated generalist data can degrade performance on factual tasks by introducing hallucinations. Furthermore, generalist data provides the most significant performance boost when specialist training data is scarce.
Introduction
Large Language Models (LLMs) like GPT-4 are remarkable generalists, yet they often underperform compared to smaller "specialist" models fine-tuned exclusively for single domains, such as medical QA or legal analysis. This research explores whether we can achieve the "best of both worlds" by pre-training on a massive pile of diverse generalist instructions before fine-tuning on specific tasks. The goal is to identify when generalist data provides a boost and when it might "poison the well."
Methodology
The authors employed a two-stage training approach using LLaMA (7B and 13B) as base models:
- Generalist Phase: Models were first fine-tuned on broad-coverage datasets, specifically GPT4-Instruct (52,000 machine-authored pairs) and LIMA (1,000 high-quality human-curated pairs).
- Specialist Phase: Models were then fine-tuned on varying amounts of task-specific data (from 2,000 to 10,000 examples) to simulate different levels of data scarcity.
Evaluation focused on Task Coverage (from the broad SuperNI benchmark to narrow tasks like Yelp sentiment analysis) and Skill Requirements (Factual Knowledge, Reading Comprehension, and Reasoning).
Key Findings
The "Broadness" Rule and Data Scarcity
Generalist data is most effective when the target task is broad. For models handling hundreds of different classification types (like SuperNI), generalist data provides a significant performance floor. Conversely, for narrow tasks like Yelp sentiment analysis, the benefit of generalist data is negligible.
As shown in the figure above, generalist data serves as a critical lifeline when specialist data is limited. For example, in classification tasks with only 2,000 specific examples, adding generalist data boosted accuracy by nearly 6%. This "bonus" shrinks as the volume of specialist data increases toward 10,000 examples.
The Hallucination Trap
A striking finding of the study is that adding machine-generated data (GPT4-Instruct) actually hurt performance on factual tasks. This is attributed to subtle hallucinations present in machine-authored datasets. Interestingly, the much smaller, human-curated LIMA dataset improved factual performance, suggesting that data quality and authorship are more important than sheer volume for factual accuracy.
Reasoning and Robustness
Generalist data consistently improved reasoning scores by an average of 0.65% to 1.12%. The diverse instructions likely force the model to activate latent logic capabilities. Additionally, models trained with generalist data proved more robust and less "fussy" regarding prompt wording compared to pure specialist models.
Conclusion
While specialist models still outperform generalist-only models, the inclusion of generalist data is highly beneficial for broad tasks and low-data regimes. However, practitioners must be wary of machine-generated data in fact-sensitive domains. Future work should focus on filtering hallucinations from generalist datasets to harness their reasoning benefits without compromising factual integrity.
Summary updated