ELLMEngineering Large
Language Models
Download PDF

Chapter 68

Glossary and Decision Index

On this page

Alphabetical glossary

Accelerator ecosystems: Operator concepts are in Accelerator Ecosystems Beyond CUDA and NVIDIA; model placement is in Model Portability and Compiled State. The optional accelerator platform notes contain the TPU/Pallas and Neuron/NKI setup details.

Arithmetic intensity: useful operations per byte moved across a specified memory boundary.

Behavior policy: the distribution that actually sampled an action. It may differ from both the current learner and a fixed reference model.

BPE: byte-pair encoding; a tokenizer family that repeatedly merges units under learned merge rules. Its vocabulary and normalization are part of checkpoint compatibility.

Continuous batching: scheduler policy that admits and removes sequences at iteration boundaries rather than waiting for an entire static batch.

Control plane: components that decide placement, version, rollout, policy, and capacity rather than executing individual model steps.

Data lineage: the versioned relationship from source through transformations to datasets, checkpoints, evaluations, and releases.

Denoising language model: a model trained to reconstruct corrupted token sequences; its generation schedule may refine several positions at once.

DiT: a diffusion transformer architecture operating on noisy latent patches; the backbone does not by itself specify a noise or velocity target.

DPO: direct preference optimization using chosen/rejected responses and a reference policy, without an online rollout loop in the basic objective.

Euler step: a first-order ODE update x_next=x+dt*v(x,t); multiple steps approximate a continuous trajectory.

Flow matching: regression onto velocities along specified probability paths, followed by integration of the learned vector field for generation.

Forward KL: in this book's teacher/student convention, KL(teacher || student), weighted by the teacher distribution and penalizing missing its supported outcomes.

Gated DeltaNet: recurrent matrix memory that combines decay with an error-correcting write along the current key direction.

Goodput: useful completions per unit time under the declared quality and service constraints; state the offered-request denominator separately.

GQA: grouped-query attention, where multiple query heads share a smaller number of key/value heads.

GRPO: group-relative policy optimization; response groups provide reward-relative advantage estimates instead of a learned value critic in the basic formulation.

Idempotency key: a stable operation identity allowing a service to reconcile repeated delivery of the same request without duplicating its effect, subject to that service's transaction guarantees.

KV cache: stored attention keys and values for prior tokens, avoiding recomputation during autoregressive decode.

Late interaction: retrieval that precomputes document-token representations and combines them with query-token representations at query time.

LoRA / QLoRA: low-rank adaptation; QLoRA trains such adapters through a frozen quantized base. Reduced trainable parameters do not equal the same reduction in all training memory.

MLA: Multi-head Latent Attention; compressed cached representations and projection algebra reduce attention-state storage under a specific architecture.

NFE: number of neural-network function evaluations during sampling; include solver stages and separate conditional/unconditional guidance evaluations.

Operational intensity: a practical form of arithmetic intensity, sometimes including algorithm- and cache-specific byte assumptions.

Paged attention: attention over KV state managed in non-contiguous fixed-size blocks with logical-to-physical mapping.

Prefill: processing the uncached input prefix to prepare generation and model-specific state; a standard autoregressive transformer creates or extends KV state and produces next-token logits.

Reverse KL: in the same convention, KL(student || teacher), weighted by the student distribution and often favoring a supported mode when covering all modes is costly. Always state the operands because naming conventions vary.

Selective SSM: a structured state-space model whose retention/write/read behavior depends on inputs; not an exact substitute for arbitrary full attention.

Semantic identity: the input, model, mask, position, and decoding choices that define the intended computation, distinct from its execution environment.

SFT: supervised fine-tuning on selected response targets. The loss mask and chat template define what the model is trained to predict.

Speculative decoding: exact or controlled approximate generation using cheap proposals and expensive parallel verification.

Strategy: a diagnosis of the controlling challenge plus coordinated choices that concentrate resources toward a defined future state.

Target weighting: the rule that assigns loss mass to tokens, sequences, tasks, or groups; it must survive packing, accumulation, and distributed reduction.

Tensor parallelism: partitioning tensor operations across devices within layers.

Time to first token: latency from the declared request boundary until the first output token is available.

TMEM / TMA: tensor memory is an architecture-specific on-chip matrix storage resource; Tensor Memory Accelerator handles supported asynchronous transfers. Neither term means ordinary global-memory caching.

Decision index

If the symptom is... First model Chapter destinations (part — title)
Slow first token Queue plus prefill compute/IO III — Prefill, Decode, and Performance Modeling; III — Scheduling, Batching, and Admission Control
Slow token cadence Weight/KV bytes plus collectives III — Quantization, Compression, and Adapter Serving; V — Distributed Inference and Stateful Placement
GPU OOM with free fragments Logical versus physical KV allocation III — KV Cache, Paging, and Prefix Reuse
High acceptance, no speedup Joint draft/verify/scheduler cost III — Sampling, Structured Output, and Speculative Decoding
Training instability Update, precision, data, synchronization I — How Training Changes the Model; II — Designing a Training Recipe
Benchmark gain, product loss Evaluation contract and workload shift I — Evaluating a Change to the System; III — Production Architecture, Capacity, and Reliability
Low GEMM throughput Tile, tensor-core, occupancy, shape IV — Hierarchical Matrix Multiplication
Accelerator port compiles but misses SLOs Backend support, layouts, padding, collectives IV — Accelerator Ecosystems Beyond CUDA and NVIDIA
MoE slowdown All-to-all and expert imbalance V — Mixture-of-Experts and Sparse Communication

Decision index, continued

If the symptom is... First model Chapter destinations (part — title)
Platform not adopted Migration cost and ownership VIII — Capacity Strategy and Migration Economics
Recurring disagreement Goal, facts, risk, or incentives VIII — Executive Technical Communication
Hybrid cache estimate is wrong Layer-specific attention/recurrent state I — What the Model Keeps During Generation
More rollout GPUs hurt training Queue growth, policy age, ratio variance V — Distributed Reinforcement Learning and Policy Freshness
Fluent but unsupported answers Eligible evidence, ranking, generation VI — RAG, Vector Search, and Evaluation Pipelines
Repeated or unauthorized actions Capabilities, receipts, host-owned budgets VI — Building and Evaluating a Bounded Agent Loop
Fast text but slow speech Encoder, alignment, codec, playback queues VII — Multimodal Representations: Images, Video, and Speech
Fewer generation calls but no gain Positions per call, cache validity, quality VII — Diffusion Transformers, Flow Matching, and Parallel Generation

Final principle

An LLM system succeeds when its outputs or actions satisfy the task requirements within the available resources. Establish that claim by connecting model behavior, execution, data, and evaluation, and by testing what happens when an assumption fails.