paper-with-me

홈 › Papers

Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Models

2024-08-01 · Yangzhen Wu, Zhiqing Sun, Shanda Li, Sean Welleck, Yiming Yang

While the scaling laws of large language models (LLMs) training have been extensively studied, optimal inference configurations of LLMs remain underexplored. We study inference scaling laws and compute-optimal inference, focusing on the trade-offs between model sizes and generating additional tokens with different inference strategies. As a first step towards understanding and designing compute-optimal inference methods, we studied cost-performance trade-offs for inference strategies such as greedy search, majority voting, best-of-$n$, weighted voting, and two different tree search algorithms, using different model sizes and compute budgets. Our findings indicate smaller models (e.g., Llemma-7B) can outperform larger models given the same computation budgets, and that smaller models paired with advanced inference algorithms yield Pareto-optimal cost-performance trade-offs. For instance, the Llemma-7B model, equipped with our novel tree search algorithm, consistently outperforms Llemma-34B with standard majority voting on the MATH benchmark across all FLOPs budgets. We hope these findings contribute to a broader understanding of inference scaling laws for LLMs.

📄 PDF Abstract BibTeX arXiv:2408.00724

Code (2)

squeezeailab/ets pytorch
thu-wyz/inference_scaling pytorch

Tasks

Math

Similar Papers 제목 키워드 기반

Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws

2023-12-31 · Nikhil Sardana, Jacob Portes, Sasha Doubov, Jonathan Frankle

Large language model (LLM) scaling laws are empirical formulas that estimate changes in model quality as a result of increasing parameter count and training data. However, these formulas, including the popular Deepmind C…

Language ModelingLanguage ModellingLarge Language Model

A Simple Model of Inference Scaling Laws

2024-10-21 · Noam Levi

Neural scaling laws have garnered significant interest due to their ability to predict model performance as a function of increasing parameters, data, and compute. In this work, we propose a simple statistical ansatz bas…

Memorizationmodel

Unifying Two Types of Scaling Laws from the Perspective of Conditional Kolmogorov Complexity

2025-01-12 · Jun Wan

In 2020, OpenAI proposed the first type of Scaling Laws, describing the relationships between model performance and parameters, data, and compute. In 2024, OpenAI proposed the second type of Scaling Laws, describing the …

Towards Robust Scaling Laws for Optimizers

2026-02-07 · Alexandra Volkova, Mher Safaryan, Christoph H. Lampert, Dan Alistarh arxiv

The quality of Large Language Model (LLM) pretraining depends on multiple factors, including the compute budget and the choice of optimization algorithm. Empirical scaling laws are widely used to predict loss as model si…

Scaling Inference-Efficient Language Models

2025-01-30 · Song Bian, Minghao Yan, Shivaram Venkataraman

Scaling laws are powerful tools to predict the performance of large language models. However, current scaling laws fall short of accounting for inference costs. In this work, we first show that model architecture affects…

Model SelectionMORPH