                                                            Scaling Inference-Efficient Language Models





                            MSE: 0.0033, R 2: 0.9895                                   MSE: 0.0006, R 2: 0.9982

                     3.00                                                        3.0

                 5.0                                                         5.0

Predicted Loss









                                                            Predicted Loss

                 4.5 2.75                                                    4.5 2.8

                         2.8           3.0                                          2.8          3.0

                 4.0                                                         4.0                                           Chinchilla 0.82 0.87 0.82 0.62 0.62 -0.40

                 3.5                                                         3.5

                 3.0                                                         3.0                                           Inference 0.97 0.98 1.00 1.00 1.00 1.00

                        3.0      3.5   4.0      4.5   5.0                           3.0    3.5   4.0      4.5    5.0                   80M 116M 164M 237M 313M 1B

                                  Actual Loss                                               Actual Loss                                          Model Size



                               (a) Chinchilla                                      (b) Inference-Efficient                          (c) Spearman Correlation



Figure 8. Comparison: (Left) We illustrate the predicted versus actual loss using Eq. (2). (Center) We display the comparison of predicted

to actual loss based on Eq. (4). Dots represent data points used for curve-fitting, while cross marks represent test data points. (Right)

We demonstrate that our inference-efficient scaling law yields a significantly higher Spearman correlation, resulting in more precise

predictions of the optimal model configuration.





training setting.

                                                                                                       Table 2. Inference-Efficient Models: In this table, we compare

Then, we train larger models on more tokens to evaluate                                                the results of Morph-1B variants against other open pretrained mod-

the predictive power of our inference-efficient scaling law.                                           els of similar size. The evaluation of large language models such as

We present the results in Figure 8. Figure 8 demonstrates                                              Open-LM-1B (Gururangan et al., 2023), OPT-1.3B (Zhang et al.,

that our scaling law achieves higher accuracy than the Chin-                                           2022), Pythia-1.3B (Biderman et al., 2023), Neox-1.3B (Black

                                                                                                       et al., 2022) and OPT-IML-1.3B (Iyer et al., 2022) is summarized

chilla scaling law, as shown by a smaller MSE and a larger

                                                                                                       from (Gururangan et al., 2023).

R2 (Wright, 1921) value. We reduce MSE from 0.0033 to

0.0006 while improving R2 from 0.9895 to 0.9982. In addi-                                                Models               dmodel     nlayers   Avg.    Latency (s)

tion, the relative prediction error for the inference-efficient

scaling law is less than 1.2%, whereas for the Chinchilla                                                Open-LM-1B           2048         24      0.49        3.61

scaling laws, it ranges from 2.7% to 4.1%. This demon-                                                   OPT-1.3B             2048         24      0.50        2.55

strates that the inference-efficient scaling law predicts more                                           Pythia-1.3B          2048         22      0.49        3.28

accurately than the Chinchilla scaling law.                                                              Neox-1.3B            2048         24      0.49        3.99

                                                                                                         OPT-IML-1.3B         2048         24      0.54        2.54

Furthermore, as illustrated in Figure 6, prioritizing the rank-

                                                                                                         Morph-1B-v1          2048         24      0.52        3.61

ing of predicted loss is more critical than its absolute value

                                                                                                         Morph-1B-v2          2560         16      0.52        2.57

when employing the training methodology described in §2.3

                                                                                                         Morph-1B             3072         12      0.52        1.96

for inference-efficient models. We calculate Spearman’s

rank correlation coefficient (Spearman, 1961) for both the

Chinchilla scaling law and the inference-efficient scaling

law when predicting the loss of 1B models. The results are                                             measured inference latency and predicted loss, and train

shown in Figure 8(c). The results indicate that our inference-                                         candidate models with the same training dataset. Finally,

efficient law is more effective in ranking different model                                             we evaluate the trained models over 20 downstream tasks

configurations. For example, the inference-efficient scaling                                           and we outline the results in Figure 1 and Table 2.

law shows a Spearman correlation of 1.00 for the 1B model

loss prediction, in contrast to Chinchilla’s -0.40. In Ap-                                             As a baseline, the architecture of Morph-1B-v1 is identi-

pendix A, we include more details on model configurations.                                             cal to that of Open-LM-1B. The superior performance of

                                                                                                       Morph-1B-v1 over Open-LM-1B can be attributed to the

4.2. Inference-Efficient Models                                                                        higher quality DCLM-Baseline dataset (dcl, 2024). Addi-

                                                                                                       tionally, OPT-IML-1.3B outperforms Morph-1B-v1 since

Guided by the accurate inference-efficient scaling law, we                                             it undergoes pre-training on 6x more unique tokens (180B

employ the predict, rank, and select method outlined in Fig-                                           vs 30B) followed by a fine-tuning stage (Iyer et al., 2022).

ure 6 to train inference-efficient models. First, we generate                                          Next, we train Morph-1B and Morph-1B-v2 which are de-

a range of variants from the Open-LM-1B model (Guru-                                                   rived from Morph-1B-v1 by modifying the aspect ratio. We

rangan et al., 2023) by adjusting the aspect ratio. Then,                                              use the same 30B tokens to train Morph-1B, Morph-1B-v1,

we measure the inference latency of model variants on a                                                and Morph-1B-v2. As illustrated in Table 2, the inference

single A100 GPU. Next, we select 3 models based on the                                                 latency for Morph-1B-v1 is 1.8× lower compared to Morph-



                                                                                                 7

