Large-Model Compute Bottlenecks: Beyond Parameter Scaling and Practical Optimization Paths
This article examines why scaling large-model parameters raises training and inference compute costs, and why the theoretical complexity of matrix multiplication does not translate directly into faster deep learning frameworks. It covers FLOP estimates, the gap between asymptotic algorithms and GPU implementation constraints, and the information required for reproducible performance reporting. It then outlines practical efficiency levers beyond parameter count—data quality, MoE and sparse attention, inference quantization, operator fusion, and pruning—and lists questions to consider when choosing model scale and cloud infrastructure. The aim is to help readers treat model size as a variable to measure rather than a default objective.
I. Why Parameter Growth Raises Compute Costs
The parameter scale of large models has expanded rapidly in recent years. Claims about the parameter counts of certain models often come from unverified rumors, and this article does not rely on them. When discussing model scale, a more reliable approach is to examine the relationship among three factors at the same time: parameter count, training data volume, and inference workload.
The total compute for training a dense model can be estimated with a commonly used rule of thumb: training FLOPs are approximately $6ND$, where $N$ is the parameter count and $D$ is the number of training tokens. During inference, generating each token requires roughly $2N$ floating-point operations. Both formulas show that compute is approximately proportional to parameter count. When parameter count and data volume grow together, total cost rises multiplicatively. This estimate ignores attention overhead related to sequence length, so actual estimates need to account for the specific model architecture.
II. Matrix Multiplication Complexity and Theoretical Lower Bounds
The main computation in neural networks is performed by matrix multiplication. For two $n \times n$ matrices $A$ and $B$, the naive formula for their product $C = A \times B$ is:
$C[i][j] = \sum_{k=1}^{n} A[i][k] \cdot B[k][j]$
The naive algorithm requires three nested loops and has a time complexity of $O(n^3)$.
Regarding lower bounds, two things need to be distinguished. Computing the result requires reading all input elements, so any algorithm’s runtime is at least $\Omega(n^2)$; this is the input-reading lower bound. $O(n^2)$, by contrast, is a theoretical upper bound that researchers hope to reach. No known algorithm achieves it, so $O(n^2)$ cannot be treated as an already achieved trivial bound.
The Strassen algorithm uses divide and conquer to reduce complexity to about $O(n^{2.807})$. Later theoretical work pushed the upper bound on the matrix multiplication exponent $\omega$ to about 2.37, but these algorithms have large constant factors and complex implementations, and they are currently mainly of theoretical interest.
III. Why Theoretical Algorithms Are Hard to Use Directly in Frameworks
Mainstream deep learning frameworks do not use these theoretical algorithms. Actual performance is mainly limited by the following factors:
- Memory access patterns. Moving data among GPU memory, cache, and registers is often more time-consuming than the arithmetic operations themselves.
- Parallel efficiency. GPUs rely on regular, large-scale parallel computation. The recursive structure and extra additions and subtractions of divide-and-conquer algorithms reduce hardware utilization.
- Numerical stability. Under half precision or low precision, some fast algorithms have larger errors and may not meet training requirements.
- Engineering maturity. Highly optimized libraries such as cuBLAS are deeply tuned for fixed block sizes and hardware characteristics, and replacing them is costly.
Therefore, the ranking of theoretical complexity and the ranking of actual runtime are not always consistent. To judge whether an implementation is fast, measured time should be the basis.
IV. How to Run Reproducible Performance Tests
To verify hardware behavior across different matrix sizes, a test report should at least specify the following: GPU model and driver version, framework and version, compute precision (such as FP32 or FP16), matrix shapes, whether warm-up is included, and the timing method. Reporting results for only a single size cannot show how throughput changes with scale, and it certainly cannot be used to extrapolate directly to training clusters for hundred-billion- or trillion-parameter models.
During testing, multiple sizes can be run repeatedly, the median can be taken, and the achieved TFLOPS can be recorded as a percentage of theoretical peak. If this percentage falls as matrices grow larger, performance is usually limited by memory bandwidth rather than compute. Such conclusions should be trusted only after they have been reproduced under the same conditions.
V. Practical Optimization Beyond Parameters
Methods for improving model efficiency are often more direct than simply increasing parameter count.
- Data quality. Deduplication, filtering low-quality text, and balancing domain data can often produce better results at the same training volume.
- Architecture choice. Mixture-of-Experts (MoE) models activate only a subset of parameters per inference, keeping single-pass computation under control even when total parameter count is large. Sparse attention reduces the compute overhead of long sequences.
- Inference quantization. Quantizing weights from FP16 to INT8 or FP8 can reduce memory footprint and bandwidth pressure. Quantization may cause accuracy loss and should be validated on an evaluation set for the target task.
- Operator fusion and pruning. Fusing multiple small operators can reduce memory reads and writes. Structured pruning removes channels or attention heads that have little impact on output.
Each optimization should have a control group. It is advisable to record four metrics together—latency, throughput, memory footprint, and task accuracy—and to keep a rollback plan so that the original model can be restored if accuracy drops beyond a threshold.
VI. Questions to Consider During Model Selection
Before deciding on model scale, it helps to answer the following questions: Does the business task require long context or complex reasoning? Can the existing data volume support a larger parameter count? What are the latency and cost limits for a single request? Does the deployment environment have multi-node communication capability? If most answers point to medium scale, the benefits of a larger model may not offset the additional cost.
Cloud platforms can reduce the operational burden of infrastructure. Enterprises can compare general-purpose GPU instances, container services, and distributed training tools offered by different vendors, and compare their unit compute price and network performance. Selection should be based on the organization’s own test data, not on marketing materials.
VII. Conclusion
Parameter expansion brings rapid growth in compute cost, and there is a clear gap between the theoretical complexity of matrix multiplication and actual runtime efficiency. A more practical path is to understand how to estimate training and inference compute, recognize why theoretical algorithms are hard to deploy, and improve efficiency through data optimization, architecture choices, and quantization. Model scale should be treated as a variable that needs to be measured, not as a default goal.
