TTFT stands for time to first token. It is the time between sending a request to a large language model (LLM) and receiving the first piece of its answer. A token is the small chunk of text, often a word fragment, that a model reads and writes. TTFT is the delay your users feel before anything appears on screen. It is set by the whole serving stack: network, queue, GPU compute and memory. It is not set by the model alone. That is why infrastructure teams, not only model teams, own this number.
TL;DR
- TTFT is the time from request submission to the first received token. It generally includes queuing, prefill and network latency, according to NVIDIA's benchmarking documentation.
- Longer prompts raise TTFT, because the model must process the entire input before it can emit anything.
- TPOT (time per output token) covers the speed of the rest of the answer. TTFT is the wait to start, TPOT is the pace after that.
- CXL is a memory interconnect that adds capacity to servers. Early research shows it can cut TTFT when it lets a cluster reuse cached prompt work.
- A TTFT target is an infrastructure requirement. It shapes GPU count, memory, networking and where the cluster sits relative to users.
Table of Contents
- What TTFT means in plain terms
- What happens during the wait
- How to measure TTFT correctly
- TTFT and TPOT: the two halves of response speed
- What actually moves TTFT
- What CXL is, and why it appears next to TTFT
- Setting a TTFT target for your deployment
- Promo: from a TTFT target to a running cluster
- Our perspective
- FAQ
- Sources
What TTFT means in plain terms
When you type a question into a chatbot, nothing visible happens for a moment, and then words start streaming. TTFT is that moment. NVIDIA's documentation defines it as the time from query submission to the first received token, provided the response is not empty. Empty first responses are discarded by benchmarking tools such as GenAI-Perf and LLMPerf, because TTFT is meaningless when the first response has no token.
You will see it written as "time to first token", "TTFT" or sometimes "time-to-first-token". All three mean the same thing. It is usually reported in milliseconds or seconds, and almost always as a percentile (p50 or p95) rather than a single number, because individual requests vary widely.
The metric matters most where a person or another system is waiting. Etalon, a 2024 academic framework for evaluating LLM serving, notes that TTFT is particularly important for real-time interactions, while a longer TTFT can be acceptable for offline or batch jobs. A voice agent or live chat needs a fast start. A nightly document-summarization run does not.
What happens during the wait
TTFT is not one operation. It is a chain of three stages.
- Network and routing. The request travels from the client to the serving cluster, possibly through a load balancer or proxy.
- Queuing and scheduling. If more requests arrive than the system can batch, new ones wait. NVIDIA's benchmarking article explains that requests wait in a queue when concurrency exceeds available batch capacity across active replicas.
- Prefill. The model reads the whole prompt and builds its key-value (KV) cache, the stored attention data it reuses while generating. The first token is produced at the end of this step. NVIDIA's metrics documentation states that longer prompts increase TTFT because the attention mechanism processes the full input sequence to create the KV cache.
Etalon summarizes this as scheduling delay plus prompt-processing time, and adds that system load, routing policy and batching policy drive the first, while prompt length drives the second.
A worked example
Arize AI's glossary gives a concrete breakdown. A request with a 6,000-token prompt had a measured TTFT of 1.8 seconds. Server timing showed 900 ms in the queue, 700 ms of prompt processing, 50 ms to emit the token and about 150 ms of network and client handling.

Half the wait happened before the model started working. Buying faster GPUs would have trimmed only the 700 ms prefill slice. Fixing queuing, through more replicas or better routing, would have recovered far more. This is why a TTFT number alone tells you little until you break it into stages.
How to measure TTFT correctly
Two teams can report very different TTFT for the same system and both be right, because they timed different things.
- Server-side TTFT starts when the server receives the request and stops when it emits the first token.
- Client-side TTFT starts when the client sends the request and stops when the first streamed chunk arrives.
Arize's formulas are ttft_server = first_token_emitted − request_received and ttft_client = first_token_received − request_received. Its guidance is to record timestamps at every stage boundary and to document exactly where timing starts and stops, since the two versions are not interchangeable. Respan, an LLM observability vendor, makes the same point: a server-side timer misses the network hop and any proxy in the path.
For users, the client-side number is what counts. For capacity planning, you need both, so you can see which stage is eating the budget.
Control prompt length when comparing results
The most common benchmarking error is comparing TTFT across different prompt sizes. Etalon warns that TTFT depends heavily on prompt length, so a single fixed TTFT target is impractical, and dividing by prompt length would unfairly penalize short inputs. A 200-token prompt and a 20,000-token prompt do not cost the same to start, even if the answers are identical.
When you compare two hardware configurations, hold these constant:
- Input and output token lengths
- Concurrency (how many requests are in flight)
- Model, precision and serving engine
- Where the timer starts and stops
- Warm versus cold cache state
Then report percentiles, not averages.
TTFT and TPOT: the two halves of response speed
TTFT answers "how long until it starts?" TPOT answers "how fast does it continue?" The Etalon documentation defines TPOT as the total time to generate all output tokens divided by the number of output tokens, while TTFT covers the time to the first one. Databricks' engineering guidance frames the same split: TTFT is the wait to begin seeing output, and total latency also depends on generating the remaining tokens.
| Metric | What it measures | Dominant stage | Matters most for |
|---|---|---|---|
| TTFT | Request sent to first token | Queueing and prefill | Chat, voice, interactive tools |
| TPOT | Average time per later token | Decode | Long answers, streaming reading speed |
| End-to-end latency | Request sent to last token | Both | Batch and API workloads |
A rough relationship: total latency is about TTFT plus TPOT multiplied by the remaining output tokens. A system can have a great TTFT and a sluggish TPOT, or the reverse. Prefill is compute-heavy. Decode leans on memory bandwidth. That is why the two metrics respond to different hardware choices, and why a service-level objective (SLO) normally sets a target for each.
Some sources use inter-token latency or time between tokens (TBT) for related ideas. TPOT averages within one request. TBT looks at gaps between consecutive tokens and can expose stalls that an average hides.
What actually moves TTFT
TTFT is a systems problem. The levers sit at several layers.
Compute. Prefill is dominated by raw GPU throughput. Nscale's 2026 explainer gives an illustration: raising prefill throughput from 1,000 to 2,500 tokens per second cuts processing time for a 100,000-token prompt from roughly 100 seconds to 35 to 40 seconds.
Memory. The KV cache must live somewhere. Long contexts and many concurrent users consume GPU memory quickly. Once memory runs out, batches shrink, queues grow and TTFT climbs.
Network. Network latency is part of TTFT by definition. For multi-node serving, the fabric between GPUs also affects how quickly prefill and cache data move. We cover fabric design in our guide to AI networking infrastructure and in our high-speed interconnects design guide.
Scheduling and routing. Sending requests to the replica that already holds the relevant cache avoids repeated prefill. Poor routing wastes it.
Prompt design. Trimming system prompts and retrieved context shortens prefill. In retrieval-heavy applications, the amount of context added per request often matters more than the model size.
NVIDIA's own perspective on the metric is that TTFT reflects both the model and whether the serving infrastructure sustains low latency under concurrent load. A model that looks fast in a single-user test can slow sharply at production concurrency.
What CXL is, and why it appears next to TTFT
CXL stands for Compute Express Link. It is an open interconnect standard that runs over PCIe connections and lets CPUs and devices share memory coherently, meaning they see a consistent view of the same data. A University of Wisconsin paper on CXL in cloud practice describes three protocols: CXL.io carries PCIe-style transactions for configuration, CXL.cache lets devices access host memory coherently, and CXL.mem lets hosts access device memory with ordinary loads and stores.
What CXL memory expansion means
CXL memory is extra DRAM attached through a CXL device instead of through the server's limited DIMM slots. The same paper notes that CXL 1.1 enables memory expansion, that CXL today doubles memory capacity per socket, and that on current ARM, Intel and AMD server CPUs it is the practical way to add capacity at good performance and reasonable cost. The authors point out that current AMD and Intel server CPUs offer only 27% and 39% of their former memory capacity per unit of performance, which is the gap CXL fills.
The simulator LLMServingSim models CXL as a separate memory tier: lower bandwidth and higher latency than HBM or DDR5 (the memory on or next to the GPU and CPU), but with terabyte-scale capacity. In its example, four striped CXL devices approximate 240 GB/s of aggregate bandwidth.
The model is a memory hierarchy. Hot data stays in GPU memory. Larger, warm data sits in CXL-attached DRAM. Cold data sits in storage.
How CXL memory can improve TTFT
The link to TTFT is the KV cache. If a prompt prefix (a shared system prompt, a document, a conversation history) has been processed before, a stored copy of its KV cache lets the system skip repeated prefill. The limit is where that cache can be kept. GPU memory is small. CXL memory is large.
The CXL Consortium's 2026 AI Infrastructure Summit panel describes offloading KV cache from HBM to CXL DRAM to allow larger batch sizes, fewer GPU nodes and lower cost per million tokens. It also describes replacing 128 GB DIMMs with lower-cost DRAM plus CXL for per-host capital savings while preserving TTFT and TPOT targets.
A 2026 feasibility study on a two-node cluster with Qwen2.5-7B-Instruct found that cross-node CXL prefix reuse reduced median TTFT by 5.5 to 36.6 times for 2K to 32K-token prefixes at cache hit rates of 95.4% to 99.5%. The authors describe it as a feasibility study, not a performance evaluation, so treat it as a direction, not a guarantee. The useful point is why it worked: node-local caches fell back to full recomputation when a request landed on a different node, while a shared CXL pool let both nodes reuse the same prefix.

Where CXL fits in the tiering design
A 2024 NeurIPS workshop paper measured both approaches and found that GPU-resident prefix caching gives the lowest TTFT because it avoids data-transfer latency, but it is bounded by GPU memory capacity. CXL extends how much prefix data you can keep without recomputation. The practical design is a tier: keep the hottest prefixes in GPU memory, and use CXL capacity for the larger shared pool that no GPU could hold.
Whether that tier pays off depends on your traffic: how often prompts share prefixes, how long they are, and how requests spread across nodes. It is a sizing question, answered with your own workload traces.
Setting a TTFT target for your deployment
A workable approach for a CTO or infrastructure lead:
- Classify the workloads. Interactive (chat, voice, copilots) needs a tight TTFT. Batch and offline jobs can tolerate seconds.
- Measure your real prompt distribution. Median and tail input lengths, shared-prefix share, retrieval context size.
- Set TTFT and TPOT targets together, at a stated percentile and concurrency, for stated prompt lengths.
- Break the budget into stages. Allocate network, queue and prefill separately, so a miss points to a cause.
- Size for peak concurrency, not average. Queueing is the stage that grows fastest under load.
- Decide the memory tiering. GPU memory first, then whether pooled CXL capacity or more GPU nodes is the better route for your cache reuse.
- Monitor continuously. Track client-side and server-side TTFT as separate series. Our guide to AI infrastructure monitoring covers what to collect, and our guide to designing, sizing and running AI inference infrastructure walks through the sizing side.
Promo: from a TTFT target to a running cluster
A latency target only matters once hardware is installed, networked and supported. Dormedia has worked in HPC since 2011 and in AI infrastructure since 2017. We help organizations design, source, deploy and scale the servers, components and data center capacity behind targets like these, working with a global network of vendors and logistics partners, and we cover shipping, tax and tariff handling for international deployments. Strategic advisory, project management and ongoing support are part of what we offer. If you have a TTFT or TPOT objective and need the configuration to meet it, start at dormedia.ai, or see what we hold in available inventory.

Our perspective
Most TTFT problems we are asked about arrive as a model question and turn out to be a design question. A team sees a slow first token and assumes it needs a faster GPU. The measurements usually say otherwise: part of the wait is queueing, part is the network path, part is memory running out of room for the cache.
That is why we treat TTFT as a whole-stack requirement. Compute, memory, interconnect and facility are chosen together, against the latency targets and the real traffic of the workload. Memory tiers such as CXL are one more option in that design, and the right answer depends on how much prompt reuse your traffic has.
For organizations deploying across regions, the plan also has to cover sourcing lead times, shipping, tariffs and support. We bring HPC and AI infrastructure experience from 2011 onward, and our vendor and logistics network is built to take a design from specification to a running deployment.
Dormedia
FAQ
What does TTFT mean in a chat or AI context?
TTFT means time to first token. It is how long you wait after sending a prompt before the model's first output token arrives. In a chat window, it is the pause before the reply begins streaming.
What is the difference between TTFT and TPOT?
TTFT measures the wait before the first token. TPOT, or time per output token, is the average time to generate each later token. Together they determine how responsive a model feels: TTFT sets how quickly it starts, and TPOT sets how fast it keeps going.
How do you reduce TTFT?
Start by splitting the delay into network, queue and prefill, then fix the largest slice. Common levers are more serving replicas or better routing to cut queueing, faster prefill compute, shorter prompts, and caching of repeated prompt prefixes. Memory capacity decides how much cache you can keep.
What is CXL memory, and does it help TTFT?
CXL memory is DRAM attached over the CXL interconnect to add capacity beyond a server's DIMM slots. It can help TTFT when it lets a system store and reuse KV cache across requests or nodes instead of recomputing it. Results depend on prompt length, cache hit rate and architecture.
Is a lower TTFT always better?
Not as a standalone goal. Interactive uses such as voice agents and chat benefit most from a short TTFT, while batch jobs can accept more. Pair it with a TPOT target and a stated concurrency and prompt length, so the number means something.
Sources
- Metrics | NVIDIA NIM Benchmarking Documentation
- LLM Inference Benchmarking: Fundamental Concepts | NVIDIA Technical Blog
- Understanding Time to First Token as Both an Infrastructure and Model Metric | NVIDIA
- Etalon: Holistic Performance Evaluation Framework for LLM Inference Systems
- Metrics used by Etalon
- What Is Time to First Token | Arize AI
- What Is Time to First Token? Measuring TTFT in Production | Respan
- What is time to first token (TTFT)? | Nscale
- LLM Inference Performance Engineering Best Practices | Databricks
- CXL in Cloud Practice: Practical Lessons for Incrementally Adopting CXL | University of Wisconsin
- CXL extended memory | LLMServingSim
- Boost your AI performance with CXL | Compute Express Link Consortium
- Composable CXL Memory as a Kubernetes-Native Shared Memory Tier
- Exploring CXL-based KV Cache Storage for LLM Serving
