TTFT
A key user-experience metric in large language model inference, measuring the elapsed time from request submission to the appearance of the first output token. It is primarily determined by the prefill stage of inference.
Core Facts
Time to First Token (TTFT) refers to the time interval between a user sending a request and the model outputting the first token, and is primarily constrained by the duration of the prefill stage.
Time to First Token (TTFT) refers to the time interval between a user submitting a request and the model outputting the first token, and is primarily constrained by the time cost of the prefill phase in which the model processes the input prompt.
Inference latency is typically decomposed into two core metrics: time to first token (TTFT) and subsequent token generation throughput.
Timeline (last 90 days)
Compared with existing exact caching schemes, FrontierReplay reduces median time to first token (TTFT) by 16% to 89%, reaching up to 8.9x speedup.
Time to first token (TTFT) is mainly determined by prefill, and time per output token (TPOT) is mainly determined by decode; after disaggregation, the two can be optimized separately.
The performance of an LLM inference engine is usually measured by core metrics such as first-token latency (TTFT), per-token output latency (TPOT), throughput (tokens/s) and VRAM/off-chip memory usage.
If the prefill budget is too large, that decode step will time out on TBT; if too small, prefill advances slowly and TTFT degrades.
Interactive LLM services have strict SLO requirements for time to first token (TTFT) and time between tokens (TBT).
Given that the source cache is already ready, directly reusing the KV Cache brought a median 2.10 to 5.08 times speedup in time to first token (TTFT).
RidgeFill's benefit becomes more pronounced as context lengthens, with the speedup ratio stable in the 16K to 120K range; it has limited significance for short requests and is better suited as a tiered strategy that enables fill for latency-sensitive, extremely long-context requests and falls back to exact computation for accuracy-sensitive tasks.
The figure Buoyant gives in its own benchmark is that Kinference reduces median TTFT (time to first token) by 95%.
When evaluating TTFT improvement figures, one should focus on whether the baseline is random routing within the same cluster, whether the load includes a realistic multi-turn conversation distribution, and whether the full P50 and P99 quantiles are reported.
CACPU optimizes the prefill stage, so its benefits are mainly reflected in TTFT, with limited impact on per-token decoding throughput.
40 more timeline events
All Facts (20)
Time to First Token (TTFT) refers to the time interval between a user sending a request and the model outputting the first token, and is primarily constrained by the duration of the prefill stage.
90%VerifiedTime to First Token (TTFT) refers to the time interval between a user submitting a request and the model outputting the first token, and is primarily constrained by the time cost of the prefill phase in which the model processes the input prompt.
90%VerifiedInference latency is typically decomposed into two core metrics: time to first token (TTFT) and subsequent token generation throughput.
90%VerifiedTPS measurement is typically divided into two phases: Time to First Token (TTFT) and the generation rate (throughput) of subsequent tokens.
85%VerifiedP/D Disaggregation (Prefill/Decode Disaggregation) deploys the Prefill and Decode stages on different nodes to independently scale according to their respective computational characteristics, while simultaneously optimizing throughput and time to first token (TTFT).
75%VerifiedTPS (Tokens Per Second) is the core metric for measuring the inference speed of large language models, specifically referring to the number of tokens the model outputs per second during the generation phase.
75%VerifiedTime to First Byte (TTFB) reflects the latency from when a request is sent to when the model returns the first token, encompassing network transmission, request queue waiting time, and model warm-up time.
75%VerifiedIn digital human scenarios, the WebRTC end-to-end latency typically needs to be kept within 500 milliseconds to ensure a natural and smooth interactive experience.
75%VerifiedTTFT is determined by the Prefill phase and is compute-bound, while TPOT corresponds to the Decode phase and is memory-bandwidth-bound.
70%VerifiedThe floating-point operation count of prefill grows approximately quadratically with input length, and is therefore the main source of TTFT (time to first token).
65%VerifiedLong context significantly raises time to first token, because prefill computation grows with input length; hitting the cache can skip most of the prefill and directly improve first-token latency.
65%VerifiedLarge model inference is divided into two phases, Prefill and Decode; Prefill is a major component of Time to First Token (TTFT), while Decode corresponds to Time Per Output Token (TPOT).
65%VerifiedThe prefill stage of LLM inference processes all input tokens in parallel and generates the initial KV Cache; it is a compute-intensive operation and the direct determinant of TTFT.
65%Unverified传统混合部署中Prefill阶段的大批量计算会阻塞Decode阶段的token生成,导致TTFT波动剧烈
85%UnverifiedPD分离架构通过物理隔离消除Prefill对Decode的干扰,显著改善TTFT的P99延迟
85%UnverifiedHigher memory bandwidth means lower time to first token (TTFT) and higher tokens per second (TPS) generation.
70%UnverifiedTTFT (time-to-first-token) is a core metric for measuring the experience of interactive applications.
70%UnverifiedTTFT (time to first token) is mainly determined by the prompt processing (prefill) stage and is approximately linearly correlated with the number of input tokens.
60%UnverifiedThe prefill stage refers to the process in which the model processes the input prompt all at once; the computation is proportional to input length, and in long-document scenarios the time to first token (TTFT) is significantly prolonged.
60%UnverifiedAt approximately 4K input, TTFT is 23.6 seconds with decoding at 46.6 tok/s; at 8K, 47 seconds and 41.4 tok/s; at 16K, 1 minute 30 seconds and 30.8 tok/s; at 30K, 3 minutes 15 seconds and 31.9 tok/s.
60%