TL;DR
This paper introduces a compute-efficient method to predict the performance of large language models (LLMs) on downstream tasks before they are fully trained. By training a "ladder" of smaller models, they establish scaling laws that can forecast the accuracy of much larger models with minimal computational cost, offering a valuable tool for optimizing LLM development.
What Problem Does This Paper Address?
Training large language models (LLMs) is incredibly expensive, requiring vast amounts of compute and data. While scaling laws exist for predicting the core language modeling loss (like perplexity), accurately forecasting how these models will perform on specific downstream tasks (e.g., question answering, summarization) has been a significant challenge. Current methods often require a substantial fraction of the target model's training compute to achieve reasonable predictions, making them impractical for rapid experimentation. This paper aims to bridge this gap by developing a more compute-efficient approach to predict individual task performance for overtrained LLMs.
Methods
The authors propose a two-step prediction framework:
- Predicting an Intermediate Feature: Instead of directly predicting task accuracy from model size (N) and training tokens (D), they first predict an intermediate "task loss" (e.g., negative log-likelihood of the correct answer). This relationship is modeled using a power law function of N and D, similar to existing language modeling loss scaling laws.
- Predicting Task Accuracy: The predicted task loss is then used as input to a second function that predicts the final task accuracy. This mapping is modeled using a sigmoidal function, which captures the behavior of models transitioning from random performance to near-perfect accuracy.
The core innovation lies in using a "ladder" of small-scale models (ranging from 190M to 1.3B parameters) trained for varying durations. Data from these ladder models is used to fit the parameters of the two prediction functions. This approach is significantly more compute-efficient, costing only about 1% of the compute required for the target models (7B and 13B parameters). They also explore alternative intermediate features like task cross-entropy and general language modeling loss.
Datasets
The paper uses the OLMES evaluation suite for its downstream tasks. Specifically, they evaluate on the following 8 tasks:
- MMLU (Massive Multitask Language Understanding)
- HellaSwag
- ARC-Challenge
- ARC-Easy
- PIQA (Physical Interaction QA)
- CommonsenseQA
- Social IQa
- OpenBookQA
The language modeling loss is evaluated on the C4-en validation set.
Key Insights and Ideas
- Task-Specific Loss is Key: Directly predicting task accuracy from general language modeling loss (like C4 loss) is less effective than using a task-specific loss as an intermediate feature. This highlights the importance of task-specific signals for accurate prediction.
- Sigmoidal Relationship for Accuracy: The relationship between task loss and task accuracy appears to be sigmoidal. This makes intuitive sense: as task loss decreases (performance improves), accuracy increases, eventually saturating at 100%.
- Variance Predicts Predictability: Tasks with higher variance in their intermediate loss and accuracy metrics across model checkpoints are harder to predict reliably. This variance analysis can serve as an early indicator of which tasks will be more challenging for the scaling laws.
- Compute-Efficient Ladders Work: Training a small set of "ladder" models is a highly cost-effective way to gather the data needed for these scaling laws, requiring only a tiny fraction of the compute for the target models.
- Model Size Matters More Than Training Duration (for Ladder Design): When designing the ladder, increasing the number of model sizes (N) generally leads to better prediction accuracy than simply training existing ladder models for longer durations (higher Chinchilla multiplier).
Key Results
- The proposed two-step method can predict the accuracy of 7B and 13B models on multiple-choice tasks (formatted as ranked classification) within 2 points of absolute error for four tasks (MMLU, HellaSwag, PiQA, SocialIQA).
- The average absolute error across all tasks and target models was 4 points.
- Training the ladder models cost only 1% of the compute used for the target models.
- The method was also tested on a much larger 32B model, showing that the ladder models remain robust predictors even for significantly larger target models, with absolute errors within 3 points for lower-variance tasks.
- Using compute-FLOPs directly as an input feature for prediction was found to be less effective and less expressive than using model size and data size.
Limitations and Future Work
- MC Format Challenges: Predicting accuracy for tasks in the multiple-choice (MC) format is more challenging than the ranked classification (RC) format. This is because smaller models often exhibit random performance on MC tasks until they reach a certain size threshold, making it difficult to extract useful signal from the ladder models. Future work could explore ways to better handle this.
- Task Predictability: Some tasks are inherently more difficult to predict due to factors like small sample sizes, noisy instances, or inherent task difficulty for smaller models. The authors suggest that variance analysis can help identify these challenging tasks.
- Generalizability of Intermediate Features: While task-specific loss proved effective, the authors note that LM loss on C4 can be a reasonable predictor for some tasks, but this might not hold for all novel downstream tasks. They recommend using task-specific loss as a general rule.
- Extending to Larger Models: While the method showed robustness for a 32B model, future work could explore scaling to even larger models (70B and beyond).
- Improving Predictability: Future work could focus on increasing the size of evaluation sets, exploring alternative evaluation formats, and reducing the impact of randomness to further improve prediction accuracy.
Summary updated