LLM Inference Speed: The New Battleground in the Second Half of the AI Race

    As foundation models converge in capability, inference speed has become a primary product differentiator. This article examines why token generation speed matters, how deployment choices can create more than a tenfold performance gap for the same model, the key engineering factors behind it, and how to evaluate and optimize inference performance for real business workloads.

    1. The Shift in Focus: From “Can It” to “How Fast”

    For the past few years, the narrative in the large language model industry centered on parameter counts and benchmark scores. As baseline capabilities have converged and the gap between open-source and closed-source models has narrowed on most general tasks, the focus is shifting to the next layer: the speed users actually experience. Inference speed is evolving from a purely engineering metric into a core component of product competitiveness.

    On a typical speed-capability frontier chart, four representative data points stand out: a high-speed model from a startup team delivering roughly 2,000 tokens per second; an open-source model optimized and deployed by a third-party platform at around 1,500 tokens per second; an acceleration-optimized version built in-house by a device manufacturer at about 1,000 tokens per second; and a hyperscale model running on a high-performance acceleration platform at roughly 850 tokens per second. What they share is that all push single-stream output speed into the thousand-token-per-second range.

    Why Speed Suddenly Matters

    • Changing interaction patterns: The shift from simple question-and-answer exchanges to long-form generation, code completion, and real-time voice conversation means longer outputs place a higher premium on speed.
    • Tighter latency budgets: AI agents require multiple rounds of tool calls. If each round is a few seconds slower, the usability of the entire chain collapses.
    • Changing cost structures: Higher throughput often directly reduces the cost per token, so speed and cost naturally move in the same direction.

    2. The Overlooked Variable: Deployment Can Make a Tenfold Difference

    The most striking phenomenon on the frontier chart is not the absolute speed of any single model, but the fact that the same model can vary in speed by more than tenfold depending on how it is deployed. A hyperscale model’s official service runs at roughly 50 tokens per second, while the same model on a high-performance acceleration platform can approach 850 tokens per second. The model weights are identical; what changes is the runtime.

    This shows that speed is not an inherent property of a model, but a result jointly determined by three elements: the model, the inference system, and the hardware topology. Most points on the speed frontier come from purpose-built, optimized deployment configurations rather than any innate advantage of the model itself.

    Key Engineering Factors That Affect Speed

    1. Batching strategy: Static batching is simple but suffers from severe head-of-line blocking; continuous batching can significantly improve overall throughput.
    2. KV cache management: Memory paging, prefix reuse, and cache eviction policies determine stability in long-context scenarios.
    3. Parallelism strategy: The combination of tensor parallelism, pipeline parallelism, and expert parallelism directly affects cross-device communication overhead.
    4. Operators and quantization: Low-precision computation, fused operators, and attention kernel optimization are the core sources of single-device efficiency.
    5. Scheduling and queuing: Request prioritization, timeouts, and fallback policies determine tail latency rather than average latency.

    3. Co-Designing Models and Inference Systems

    The solutions that perform well on the frontier generally do not “only change the model” or “only change the system.” Instead, they co-design both: the model architecture makes concessions for inference-friendliness during training, and the inference system is then deeply optimized for that architecture. This collaboration typically shows up in a few directions:

    • Inference-friendly architecture design: Reducing deep non-linearities, controlling attention complexity, and designing layer structures that are easy to partition.
    • Sparsification and conditional computation: Activating only a subset of parameters per forward pass, trading controllable quality for speed.
    • Automated system optimization: Automatically searching for parallelism strategies, automatically generating and tuning high-performance operators, and automatically handling experiment design and regression validation.

    Notably, “letting AI participate in AI development” has become a practical approach: through automated code development, experiment design, and system optimization, the R&D iteration cycle can be compressed from weeks to days. R&D efficiency itself is becoming an upstream variable of speed competitiveness.

    4. How to Evaluate Speed Scientifically

    Looking at a single “tokens per second” number is easy to misjudge. It is recommended to break it down into at least four dimensions:

    1. Time to first token (TTFT) —— determines "whether it feels laggy"
    2. Single-stream output (TPS) —— determines "whether the typewriter effect is smooth"
    3. Concurrent throughput (tokens/s) —— determines "cost per unit"
    4. Tail latency (P95/P99) —— determines "whether it stays usable at peak"

    A common mistake is using single-stream speed under low concurrency to represent overall service capacity. In real workloads, single-stream speed, concurrency, and memory usage form a three-way constraint: pushing any one to its limit forces a cost on the other two.

    5. Practical Optimization Recommendations for Business

    1. Define experience targets before choosing a model: Write TTFT and TPS as explicit product metrics rather than a vague “make it fast.”
    2. Route by scenario tier: Send simple requests to small models or high-speed channels and complex requests to large models, balancing experience and cost.
    3. Treat deployment as a first-class concern: During model selection, evaluate runtime capabilities in parallel, including continuous batching, prefix caching, quantization support, and parallelism scalability.
    4. Build an observability loop: Use monitoring, alerting, and logging services to collect latency distributions, queue times, and cache hit rates, forming a continuous tuning loop.
    5. Elastic scaling and capacity planning: Use the elasticity of container platforms to handle traffic peaks, and use object storage and message queues to decouple long-running tasks so the inference layer is not overwhelmed.

    For cloud deployment, the common pattern is: container platforms host inference services, load balancers distribute traffic, monitoring and alerting observe latency and saturation, logging services capture call chains, and object storage holds models and datasets. The general-purpose capabilities offered by cloud providers such as Baidu AI Cloud are typically organized around these layers, making it easier for teams to refocus their optimization efforts on the model and scheduling itself.

    6. Conclusion

    In the second half of the large model race, the competition is no longer just about “whose model is smarter,” but about “who can reliably and quickly deliver intelligence to users at an acceptable cost.” Speed has become the new competitive edge because it simultaneously connects experience, cost, and availability. For developers, the real opportunity lies in treating the inference system as a first-class engineering object on par with the model, and using measurable metrics, reproducible experiments, and a sustainable tuning loop to push the baseline from tens of tokens per second to the new level of thousands of tokens per second.