Latency

Category: Generative AI / LLM

The total time delay between a user request and the complete response from an AI system, a critical performance metric for real-time applications.

Full Explanation

Latency in AI systems measures the total time from request submission to response completion. For language models, total latency combines time to first token (TTFT), token generation time (number of tokens multiplied by per-token latency), and any network or processing overhead. Latency is critical for interactive applications like chatbots, real-time translation, and coding assistants where delays impact user experience. Factors affecting latency include model size, hardware (GPU type and quantity), input/output length, batch size, network conditions, and serving optimizations. Reducing latency often involves trade-offs with cost (faster hardware) or quality (smaller/quantized models). Techniques for reducing latency include quantization, speculative decoding, model distillation, request routing, caching, and optimized serving frameworks. Different applications have different latency requirements: a search autocomplete needs sub-100ms latency, while a content generation tool may tolerate seconds.

Related Terms

More in Generative AI / LLM

Explore More