UltraSpeed Inference Acceleration: Where the Speed Comes From and Where the Limits Are

    Large language models are increasingly accurate, but production deployments often hit a wall on inference latency. This article explains why inference speed becomes a bottleneck (prefill vs. decode, TTFT, and the memory wall), how to correctly interpret "1,000 tokens per second" claims, and the two main acceleration routes: model compression (pruning, quantization) and inference-time optimization (speculative decoding, dynamic compute routing). Using the UltraSpeed mode as an example, it covers how speculative decoding works, what dynamic routing trades off, a side-by-side comparison of the approaches, and a checklist for developers evaluating acceleration options. All performance figures cited are vendor-reported and should be verified against your own workloads.

    Why Inference Speed Becomes the Bottleneck in Production

    Over the past year, large language models have approached the average level of human professionals in text generation, code writing, and multimodal understanding. But when developers move a model from offline benchmarks into real business scenarios, they quickly run into a problem: the larger and more accurate the model, the slower the response tends to be. For products like chatbots, voice assistants, and code completion, users first perceive two metrics. The first is Time to First Token (TTFT), the time from submitting a request to receiving the first character. The second is generation throughput, the number of tokens output per second afterward. Together, they determine whether the interaction feels smooth.

    Inference roughly splits into two phases. The prefill phase processes the entire input at once. It is compute-intensive and primarily bound by raw compute power, and it determines TTFT. The decode phase generates output tokens one at a time. For each token, a large volume of model weights must be read from GPU memory into the compute units, so this phase is usually bound by memory bandwidth. The more parameters a model has, the more data must be read at every step—this is the well-known “memory wall.” Therefore, speeding up inference cannot rely solely on faster compute units; you must also reduce the amount of data read per step, or make each read accomplish more useful work.

    Understanding “1,000 Tokens per Second”

    The industry commonly measures inference speed in tokens per second (TPS). A token is the basic unit a model uses to process text, and its correspondence to words or characters depends on the tokenizer. For Chinese, a common estimate is that one token equals roughly 1 to 2 characters. At about 1.8 characters per token, 1,000 tokens per second translates to roughly 1,800 Chinese characters per second.

    This number needs to be understood in context. Average human reading speed is on the order of a few hundred characters per minute. At 300 characters per minute, 1,800 characters per second is more than 300 times reading speed. But this comparison glosses over three questions of measurement scope. First, does TPS refer to the decode speed of a single request, or the aggregate throughput of a cluster? The documentation should state this clearly. Second, does the measurement include TTFT and network transfer time? Third, what hardware, batch size, input length, and output length were used in the test? The same model can produce very different numbers under different conditions.

    So when you read a TPS figure published by a vendor, check the test conditions first, then judge whether it represents your own workload. All performance figures cited in this article come from the vendor data described in the original source and have not been independently reproduced. Before making a selection decision, rely on official benchmark documentation and tests on your own workloads.

    The Relationship Between Parameter Count and Inference Latency

    Model parameters can be understood as a set of numerical weights that together encode the patterns the model learned from data. More parameters generally allow a model to cover more knowledge and more complex reasoning paths. But predicting each token requires matrix operations over these parameters. The larger the model, the higher the compute and memory access per step, and the higher the latency.

    This creates tension between capability and speed. The difficulty of acceleration lies in reducing per-step compute and memory access while preserving model capability as much as possible. The differences between acceleration approaches mainly come down to how they weigh these two goals.

    Two Acceleration Routes: Compress the Model or Optimize the Inference Process

    The first route is compressing the model itself. Pruning removes weights or structures that have little influence on the output. Quantization converts weights and activations from high precision to low precision, for example from 16-bit floating point to 8-bit or even 4-bit integers. Both shrink model size and reduce memory access pressure. The risk is that with aggressive compression, the model degrades noticeably on complex reasoning, long-chain tasks, and low-resource languages.

    The second route keeps the weights unchanged and optimizes the inference process instead. Speculative decoding and dynamic compute routing fall into this category. They change how computation is scheduled rather than directly removing model weights. However, these methods can still affect output quality, so their effect must be confirmed through evaluation.

    The Core Mechanisms of UltraSpeed

    According to the original article, UltraSpeed mode mainly introduces two types of mechanisms.

    Speculative decoding works as follows. A lightweight draft model first generates a stretch of candidate tokens quickly, and the large model then verifies these candidates in parallel in one pass. Verifying multiple tokens can be merged into a single forward computation, so the large model reads its weights once and confirms results for multiple positions, amortizing the memory access cost per token. If the draft model’s predictions closely match the large model’s—meaning the acceptance rate is high—the speedup is significant. When the acceptance rate is low, the draft model’s overhead is wasted. Standard implementations use rejection sampling rules, which preserve an output distribution identical to the original model in sampling scenarios. However, this conclusion depends on correct implementation, and the acceptance rate varies greatly by task type.

    Dynamic compute routing attempts to skip certain layers or attention heads during inference, reducing per-step computation. Because this changes the computation path, it can introduce some accuracy loss. Before use, you need a calibration dataset to determine which layers can be skipped, and you must validate quality on the target task. These transformations are not mathematically equivalent, so you cannot assume the output remains completely unchanged.

    The article also mentions hardware-software co-optimization, such as kernel fusion and optimized memory layouts. These techniques reduce the number of reads and writes of intermediate results, which directly helps the memory access bottleneck in the decode phase. But their effect likewise depends on the specific hardware and framework version.

    Comparing the Two Routes

    Dimension Pruning & Quantization Speculative Decoding Dynamic Compute Routing
    Changes model weights? Yes No No, but changes the compute path
    Main benefit Smaller size and memory access Amortizes per-token memory access cost Less compute per step
    Main risk Capability loss, degradation on complex tasks Limited gains at low acceptance rates, extra memory overhead Accuracy loss, requires calibration
    Effect depends on Compression ratio and calibration data Match between draft and target models, task type Routing policy, task distribution
    What to verify Accuracy on target tasks Acceptance rate, output distribution, end-to-end latency Quality regression, long-tail issues

    A Checklist for Developers

    Before deciding whether to adopt an acceleration mode, it is recommended to confirm each of the following items.

    1. Whether TTFT meets interaction requirements. For example, in a conversational scenario, can users see the first character within an acceptable waiting time?
    2. Decode throughput at the target batch size.