Technical Glossary (44 Terms)
Click any term for its full 4-card breakdown: In One Sentence, ELI5, ELI18 + MathJax, and In Practice.
1. LLM & Deep Learning Foundations
- Tokenization (BPE)
- Splitting raw text into subword integer IDs so a neural network can process language as numbers.
- Embeddings
- Dense numeric vectors that map discrete tokens, sentences, or items into a continuous geometric space where similar meanings sit close together.
- Attention & Self-Attention
- A mechanism that lets each token dynamically look up and blend information from every other relevant token in the context window.
- Transformer
- The dominant neural network architecture built from stacked self-attention layers, feed-forward networks, residual connections, and normalization.
- Backpropagation & Gradient Descent
- The calculus engine that measures how much each weight contributed to a prediction error and nudges all weights slightly to reduce that error.
- Pretraining (Next-Token Prediction)
- Self-supervised training on massive text and code corpora where the model learns world knowledge and syntax by predicting the next token.
- Logits
- Raw, unnormalized scores output by a neural network before Softmax converts them into probabilities.
- Softmax & Temperature (T)
- Converts raw scores (logits or utilities) into a probability distribution where temperature T controls how sharp or exploratory sampling is.
- KV Cache
- Storing previously computed Key and Value attention tensors in GPU memory so autoregressive decoding doesn't recompute the entire prompt every token.
- LoRA (Low-Rank Adaptation)
- Parameter-efficient fine-tuning that freezes the base model and trains tiny low-rank adapter matrices alongside existing weights.
- RAG (Retrieval-Augmented Generation)
- Fetching relevant external documents at query time and injecting them into the LLM's prompt so answers stay grounded and up-to-date.
- Knowledge Distillation
- Training a smaller, faster 'student' model to mimic the outputs, reasoning traces, or probability distributions of a much larger 'teacher' model.
2. Reinforcement Learning (RL)
- Environment (reset / step)
- The standardized interactive loop where an agent observes state, takes an action, and receives the next observation and scalar reward.
- POMDP (Partially Observable MDP)
- A sequential decision problem where the agent cannot see the full underlying state and must act from noisy or incomplete observations.
- MultiDiscrete Action Space
- Making multiple independent discrete choices simultaneously on each step instead of picking from one giant flat list.
- Discount Factor (gamma)
- A weight \(\gamma \in [0, 1]\) controlling how much an agent values future rewards relative to immediate rewards.
- Delayed Credit Assignment
- The challenge of figuring out which earlier action caused a reward or failure that only arrives many steps later.
- Q-Learning & Exploration (epsilon-greedy)
- Learning the expected future value Q(s, a) of every state-action pair, using occasional random moves (epsilon) to discover better strategies.
- REINFORCE
- The simplest Monte Carlo policy-gradient algorithm: play a full episode, then increase the probability of actions from above-average runs.
- Advantage Function & Baseline
- Measuring how much better an action turned out compared to the expected average from that state: A_t = Q(s_t, a_t) - V(s_t).
- Actor-Critic & TD(lambda)
- An architecture pairing an Actor (chooses actions) with a Critic (estimates state value V(s)), updating online via TD errors and eligibility traces.
- GAE (Generalized Advantage Estimation)
- A tunable exponentially-weighted blend between 1-step TD errors and full-episode Monte Carlo returns for estimating advantage.
- PPO (Proximal Policy Optimization)
- A clipped policy-gradient algorithm that limits how much the policy can shift in a single update, preventing catastrophic training collapse.
- GRPO (Group Relative Policy Optimization)
- A critic-free PPO variant that samples a group of rollouts for the same prompt and reinforces those scoring above the group average.
- Entropy Bonus
- A regularization term rewarding the policy for staying somewhat uncertain during training so it doesn't prematurely collapse onto one bad habit.
- On-Policy vs. Off-Policy
- On-policy algorithms (PPO, GRPO) learn only from fresh data generated by the current policy; off-policy algorithms (Q-learning, SAC) reuse past data from a replay buffer.
- Residual RL
- Learning small corrective adjustments on top of a safe rule-based or classical controller instead of learning from scratch.
- Domain Randomization
- Randomizing simulator physics, noise, or demand parameters during training so the learned policy generalizes instead of memorizing one scenario.
- Vectorized Environments & Step Budgets
- Running dozens or thousands of simulator copies in parallel under a tracked step budget to maximize throughput and compare sample efficiency fairly.
3. Post-Training, Evals & Calibration
- SFT (Supervised Fine-Tuning)
- Training a pretrained model on curated input-output or multi-step tool-use demonstrations before (or instead of) RL.
- Monte Carlo Rollout
- Sampling a complete trajectory (a full game or full LLM answer) end-to-end by drawing stochastic actions until termination to estimate its outcome.
- RLVR (RL with Verifiable Rewards)
- Training an LLM or agent against an objective, automated checker (unit tests, math solvers, compilers) rather than subjective human ratings.
- Constrained Decoding & Schema Drift
- Enforcing exact grammar or JSON schema rules at inference time by masking invalid tokens, preventing models from hallucinating fake fields or enums in long outputs.
- Reward Hacking (Goodhart's Law)
- When an optimizer exploits a loophole in a proxy score to achieve high marks while violating the designer's actual intent.
- Calibration
- Alignment between a model's predicted probabilities and real-world frequencies—events predicted at 70% should happen ~70% of the time.
- ECE (Expected Calibration Error)
- A summary metric measuring the weighted average gap between a model's predicted confidence and actual accuracy across probability bins.
- Temperature Scaling
- Dividing output logits by a single learned scalar T > 0 on a validation set to fix neural-network overconfidence without changing top-1 accuracy.
- Proper Scoring Rules (Cross-Entropy & Brier)
- Loss functions whose expected penalty is uniquely minimized only when predicted probabilities equal the true underlying probabilities.
- Expected Rubric Score
- Computing the probability-weighted average over ordered rubric levels instead of snapping to a single integer argmax.
4. Optimization, Dynamics & World Models
- Linear Programming (LP)
- A mathematical optimization method that finds the exact global best allocation of limited resources under linear constraints.
- Metastability
- A system state that looks stable under normal operating conditions but collapses rapidly once pushed past a stress threshold.
- Phase Transition
- A sharp tipping point where a tiny change in a control parameter flips a system qualitatively from one regime to another.
- Sim-to-Real Gap
- The performance drop when a policy trained in a simplified simulator encounters unmodeled friction, noise, and edge cases in the real world.
- World Model / JEPA
- Learning a compact latent representation and dynamics predictor so an agent can imagine and plan future outcomes in abstract space before acting.