Appendix C — Acronyms & Symbols

Technical course on encoder LLM mechanics — reference appendix.


Where this fits

A lookup table to keep open alongside the lessons rather than read front to back. It expands every acronym and explains every recurring symbol in plain language, with the lesson where each is introduced.


Acronyms

AcronymExpansionPlain meaningLesson
LLMLarge Language Modela large neural network over text1
BERTBidirectional Encoder Representations from Transformersthe original encoder model1
MLMMasked Language Modelingpredict hidden tokens from both sides5
NSPNext-Sentence Predictionis sentence B the real continuation of A? (dropped)5
SOPSentence-Order Predictionare these two sentences in the right order? (ALBERT)5, A
RTDReplaced-Token Detectionis each token original or a fake? (ELECTRA)8, A
CLS“classification” tokenthe position-0 read-out register2, 4
SEP“separator” tokenmarks segment boundaries2
ARAutoregressivethe decoder’s left-to-right factorization1, 5
BPEByte-Pair Encodingthe decoder’s usual subword tokenizer2
WordPiece—BERT’s likelihood-based subword tokenizer2
LayerNorm / LNLayer Normalizationper-vector normalization in each block4
post-LN / pre-LN—LayerNorm after vs. inside the residual4
MLP / FFNMulti-Layer Perceptron / Feed-Forward Networkthe per-token expansion sub-layer4
GELU / GeGLUGaussian Error Linear Unit / Gated GELUblock nonlinearities4, A
RoPERotary Position Embeddingrelative positions inside the dot product2, A
KV cacheKey/Value cachedecoder-only generation cache (encoders lack it)1, 3
PPL / PPPLPerplexity / Pseudo-Perplexitydecoder metric / encoder stand-in7
GLUE / SuperGLUEGeneral Language Understanding Evaluationthe standard understanding benchmark suites7
SQuADStanford Question Answering Datasetextractive-QA benchmark7
NER / POSNamed-Entity Recognition / Part-of-Speechtoken-labeling tasks6, 9
NLINatural Language Inferenceentailment/contradiction/neutral7, 9
STS / MTEBSemantic Textual Similarity / Massive Text Embedding Benchmarkembedding-quality benchmarks7
SBERTSentence-BERTbi-encoder for sentence embeddings10
RAGRetrieval-Augmented Generationencoder retrieves, decoder generates10
SFT / RLHF / DPOSupervised Fine-Tuning / Reinforcement Learning from Human Feedback / Direct Preference Optimizationdecoder alignment methods9
LoRALow-Rank Adaptationparameter-efficient fine-tuning9
T5 / BARTText-to-Text Transfer Transformer / Bidirectional and Auto-Regressive Transformersencoder–decoder models10
AdamWAdam with decoupled Weight decaythe standard optimizer8

Symbols

SymbolMeaningLesson
$g(x;\theta)$the encoder function: tokens → contextual vectors1
$f(x;\theta)$the decoder function: tokens → next-token distribution1
$\theta$the learned parameter vector ($P$ of them)1
$x=(x_1,\dots,x_n)$input token sequence1
$\tilde x$the corrupted (masked) sequence5
$\mathcal M$set of masked positions ($\approx 0.15\,n$)5
$H^{(\ell)}\in\mathbb R^{n\times d}$the residual stream / hidden states at layer $\ell$2, 4
$H^{(N)}$top-layer contextual representations (the output)4
$E_{\text{tok}},E_{\text{seg}},E_{\text{pos}}$token, segment, position embedding matrices2
$W_Q,W_K,W_V,W_O$attention projection matrices3
$A\in\mathbb R^{n\times n}$the attention matrix (full for encoders)3
$M$attention mask ($0$ everywhere for encoder self-attention; $-\infty$ for padding/causal)3
$W_U$output (unembedding) projection, often tied to $E_{\text{tok}}$6
$\mathbf c$pooled [CLS] (or mean) vector6
$V$vocabulary size ($30{,}522$ for BERT)2
$d$model width ($768$ base, $1024$ large)2, 4
$N$number of layers ($12$ base, $24$ large)4
$n,\ n_{\max}$sequence length; max length ($512$)2, 3
$\Delta^{V-1}$probability simplex over the vocabulary1
$\mathcal L_{\text{MLM}}$masked-language-modeling loss5

← Course index · reference appendix

Appendices: A — Encoder Family · B — Encoder vs. Decoder Cheat Sheet · C — Acronyms