Abstract
Standard scaling laws for large language models typically optimize for aggregate performance on a general corpus. However, this approach overlooks the distinct computational requirements of different cognitive skills. This study investigates whether compute-optimality is skill-dependent by analyzing "IsoFLOP" curves across various compute scales. We demonstrate that knowledge-intensive tasks are "capacity-hungry," favoring larger model parameters, whereas reasoning tasks (proxied by coding) are "data-hungry," benefiting more from increased training tokens. Our findings suggest that model scaling should be tailored to the specific target skill profile to achieve true compute efficiency.
Introduction: Beyond One-Size-Fits-All Scaling
Since the landmark "Chinchilla" paper, the AI field has relied on scaling laws to determine the "compute-optimal" (CO) point—the ideal balance between model parameters ($p$) and training tokens ($t$) for a given budget. These laws are typically derived from aggregate performance, such as the average loss on a general text corpus.
This research addresses a fundamental question: Is compute-optimality skill-dependent? If a model is intended primarily for factual retrieval versus logical reasoning, should its architecture and data allocation differ? By decomposing aggregate performance into specific skill categories, we investigate whether the optimal model size shifts based on the underlying task requirements.
Methodology
The researchers conducted an extensive empirical study across nine compute scales, ranging from $6 \times 10^{18}$ to $3 \times 10^{21}$ FLOPs, training models from 40 million to 8 billion parameters. The methodology centered on:
- IsoFLOP Analysis: Plotting performance curves for fixed compute budgets to identify the minima where the trade-off between parameters and data is optimized.
- Skill-Specific Optima: Calculating $(p, t)$ optima for specific downstream skills (Knowledge QA and Coding) rather than total validation loss.
- Datamix Ablation: Testing various pretraining ratios of code and knowledge-heavy documents to determine if the observed shifts were inherent to the skills or merely artifacts of the training distribution.
Key Insights: Capacity-Hungry vs. Data-Hungry
The study reveals a stark divergence in the scaling needs of different skills:
- Knowledge is Capacity-Hungry: Factual knowledge tasks (e.g., TriviaQA, MMLU) require more parameters to effectively "store" information. The authors propose a "Compression Hypothesis": factual data has high unmodelable entropy. Since one cannot reason their way to a specific historical date, the model must allocate parameter capacity to memorize it.
- Reasoning is Data-Hungry: Reasoning tasks, using code as a proxy (e.g., HumanEval, MBPP), favor larger datasets over larger model sizes. Learning the underlying logic and patterns of algorithmic reasoning requires exposure to a vast array of examples rather than raw storage capacity.
Results and Implications
The empirical results underscore the risks of relying on general-purpose scaling laws:
- Significant Suboptimality: Using a general validation set to pick a model size for a specific task can lead to a compute-optimal parameter count that is off by nearly 50% at smaller scales.
- Persistent Divergence: Even at the largest scales tested ($3 \times 10^{21}$ FLOPs), the difference in optimal parameter count between skills remains greater than 10%.
- The Alignment Point: To align the optima for code and knowledge, the training data would need to contain approximately 2.1 times more code than knowledge-based data.
Conclusion and Future Directions
This work demonstrates that "compute-optimal" is a relative term. For developers, the "Validation Set Trap" is a critical takeaway: if your evaluation metrics do not reflect the intended use case's skill profile, your model configuration will be suboptimal.
While this study uses code as a proxy for reasoning, future research should explore whether other reasoning domains, such as formal logic or mathematics, exhibit similar "data-hungry" characteristics. Additionally, while this study focused on Negative Log-Likelihood (NLL), investigating scaling laws for downstream task accuracy remains a vital next step for practical model deployment.
Summary updated