Time per Output Token (TPOT) is the average latency incurred to generate each subsequent token in an autoregressive sequence after the first token has been produced. It is a critical metric for inference performance benchmarking, representing the per-token computational cost of the model's decoding phase. TPOT is distinct from Time to First Token (TTFT), which measures the initial prompt processing overhead, and is a primary determinant of user-perceived responsiveness for streaming outputs.
Glossary
Time per Output Token (TPOT)

What is Time per Output Token (TPOT)?
Time per Output Token (TPOT) is a fundamental latency metric for autoregressive language models, measuring the incremental cost of text generation.
TPOT is heavily influenced by the model's architecture and the efficiency of the KV cache management system, as each generated token requires recomputing the attention mechanism over the growing sequence. Optimizations like continuous batching, speculative decoding, and efficient GPU memory access directly target TPOT reduction. In performance analysis, TPOT is combined with TTFT and throughput metrics like Tokens Per Second (TPS) to provide a complete view of inference system efficiency under load.
Key Characteristics of TPOT
Time per Output Token (TPOT) is a critical latency metric for autoregressive models. Unlike Time to First Token (TTFT), which measures initial overhead, TPOT quantifies the incremental cost of generation, directly impacting user experience for streaming outputs and total completion time.
Core Definition & Formula
Time per Output Token (TPOT) is the average latency for generating each subsequent token after the first in an autoregressive language model. It is calculated as:
TPOT = (Total Generation Time - TTFT) / (Number of Output Tokens - 1)
- Total Generation Time: The wall-clock time from request submission to the completion of the final token.
- TTFT: The time to generate the first token.
- This metric isolates the per-token generation loop cost, excluding prompt processing and initial decoding overhead captured by TTFT.
Primary System Determinants
TPOT is primarily governed by the efficiency of the model's autoregressive decoding loop and its interaction with hardware. Key factors include:
- Model Architecture & Size: Larger models with more parameters generally have higher per-token compute requirements.
- GPU Memory Bandwidth: The speed of reading model weights and the Key-Value (KV) Cache from memory is often the bottleneck. TPOT is frequently memory-bound.
- Decoding Algorithm: Algorithms like greedy decoding, beam search, and sampling (top-k, top-p) have varying computational footprints.
- Hardware Compute (FLOP/s): The peak computational throughput of the accelerator (GPU/TPU).
- Software Kernel Optimization: The efficiency of low-level operations for matrix multiplications and attention mechanisms.
Relationship to Other Metrics
TPOT must be analyzed in conjunction with other performance indicators to get a complete picture:
- Time to First Token (TTFT): TTFT + (TPOT * (n-1)) = Total Latency for an
n-token output. A system optimized for low TTFT (e.g., with continuous batching) may have a slightly higher TPOT. - Tokens Per Second (TPS): TPS is the aggregate throughput metric. For a single request,
TPS ≈ 1 / TPOT. In a batched setting, TPS = (Batch Size) / (Average TPOT per request in the batch). - Throughput-Latency Curve: As system load (concurrent requests) increases, TPOT typically rises due to resource contention for memory bandwidth and compute, following the throughput-latency curve until the saturation point.
Optimization Techniques
Reducing TPOT is a central goal of inference optimization. Common techniques target the memory bandwidth bottleneck and computational efficiency:
- KV Cache Optimization: Methods like Multi-Query Attention (MQA) or Grouped-Query Attention (GQA) drastically reduce the size of the KV cache, lowering memory bandwidth pressure.
- Model Quantization: Using FP8, INT8, or INT4 precision for weights and activations reduces the memory footprint and bandwidth requirements, directly improving TPOT.
- Operator Fusion & Kernel Optimization: Combining multiple operations (e.g., layer normalization, activation, linear projection) into a single, optimized GPU kernel reduces launch overhead and improves hardware utilization.
- Continuous Batching: While primarily boosting throughput, efficient batching keeps the GPU saturated, amortizing memory bandwidth costs and often improving average TPOT under load compared to sequential processing.
Benchmarking & Measurement
Accurate TPOT measurement requires controlled conditions to isolate the decoding cost:
- Warm-Up Runs: Execute several inference passes to ensure the model is loaded, caches are warm, and GPU kernels are compiled, establishing steady-state performance.
- Exclude TTFT: Precisely measure the time interval from after the first token is generated until the last token is complete.
- Control Context Length: TPOT can be influenced by the length of the input prompt due to the size of the KV Cache. Benchmark with fixed, representative prompt lengths.
- Use Synthetic Workloads: For consistent benchmarking, use standardized prompts and generation lengths (e.g., 128 output tokens).
- Report Percentiles: Alongside average TPOT, report P90 and P99 TPOT to understand tail latency variance, which is critical for user-perceived performance.
Strategic Importance for CTOs
For engineering leadership, TPOT is a direct driver of infrastructure cost and user experience.
- Cost Forecasting: TPOT, combined with expected tokens generated per day, allows accurate projection of GPU/TPU hours and cloud inference costs.
- Architecture Selection: Choosing between model architectures (e.g., a model with GQA vs. standard attention) involves a trade-off between quality, memory, and TPOT.
- SLO Definition: User-facing applications with streaming outputs require Service Level Objectives (SLOs) for TPOT (e.g., "P99 TPOT < 75ms") to guarantee a responsive experience.
- Hardware Procurement: TPOT benchmarks are essential for evaluating different accelerator chips (e.g., H100 vs. A100 vs. inference-specific GPUs) based on their memory bandwidth and architecture.
How TPOT is Measured and Calculated
Time per Output Token (TPOT) is a critical latency metric for autoregressive language models, quantifying the incremental cost of generating each subsequent token after the first.
Time per Output Token (TPOT) is calculated by measuring the total time spent in the generation phase (after the first token) and dividing it by the total number of subsequent tokens produced. This isolates the per-token cost of the autoregressive decoding loop, which includes the forward pass through the model, KV cache lookups, and sampling for each new token. It is distinct from Time to First Token (TTFT), which captures the initial prompt processing overhead.
Measurement requires a performance profiler to track timestamps between token emissions, typically averaged over many requests to establish a stable value. TPOT is highly sensitive to model architecture, hardware utilization, and batch size. In a memory-bound scenario, TPOT can increase as the growing KV cache exceeds fast memory, causing slowdowns. It is a key input for forecasting total generation latency and optimizing continuous batching strategies.
TPOT vs. Other Key Inference Metrics
A comparison of Time per Output Token (TPOT) against other core metrics used to measure and benchmark the performance of autoregressive language model inference systems.
| Metric | Time per Output Token (TPOT) | Time to First Token (TTFT) | Throughput (Tokens Per Second) | End-to-End Latency |
|---|---|---|---|---|
Core Definition | Average latency to generate each subsequent token after the first in an autoregressive sequence. | Latency from request submission to generation of the very first output token. | Total number of output tokens generated across all requests in one second. | Total latency from request submission to completion of the final output token. |
What It Measures | Incremental, per-token generation cost during the decoding phase. | Initial processing overhead, including prompt encoding and prefill computation. | Aggregate system output capacity under a given load. | Total user-perceived response time for a complete request. |
Primary Driver | Decoding compute, memory bandwidth for KV cache access, and autoregressive serial dependency. | Compute for prompt processing (prefill), model loading, and context initialization. | Hardware FLOPs, batch size, scheduling efficiency, and system parallelism. | Sum of TTFT and (Output Token Count * TPOT), plus any network/queueing delays. |
Relationship to Output Length | Theoretically constant per token, but can vary due to cache eviction or memory pressure. | Independent of the number of output tokens requested. | Increases with longer outputs if system is not saturated; plateaus at system limit. | Linear increase with output length: Latency = TTFT + (N * TPOT). |
Optimization Focus | KV cache management, attention optimization, speculative decoding, and decoding kernel efficiency. | Prompt caching, continuous batching prefill, model compilation/warm-up, and cold start reduction. | Continuous batching, dynamic scheduling, maximizing GPU utilization, and load balancing. | Holistic optimization of both TTFT and TPOT, plus infrastructure (networking, queuing). |
Key Bottlenecks | Memory bandwidth (KV cache I/O), autoregressive serialization, small matrix multiplications. | Compute-bound prompt processing, I/O for model loading, context initialization. | GPU compute saturation, memory bandwidth limits, scheduler overhead, I/O bottlenecks. | The slowest component in the chain: often TPOT for long generations, or TTFT for short ones. |
Typical Benchmark Values | 20-150 milliseconds per token (highly model and hardware dependent). | 100-2000 milliseconds (depends on prompt length and hardware). | 10-1000+ tokens per second (scales with batch size and hardware). | Varies linearly: e.g., 50ms TTFT + (50 tokens * 75ms TPOT) = 3.8 seconds. |
Use Case Relevance | Critical for streaming applications, chat interfaces, and any long-form generation. | Determines perceived responsiveness for short answers and interactive applications. | Determines cost-efficiency and maximum serving capacity for batch workloads. | Primary user-facing metric for non-streaming, synchronous request-response patterns. |
Frequently Asked Questions
Time per Output Token is a critical metric for evaluating the efficiency of autoregressive language model inference. These questions address its definition, measurement, optimization, and relationship to other key performance indicators.
Time per Output Token is the average latency incurred to generate each subsequent token after the first in an autoregressive language model, representing the incremental generation cost of the decoding phase. It is calculated by measuring the total time spent generating all output tokens after the first (the decode time) and dividing by the total number of those tokens: TPOT = Total Decode Time / (Total Output Tokens - 1). This metric isolates the per-token computational cost of the model's forward pass through its layers and the associated operations like sampling and KV cache updates, excluding the initial prompt processing captured by Time to First Token.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Time per Output Token (TPOT) is a critical latency metric, but it must be understood in the context of the broader performance landscape. These related terms define the key measurements and concepts used to benchmark and optimize inference systems.
Time to First Token (TTFT)
Time to First Token is the latency from request submission until the first output token is generated. It measures the initial overhead of prompt processing, which includes:
- Encoding the input sequence
- Performing the initial forward pass through the model
- Filling the KV Cache
Unlike TPOT, which measures incremental generation, TTFT is largely independent of output length and is crucial for user-perceived responsiveness. High TTFT can indicate bottlenecks in prefill computation or model loading.
Tail Latency (P90/P99)
Tail latency refers to the high-percentile latencies (e.g., P90, P99) in a request distribution. While TPOT is an average, tail latency captures the worst-case delays that degrade user experience.
Causes of high tail latency during token generation include:
- Resource contention from concurrent requests
- Garbage collection pauses
- Network variability
- Unpredictable model execution paths (e.g., variable branching in Mixture of Experts)
Managing tail latency is often more critical than optimizing average TPOT for ensuring consistent service quality.
Tokens Per Second (TPS)
Tokens Per Second is the primary throughput metric for generative language models, calculated as the total output tokens generated across all requests per second. It is intrinsically linked to TPOT:
TPS ≈ (Number of Concurrent Requests) / TPOT
Optimizations that reduce TPOT (like KV Cache Management or continuous batching) directly increase TPS. However, maximizing TPS often involves trading off against latency, as seen on a throughput-latency curve. TPS is essential for calculating the cost efficiency of an inference endpoint.
Hardware Utilization
Hardware utilization measures the percentage of available computational resources (GPU/CPU cores, memory bandwidth) used during inference. It provides context for TPOT measurements.
- A low TPOT with low GPU utilization may indicate a memory-bound workload, where performance is limited by data movement, not computation.
- A high TPOT with high utilization may indicate a compute-bound workload on saturated hardware.
Techniques like operator fusion and mixed precision inference aim to increase utilization and reduce TPOT by minimizing idle hardware cycles and data transfer overhead.
Steady-State Performance
Steady-state performance refers to the consistent latency (TPOT) and throughput (TPS) achieved after an inference system has completed its warm-up phase. Key warm-up activities that affect initial TPOT include:
- JIT compilation of model kernels
- Population of CPU/GPU caches
- Autoscaling to handle load
Measurements of TPOT for benchmarking or Service Level Objective (SLO) definition must be taken during steady-state, not during the initial cold start period where latency is unstable and unrepresentative.
The Roofline Model
The Roofline Model is an analytical framework that predicts the maximum attainable performance (e.g., tokens/second) of a computational kernel based on its operational intensity (operations per byte of memory access).
It defines two performance ceilings:
- A Compute-Bound ceiling: Limited by peak GPU FLOPs.
- A Memory-Bound ceiling: Limited by memory bandwidth.
For autoregressive decoding (TPOT), the operational intensity is often very low, as generating each token requires loading the entire KV Cache. This typically places token generation in the memory-bound regime, making optimizations that reduce memory traffic (like quantization) highly effective for lowering TPOT.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us