Performance Law of Large Language Models

Chuhan Wu, Ruiming Tang
8/19/2024
9 citations
cs.CLcs.LG

Official code: wuch15/performance-law-planner (5 stars, Python, last commit 2024-08-27).

Abstract

Guided by the belief of the scaling law, large language models (LLMs) have achieved impressive performance in recent years. However, scaling law only gives a qualitative estimation of loss, which is influenced by various factors such as model architectures, data distributions, tokenizers, and computation precision.

Show full abstract

Thus, estimating the real performance of LLMs with different training settings rather than loss may be quite useful in practical development. In this article, we present an empirical equation named "Performance Law" to directly predict the MMLU score of an LLM, which is a widely used metric to indicate the general capability of LLMs in real-world conversations and applications. Based on only a few key hyperparameters of the LLM architecture and the size of training data, we obtain a quite accurate MMLU prediction of various LLMs with diverse sizes and architectures developed by different organizations in different years. Performance law can be used to guide the choice of LLM architecture and the effective allocation of computational resources without extensive experiments.

View on arXivView PDF

Code Implementations(1)

Training plan generator based on performance law of large language models

50PythonAug 23, 20242 years ago

Similar Papers

Cite this paper

@article{wu2024performance,
  title  = {Performance Law of Large Language Models},
  author = {Chuhan Wu and Ruiming Tang},
  year   = {2024},
  eprint = {2408.09895},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09895v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.09895.svg)](https://codeofpaper.com/paper/2408.09895)

Discussion