NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Scaling Inference-Efficient Language Models

Song Bian, Minghao Yan, Shivaram Venkataraman

Abstract

Traditional scaling laws, such as the Chinchilla approach, focus primarily on optimizing training compute to minimize loss. However, these laws often neglect the practical costs of model deployment. This paper introduces an "inference-aware" scaling law that incorporates model architecture—specifically the balance between depth and width—into the optimization process. By applying this methodology, we developed Morph-1B, a model that achieves a 1.8x speedup in inference latency compared to standard open-source models while maintaining equivalent accuracy across a suite of downstream tasks.

Introduction

The AI community has long relied on scaling laws to predict how model size and training data volume influence performance. While these laws have been instrumental in the development of massive Large Language Models (LLMs), they possess a significant blind spot: inference costs. In real-world applications, a model is trained once but may be queried millions or billions of times. Current scaling paradigms prioritize minimizing training loss for a fixed compute budget, which frequently results in deep, narrow architectures that are computationally expensive to run in production.

Research indicates that two models with the same number of parameters can exhibit up to a 3.5x difference in latency based solely on their architectural "shape." This paper seeks to bridge the gap between training efficiency and deployment reality by proposing a framework that treats inference speed as a first-class citizen in the scaling equation.

The Latency of Depth vs. Width

LLM execution is inherently sequential across layers but highly parallel within a single layer. Consequently, a model with fewer, wider layers (shallow) is significantly faster than a model with many, narrower layers (deep), even if the total parameter count remains identical. However, making a model too shallow eventually degrades its ability to learn complex patterns, leading to higher loss.

To navigate this trade-off, we propose a revised scaling law that incorporates the model's aspect ratio ($R = d_{model} / n_{layers}$), representing the balance between the hidden dimension width and the number of layers.

Methodology: Predict, Rank, and Select

Our approach moves beyond simple parameter counting to a three-step architectural selection process:

  1. Revised Scaling Law: We modified the Chinchilla loss function to include an architectural term: $L(N, D, R) = (E + AN^{-\alpha} + BD^{-\beta}) \cdot (1 + \epsilon R^\gamma)$. This formula allows us to predict how different configurations of width and depth affect the final loss.
  2. Predict and Rank: Instead of training a single "optimal" model, we use the new law to predict the loss and measure the latency of numerous candidate architectures.
  3. Selection: We identify the "top-k" candidates that offer the best predicted trade-off between speed and accuracy—the Pareto frontier—for final training and evaluation.

To calibrate this law, we trained 63 different models ranging from 80M to 1B parameters across various shapes and data scales (up to 30B tokens) to determine the necessary mathematical constants.

Empirical Results

Morph-1B Performance

Using this methodology, we released Morph-1B. When compared to the popular Open-LM-1B, Morph-1B matched its accuracy across 20 downstream tasks (including ARC-Easy/Challenge, BoolQ, HellaSwag, and MMLU) while running 1.8x faster. In a standard generation task, Morph-1B recorded a latency of 1.96s compared to 3.61s for the baseline.

Predictive Accuracy

Our inference-efficient scaling law demonstrated superior predictive power over the standard Chinchilla law. It reduced the Mean Squared Error (MSE) of loss predictions by over 5x (0.0006 vs. 0.0033). More importantly, the law is exceptionally good at ranking architectures. For 1B-parameter models, our method achieved a Spearman correlation of 1.00, meaning it perfectly predicted which architectural shapes would perform better than others. In contrast, the standard Chinchilla law achieved a correlation of -0.40, often recommending slower, less accurate configurations.

Conclusion and Future Work

This research demonstrates that inference efficiency does not have to come at the cost of model quality. By accounting for the architectural aspect ratio, researchers can develop models that are optimized for the realities of production environments.

While these findings are robust at the 1B parameter scale, future work is required to validate these laws at the 7B and 70B scales. Additionally, the integration of newer architectural optimizations, such as Grouped-Query Attention (GQA) or Multi-Head Latent Attention (MLA), may further shift the latency-accuracy frontier. Finally, because latency can vary based on the specific inference engine (e.g., vLLM vs. Hugging Face), future iterations of the law may need to account for specific hardware and software stacks to provide even more granular optimizations.

Summary updated

BibTeX
@inproceedings{bian2025scaling,
  author = {Song Bian and Minghao Yan and Shivaram Venkataraman},
  title = {{Scaling Inference-Efficient Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=wslytZ28Ms},
}
Figure