Ablation
A controlled experiment that removes or changes one component to estimate its contribution. Results depend on the remaining system and on keeping comparison conditions matched.
Research methodology and hypothesesTHE FIELD GUIDE
A growing vocabulary for thinking clearly about AI. Every definition connects to a lesson.
56 terms
A controlled experiment that removes or changes one component to estimate its contribution. Results depend on the remaining system and on keeping comparison conditions matched.
Research methodology and hypothesesAn agent uses model decisions and tools in a feedback loop toward a goal. The important design choices are its authority, observations, allowed actions, and stopping conditions. A fixed workflow can be better when the task is predictable.
What makes an AI agent?Agent memory is application-managed information retained across steps or sessions. It differs from model weights and the current context window. Store only what supports the task, with clear provenance and deletion behavior.
Agent memoryArtificial intelligence is the study of systems that perform tasks such as recognizing patterns, planning, and generating language. Start with the task, not the technology: what input is available, what decision is needed, and how will you know the result is useful? A simple rule can sometimes solve the problem more reliably than a learned model.
Introduction to AIAttention forms a weighted combination of information selected by relevance scores. Queries ask what is needed, keys describe what is available, and values provide the content to combine. These are learned projections, not human questions and answers.
Attention mechanismsBackpropagation efficiently computes how each parameter contributes to loss. It moves backward through the computation graph using the chain rule. It calculates gradients; the optimizer decides how to use them.
Backpropagation and the chain ruleOverlap or leakage between training/development information and an evaluation benchmark. It can inflate scores and weaken claims about generalization to genuinely unseen tasks.
Evaluating research evidenceBias can arise from sampling, labels, modeling choices, or deployment conditions. Fairness concerns how benefits and errors are distributed across people; metrics must be chosen in context.
Ethics, limitations, and responsibilityAgreement between predicted probabilities and observed frequencies over comparable cases. If predictions near 0.8 are calibrated, roughly 80% of those outcomes occur.
Probability and statisticsA saved model state containing weight tensors and sometimes optimizer, scheduler, and run state. It must be paired with a compatible architecture, tokenizer, and configuration.
Understanding model weightsClustering groups similar observations. Similarity is a modeling choice: customers may look close by spending but far apart by location. Start by deciding what comparison is meaningful for the task.
Clustering and distanceThe context window bounds how many tokens a model can consider in one invocation. Prompt instructions, conversation history, retrieved documents, and generated output can compete for this budget. Application memory is separate from model context.
Context windows and memoryAn operation applying a shared local kernel across positions. In neural networks, learned convolutional kernels detect recurring local patterns with fewer parameters than independent dense connections.
CNNs and RNNsVectors can represent direction, measurements, or learned features. Length measures magnitude; angle can measure alignment. An embedding is a learned vector, not a transparent list of human concepts.
Vectors, matrices, and similarityInformation unavailable at the intended prediction time enters training or model selection, inflating evaluation. Examples include fitting preprocessing on test data or splitting near-duplicates across datasets.
Training, validation, and test setsA decision tree repeatedly asks questions about features and routes an example to a leaf prediction. The resulting rules are often readable, but a very large tree can memorize training noise.
Decision treesCalculus describes how quantities change and accumulate. For AI, the derivative tells us how a small change in a parameter affects a loss. It is a local description, so a large step may behave differently from the predicted small-step change.
Calculus: measuring changeDiffusion models learn to reverse a gradual noising process. Generation starts from noise and iteratively forms a sample, often conditioned on text. The process creates plausible images rather than retrieving a verified photograph.
Diffusion-based image generationEmbeddings map discrete items into numeric vectors. Training encourages useful relationships to appear in geometry. Similarity is meaningful only within a compatible model and representation space.
Embeddings and semantic spaceTransformer families differ in how positions can use context. Encoders commonly read both sides of an input. Causal decoders read only prior positions. Encoder-decoder models transform an input sequence into an output sequence.
Encoder, decoder, and encoder-decoder modelsSupervised fine-tuning adapts a pretrained model using input-target examples. It is useful for behavior, format, or domain patterns, but is not always the best way to add frequently changing factual knowledge.
Supervised fine-tuningA forward pass computes a prediction by moving inputs through the network. It records intermediate activations that can later be used to calculate gradients. No weights need to change during a forward pass.
Forward propagationFunction calling lets a model propose a structured request to an application-defined function. The proposal is data. The application validates it and decides whether execution is authorized; the model does not automatically acquire permission.
Function callingGenerative AI creates samples such as text, images, or audio from learned patterns. A prompt conditions the output but does not turn a model into a database of verified facts. The same input can produce different samples depending on the decoding method and random seed.
Understanding generative AIA gradient extends a derivative to a function with several inputs. Each component describes change along one coordinate while holding the others fixed. It points toward the steepest local increase under the usual Euclidean geometry.
Derivatives and gradientsCombining gradients from several microbatches before an optimizer update to achieve a larger effective batch with a smaller memory footprint. Loss scaling and update timing must be handled consistently.
Training efficiency and optimizationAn iterative optimizer that updates parameters by subtracting a learning rate times a gradient estimate. Step size and objective geometry determine whether the updates converge.
Gradient descent in practiceA digital image is an array of measured intensities. A color image usually has height, width, and channel dimensions. A model sees numeric values, so preprocessing defines the connection between the file and its input tensor.
Images as tensorsAn inference API exposes model execution through a request-response contract. Even when generation is remote, the application is responsible for input handling, credentials, errors, and interpreting results.
Inference APIs and contractsA language model assigns probabilities to sequences. Autoregressive models predict the next token from earlier tokens; masked models reconstruct hidden tokens from surrounding context. Their training objectives shape how they are used.
Language modelingA mapping that preserves vector addition and scalar multiplication, often written y=Wx. Adding a nonzero bias produces an affine transformation instead.
Linear algebra for learning systemsLoRA adapts selected weight matrices with low-rank updates while usually freezing the base weights. QLoRA combines a quantized frozen base with trainable low-rank adapters, reducing adaptation memory needs.
LoRA and QLoRAMethods that learn patterns or decision rules from data rather than having every rule written explicitly. Learning still requires a defined objective and evaluation on new examples.
AI, ML, and deep learningMCP standardizes how AI applications connect to external capabilities and context. A host application manages client connections to servers. The protocol helps interoperability but does not make a server or its content inherently trustworthy.
Model Context Protocol (MCP)Multimodal models combine modalities such as text, images, and audio. A modality encoder transforms raw input into features that a shared system can use. Combining modalities does not eliminate ambiguity or hallucination.
Multimodal AIA neural network is a composition of parameterized transformations. Each layer builds features from the previous layer. The brain analogy is limited: these are mathematical functions trained for specific objectives, not biological replicas.
Artificial neural networksDetection identifies both what objects are present and where they are. A detector predicts bounding boxes, class labels, and confidence scores. Several objects may appear in a single image.
Object detectionEvaluation measures whether a system meets its task. Observability records enough evidence to understand runtime behavior. Use both: a good offline score can coexist with production failures caused by changed inputs or dependencies.
Evaluation and observabilityOptimization searches for parameters that improve an objective. The objective must reflect the real task: minimizing average error may ignore a rare but costly failure. Constraints such as memory, latency, and fairness affect which solution is useful.
Optimization and objectivesParameters are learned numeric values such as weights and biases. More parameters can increase representational capacity, but quality also depends on data, training, architecture, and evaluation. Parameter count is not a universal intelligence score.
Parameters and model capacityPrecision is the fraction of predicted positives that are correct: TP/(TP+FP). Recall is the fraction of actual positives found: TP/(TP+FN). They answer different questions about errors.
Evaluating machine-learning modelsPretraining learns broad patterns from a large dataset before adaptation to a narrower use. An instruction-tuned model has undergone additional training for following instructions; a base model may mainly continue text.
Pretraining and adaptationA prompt defines the task, context, constraints, and expected output. Clear examples often help more than dramatic role descriptions. Treat prompt design as an empirical process evaluated on varied inputs rather than a collection of magic phrases.
Prompt engineeringAn attack that places hostile instructions in untrusted data read by a model. Defenses need application-enforced permissions and validated actions, not only instructions asking the model to ignore attacks.
Security and approval workflowsQuantization represents values using fewer bits. It can reduce memory and bandwidth needs, sometimes at a quality cost. The effect depends on the quantization scheme, model, hardware, and task.
Quantization and numerical precisionPrediction of a numeric target such as price or duration. The loss quantifies numeric error. Logistic regression, despite its name, is commonly used for classification.
Regression and classificationOverfitting occurs when a model learns training-specific details that do not transfer. A widening gap between training and validation performance is a warning. Underfitting instead means the model cannot capture useful structure even in training.
Overfitting and regularizationReLU returns max(0,x), preserving positive inputs and zeroing negative ones. Sigmoid maps real numbers into (0,1), but saturates and has small gradients at extreme inputs.
Activation functionsReproducibility means another person can inspect the procedure and obtain consistent findings under stated conditions. Exact numeric equality is not always possible across hardware, but undocumented conditions make even approximate reproduction difficult.
Experiment reproducibilityRAG retrieves external information and supplies it as context for generation. It can improve access to domain evidence without retraining weights, but success requires both useful retrieval and faithful use of the evidence.
Retrieval-Augmented GenerationSegmentation assigns labels at pixel level. Semantic segmentation labels categories, while instance segmentation distinguishes individual objects of the same category. This gives finer spatial information than boxes.
Image segmentationSupervised learning uses examples with target labels. Unsupervised learning searches for structure without those targets. Neither approach removes the need to define what a useful result means.
Supervised and unsupervised learningDecoding chooses tokens from model scores. Temperature rescales logits before softmax: lower positive values concentrate probabilities; higher values flatten them. It changes sampling behavior, not the knowledge stored in weights.
Sampling and temperatureA tokenizer converts text into units from a vocabulary. Tokens may be words, subwords, bytes, or characters. Token counts vary by tokenizer and language, so a word count is not a reliable context or cost estimate.
Tokenization: text into unitsTransformers use attention to mix information across sequence positions. They can process positions in parallel during training, while autoregressive generation still produces tokens sequentially. Position information is needed because attention alone does not encode order.
Transformers: the big pictureA vector index supports similarity search over embeddings. It is a retrieval mechanism, not a source of truth by itself. Documents, metadata, permissions, and embedding versions remain essential parts of the system.
Vector databases and retrieval