Collaborative Performance Prediction for Large Language Models

Qiyuan Zhang, Fuyuan Lyu, Xue Liu, Chen Ma

Abstract

Comprehensively understanding and accurately predicting the performance of large language models (LLMs) across diverse downstream tasks has emerged as a pivotal challenge in NLP research. The pioneering scaling law on downstream works demonstrated intrinsic similarities within model families and utilized such similarities for performance prediction. However, they tend to overlook the similarities between model families and only consider design factors listed in the original scaling law. To overcome these limitations, we introduce a novel framework, Collaborative Performance Prediction (CPP), which significantly enhances prediction accuracy by leveraging the historical performance of various models on downstream tasks and other design factors for both model and task. We also collect a collaborative data sourced from online platforms containing both historical performance and additional design factors. With the support of the collaborative data, CPP not only surpasses traditional scaling laws in predicting the performance of scaled LLMs but also facilitates a detailed analysis of factor importance, an area previously overlooked.

Introduction

As the scale of Large Language Models (LLMs) continues to grow, the computational cost associated with evaluating them on diverse downstream benchmarks (e.g., MMLU, GSM8K, HumanEval) has become prohibitively high. A comprehensive evaluation suite can easily consume over 4,000 GPU hours, costing tens of thousands of dollars.

Historically, researchers have relied on Scaling Laws to predict performance based on training compute (FLOPs) or parameter counts. However, these laws suffer from several critical limitations: they are often siloed within specific model families, they require transparent design factors that are frequently withheld for proprietary models, and they treat tasks in isolation, ignoring the shared underlying capabilities required across different benchmarks.

The Collaborative Performance Prediction (CPP) Framework

To address these challenges, we propose Collaborative Performance Prediction (CPP), a framework that reframes LLM evaluation as a recommendation problem. Similar to how collaborative filtering predicts user preferences for movies based on historical ratings, CPP predicts a model's performance on a task by leveraging the performance of similar models on similar tasks.

Overview of the Collaborative Performance Prediction (CPP) framework, showing the integration of collaborative data and neural collaborative filtering.

The CPP framework employs two primary techniques:

  1. Matrix Factorization (MF): This decomposes the "Model $\times$ Task" score matrix into latent embeddings that capture the fundamental characteristics of both models and tasks.
  2. Neural Collaborative Filtering (NCF): A Multi-Layer Perceptron (MLP) is used to model complex, non-linear interactions between these embeddings.

Furthermore, we introduce Factor Enhancement, incorporating 12 model design factors (such as context window and model family) and 4 task factors (such as targeted ability and few-shot settings) to refine predictions beyond simple model/task identifiers.

Data Collection

We constructed a "Collaborative Data" matrix by aggregating results from academic papers, technical reports, and public leaderboards like HELM and OpenCompass. The resulting dataset includes 72 models and 29 tasks. Despite a 44% sparsity level—where nearly half of the model-task pairs lack ground-truth scores—the framework effectively learns from the available data to fill in the gaps.

Experimental Results

Our evaluation demonstrates that CPP significantly outperforms traditional scaling laws. One of the most striking findings is the presence of strong cross-family similarities; for instance, performance data from the Llama family can effectively inform predictions for the GPT family due to shared architectural traits.

Score and Rank Error Distributions for the CPP framework across different latent factors and training/validation splits.

Key performance metrics include:

  • Ranking Accuracy: On the HELM leaderboard, CPP achieved a high degree of precision, with predicted ranks falling within two positions of the actual rank 84% of the time.
  • Emergent Ability Prediction: Unlike traditional scaling laws that often struggle with discontinuous performance leaps, CPP leverages the "leaps" observed in other large models to estimate when a new model will exhibit similar emergent behaviors.
  • Cold-Start Performance: Even with no prior data for a specific model (CPP-0), the framework provides reasonable estimates based on design factors. With as few as two sample scores (CPP-2), accuracy improves dramatically.

Factor Importance

Using Shapley value analysis, we investigated which factors most influence model performance. Interestingly, factors such as Model Family and Context Window Size often emerged as more significant predictors than raw parameter count, challenging the conventional "bigger is always better" assumption of early scaling laws.

Conclusion and Future Work

Collaborative Performance Prediction offers a cost-effective and accurate alternative to exhaustive LLM benchmarking. By treating evaluation as a collaborative task, we can leverage the collective knowledge of the research community to predict model performance. Future work will focus on addressing data quality issues in public leaderboards and exploring active learning strategies to identify the most informative "cheap" tasks for maximizing prediction accuracy.

Summary updated

BibTeX
@inproceedings{zhang2024collaborative,
  author = {Qiyuan Zhang and Fuyuan Lyu and Xue Liu and Chen Ma},
  title = {{Collaborative Performance Prediction for Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=vlW8H13W7f},
}
Figure