The dictionary
Your companion to the collection

No jargon left behind.

Every idea starts somewhere. Look up the words, see a concrete example, and jump into the experiment where it comes to life.

61 concepts, made approachable

Plain language → technical detail → example
Neural networks

Activation

Also: activation function, activations

A rule that transforms a neuron’s weighted sum into its output.

The technical detail

A nonlinear activation allows composed layers to represent nonlinear functions.

For example

Sigmoid, tanh and ReLU are common activations.

See it in action
Proteins

Amino acid

Also: amino acids, residue, residues

A building block of a protein; within a chain it is called a residue.

The technical detail

Standard sequence notation uses 20 common one-letter amino-acid codes; real biology also has modified and nonstandard residues.

For example

K denotes lysine; G denotes glycine.

See it in action
Foundations

Artificial intelligence

Also: AI

The field of making computers perform tasks associated with intelligence.

The technical detail

Includes learning-based systems and symbolic approaches such as rules, search and planning.

For example

A chess search program can be AI without being a neural network.

See it in action
Language & attention

Attention

Also: self-attention

A way for each token to combine information from other tokens using learned relevance weights.

The technical detail

Scaled dot-product attention forms a normalized QKᵀ matrix and multiplies it by V.

For example

A masked residue can use information from distant sequence positions.

See it in action
Language & attention

Attention head

Also: attention heads, multi-head attention

One set of attention projections inside a multi-head layer.

The technical detail

Different heads have separate Q, K and V projections; outputs are concatenated and projected.

For example

Select Head 1 and Head 2 to see different toy attention patterns.

See it in action
Training

Backpropagation

Also: backward pass

Working backward through a network to find how each parameter affected the loss.

The technical detail

The chain rule computes gradients efficiently through the computation graph.

For example

Output error is propagated through the hidden layer to the input weights.

See it in action
Training

Batch

Also: batches

A group of examples processed together in one training step.

The technical detail

Mini-batch gradients estimate the gradient over the full dataset.

For example

A batch of 32 proteins can produce one optimizer update.

See it in action
Language & attention

BERT

A model that learns text representations by using context on both sides.

The technical detail

Bidirectional Encoder Representations from Transformers; original training combines masked language modeling and next-sentence prediction.

For example

Predict the hidden token in “the protein is [MASK]”.

See it in action
Neural networks

Bias

An adjustable offset that shifts a neuron’s response.

The technical detail

The additive b in z = w·x + b. This meaning differs from dataset or social bias.

For example

Even if all inputs are zero, a bias of 0.3 makes z = 0.3.

See it in action
Training

Cross-entropy

Also: binary cross-entropy

A loss that penalizes assigning low probability to the correct answer.

The technical detail

For binary labels: −[y log p + (1−y) log(1−p)].

For example

A confident incorrect prediction costs more than an uncertain one.

See it in action
Training

Data leakage

Also: leakage

Information reaches training or model selection that should only be available for final evaluation.

The technical detail

Duplicates, homologous sequence overlap or preprocessing fit on all data can inflate reported performance.

For example

Closely related proteins on both sides of a random split can make evaluation too easy.

See it in action
Foundations

Dataset

A collection of examples used to train or evaluate a model.

The technical detail

Splits have distinct roles: training fits parameters; validation guides choices; test estimates final performance.

For example

A table of protein sequences and measured properties.

See it in action
Language & attention

Decoder

Also: decoders

A component that produces or models outputs from representations or earlier tokens.

The technical detail

A causal Transformer decoder blocks future context. Encoder-decoder systems also use cross-attention to encoder outputs.

For example

A GPT-style decoder predicts the next token.

See it in action
Foundations

Deep learning

Also: DL

Machine learning that uses neural networks with multiple processing layers.

The technical detail

Nonlinear layers compose learned representations; depth is not the same as a large parameter count.

For example

A Transformer stacks attention and feed-forward blocks.

See it in action
Language & attention

Embedding

Also: embeddings

A vector of numbers representing a token or sequence.

The technical detail

Learned coordinates encode useful statistical information; dimensions usually have no simple individual physical meaning.

For example

A protein encoder produces a contextual vector for each residue.

See it in action
Language & attention

Encoder

Also: encoders

A component that converts an input into a useful representation.

The technical detail

A Transformer encoder typically uses bidirectional self-attention to contextualize input tokens.

For example

ESM-2 produces vectors describing residues in sequence context.

See it in action
Training

Epoch

Also: epochs

One complete pass through the training dataset.

The technical detail

An epoch may contain many optimizer steps if examples are divided into batches.

For example

This lab uses full-batch training: one update per epoch.

See it in action
Proteins

ESM-2

A family of protein language models that learns from masked amino-acid sequences.

The technical detail

Provides contextual representations; the ESMFold system adds a folding architecture for structure prediction.

For example

Use an ESM-2 embedding as input to a downstream classifier.

See it in action
Foundations

Feature

Also: features

A measurable piece of information given to a model.

The technical detail

An input variable may be handcrafted or learned by an earlier representation.

For example

Protein length or the fraction of hydrophobic amino acids.

See it in action
Training

Fine-tuning

Also: fine tuning

Continuing training to adapt an existing model to a new task or domain.

The technical detail

Updates some or all model parameters using an adaptation objective.

For example

Adapt a pretrained protein encoder and classifier to labeled localization data.

See it in action
Training

Frozen

Also: frozen encoder

Kept fixed while other parts of the model learn.

The technical detail

Frozen parameters receive no optimizer updates.

For example

In a linear probe, the encoder stays fixed and the task head learns.

See it in action
Training

Gradient

Also: gradients

A collection of slopes showing how a loss changes when parameters change.

The technical detail

The vector of partial derivatives ∇θL points toward local steepest increase under Euclidean geometry.

For example

Gradient descent moves a small distance in the opposite direction.

See it in action
Training

Inference

Using an already trained model to produce an output.

The technical detail

An ordinary forward pass at inference does not update training parameters.

For example

Predicting a masked token is inference; learning from its error is training.

See it in action
Language & attention

Key

Also: keys

A vector that a query compares against when computing attention scores.

The technical detail

K = XWK; matching is learned and does not necessarily correspond to a human-interpretable property.

For example

The attention column identifies the token supplying a key and value.

See it in action
Foundations

Label

Also: labels

The target answer attached to a training example.

The technical detail

A supervised target can be a class, a number or a structured output.

For example

An experimentally measured soluble / insoluble annotation.

See it in action
Language & attention

Large language model

Also: LLM, LLMs

A language model trained at large scale to model token patterns.

The technical detail

There is no universally agreed parameter threshold; the training objective and architecture still matter.

For example

A large causal decoder can generate text token by token.

See it in action
Neural networks

Layer

Also: layers, hidden layer

A group of computations at the same stage in a network.

The technical detail

A hidden layer transforms an internal representation between input and output.

For example

The tiny network has six tanh units in one hidden layer.

See it in action
Training

Learning rate

The size of each parameter-update step during training.

The technical detail

A hyperparameter η in θ ← θ − η∇θL.

For example

A very small rate can learn slowly; a large one may overshoot.

See it in action
Language & attention

Logit

Also: logits

A raw score before it becomes a probability.

The technical detail

Softmax transforms vocabulary logits into normalized probabilities.

For example

A larger token logit gives it a larger probability relative to other tokens.

See it in action
Training

LoRA

Also: low-rank adaptation

Adapting a model by learning small added matrices while keeping its original weights fixed.

The technical detail

Low-Rank Adaptation represents ΔW = BA, often scaled by α/r, in selected weight matrices.

For example

For a 6×2 weight matrix, rank-1 factors have 6 + 2 trainable entries.

See it in action
Training

Loss

Also: loss function

A number measuring how badly a prediction misses its target.

The technical detail

Optimization seeks parameters that reduce an objective averaged over training examples.

For example

Predicting 0.01 for a true positive incurs a large cross-entropy loss.

See it in action
Foundations

Machine learning

Also: ML

Teaching a computer from examples rather than writing every decision rule.

The technical detail

Algorithms fit parameters or structures to data to improve an objective.

For example

Train a classifier on labeled observations.

See it in action
Language & attention

Mask

Also: masked, masking, causal mask

A way to hide token identities or block access to positions.

The technical detail

A masked-language target replaces or modifies selected inputs; a causal attention mask sets future scores to −∞. These are different uses of masking.

For example

[MASK] hides a word; a causal mask blocks future attention.

See it in action
Foundations

Matrix

Also: matrices

A rectangular table of numbers used in calculations.

The technical detail

Can represent a linear transformation or a collection of vectors.

For example

An attention matrix has one row per query and one column per key.

See it in action
Foundations

Model

A mathematical system that turns inputs into outputs.

The technical detail

Its architecture defines the computation; learned parameters determine its specific behavior.

For example

A logistic-regression model maps two features to a class probability.

See it in action
Neural networks

Multilayer perceptron

Also: MLP

A feed-forward network of connected layers of artificial neurons.

The technical detail

Typically alternates affine transformations with nonlinear activations.

For example

The 2 → 6 → 1 network can learn a nonlinear boundary.

See it in action
Neural networks

Node

Also: nodes, neuron, neurons

One small processing unit in a neural-network diagram.

The technical detail

A neuron usually computes a weighted sum plus a bias, followed by an activation. A graph node can have a broader meaning outside neural networks.

For example

Each circle in the neuron exhibit represents a computational unit, not a biological brain cell.

See it in action
Neural networks

Normalization

Also: layer normalization

Rescaling a set of values to keep their numerical behavior manageable.

The technical detail

Layer normalization standardizes features within an example and applies learned scale and offset.

For example

A Transformer normalizes hidden activations around sublayers.

See it in action
Training

Overfitting

Learning details of the training examples that do not generalize well.

The technical detail

Low training error with poorer held-out performance can signal overfitting or distribution shift.

For example

Memorizing near-duplicate sequences can inflate random-split scores.

See it in action
Neural networks

Parameter

Also: parameters

A stored number that helps define a model’s behavior.

The technical detail

Weights and biases are parameters. Hyperparameters, such as learning rate, govern the training process.

For example

A neuron with two weights and one bias has three parameters.

See it in action
Neural networks

Perceptron

Also: perceptrons

An early artificial neuron that makes a yes-or-no decision.

The technical detail

The historical perceptron uses a hard threshold of w·x + b and a mistake-driven update rule.

For example

Two features are separated into classes by a straight-line boundary.

See it in action
Proteins

Pooling

Also: mean pooling, pooled embedding

Combining several vectors into one summary vector.

The technical detail

Mean pooling averages valid residue vectors while excluding padding and special tokens.

For example

Turn per-residue embeddings into one input for a sequence classifier.

See it in action
Training

Pretraining

Also: pre-training

Learning general patterns before adapting to a specific task.

The technical detail

Often uses self-supervised objectives on large unlabeled datasets.

For example

Predicting hidden amino acids in many protein sequences.

See it in action
Proteins

ProtBERT

A protein model based on BERT-style sequence learning.

The technical detail

Part of ProtTrans; applies masked modeling ideas to amino-acid sequences.

For example

A bridge between BERT’s text encoder and biological sequence models.

See it in action
Proteins

Protein language model

Also: pLM, pLMs, PLLM, PLLMs

A sequence model that learns patterns in amino-acid sequences.

The technical detail

Often uses masked or autoregressive self-supervision to learn contextual residue representations.

For example

ESM-2, ProtBERT and ProtT5 are protein language models.

See it in action
Proteins

ProtT5

A T5-based protein language model from the ProtTrans project.

The technical detail

Its encoder can generate residue-level embeddings used in downstream prediction.

For example

Pool ProtT5 embeddings to represent a complete protein sequence.

See it in action
Language & attention

Query

Also: queries

A token’s vector used to score which other tokens to attend to.

The technical detail

Produced by a learned projection Q = XWQ in self-attention.

For example

A query is compared with every allowed key by dot product.

See it in action
Training

Rank

Also: low-rank

The number of independent directions a matrix can represent.

The technical detail

A product BA with an inner dimension r has rank at most r.

For example

A rank-1 update changes a weight matrix in one outer-product direction.

See it in action
Neural networks

ReLU

An activation that keeps positive values and turns negative ones into zero.

The technical detail

Rectified Linear Unit: ReLU(z) = max(0,z). Its output is not bounded above.

For example

ReLU(−2) = 0; ReLU(3) = 3.

See it in action
Neural networks

Residual connection

Also: residual connections, residual, skip connection

A shortcut that adds an earlier representation to a transformed version.

The technical detail

Computes x + f(x), aiding information and gradient flow through stacked blocks.

For example

A Transformer adds attention output back to its input.

See it in action
Neural networks

Sigmoid

A smooth S-shaped function that squashes a number between 0 and 1.

The technical detail

σ(z) = 1 / (1 + exp(−z)); commonly paired with binary cross-entropy.

For example

At z = 0, sigmoid returns 0.5.

See it in action
Language & attention

Softmax

Turns a list of scores into positive weights that add up to one.

The technical detail

softmax(z)i = exp(zi) / Σj exp(zj), usually computed after subtracting the largest score for stability.

For example

Each attention row is a probability distribution over allowed keys.

See it in action
Language & attention

Temperature

A setting that makes a probability distribution sharper or flatter.

The technical detail

Logits are divided by T before softmax. Lower T concentrates probability more strongly.

For example

Increasing temperature spreads next-token probability across more candidates.

See it in action
Language & attention

Token

Also: tokens

One discrete piece of a sequence that a model processes.

The technical detail

Tokenization maps raw text or sequences to vocabulary IDs; tokens need not be whole words.

For example

A word piece in BERT, or an amino-acid letter in many pLMs.

See it in action
Language & attention

Transformer

Also: Transformers

A neural architecture that combines attention with feed-forward processing.

The technical detail

Includes residual paths, normalization and position information; variants include encoder, decoder and encoder-decoder systems.

For example

BERT is an encoder-style Transformer.

See it in action
Training

Validation

Also: validation set

Examples used to judge training choices without fitting weights directly on them.

The technical detail

Repeatedly choosing settings on validation data makes it part of model selection; an untouched test set is still needed.

For example

Choose an early-stopping epoch from validation loss.

See it in action
Language & attention

Value

Also: value vector, values

The information a token contributes after attention weights have been computed.

The technical detail

V = XWV; output is a weighted sum of value vectors.

For example

A token with weight 0.2 contributes 0.2 times its value vector.

See it in action
Foundations

Vector

Also: vectors

An ordered list of numbers.

The technical detail

Represents a point, direction or feature collection in a coordinate space.

For example

[0.2, −0.5, 1.1] is a three-dimensional vector.

See it in action
Neural networks

Weight

Also: weights

A number controlling the influence of one input on a computation.

The technical detail

A trainable coefficient in an affine transformation; it may be positive or negative.

For example

With weight −0.5, an input of 0.4 contributes −0.2 to the sum.

See it in action
Foundations

XOR

A two-input logical rule that is true when exactly one input is true.

The technical detail

The positive and negative cases occupy opposite corners, so a single linear boundary cannot separate them.

For example

The lab labels a point class 1 when its two coordinates have opposite signs.

See it in action