LLMs

What is Prefix Tuning?

Prefix tuning is a parameter-efficient fine-tuning method that learns trainable vectors inserted into the attention keys and values at every layer of a frozen model, giving more control than input-only soft prompts.

What is Prompt Tuning?

Prompt tuning is a parameter-efficient fine-tuning method that learns a small set of continuous vectors, called a soft prompt, which are prepended to the input while the model's weights stay frozen.

What is an Encoder-Decoder Model?

An encoder-decoder model, also called a sequence-to-sequence model, uses one component to read and understand the input and another to generate the output, connected by cross-attention.

What is RoPE (Rotary Positional Embedding)?

RoPE (rotary positional embedding) encodes a token's position by rotating its query and key vectors by an angle proportional to that position, so attention naturally depends on the distance between tokens.

What is Positional Encoding?

Positional encoding is the method transformers use to represent the order of tokens in a sequence, because the attention mechanism by itself treats input as an unordered set.

What is an Attention Head?

An attention head is a single attention unit inside a transformer layer, with its own query, key and value projections. Each head learns to focus on a particular kind of relationship between tokens.

What is Multi-Head Attention?

Multi-head attention runs several attention operations in parallel, each with its own learned projections, so a model can capture different kinds of relationships at once and then combine them.

What is Self-Attention?

Self-attention is a mechanism where each position in a sequence attends to every other position in the same sequence, using queries, keys and values to decide how much information to take from each.

What is an Attention Mechanism?

An attention mechanism is a technique that lets a neural network focus on the most relevant parts of its input when producing each part of its output, instead of treating all input equally.

What is Top-p Sampling (Nucleus Sampling)?

Top-p sampling, also called nucleus sampling, keeps the smallest group of tokens whose probabilities add up to p, then samples from that group. The shortlist adapts automatically to how confident the model is.

What is Top-k Sampling?

Top-k sampling is a decoding method that keeps only the k most likely next tokens, renormalises their probabilities and samples from that shortlist, adding variety while blocking very unlikely words.

What is Beam Search?

Beam search is a decoding method that keeps several candidate sequences alive at once and expands them step by step, choosing the sequence with the best overall probability rather than the best next token.

What is Greedy Decoding?

Greedy decoding is the simplest way to generate text from a language model: at every step it picks the single most likely next token, without any randomness.

What is Model Alignment?

Model alignment is the work of making an AI system behave in line with human intentions, values and safety expectations, covering both training methods and the deeper research problem of specifying what we actually want.

What is Preference Tuning?

Preference tuning is the training stage where a model learns from comparisons between better and worse responses, rather than from single correct answers, making its output more helpful, safe and aligned with what people want.