                                                           Scaling Inference-Efficient Language Models





                           MSE: 0.9825, R 2: -2.1259                                    MSE: 0.1165, R 2: 0.6293

                 5                                                          5.0

Predicted Loss









                                                           Predicted Loss

                 4                                                          4.5

                                                                            4.0                                           Chinchilla 0.95 0.87 0.94 0.90 0.94 0.40

                 3

                                                                            3.5

                 2                                                          3.0                                           Inference 0.97 0.98 1.00 1.00 1.00 0.80

                      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 9. Excluding Over-training Data: We avoid using over-training data to fit the scaling laws. (Left) The figure is plotted by using

Eq. (2). (Center) the center figure is created with Eq. (4). (Right) We plot the Spearman correlation of our scaling law versus the Chinchilla

scaling law. The results indicate that additional training data can enhance the precision of scaling laws.





                            MSE: 0.0198, R 2: 0.9369                                    MSE: 0.0008, R 2: 0.9973

                     3.0                                                          3.0

                 5.0                                                        5.0

Predicted Loss









                                                           Predicted Loss









                 4.5 2.5                                                    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.81 -0.40

                 3.5                                                        3.5

                 3.0                                                                                                      Inference 0.97 0.98 1.00 1.00 1.00 1.00

                                                                            3.0

                 2.5

                        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 10. Random Choice of Model Shape: We randomly select the model shape to fit the scaling laws. (Left) The figure is plotted by

using Eq. (2). (Center) The center figure is created with Eq. (4). (Right) We plot the Spearman correlation of our scaling law versus the

Chinchilla scaling law. The results show that inference-efficient scaling laws are more robust than Chinchilla scaling laws.





1B, without any loss in accuracy.                                                                       However, we note that both scaling laws’ performance de-

                                                                                                        teriorates when applied to predicting losses in over-trained

4.3. Insights from Scaling Laws Fitting                                                                 models. Therefore, data from over-training is essential to fit

                                                                                                        our inference-aware scaling law.

Scaling laws provide a cheap and accurate way to predict

language model performance at larger scales. However, a                                                 Select Model Shape Randomly. In this ablation study, we

drawback of building scaling laws is the requirement to train                                           explore the robustness of our scaling laws via fitting mod-

models at various scales. In this section, we study how to                                              els with random model architecture configurations. In this

make scaling laws robust and data-efficient.                                                            setting, the model architecture configuration for each size

                                                                                                        is chosen randomly. We randomly select a configuration

Exclude Over-training Data. In this ablation study, we fit                                              from our model configuration pools (The complete list of

the scaling law based entirely on the Chinchilla-optimal                                                candidate configurations can be found in Table 4 in Ap-

setup, using only data points where training tokens are                                                 pendix). Figure 10 shows the experiment results. Compared

set to be Chinchilla-optimal. We vary the model size                                                    to Chinchilla scaling laws, our inference-efficient scaling

N ∈ {80, 116, 164, 237, 313}M and set the number of train-                                              laws exhibit greater robustness with much smaller MSE

ing tokens D = 20N , excluding data from N = 80M and                                                    (0.0008 vs 0.0198) and higher R2 value (0.9973 vs 0.9369).

D = 160N . Table 1 shows the configurations we run on                                                   We then use these two laws to predict the loss of 1B mod-

and the results are shown in Figure 9. Compared to Figure 8,                                            els. The results show that the relative prediction error for

we observe that the inference-efficient scaling law is more                                             the inference-efficient scaling law is less than 0.72%, sig-

robust than the Chinchilla scaling law. We achieve a much                                               nificantly lower than the Chinchilla scaling law’s relative

lower MSE of 0.1165 compared to Chinchilla’s 0.9825 and                                                 prediction error, which ranges from 11.8% to 13.4%. Fi-

an R2 score of 0.6293 compared to Chinchilla’s -2.1259.                                                 nally, by using only six data points to fit the two scaling



                                                                                                  8

