LLMs operate on subword tokens rather than characters or words. Prefill processes the input prompt in parallel (bound by compute and quadratic attention cost), while autoregressive decode generates one token per step (memory-bandwidth bound, aided by KV caching). Embeddings map text to dense vectors for semantic similarity.
Follow-up Interview Question · What is the difference between Time-to-First-Token (TTFT) and inter-token latency?