Inferring LLM Parameter Count from Inference Speed—and the Engineering Challenges That Follow
Closed-source model providers rarely disclose parameter counts, but inference throughput is a publicly observable physical constraint. This article explains how to estimate the active and total parameters of a closed-source LLM by benchmarking it against open-source models with known specifications on the same hosting platform, fitting a power-law relationship between active parameters and decoding throughput. It covers a reproducible four-step methodology with measurement code, cross-validation strategies, major sources of error, and five engineering challenges—latency budgets, memory and bandwidth walls, evaluation credibility, tiered release of high-risk capabilities, and shifting cost structures—that follow from the current generation's capability leap.
1. The Phenomenon: Capability Leaps Always Come with Observable Costs
Model iterations over the past couple of years show clear “generational” characteristics: new general-purpose assistant models dramatically outperform the previous generation’s flagships on benchmarks involving multi-step tasks in real terminal environments, repository-scale refactoring, and vulnerability discovery and exploit-chain construction. Some safety-relevant capabilities are so strong that vendors only expose them to a small set of defensive customers.
But capability gains are not free. The most directly observable cost is inference speed: a new-generation model may only deliver roughly 40% of the generation throughput of its predecessor, with time-to-first-token and per-token latency under long contexts degrading in tandem. This inverse “capability–speed” relationship gives external observers a side channel into a model’s parameter scale.
2. Why Parameter Count Can Be Estimated Indirectly
Mainstream closed-source models generally use sparse Mixture-of-Experts (MoE) architectures, where each forward pass activates only a subset of experts. Two key quantities therefore exist:
- Total parameters: determine memory footprint, weight-loading bandwidth, and deployment cost;
- Active parameters: determine the compute required per forward pass and are the primary driver of throughput.
On the same inference pipeline, if other conditions are roughly equal, active parameter count and decoding-phase throughput follow an approximately power-law relationship:
$TPS \approx c \cdot N_{active}^{-\alpha},\quad \alpha \in (0,1)$
Taking logarithms yields a linear relationship that can be fitted with least squares. The exponent $\alpha$ is typically less than 1 because decoding is dominated by memory bandwidth and access efficiency rather than raw compute.
Core experimental premise: on the same managed platform from the same cloud provider, the infrastructure, batching strategy, quantization precision, networking, and scheduling are identical across all models. There is no reason for the platform to deliberately slow down or speed up any particular model. Therefore, cross-model throughput differences mainly reflect differences in model scale.
3. The Inference Method: A Reproducible Four-Step Process
Step 1: Build a Reference Set
Select open-source models with fully disclosed parameter counts and architectures, covering different scales and architecture families, to form a comparison table (the values below are illustrative—you must run your own measurements):
| Reference model type | Total params | Active params | Architecture | Precision | Throughput (TPS) |
|---|---|---|---|---|---|
| Small model A | 21B | 3.6B | MoE | FP8 | 267 |
| Small model B | 117B | 5.1B | MoE | FP8 | 297 |
| Medium model C | 230B | 10B | MoE | FP8 | 131 |
| Medium model D | 355B | 32B | MoE | FP8 | 108 |
| Medium model E | 1.0T | 32B | MoE | FP4 | 206 |
| Large model F | 685B | 37B | MoE | FP8 | 100 |
| Dense model G | 70B | 70B | Dense | FP8 | 61 |
| Target model X | ? | ? | Unknown | FP8 | 46 |
Note that including dense model G is a necessary “architecture calibration point”: it has the highest active parameter count but not the lowest throughput, showing that architectural differences must be explicitly modeled rather than inferred from parameter count alone.
Step 2: Standardize the Measurement Protocol
Variables that must be fixed and recorded: input/output lengths, whether streaming is enabled, batch size and concurrency level, whether context hits a cache, quantization precision, sampling parameters (temperature, top-p), and whether speculative decoding is enabled. TPOT (time per output token) is recommended as the primary metric, as it is more stable than total TPS:
import time, statisticsdef measure(stream_fn, prompt, n=20, warmup=3):for _ in range(warmup):list(stream_fn(prompt))ttft, tpot = [], []for _ in range(n):t0 = time.perf_counter()first, prev, k = None, None, 0for tok in stream_fn(prompt):now = time.perf_counter()if first is None:first = now - t0elif prev is not None:tpot.append(now - prev)k += 1prev = nowttft.append(first)return statistics.median(ttft), statistics.median(tpot)
Step 3: Fit and Estimate a Confidence Interval
import numpy as npref = np.array([(3.6,267),(5.1,297),(10,131),(32,108),(32,206),(37,100),(70,61)], float)k, b = np.polyfit(np.log(ref[:,0]), np.log(ref[:,1]), 1)def infer(tps):return float(np.exp((np.log(tps) - b) / k))print("alpha =", -k, "active(B) =", infer(46))
Key discipline: output an interval, not a point estimate. Use leave-one-out cross-validation to obtain the residual standard deviation, then convert it into upper and lower bounds on the parameter count. With this kind of approach, the previous generation’s flagship models typically fall in the range of 80–110B active parameters with total parameters on the order of 1.5–2.5T; the new generation may fall in the range of 150–250B active parameters with total parameters exceeding 4T. These figures should be understood as order-of-magnitude judgments, not precise specifications.
Step 4: Cross-Validate
A single metric can be contaminated by optimization techniques. Use at least three independent signals to corroborate: throughput decay curves at different input lengths, memory footprint estimation (total parameters × bytes per parameter at the given precision), and the inflection point of time-to-first-token as concurrency increases.
4. Sources of Error: Why Only Intervals Are Possible
- Speculative decoding: a small draft model can significantly boost TPS, making a large model appear “smaller”;
- Batching and continuous batching: under high concurrency, throughput is dominated by scheduling policy, drowning out the parameter signal;
- KV cache and prompt reuse: cache hits barely reflect true compute cost;
- Precision differences: FP4 vs. FP8 involves roughly a 1.5–2× bandwidth difference and must be normalized;
- Context length: attention overhead grows non-linearly with long contexts, so comparisons must be made at fixed lengths;
- Platform-side rate limiting and queuing: affects all models simultaneously; sample during low-load periods.
5. Five New Challenges from the Capability Leap
- Rebuilt latency budgets. When TPOT rises more than 2×, the previously acceptable “synchronous wait” interaction pattern breaks down. Products must shift to streaming output, asynchronous task execution, observable progress, and resumable runs.
- Memory and bandwidth walls. Once total parameters exceed a trillion, weight loading becomes the bottleneck. You need a combination of tensor/expert parallelism, tiered caching, and quantization; when deploying on container platforms, reserve sufficient GPU memory and local high-bandwidth storage.
- Declining credibility of evaluation benchmarks. Benchmark contamination, prompt leakage, and leaderboard gaming reduce the discriminative power of public rankings. Enterprises should build private, version-controlled internal evaluation sets and track task-level pass rates rather than a single score.
- Tiered release of high-risk capabilities. When a model significantly outperforms peers in dual-use areas such as vulnerability exploitation, you need a closed loop of capability assessment, access whitelisting, audit logging, and abuse monitoring. Logging services and monitoring/alerting are essential infrastructure.
- Changed cost structure. Per-task cost may rise several-fold. Route by scenario: simple tasks go to smaller models or caches, complex tasks are routed to the flagship model, and budget guardrails should be in place.
6. Actionable Checklist
- Build your own “reference vs. target” benchmarking pipeline that automatically re-runs and outputs parameter intervals on every model update;
- Fix and version all measurement parameters to produce comparable time series;
- Use multi-signal cross-validation; reject single-point conclusions;
- Implement model routing and fallback strategies at the product layer, turning the speed penalty into configurable experience tiers;
- Keep high-risk capability scenarios disabled by default, opening them gradually based on customer qualification and audit requirements.
7. Conclusion
Parameter counts are not disclosed, but inference speed is a publicly observable physical constraint. By establishing an empirical mapping between parameter count and throughput in a unified hosted environment, external teams can judge the scale of closed-source models to within an order of magnitude, and use that to forecast cost, latency, and deployment shape. More importantly, this approach of “inferring internal specifications from observable costs” is itself a general methodology for capacity planning and model selection: quantify the cost first, derive the constraints, then design the engineering response.
