Generative AI with Transformers

Offline HTML studybook for Alex. Generated 2026-06-07 from the folder Gen-AI-w-Transformers.

This is a reconstructed coursebook, not a slide summary. Exam relevance labels are evidence-based estimates from repetition, formulas, algorithms, exercises, and standard field importance; they are not guarantees about the real exam.

๐Ÿ”ด Exam-core ๐ŸŸ  Exam-practical ๐ŸŸก Context โšช Low priority ๐Ÿ—‘๏ธ Slide noise

Executive Study Roadmap ๐Ÿ”ด Exam-core

TokensProbabilityEmbeddingsSequence modelsAttentionTransformersLLM systems

๐Ÿงญ What this course is really about

This course is a reconstruction of the path from simple probability-based text generators to modern Transformer-based large language models. The through-line is next-token prediction over tokenized text, plus the representation, architecture, training, and system tricks needed to make that prediction useful at scale.

The slides begin with ChatGPT-era motivation, but the exam-shaped core is technical: how tokens become vectors, how sequence models compute context, how attention works, how Transformer blocks are wired, and how modern LLMs adapt, scale, and fail.

๐Ÿ“Œ Study order

  1. Probability, Markov property, n-grams, perplexity.
  2. Tokenization, BOW/TF-IDF, embeddings, Word2Vec.
  3. Softmax, cross-entropy, feed-forward and RNN language models.
  4. Seq2seq, teacher forcing, attention.
  5. Transformer block: embeddings, PE, Q/K/V, MHA, mask, FFN, add-norm.
  6. Model families: encoder-only, decoder-only, encoder-decoder.
  7. Modern techniques: RoPE, GQA, FlashAttention, MoE, LoRA, RAG.

Top exam-core topics

Markov propertyn-gram probabilityperplexitytokenizationembeddingsWord2Vecsoftmaxcross-entropyRNN/LSTM ideaencoder-decoderattentionQ/K/Vscaled dot-product attentionmulti-head attentioncausal maskpositional encodingTransformer blockMLM vs causal LMMoELoRA

What to memorize

  • Key formulas: n-gram MLE, perplexity, softmax, cross-entropy, attention, LoRA update.
  • Q/K/V roles and tensor shapes at a high level.
  • Architecture differences: encoder-only, decoder-only, encoder-decoder.

What to practice

  • Compute a tiny n-gram probability and perplexity.
  • Trace one Transformer forward pass.
  • Explain masking and MLM labels.
  • Compare dense vs MoE and full fine-tuning vs LoRA.

What to skip first

  • Course administration slides.
  • Decorative/title/Fin slides.
  • Specific public model brand lists unless used to explain a technique.
  • Library installation minutiae in practicals.
๐Ÿ”Ž Sources and slide references

Exam Priority Dashboard ๐Ÿ”ด Exam-core

This dashboard is an evidence-based estimate, not a promise about the actual exam.

PriorityTopicWhy it mattersSource evidenceStudy action
๐Ÿ”ด Exam-core Attention A mechanism that computes weighted combinations of values based on query-key compatibility. Lecture 5 pp. 18-23; lecture 6 pp. 55-80. Repeated across lectures and is the conceptual bridge to Transformers.
๐Ÿ”ด Exam-core Causal mask A mask that blocks each position from attending to future tokens. Lecture 6 pp. 85-89; lecture 8 pp. 40-42. Key distinction between encoder-style and decoder-style attention.
๐Ÿ”ด Exam-core Cross-entropy loss The negative log-probability assigned to the correct class/token. Lecture 7 pp. 25-31; lecture 8 pp. 27-30. Lecture 7 walks through next-token loss and backpropagation.
๐Ÿ”ด Exam-core Decoder-only Transformer A causal Transformer that predicts the next token from past tokens. Lecture 8 pp. 34-44. Core architecture for GPT-style LLMs and generation.
๐Ÿ”ด Exam-core Encoder-decoder An architecture where an encoder maps an input sequence to states and a decoder produces an output sequence. Lecture 5 pp. 10-17; lecture 8 pp. 3-13. The architecture directly precedes attention and Transformer families.
๐Ÿ”ด Exam-core Encoder-only Transformer A bidirectional Transformer stack used for representations and classification-style tasks. Lecture 8 pp. 15-33. Lecture 8 distinguishes model families and MLM examples.
๐Ÿ”ด Exam-core Feed-forward network in Transformers A position-wise MLP applied independently to each token after attention. Lecture 6 pp. 90-97; lecture 7 pp. 15-20. Important complement to attention and the place MoE usually replaces.
๐Ÿ”ด Exam-core Fine-tuning Continue training a pretrained model on task-specific data. Lecture 8 pp. 98-106; transformer practical. Lecture 8 and practical scripts directly cover model adaptation.
๐Ÿ”ด Exam-core Language model A model that assigns probabilities to token sequences and usually predicts the next token. Lecture 2 pp. 3-43; lecture 4 pp. 4-25; lecture 6 pp. 106-119. The whole course repeatedly reduces generation to predicting likely token sequences.
๐Ÿ”ด Exam-core Layer normalization and residuals Residual paths add inputs back; layer norm stabilizes activation scale. Lecture 6 pp. 98-103; lecture 7 pp. 14, 20. Needed to explain stable deep Transformer training.
๐Ÿ”ด Exam-core LoRA A parameter-efficient method that freezes W and trains a low-rank update BA. Lecture 8 pp. 101-106. Lecture 8 gives formula slides and adaptation motivation.
๐Ÿ”ด Exam-core Markov property The next state/token is assumed to depend only on a limited current state, not the full history. Lecture 2 pp. 4-20; Markov practical archive. Central in the first real modeling lecture and needed to understand context limits.
๐Ÿ”ด Exam-core Masked language modeling A pretraining task where selected tokens are hidden and predicted from bidirectional context. Lecture 8 pp. 21-30; transformer practical. Lecture 8 gives a worked input/label/loss example and practical scripts implement it.
๐Ÿ”ด Exam-core Mixture of Experts A sparse layer that routes tokens to a small subset of expert networks. Lecture 7 pp. 79-89; lecture 8 pp. 55-84; MoE practical. Repeated across lectures 7 and 8 with architecture and training slides.
๐Ÿ”ด Exam-core Multi-head attention Several attention heads run in parallel, then concatenate and project their outputs. Lecture 6 pp. 76-84; lecture 7 pp. 8-13. Core Transformer component, repeated in lecture 6 and recapped in lecture 7.
๐Ÿ”ด Exam-core N-gram model A language model that approximates P(w_t | history) using only the previous n-1 tokens. Lecture 2 pp. 20-43. Standard baseline and likely calculation/explanation material.
๐Ÿ”ด Exam-core Perplexity Exponentiated average negative log-likelihood; lower is better for a fixed test set/tokenization. Lecture 2 p. 39; Markov practical. Explicitly introduced as model-quality measure and standard LM evaluation.
๐Ÿ”ด Exam-core Positional encoding A signal added or applied to token representations so the model can use order. Lecture 6 pp. 27-47; lecture 7 pp. 43-60. The slides devote a long sequence to why attention needs position information.
๐Ÿ”ด Exam-core Q/K/V projections Learned projections that create queries, keys, and values from token representations. Lecture 6 pp. 61-65; lecture 7 pp. 8-13. Slides and practicals emphasize the matrices and their roles.
๐Ÿ”ด Exam-core RNN A neural network that updates a hidden state while processing a sequence step by step. Lecture 4 pp. 16-21; lecture 5 pp. 3-9; RNN practical. Needed to understand why attention and Transformers replaced recurrence.
๐Ÿ”ด Exam-core Scaled dot-product attention Attention(Q,K,V)=softmax(QK^T/sqrt(d_k))V. Lecture 6 pp. 64-75. Formula/procedure likely to be examined.
๐Ÿ”ด Exam-core Softmax A function that turns logits into a normalized probability distribution. Lecture 4 pp. 9-11; lecture 6 pp. 65, 106-114; lecture 7 pp. 24-30. Used for class probabilities, attention weights, MLM, and next-token distributions.
๐Ÿ”ด Exam-core Tokenization Splitting text into model vocabulary units and mapping them to integer IDs. Lecture 3 pp. 10-15; lecture 7 pp. 33-34; transformer practical. Every later model consumes token IDs, and the slides/practicals revisit it repeatedly.
๐Ÿ”ด Exam-core Transformer block A stackable layer containing attention, residual/add-norm structure, and a position-wise FFN. Lecture 6 pp. 47-121; lecture 7 pp. 2-32. The dominant architecture and the longest slide deck.
๐Ÿ”ด Exam-core Word embedding A dense vector representation of a token or text item in a continuous space. Lecture 3 pp. 6-48; lecture 6 pp. 18-26. Repeated in lectures 3, 4, 6, 7, and 8 as the bridge from text to neural computation.
๐Ÿ”ด Exam-core Word2Vec A family of shallow neural models, CBOW and skip-gram, for learning word vectors from context. Lecture 3; Word2Vec practical. Dedicated lecture/practical material and canonical embedding method.
๐ŸŸ  Exam-practical Bag-of-words A document representation that counts token occurrences and ignores order. Lecture 3 pp. 10-12. Useful baseline for understanding sparse representations, but not the final architecture.
๐ŸŸ  Exam-practical FlashAttention An exact attention algorithm that reduces memory traffic using tiling and online softmax. Lecture 7 pp. 75-76. Modern technique named in lecture 7; understand the bottleneck, not implementation minutiae.
๐ŸŸ  Exam-practical Greedy decoding Choose the highest-probability token at each generation step. Lecture 6 pp. 106-114. Lecture 6 gives a concrete next-token example; useful for exercises.
๐ŸŸ  Exam-practical Grouped-query attention Attention with many query heads sharing fewer key/value heads. Lecture 7 pp. 61-69. Appears as serving efficiency technique with KV-cache memory savings.
๐ŸŸ  Exam-practical Hallucination A fluent model output that is unsupported, false, or not grounded in the requested evidence. Lecture 1 p. 8. Lecture 1 highlights it as a core problem of generative models.
๐ŸŸ  Exam-practical KV cache Stored key/value tensors from previous tokens used to avoid recomputing attention history during decoding. Lecture 7 pp. 36-42, 61-69. Lecture 7 uses it to explain long-context serving bottlenecks.
๐ŸŸ  Exam-practical LSTM A gated recurrent network designed to preserve information over longer spans. Lecture 4 pp. 22-24; bidirectional LSTM practical. Explicit RNN extension and practical material, but less central than Transformers.
๐ŸŸ  Exam-practical RAG Retrieval-augmented generation conditions a generator on retrieved external documents. Lecture 1 p. 11. Introduced in lecture 1 as a concrete mitigation for hallucination.
๐ŸŸ  Exam-practical RoPE Rotary positional embedding rotates query/key vector pairs by position-dependent angles. Lecture 7 pp. 43-60. Lecture 7 includes detailed numeric walkthroughs.
๐ŸŸ  Exam-practical Scaling laws Empirical relationships between loss, model size, dataset size, and compute. Lecture 7 pp. 35-37. Lecture 7 frames research trends with Chinchilla and compute/data trade-offs.
๐ŸŸ  Exam-practical TF-IDF A weighting scheme that boosts terms frequent in a document but rare across the corpus. Lecture 3; Word2Vec practical. Appears as an embedding precursor and practical comparison point.
๐ŸŸ  Exam-practical Teacher forcing During training, feed the decoder the true previous token instead of its own previous prediction. Lecture 5 p. 16; lecture 8 p. 13. Likely application/exam explanation material in seq2seq training.
๐ŸŸก Context RLHF/alignment Training models toward human preferences, often by supervised fine-tuning plus preference optimization/RL. Lecture 8 p. 45. Only lightly visible in the extracted slides, but standard for LLM context.

Language Modeling Foundations ๐Ÿ”ด Exam-core

๐Ÿงญ This chapter teaches how simple language models assign probabilities to text, why the Markov assumption helps and hurts, and how model quality is measured.

๐Ÿ“Œ Why it matters: Transformers are powerful neural language models, but the basic question is already present in n-grams: given history, what token comes next?

Language model ๐Ÿ”ด Exam-core

A model that assigns probabilities to token sequences and usually predicts the next token.

Reason: The whole course repeatedly reduces generation to predicting likely token sequences.

Markov property ๐Ÿ”ด Exam-core

The next state/token is assumed to depend only on a limited current state, not the full history.

Reason: Central in the first real modeling lecture and needed to understand context limits.

N-gram model ๐Ÿ”ด Exam-core

A language model that approximates P(w_t | history) using only the previous n-1 tokens.

Reason: Standard baseline and likely calculation/explanation material.

Perplexity ๐Ÿ”ด Exam-core

Exponentiated average negative log-likelihood; lower is better for a fixed test set/tokenization.

Reason: Explicitly introduced as model-quality measure and standard LM evaluation.

I likecoffee like coffeeafter coffee afterclass P(after | like coffee) P(class | coffee after) n-gram state = last n-1 tokens; better context increases state space

๐Ÿง  Core intuition

A language model estimates a probability distribution over token sequences. Exact history is impossible to count for realistic text, so classical models use a short window. A bigram uses one previous token; a trigram uses two. More context usually helps until the state space explodes and counts become sparse.

๐Ÿ“š Clean explanation

For a sequence wโ‚...w_T, the chain rule says P(wโ‚...w_T)=โˆโ‚œP(wโ‚œ|wโ‚...wโ‚œโ‚‹โ‚). An n-gram model replaces the full history with the previous n-1 tokens. The estimate is usually a count ratio: how often did this next word follow this context?

๐Ÿ“ N-gram maximum likelihood estimate

Formal: P(wt|wtโˆ’n+1:tโˆ’1)โ‰ˆcount(wtโˆ’n+1:t)count(wtโˆ’n+1:tโˆ’1)P(w_t \mid w_{t-n+1:t-1}) \approx \frac{\operatorname{count}(w_{t-n+1:t})}{\operatorname{count}(w_{t-n+1:t-1})}

Meaning: Use corpus counts to estimate the next-token distribution for a short context.

Exam/application: Given a small corpus, count context occurrences and divide by context count.

Variables: w_t = current token; n = n-gram order; count(.) = corpus frequency.

Common mistake: Using the full sentence history when the model is only bigram/trigram.

๐Ÿ“ Perplexity

Formal: PP(W)=exp(โˆ’1Tโˆ‘t=1TlogP(wt|w<t))PP(W)=\exp\!\left(-\frac{1}{T}\sum_{t=1}^{T}\log P(w_t\mid w_{<t})\right)

Meaning: Average surprise of the model on a test sequence.

Exam/application: Lower perplexity means the model assigned higher probability to the observed tokens, but compare only with the same tokenization/test set.

Variables: T = number of tokens; log may be natural log or base 2 with matching exponent.

Common mistake: Comparing perplexities across different tokenizers or test corpora as if they were identical.

๐Ÿงช Worked example: from corpus counts to perplexity

Task: use a tiny bigram language model to score the test sequence W = "you like tea".

Bigram means: each next word only looks at the previous word. We predict 3 words, so N = 3.

<s> โ†’ you โ†’ like โ†’ tea

1 Training corpus

#Sentence with boundary tokens
1<s> you like tea </s>
2<s> you like coffee </s>
3<s> you drink tea </s>
4<s> i like tea </s>

2 Count table the model stores

ContextObserved next wordsTotal context count
<s>you: 3, i: 14
youlike: 2, drink: 13
liketea: 2, coffee: 13

Rule: P(next | context) = count(context, next) / count(context).

3 Probabilities needed for "you like tea"

Predicted word Context used Where it comes from Probability
you <s> 3 of 4 corpus sentences start with you. P(you|<s>) = 3/4 = 0.75
like you After you, the corpus has like 2 times and drink 1 time. P(like|you) = 2/3 โ‰ˆ 0.667
tea like After like, the corpus has tea 2 times and coffee 1 time. P(tea|like) = 2/3 โ‰ˆ 0.667

4 Multiply the chain probabilities

you 3/4 from sentence starts
like 2/3 from words after "you"
tea 2/3 from words after "like"

P(W) = P(you|<s>) ยท P(like|you) ยท P(tea|like) = (3/4) ยท (2/3) ยท (2/3) = 1/3 โ‰ˆ 0.333

5 Convert sequence probability to perplexity

ppl(W) = P(W)-1/N = (1/3)-1/3 = 31/3 โ‰ˆ 1.442

Interpretation: on average, this model is as uncertain as choosing among about 1.44 equally likely next words at each step.

Exam trap: if the question includes </s> as a predicted token, also multiply by P(</s>|tea) and use the new token count N.

1.44

โš™๏ธ Markov text generator

input: corpus tokens, order n, desired length L
build a table: context tuple -> counts of next tokens
choose an initial context
repeat until L tokens:
  sample next token from counts(context)
  append token
  context = last n-1 tokens
output generated sequence

โš ๏ธ Common traps

  • Higher n is not automatically better; sparse counts make estimates brittle.
  • Perplexity is about predictive probability, not human factuality or usefulness.
  • A Markov generator can sound locally coherent without understanding meaning.

โœ… Exam memory

Be able to define the Markov property, write the n-gram approximation, compute a tiny count-based probability, explain state-space explosion, and define perplexity.

๐Ÿงฉ Connection: embeddings and neural LMs are attempts to escape brittle exact-count tables by learning smoother vector representations.

๐Ÿ”Ž Sources and slide references

Text Representation and Embeddings ๐Ÿ”ด Exam-core

๐Ÿงญ This chapter teaches how raw text becomes vectors: tokenization, sparse count vectors, TF-IDF, and dense learned embeddings.

๐Ÿ“Œ Why it matters: every neural model in the course starts by turning discrete token IDs into continuous vectors.

Tokenization ๐Ÿ”ด Exam-core

Splitting text into model vocabulary units and mapping them to integer IDs.

Reason: Every later model consumes token IDs, and the slides/practicals revisit it repeatedly.

Bag-of-words ๐ŸŸ  Exam-practical

A document representation that counts token occurrences and ignores order.

Reason: Useful baseline for understanding sparse representations, but not the final architecture.

TF-IDF ๐ŸŸ  Exam-practical

A weighting scheme that boosts terms frequent in a document but rare across the corpus.

Reason: Appears as an embedding precursor and practical comparison point.

Word embedding ๐Ÿ”ด Exam-core

A dense vector representation of a token or text item in a continuous space.

Reason: Repeated in lectures 3, 4, 6, 7, and 8 as the bridge from text to neural computation.

Word2Vec ๐Ÿ”ด Exam-core

A family of shallow neural models, CBOW and skip-gram, for learning word vectors from context.

Reason: Dedicated lecture/practical material and canonical embedding method.

king queen man woman car geometry can encode usage regularities Skip-gram center word left near right

๐Ÿง  Core intuition

One-hot vectors identify tokens but say nothing about similarity. Bag-of-words and TF-IDF represent documents by token counts or weighted counts, but order and context are mostly lost. Dense embeddings compress distributional usage into a smaller vector space where nearby words tend to behave similarly.

๐Ÿ“š Clean explanation

Tokenization first defines the model's alphabet. Word-level tokenization suffers from huge vocabularies and unknown words. Subword methods such as BPE and WordPiece split rare words into reusable pieces, which is why modern Transformers can handle names, compounds, and morphology better than strict word vocabularies.

๐Ÿ“ TF-IDF

Formal: tfidf(t,d)=tf(t,d)ยทlog(Ndf(t))\operatorname{tfidf}(t,d)=\operatorname{tf}(t,d)\cdot\log\!\left(\frac{N}{\operatorname{df}(t)}\right)

Meaning: Weight a term by how common it is in one document and how rare it is across documents.

Exam/application: Use it to explain why a rare domain term may matter more than a frequent function word.

Variables: tf = term frequency; N = document count; df = documents containing term.

Common mistake: Treating TF-IDF as semantic understanding. It is still a sparse lexical signal.

๐Ÿงช Worked example: TF-IDF counts vs Word2Vec training pairs

Task: compare two representations on the same tiny corpus.

TF-IDF gives a weighted sparse document vector. Word2Vec creates dense vectors by learning from nearby-word prediction tasks.

count vs learn

1 Tiny corpus

DocTextUseful terms
D1transformer attention uses queriestransformer, attention, queries
D2attention helps encoder decoderattention, encoder, decoder
D3coffee break after lecturecoffee, break, lecture

2 TF-IDF for D1

Termtf in D1dfidf = ln(N/df)tf-idf
transformer11ln(3/1)=1.0991.099
attention12ln(3/2)=0.4050.405
queries11ln(3/1)=1.0991.099

Because attention appears in two documents, it is down-weighted compared with rarer D1 terms.

3 Skip-gram pairs for Word2Vec

Center wordNearby context targetTraining signal
attentiontransformermake their vectors score high together
attentionqueriesmake their vectors score high together
attentionencodermake their vectors score high together
attentioncoffeenegative sample: push score down

Word2Vec does not store the count table as the final representation; it updates dense vectors until useful words predict their contexts.

Exam distinction: TF-IDF says โ€œthis term is important in this document.โ€ Word2Vec says โ€œthis word behaves like words used in similar contexts.โ€

โš™๏ธ Skip-gram with negative sampling

input: center word c, true context word o, negative words n_1...n_k
look up vectors v_c, u_o, u_n
maximize log ฯƒ(u_o ยท v_c)
maximize โˆ‘ log ฯƒ(-u_n ยท v_c) for negatives
update vectors by gradient descent
output learned embedding matrix

โš ๏ธ Common traps

  • Distance in embedding space reflects training distribution, not guaranteed truth.
  • Static Word2Vec gives one vector per word type, so ambiguity such as โ€œMarsโ€ remains hard.
  • Subword tokenization solves out-of-vocabulary issues, not all semantic issues.

โœ… Exam memory

Know one-hot vs BOW vs TF-IDF vs dense embeddings, explain CBOW vs skip-gram, and describe why embeddings are trainable lookup tables in neural models.

๐Ÿงฉ Connection: the Transformer embedding layer is the same core idea as learned word vectors, but trained end-to-end for the model objective.

๐Ÿ”Ž Sources and slide references

Neural Language Models ๐Ÿ”ด Exam-core

๐Ÿงญ This chapter teaches how neural networks turn context vectors into token probabilities, and why RNN/LSTM models were a stepping stone.

๐Ÿ“Œ Why it matters: Transformers still use softmax/cross-entropy next-token training; they mainly replace how context representations are computed.

Softmax ๐Ÿ”ด Exam-core

A function that turns logits into a normalized probability distribution.

Reason: Used for class probabilities, attention weights, MLM, and next-token distributions.

Cross-entropy loss ๐Ÿ”ด Exam-core

The negative log-probability assigned to the correct class/token.

Reason: Lecture 7 walks through next-token loss and backpropagation.

RNN ๐Ÿ”ด Exam-core

A neural network that updates a hidden state while processing a sequence step by step.

Reason: Needed to understand why attention and Transformers replaced recurrence.

LSTM ๐ŸŸ  Exam-practical

A gated recurrent network designed to preserve information over longer spans.

Reason: Explicit RNN extension and practical material, but less central than Transformers.

๐Ÿง  Core intuition

A feed-forward neural language model embeds the last few tokens, concatenates them, passes them through hidden layers, then predicts the next token. RNNs remove the fixed window by carrying a hidden state through the sequence. LSTMs add gates to preserve useful information longer.

๐Ÿ“ Softmax

Formal: softmax(zi)=exp(zi)โˆ‘jexp(zj)\operatorname{softmax}(z_i)=\frac{\exp(z_i)}{\sum_j\exp(z_j)}

Meaning: Convert logits into probabilities that sum to one.

Exam/application: Use softmax after output logits or attention scores.

Variables: z_i = logit for class/token i.

Common mistake: Calling logits probabilities before softmax.

๐Ÿ“ Cross-entropy for one correct token

Formal: L=โˆ’logp(correct token)\mathcal{L}=-\log p(\text{correct token})

Meaning: Loss is small when the model assigns high probability to the correct token.

Exam/application: If the correct token probability is 0.8, loss is lower than if it is 0.05.

Variables: p(.) comes from softmax over logits.

Common mistake: Taking -log of the logit instead of the probability.

๐Ÿงช Worked example: logits โ†’ softmax โ†’ loss

Task: after the context "for all the", compute the probability of the correct next token "people".

The model first emits logits. Softmax turns them into probabilities. Cross-entropy punishes low probability on the correct token.

for all the โ†’ ?

1 Candidate logits

Candidate tokenLogit zexp(z)
people2.07.389
models1.02.718
tea-1.00.368

sum exp(z) = 7.389 + 2.718 + 0.368 = 10.475

2 Softmax probabilities

people0.705
models0.260
tea0.035

P(people) = exp(2.0) / 10.475 = 0.705

3 Cross-entropy for the correct token

L = -ln(P(correct)) = -ln(0.705) โ‰ˆ 0.350

Meaning: the loss is low because the correct token already has high probability. If the model assigned p=0.1, the loss would be -ln(0.1)=2.303.

0.35
RNN step 1h_t = f(x_t, h_{t-1})
RNN step 2logits_t = U h_t + c
RNN step 3p_t = softmax(logits_t)

โš™๏ธ RNN language model forward pass

input: token sequence x_1...x_T
initialize hidden state h_0
for each t:
  e_t = embedding[x_t]
  h_t = activation(W_e e_t + W_h h_{t-1} + b)
  logits_t = U h_t + c
  p_t = softmax(logits_t)
train with cross-entropy against x_{t+1}

โš ๏ธ Common traps

  • RNNs process sequentially; this limits parallelism compared with Transformers.
  • LSTMs mitigate long-range gradient issues but do not make all long dependencies easy.
  • Bidirectional RNNs are useful for representation tasks, but cannot directly generate left-to-right without respecting causality.

โœ… Exam memory

Be able to draw a feed-forward LM, explain RNN hidden-state recurrence, state the purpose of LSTM gates, and compute/interpret softmax cross-entropy.

๐Ÿงฉ Connection: seq2seq uses RNN encoders/decoders; attention then removes the need to compress the whole source into one final hidden state.

๐Ÿ”Ž Sources and slide references

Seq2Seq and Attention ๐Ÿ”ด Exam-core

๐Ÿงญ This chapter teaches encoder-decoder models, teacher forcing, the bottleneck problem, and dot-product attention.

๐Ÿ“Œ Why it matters: attention was introduced to let the decoder look back at relevant source states instead of relying on one fixed vector.

Encoder-decoder ๐Ÿ”ด Exam-core

An architecture where an encoder maps an input sequence to states and a decoder produces an output sequence.

Reason: The architecture directly precedes attention and Transformer families.

Teacher forcing ๐ŸŸ  Exam-practical

During training, feed the decoder the true previous token instead of its own previous prediction.

Reason: Likely application/exam explanation material in seq2seq training.

Attention ๐Ÿ”ด Exam-core

A mechanism that computes weighted combinations of values based on query-key compatibility.

Reason: Repeated across lectures and is the conceptual bridge to Transformers.

๐Ÿง  Core intuition

An encoder reads the input sequence and produces hidden states. A decoder generates the output sequence. Without attention, the decoder depends heavily on the final encoder state, creating a bottleneck. Attention computes a custom context vector at every decoding step.

๐Ÿ“ Dot-product attention

Formal: ฮฑi=softmax(qยทki),c=โˆ‘iฮฑivi\alpha_i=\operatorname{softmax}(\mathbf q\cdot\mathbf k_i),\qquad \mathbf c=\sum_i\alpha_i\mathbf v_i

Meaning: Compare the decoder query to each source key, normalize scores, and blend source values.

Exam/application: Given small vectors, compute dot products, softmax weights, then weighted sum.

Variables: q = query; k_i = key/state to match; v_i = value/state to retrieve; ฮฑ_i = attention weight.

Common mistake: Forgetting that softmax is over all source positions, not independently per score.

๐Ÿงช Worked example: attention chooses the relevant source word

Task: while generating the German target word "isst", decide which English source state matters most.

The decoder query is compared with every encoder key. Softmax converts those scores into attention weights.

cat eats fish โ†’ isst

1 Query-key scores

Source positionRoleScore q ยท k_iexp(score)
catsubject0.41.492
eatsverb2.07.389
fishobject0.11.105

sum exp(score) = 1.492 + 7.389 + 1.105 = 9.986

2 Softmax attention weights

cat0.149
eats0.740
fish0.111

alpha_eats = exp(2.0) / 9.986 = 0.740

3 Context vector idea

context = 0.149ยทv_cat + 0.740ยทv_eats + 0.111ยทv_fish

Interpretation: this decoder step mostly retrieves the source verb state, so the target verb can be generated without compressing the whole source sentence into one final encoder vector.

โš™๏ธ Attention-based decoder step

input: previous target token, decoder state, encoder states h_1...h_n
q = current decoder state
for each source position i:
  score_i = q ยท h_i
weights = softmax(score)
context = weighted_sum(weights, h)
new decoder state uses previous token + context
predict next target token

โš ๏ธ Common traps

  • Attention weights are useful diagnostics but not perfect explanations.
  • Teacher forcing is a training procedure, not an architecture component.
  • Bidirectional encoders can see both directions, but autoregressive decoders must not see future target tokens.

โœ… Exam memory

Know the encoder-decoder bottleneck, why attention fixes it, and how dot products become weights and a context vector.

๐Ÿงฉ Connection: Transformers remove recurrence and use attention among token representations inside each layer.

๐Ÿ”Ž Sources and slide references

Transformer Architecture ๐Ÿ”ด Exam-core

๐Ÿงญ This chapter teaches the Transformer block from token IDs to logits: embeddings, positional information, Q/K/V, scaled dot-product attention, multi-head attention, masks, FFN, residuals, normalization, training, and decoding.

๐Ÿ“Œ Why it matters: almost every modern LLM variation is a modification of this base block or its training/serving regime.

Q/K/V projections ๐Ÿ”ด Exam-core

Learned projections that create queries, keys, and values from token representations.

Reason: Slides and practicals emphasize the matrices and their roles.

Scaled dot-product attention ๐Ÿ”ด Exam-core

Attention(Q,K,V)=softmax(QK^T/sqrt(d_k))V.

Reason: Formula/procedure likely to be examined.

Multi-head attention ๐Ÿ”ด Exam-core

Several attention heads run in parallel, then concatenate and project their outputs.

Reason: Core Transformer component, repeated in lecture 6 and recapped in lecture 7.

Causal mask ๐Ÿ”ด Exam-core

A mask that blocks each position from attending to future tokens.

Reason: Key distinction between encoder-style and decoder-style attention.

Positional encoding ๐Ÿ”ด Exam-core

A signal added or applied to token representations so the model can use order.

Reason: The slides devote a long sequence to why attention needs position information.

Transformer block ๐Ÿ”ด Exam-core

A stackable layer containing attention, residual/add-norm structure, and a position-wise FFN.

Reason: The dominant architecture and the longest slide deck.

Feed-forward network in Transformers ๐Ÿ”ด Exam-core

A position-wise MLP applied independently to each token after attention.

Reason: Important complement to attention and the place MoE usually replaces.

Layer normalization and residuals ๐Ÿ”ด Exam-core

Residual paths add inputs back; layer norm stabilizes activation scale.

Reason: Needed to explain stable deep Transformer training.

Greedy decoding ๐ŸŸ  Exam-practical

Choose the highest-probability token at each generation step.

Reason: Lecture 6 gives a concrete next-token example; useful for exercises.

token embeddings + PE Q, K, V projections Multi-head attentionsoftmax(QKแต€ / โˆšdโ‚–)V Add + Norm position-wiseFFN Add + Norm Attention mixes information across positions; FFN transforms each position; residuals keep the signal stable.

๐Ÿง  Core intuition

Self-attention lets each token build a context-aware representation by looking at other tokens. Q/K/V projections separate matching from information transfer. Multi-head attention repeats this in several smaller subspaces. The FFN then transforms each token independently. Residual and normalization paths keep deep stacks trainable.

๐Ÿ“ Scaled dot-product attention

Formal: Attention(Q,K,V)=softmax(QKTdk)V\operatorname{Attention}(Q,K,V)=\operatorname{softmax}\!\left(\frac{QK^{\mathsf T}}{\sqrt{d_k}}\right)V

Meaning: Rows of Q compare with rows of K; softmax creates attention weights; multiplying by V mixes information.

Exam/application: Be able to explain the shape flow: sequence length ร— model dimension -> attention weights -> contextualized vectors.

Variables: Q,K,V are projected matrices; d_k is key/query head dimension.

Common mistake: Missing the scaling term or applying softmax over the wrong axis.

๐Ÿ“ Sinusoidal positional encoding

Formal: PE(pos,2i)=sin(pos100002id)PE(pos,2i+1)=cos(pos100002id)\begin{aligned}PE(pos,2i)&=\sin\!\left(\frac{pos}{10000^{2i/d}}\right)\\PE(pos,2i+1)&=\cos\!\left(\frac{pos}{10000^{2i/d}}\right)\end{aligned}

Meaning: Provide unique, smooth position signals across dimensions.

Exam/application: Know why position is needed once recurrence is removed.

Variables: pos = token position; i = dimension pair index; d = model dimension.

Common mistake: Thinking attention knows order automatically. It does not without positional signal or equivalent design.

Causal mask: rows can attend left, not right token 1token 2token 3token 4token 5 12345

๐Ÿงช Worked example: one decoder self-attention head

Task: trace one attention head for "the model predicts tokens".

Use sequence length 4, d_model = 8, and one head with d_k = 4.

the model predicts tokens

1 Shape flow

ObjectFormulaShapeMeaning
Xembedding lookup4 ร— 8one row per token
QXW_Q4 ร— 4what each token asks for
KXW_K4 ร— 4what each token offers for matching
VXW_V4 ร— 4information to mix
QK^Tpairwise scores4 ร— 4token-to-token compatibility
AVweighted sum4 ร— 4contextualized rows

2 Causal mask

the
model
predicts
tokens
the
โœ“
blocked
blocked
blocked
model
โœ“
โœ“
blocked
blocked
predicts
โœ“
โœ“
โœ“
blocked
tokens
โœ“
โœ“
โœ“
โœ“

Rows are querying tokens. Columns are tokens they may read. The upper-right future positions are blocked.

1. Scorescores = QK^T / sqrt(d_k)
2. Maskfuture scores become very negative before softmax
3. MixA = softmax(scores), then head = AV
4. Predictthe final row is projected to vocabulary logits

โš™๏ธ Transformer block forward pass

input: X with shape [sequence, d_model]
Q = X W_Q; K = X W_K; V = X W_V
scores = Q K^T / sqrt(d_k)
if decoder: add causal mask to scores
A = softmax(scores)
head = A V
MHA = concat(head_1...head_h) W_O
Y = LayerNorm(X + MHA)
Z = LayerNorm(Y + FFN(Y))
return Z

โš ๏ธ Common traps

  • Attention weights mix values, not keys.
  • Multi-head attention is not just โ€œmore attentionโ€; each head has its own projections and subspace.
  • Masked vs non-masked attention is an architectural constraint, not a decoding preference.
  • The FFN does not mix positions; attention does.

โœ… Exam memory

Be able to draw the Transformer block, explain Q/K/V, write the attention formula, explain causal masking, and describe how logits become a next-token prediction.

๐Ÿงฉ Connection: model families differ mostly by which blocks and masks they use and what objective they train on.

๐Ÿ”Ž Sources and slide references

Transformer Model Families ๐Ÿ”ด Exam-core

๐Ÿงญ This chapter teaches how encoder-only, decoder-only, and encoder-decoder Transformers differ by mask, objective, and task shape.

๐Ÿ“Œ Why it matters: many exam answers fail by saying โ€œTransformerโ€ without specifying the family and objective.

Encoder-only Transformer ๐Ÿ”ด Exam-core

A bidirectional Transformer stack used for representations and classification-style tasks.

Reason: Lecture 8 distinguishes model families and MLM examples.

Masked language modeling ๐Ÿ”ด Exam-core

A pretraining task where selected tokens are hidden and predicted from bidirectional context.

Reason: Lecture 8 gives a worked input/label/loss example and practical scripts implement it.

Decoder-only Transformer ๐Ÿ”ด Exam-core

A causal Transformer that predicts the next token from past tokens.

Reason: Core architecture for GPT-style LLMs and generation.

Encoder-only bidirectional attention MLM / classification BERT-style Decoder-only causal attention next-token prediction GPT-style Encoder-decoder source encoder + target decoder translation / summarization T5/BART-style

๐Ÿ“š Clean explanation

FamilyAttentionTraining objectiveTypical useExam trap
Encoder-onlyBidirectional self-attentionMLM or representation learningClassification, retrieval embeddings, taggingIt is not naturally left-to-right generative.
Decoder-onlyCausal self-attentionNext-token predictionText generation, chat LMsIt cannot attend to future target tokens during training.
Encoder-decoderEncoder bidirectional; decoder causal + cross-attentionConditional generationTranslation, summarizationCross-attention reads encoder states, not future target tokens.

๐Ÿงช MLM worked example: input tokens vs labels

Task: prepare one masked-language-model training example from "the cat sat on mat".

Encoder-only models can use both left and right context, but the loss is computed only at selected masked positions.

the cat [MASK] on mat

1 Training row

PositionOriginal tokenModel inputLabel for lossLoss here?
1thethe-100No, ignored
2catcat-100No, ignored
3sat[MASK]satYes
4onon-100No, ignored
5matmat-100No, ignored

2 What the encoder may see

P(sat | the, cat, [MASK], on, mat)

The masked position can use both the cat on the left and on mat on the right.

3 What the loss uses

L = -ln P_model(sat at masked position)

Unmasked positions are present as context, but their labels are ignored with -100 in many libraries.

Exam distinction: MLM is not left-to-right generation. It is bidirectional reconstruction of selected hidden tokens.

โš™๏ธ MLM data preparation

input tokens: the cat sat on mat
choose masked position: sat
replace selected token with [MASK] or noise according to masking rule
labels = ignore everywhere except selected position
run bidirectional encoder
compute cross-entropy only at selected positions

โœ… Exam memory

For each model family, memorize: allowed attention pattern, objective, output shape, and natural tasks.

๐Ÿงฉ Connection: modern LLM discussion mostly focuses on decoder-only and sparse/dense variants, but encoder-only models are still important for embeddings and classification.

๐Ÿ”Ž Sources and slide references

Modern Transformer Techniques ๐ŸŸ  Exam-practical

๐Ÿงญ This chapter teaches what modern techniques change: context length, serving memory, attention speed, capacity, activation functions, and sparse routing.

๐Ÿ“Œ Why it matters: these topics explain why production LLMs are not just the 2017 Transformer copied at larger scale.

KV cache ๐ŸŸ  Exam-practical

Stored key/value tensors from previous tokens used to avoid recomputing attention history during decoding.

Reason: Lecture 7 uses it to explain long-context serving bottlenecks.

RoPE ๐ŸŸ  Exam-practical

Rotary positional embedding rotates query/key vector pairs by position-dependent angles.

Reason: Lecture 7 includes detailed numeric walkthroughs.

Grouped-query attention ๐ŸŸ  Exam-practical

Attention with many query heads sharing fewer key/value heads.

Reason: Appears as serving efficiency technique with KV-cache memory savings.

FlashAttention ๐ŸŸ  Exam-practical

An exact attention algorithm that reduces memory traffic using tiling and online softmax.

Reason: Modern technique named in lecture 7; understand the bottleneck, not implementation minutiae.

Mixture of Experts ๐Ÿ”ด Exam-core

A sparse layer that routes tokens to a small subset of expert networks.

Reason: Repeated across lectures 7 and 8 with architecture and training slides.

Scaling laws ๐ŸŸ  Exam-practical

Empirical relationships between loss, model size, dataset size, and compute.

Reason: Lecture 7 frames research trends with Chinchilla and compute/data trade-offs.

Long contextRoPE / YaRN Serving memoryKV cache / GQA Attention speedFlashAttention CapacityMoE routing AdaptationLoRA GroundingRAG Modern techniques change cost, context, capacity, adaptation, or grounding.

๐Ÿ“š Clean explanation

TechniqueProblemCore ideaExam-level answer
Scaling laws / ChinchillaHow to spend computeBalance parameters and training tokensMore parameters alone is wasteful if data is too low.
RoPE / YaRNRepresent position and extend contextRotate Q/K pairs by position-dependent anglesRelative position affects dot products.
KV cacheSlow autoregressive decodingReuse past K/V tensorsLess recomputation, more memory.
GQAKV cache memoryMany Q heads share fewer K/V headsReduce cache footprint with modest quality trade-off.
Sliding-window attentionO(nยฒ) attention costLimit local attention spanGood for local dependencies; needs hybrid/global fixes for long retrieval.
FlashAttentionMemory trafficTile attention and use online softmaxSame exact attention, faster/more memory efficient.
SwiGLUFFN expressivenessGated activation in the FFNModern replacement for vanilla ReLU/GELU in many LLMs.
MoECapacity vs FLOPsRoute each token to a few expertsMore parameters loaded, fewer active per token.

๐Ÿ“ MoE layer and balancing loss

Formal: y=โˆ‘eโˆˆTopK(g(x))peยทExperte(x),L=Ltask+ฮปLbalance\mathbf y=\sum_{e\in\operatorname{TopK}(g(\mathbf x))}p_e\operatorname{Expert}_e(\mathbf x),\qquad \mathcal L=\mathcal L_{\mathrm{task}}+\lambda\mathcal L_{\mathrm{balance}}

Meaning: A router selects experts per token, and an auxiliary term discourages expert collapse.

Exam/application: Explain sparse compute and why routing balance matters.

Variables: g(x)=router logits; p_e=routing probability; ฮป controls balancing weight.

Common mistake: Saying MoE is automatically cheaper in memory. It mostly saves per-token compute, while expert weights still exist.

๐Ÿงช Worked example: top-2 MoE routing

Task: route three tokens through an MoE feed-forward layer with 8 experts and top-2 routing.

The router scores all experts, but each token only computes through the two selected experts.

8 experts stored โ†’ 2 active/token

1 Router choices

TokenHighest router probabilitiesExperts actually computedWeighted output
TheE3: 0.42, E7: 0.31, E1: 0.09...E3, E70.42ยทE3(x) + 0.31ยทE7(x)
modelE1: 0.55, E3: 0.22, E6: 0.07...E1, E30.55ยทE1(x) + 0.22ยทE3(x)
runsE7: 0.48, E2: 0.28, E4: 0.08...E7, E20.48ยทE7(x) + 0.28ยทE2(x)

2 Compute intuition

active experts per token = 2 / 8 = 25%

Each token avoids running six expert FFNs, so per-token expert compute is sparse.

3 Balance check

ExpertSelected by tokensWhy it matters
E11 tokenhealthy usage
E32 tokenspopular but still acceptable here
E72 tokenspopular but still acceptable here
E4/E5/E6/E80 tokenscollapse risk if this persists

4 Final takeaway

MoE gives sparse compute, not free memory. The model still owns parameters for all 8 experts, and serving must route tokens efficiently.

Exam trap: saying โ€œMoE is just cheaperโ€ misses the memory/routing/load-balancing trade-off.

2/8

โš ๏ธ Common traps

  • FlashAttention is not approximate attention.
  • Long context at serving time is not the same as being trained to use long context well.
  • GQA reduces K/V heads, not query heads.
  • MoE specialization is useful only if routing is balanced and trained well.

โœ… Exam memory

For modern techniques, focus on problem โ†’ mechanism โ†’ trade-off. That is more likely examinable than exact paper-specific benchmark numbers.

๐Ÿงฉ Connection: LoRA and RAG are not core Transformer block changes; they adapt or ground models around the architecture.

๐Ÿ”Ž Sources and slide references

LLM Adaptation, RAG, and Limits ๐ŸŸ  Exam-practical

๐Ÿงญ This chapter teaches the system-level layer: dense vs sparse models, fine-tuning, LoRA, retrieval augmentation, hallucination, and evaluation.

๐Ÿ“Œ Why it matters: LLMs are not only architectures; useful systems combine a base model with data, adaptation, retrieval, and evaluation.

Fine-tuning ๐Ÿ”ด Exam-core

Continue training a pretrained model on task-specific data.

Reason: Lecture 8 and practical scripts directly cover model adaptation.

LoRA ๐Ÿ”ด Exam-core

A parameter-efficient method that freezes W and trains a low-rank update BA.

Reason: Lecture 8 gives formula slides and adaptation motivation.

RAG ๐ŸŸ  Exam-practical

Retrieval-augmented generation conditions a generator on retrieved external documents.

Reason: Introduced in lecture 1 as a concrete mitigation for hallucination.

Hallucination ๐ŸŸ  Exam-practical

A fluent model output that is unsupported, false, or not grounded in the requested evidence.

Reason: Lecture 1 highlights it as a core problem of generative models.

RLHF/alignment ๐ŸŸก Context

Training models toward human preferences, often by supervised fine-tuning plus preference optimization/RL.

Reason: Only lightly visible in the extracted slides, but standard for LLM context.

๐Ÿ“š Clean explanation

Full fine-tuning updates all model weights, which is powerful but expensive and storage-heavy. LoRA freezes the base weights and trains low-rank adapter matrices, making task adaptation cheaper. RAG tackles a different problem: instead of changing the weights, retrieve relevant documents and feed them into the prompt/context so the model can condition on external evidence.

๐Ÿ“ LoRA update

Formal: Wโ€ฒ=W+BA,AโˆˆRrร—d,BโˆˆRdร—r,rโ‰ชdW'=W+BA,\qquad A\in\mathbb R^{r\times d},\ B\in\mathbb R^{d\times r},\qquad r\ll d

Meaning: Freeze W and train small low-rank matrices A and B.

Exam/application: Know why trainable parameter count drops from roughly dยฒ to 2dr for a square matrix.

Variables: W = base weight; A/B = low-rank adapters; r = rank.

Common mistake: Thinking LoRA changes the tokenizer or retrieval pipeline. It changes trainable weight updates.

๐Ÿงช Worked example: RAG answer with evidence

Task: answer the course question "What does masked attention prevent?" using retrieved evidence.

RAG does not change the Transformer weights. It changes the context the model receives before answering.

retrieve โ†’ ground โ†’ answer

1 Retrieved chunks

ChunkRetrieved textUse?Reason
AA causal mask blocks attention to future target positions during decoder training.UseDirectly answers the question.
BTeacher forcing feeds the true previous target token during training.MaybeRelated to training, but not the mask itself.
CEmbeddings convert token IDs into dense vectors.NoWrong topic.

2 Prompt assembly

question + Chunk A + optional Chunk B โ†’ generator

The prompt tells the model what evidence it should base the answer on.

3 Grounded answer check

Answer claimSupported byStatus
Masked attention prevents reading future target tokens.Chunk AGrounded
It improves factuality by itself.No retrieved chunkUnsupported
Final answer: masked attention prevents a decoder from attending to future target tokens, preserving left-to-right causality. RAG helps only if retrieval returns the right evidence and the model uses it.

โš™๏ธ RAG answer pipeline

input: user question
embed/query the question
retrieve top-k relevant chunks from trusted course corpus
compose prompt with question + retrieved evidence
generate answer with citations to retrieved chunks
evaluate answer for grounding and missing evidence

โš ๏ธ Common traps

  • RAG is not a guarantee of correctness; retrieval can miss, rank poorly, or contain bad evidence.
  • Fine-tuning changes model behavior; it does not automatically add reliable factual databases.
  • RLHF/alignment improves preference-following behavior but does not prove truthfulness.
  • Evaluation must match the task: perplexity, accuracy, human preference, factuality, latency, and cost measure different things.

โœ… Exam memory

Be able to compare full fine-tuning vs LoRA, explain RAG as retrieval plus generation, and define hallucination without mystifying it.

๐Ÿงฉ Connection: these system ideas sit on top of the Transformer/model-family foundation; they do not replace the need to understand masks, objectives, and attention.

๐Ÿ”Ž Sources and slide references

Practical Session Map ๐ŸŸ  Exam-practical

๐Ÿงญ This chapter maps the provided notebooks/scripts to the theory chapters.

FileConcepts practicedStudy action
markov-language-model.zipMarkov chain, text generation, visualization, perplexity mentionReproduce the table-building/generation algorithm.
word2vec.zipPreprocessing, TF-IDF comparison, Word2VecExplain sparse vs dense vector behavior.
rnn-language-model.zipRNN text generator from basicsTrace hidden-state update and sampling.
bidirectional-LSTM-generator.zipLSTM, bidirectionality, TensorFlow text generationUnderstand gates/bidirectionality; low priority to memorize library calls.
6-practical.ipynbMatrix multiplication, embeddings, positional encoding, Q/K/V, masksWork through shapes by hand; this is highly exam-aligned.
transformer-based models practical.zipMLM training, BERT embeddings, sentiment fine-tuning, MoE layerKnow the objective and module purpose for each script.

โš ๏ธ Exam trap

Do not memorize library installation commands. Memorize the concepts implemented by the notebooks: how data becomes tensors, how losses are computed, and what each module is supposed to learn.

๐Ÿ”Ž Sources and slide references
  • 6-practical.ipynb: Transformer component exercises
  • markov-language-model.zip, word2vec.zip, rnn-language-model.zip, bidirectional-LSTM-generator.zip, transformer-based models practical.zip: practical archive summaries

Exam Toolkit ๐Ÿ”ด Exam-core

Definitions to memorize

  • ๐Ÿ”ด Language model, Markov property, n-gram, perplexity.
  • ๐Ÿ”ด Tokenization, embedding, Word2Vec, softmax, cross-entropy.
  • ๐Ÿ”ด Encoder-decoder, attention, Q/K/V, multi-head attention, causal mask.
  • ๐Ÿ”ด Encoder-only, decoder-only, MLM, causal LM, Transformer block.
  • ๐ŸŸ  RoPE, KV cache, GQA, FlashAttention, MoE, LoRA, RAG.

Formulas to memorize

  • ๐Ÿ”ด n-gram MLE: count(context,next)/count(context).
  • ๐Ÿ”ด Perplexity: exp average negative log-likelihood.
  • ๐Ÿ”ด Softmax and cross-entropy.
  • ๐Ÿ”ด Attention(Q,K,V)=softmax(QKแต€/โˆšdโ‚–)V.
  • ๐Ÿ”ด LoRA: Wโ€ฒ=W+BA.

Algorithms to reproduce

  • ๐Ÿ”ด Build/generate from an n-gram table.
  • ๐Ÿ”ด Transformer block forward pass.
  • ๐Ÿ”ด MLM input/label construction.
  • ๐ŸŸ  RAG pipeline.
  • ๐ŸŸ  MoE routing with balancing loss.

Diagrams to draw

  • ๐Ÿ”ด Transformer block with MHA, add-norm, FFN.
  • ๐Ÿ”ด Causal attention mask matrix.
  • ๐Ÿ”ด Encoder-only vs decoder-only vs encoder-decoder.
  • ๐ŸŸ  MoE router and experts.

Comparison table

CompareKey distinctionLikely short-answer phrasing
N-gram vs neural LMCount table vs learned smooth representationNeural LMs generalize via embeddings and parameters instead of exact context counts.
RNN vs TransformerSequential hidden state vs parallel self-attentionTransformers remove recurrence and use attention plus positional information.
Encoder-only vs decoder-onlyBidirectional representation vs causal generationBERT-style MLM differs from GPT-style next-token prediction.
Full fine-tuning vs LoRAUpdate all weights vs train low-rank adaptersLoRA reduces trainable parameters while preserving the frozen base model.
Dense vs MoEAll parameters active vs routed expertsMoE increases capacity without proportional per-token compute, but routing/memory are hard.

Explain in 3 sentences prompts

  1. ๐Ÿ”ด Explain why n-grams suffer from state-space explosion.
  2. ๐Ÿ”ด Explain Q, K, and V without using the words โ€œmagicโ€ or โ€œmeaningโ€.
  3. ๐Ÿ”ด Explain why decoder-only Transformers need a causal mask.
  4. ๐Ÿ”ด Explain MLM labels and why ignored positions do not contribute to loss.
  5. ๐ŸŸ  Explain why FlashAttention is exact but faster.
  6. ๐ŸŸ  Explain why RAG can reduce hallucinations but cannot guarantee truth.

Likely short-answer questions

  1. ๐Ÿ”ด Given a small corpus, compute a bigram probability and one-step generation distribution.
  2. ๐Ÿ”ด Given logits, compute softmax probabilities conceptually and identify cross-entropy loss for the correct class.
  3. ๐Ÿ”ด Draw the Transformer block and label Q/K/V, MHA, FFN, residual, and normalization.
  4. ๐Ÿ”ด Decide whether a task should use encoder-only, decoder-only, or encoder-decoder architecture.
  5. ๐ŸŸ  Compare RoPE, GQA, FlashAttention, and MoE by problem solved.
  6. ๐ŸŸ  Explain LoRA parameter savings for a square weight matrix.

Conceptual traps

  • ๐Ÿ”ด Attention scores are not values; values are what get mixed.
  • ๐Ÿ”ด Positional encoding is needed because self-attention alone is permutation-insensitive.
  • ๐Ÿ”ด Perplexity is not factual accuracy.
  • ๐ŸŸ  KV cache saves compute but costs memory.
  • ๐ŸŸ  MoE reduces active computation, not total parameter count.

Professor-specific weirdness

  • ๐ŸŸ  โ€œDe-embeddingโ€ means output projection / language modeling head.
  • ๐ŸŸ  โ€œProcedural vectorsโ€ maps best to learned embeddings used by downstream procedures.
  • ๐Ÿ—‘๏ธ Several slides are animation build slides and should not be studied as separate content.

Rapid revision checklist

n-gram formulaperplexity meaningembedding lookupsoftmax lossRNN hidden stateattention formulaQ/K/V rolescausal maskTransformer blockMLM labelsRoPE/GQA/KV cacheMoE routingLoRA updateRAG limits

Glossary ๐Ÿ”ด Exam-core

Attention ๐Ÿ”ด Exam-core

Definition: A mechanism that computes weighted combinations of values based on query-key compatibility.

Plain-language: Decide which earlier states matter right now.

Where it appears: Lecture 5 pp. 18-23; lecture 6 pp. 55-80.

Bag-of-words ๐ŸŸ  Exam-practical

Definition: A document representation that counts token occurrences and ignores order.

Plain-language: A word-count vector.

Where it appears: Lecture 3 pp. 10-12.

Causal mask ๐Ÿ”ด Exam-core

Definition: A mask that blocks each position from attending to future tokens.

Plain-language: No peeking at the answer during next-token training.

Where it appears: Lecture 6 pp. 85-89; lecture 8 pp. 40-42.

Cross-entropy loss ๐Ÿ”ด Exam-core

Definition: The negative log-probability assigned to the correct class/token.

Plain-language: Punish the model when the right answer has low probability.

Where it appears: Lecture 7 pp. 25-31; lecture 8 pp. 27-30.

Decoder-only Transformer ๐Ÿ”ด Exam-core

Definition: A causal Transformer that predicts the next token from past tokens.

Plain-language: Generate left-to-right with a causal mask.

Where it appears: Lecture 8 pp. 34-44.

Encoder-decoder ๐Ÿ”ด Exam-core

Definition: An architecture where an encoder maps an input sequence to states and a decoder produces an output sequence.

Plain-language: Read the source, then generate the target.

Where it appears: Lecture 5 pp. 10-17; lecture 8 pp. 3-13.

Encoder-only Transformer ๐Ÿ”ด Exam-core

Definition: A bidirectional Transformer stack used for representations and classification-style tasks.

Plain-language: Read the whole input at once and produce contextual vectors.

Where it appears: Lecture 8 pp. 15-33.

Feed-forward network in Transformers ๐Ÿ”ด Exam-core

Definition: A position-wise MLP applied independently to each token after attention.

Plain-language: Attention mixes positions; FFN transforms each token representation.

Where it appears: Lecture 6 pp. 90-97; lecture 7 pp. 15-20.

Fine-tuning ๐Ÿ”ด Exam-core

Definition: Continue training a pretrained model on task-specific data.

Plain-language: Start from a general model and specialize it.

Where it appears: Lecture 8 pp. 98-106; transformer practical.

FlashAttention ๐ŸŸ  Exam-practical

Definition: An exact attention algorithm that reduces memory traffic using tiling and online softmax.

Plain-language: Same attention math, better memory movement.

Where it appears: Lecture 7 pp. 75-76.

Greedy decoding ๐ŸŸ  Exam-practical

Definition: Choose the highest-probability token at each generation step.

Plain-language: Always pick the current best token.

Where it appears: Lecture 6 pp. 106-114.

Grouped-query attention ๐ŸŸ  Exam-practical

Definition: Attention with many query heads sharing fewer key/value heads.

Plain-language: Keep many ways to ask, fewer cached things to read.

Where it appears: Lecture 7 pp. 61-69.

Hallucination ๐ŸŸ  Exam-practical

Definition: A fluent model output that is unsupported, false, or not grounded in the requested evidence.

Plain-language: Confident-sounding text that is not actually justified.

Where it appears: Lecture 1 p. 8.

KV cache ๐ŸŸ  Exam-practical

Definition: Stored key/value tensors from previous tokens used to avoid recomputing attention history during decoding.

Plain-language: Remember old keys/values so each new token does less repeated work.

Where it appears: Lecture 7 pp. 36-42, 61-69.

Language model ๐Ÿ”ด Exam-core

Definition: A model that assigns probabilities to token sequences and usually predicts the next token.

Plain-language: It is the probability engine behind text generation.

Where it appears: Lecture 2 pp. 3-43; lecture 4 pp. 4-25; lecture 6 pp. 106-119.

Layer normalization and residuals ๐Ÿ”ด Exam-core

Definition: Residual paths add inputs back; layer norm stabilizes activation scale.

Plain-language: Keep gradients and representations from falling apart in deep stacks.

Where it appears: Lecture 6 pp. 98-103; lecture 7 pp. 14, 20.

LoRA ๐Ÿ”ด Exam-core

Definition: A parameter-efficient method that freezes W and trains a low-rank update BA.

Plain-language: Train small adapter matrices instead of the whole model.

Where it appears: Lecture 8 pp. 101-106.

LSTM ๐ŸŸ  Exam-practical

Definition: A gated recurrent network designed to preserve information over longer spans.

Plain-language: An RNN with gates that decide what to remember, forget, and output.

Where it appears: Lecture 4 pp. 22-24; bidirectional LSTM practical.

Markov property ๐Ÿ”ด Exam-core

Definition: The next state/token is assumed to depend only on a limited current state, not the full history.

Plain-language: The model forgets everything except the last few tokens.

Where it appears: Lecture 2 pp. 4-20; Markov practical archive.

Masked language modeling ๐Ÿ”ด Exam-core

Definition: A pretraining task where selected tokens are hidden and predicted from bidirectional context.

Plain-language: Fill in the blank, but only masked positions count in the loss.

Where it appears: Lecture 8 pp. 21-30; transformer practical.

Mixture of Experts ๐Ÿ”ด Exam-core

Definition: A sparse layer that routes tokens to a small subset of expert networks.

Plain-language: More capacity, but only some experts compute for each token.

Where it appears: Lecture 7 pp. 79-89; lecture 8 pp. 55-84; MoE practical.

Multi-head attention ๐Ÿ”ด Exam-core

Definition: Several attention heads run in parallel, then concatenate and project their outputs.

Plain-language: Different heads can learn different relation types.

Where it appears: Lecture 6 pp. 76-84; lecture 7 pp. 8-13.

N-gram model ๐Ÿ”ด Exam-core

Definition: A language model that approximates P(w_t | history) using only the previous n-1 tokens.

Plain-language: A next-word table indexed by a short context window.

Where it appears: Lecture 2 pp. 20-43.

Perplexity ๐Ÿ”ด Exam-core

Definition: Exponentiated average negative log-likelihood; lower is better for a fixed test set/tokenization.

Plain-language: How surprised the model is, averaged over the sequence.

Where it appears: Lecture 2 p. 39; Markov practical.

Positional encoding ๐Ÿ”ด Exam-core

Definition: A signal added or applied to token representations so the model can use order.

Plain-language: Attention sees a set unless position is supplied.

Where it appears: Lecture 6 pp. 27-47; lecture 7 pp. 43-60.

Q/K/V projections ๐Ÿ”ด Exam-core

Definition: Learned projections that create queries, keys, and values from token representations.

Plain-language: Query asks, key matches, value carries the information to mix.

Where it appears: Lecture 6 pp. 61-65; lecture 7 pp. 8-13.

RAG ๐ŸŸ  Exam-practical

Definition: Retrieval-augmented generation conditions a generator on retrieved external documents.

Plain-language: Look up relevant text, then answer with that evidence.

Where it appears: Lecture 1 p. 11.

RLHF/alignment ๐ŸŸก Context

Definition: Training models toward human preferences, often by supervised fine-tuning plus preference optimization/RL.

Plain-language: Make the model more helpful and less wild by using human feedback.

Where it appears: Lecture 8 p. 45.

RNN ๐Ÿ”ด Exam-core

Definition: A neural network that updates a hidden state while processing a sequence step by step.

Plain-language: A loop over tokens with memory in the hidden state.

Where it appears: Lecture 4 pp. 16-21; lecture 5 pp. 3-9; RNN practical.

RoPE ๐ŸŸ  Exam-practical

Definition: Rotary positional embedding rotates query/key vector pairs by position-dependent angles.

Plain-language: Encode relative position inside the Q/K dot product.

Where it appears: Lecture 7 pp. 43-60.

Scaled dot-product attention ๐Ÿ”ด Exam-core

Definition: Attention(Q,K,V)=softmax(QK^T/sqrt(d_k))V.

Plain-language: Compare queries to keys, normalize weights, then blend values.

Where it appears: Lecture 6 pp. 64-75.

Scaling laws ๐ŸŸ  Exam-practical

Definition: Empirical relationships between loss, model size, dataset size, and compute.

Plain-language: Bigger helps, but data and compute balance matter.

Where it appears: Lecture 7 pp. 35-37.

Softmax ๐Ÿ”ด Exam-core

Definition: A function that turns logits into a normalized probability distribution.

Plain-language: Scores in, probabilities out.

Where it appears: Lecture 4 pp. 9-11; lecture 6 pp. 65, 106-114; lecture 7 pp. 24-30.

Teacher forcing ๐ŸŸ  Exam-practical

Definition: During training, feed the decoder the true previous token instead of its own previous prediction.

Plain-language: Train with the correct history so errors do not snowball too early.

Where it appears: Lecture 5 p. 16; lecture 8 p. 13.

TF-IDF ๐ŸŸ  Exam-practical

Definition: A weighting scheme that boosts terms frequent in a document but rare across the corpus.

Plain-language: Common here, rare everywhere else means informative.

Where it appears: Lecture 3; Word2Vec practical.

Tokenization ๐Ÿ”ด Exam-core

Definition: Splitting text into model vocabulary units and mapping them to integer IDs.

Plain-language: Turning text into the discrete symbols the model can look up.

Where it appears: Lecture 3 pp. 10-15; lecture 7 pp. 33-34; transformer practical.

Transformer block ๐Ÿ”ด Exam-core

Definition: A stackable layer containing attention, residual/add-norm structure, and a position-wise FFN.

Plain-language: The repeating unit that turns token vectors into context-aware vectors.

Where it appears: Lecture 6 pp. 47-121; lecture 7 pp. 2-32.

Word embedding ๐Ÿ”ด Exam-core

Definition: A dense vector representation of a token or text item in a continuous space.

Plain-language: A learned coordinate for meaning and usage.

Where it appears: Lecture 3 pp. 6-48; lecture 6 pp. 18-26.

Word2Vec ๐Ÿ”ด Exam-core

Definition: A family of shallow neural models, CBOW and skip-gram, for learning word vectors from context.

Plain-language: Learn vectors by predicting words from neighbors or neighbors from words.

Where it appears: Lecture 3; Word2Vec practical.

Source Traceability Appendix ๐Ÿ”ด Exam-core

Every relevant lecture PDF page is represented below. Practical files are listed after the page-level table. Low-text animation/title slides are preserved as traceability rows but often marked low priority or slide noise.

Lecture PDF page map
Source fileSlide/pageDetected topicFinal sectionPriority
1-presentation.pdf 1 Generative AI Course orientation, Transformer architecture, Modern Transformer techniques ๐ŸŸก Context
1-presentation.pdf 2 Contact to the docent Course orientation / low-priority context ๐Ÿ—‘๏ธ Slide noise
1-presentation.pdf 3 Generative AI Course orientation, Transformer architecture, Modern Transformer techniques ๐Ÿ—‘๏ธ Slide noise
1-presentation.pdf 4 Type of course Course orientation / low-priority context ๐Ÿ—‘๏ธ Slide noise
1-presentation.pdf 5 โ€œAny sufficiently ad- Course orientation / low-priority context โšช Low priority
1-presentation.pdf 6 Language modeling, Attention, Transformer Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
1-presentation.pdf 7 Chances: Supporting day-to-day tasks Course orientation / low-priority context โšช Low priority
1-presentation.pdf 8 Problem: Models hallucinating Course orientation / low-priority context โšช Low priority
1-presentation.pdf 9 Semantic similarity in latent space Course orientation / low-priority context โšช Low priority
1-presentation.pdf 10 Democratization of technology Course orientation / low-priority context โšช Low priority
1-presentation.pdf 11 RAG LLM systems ๐ŸŸ  Exam-practical
1-presentation.pdf 12 Research at our group Course orientation / low-priority context โšช Low priority
1-presentation.pdf 13 Generative AI, Language modeling, Word embeddings, Attention, Transformer, RAG Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
1-presentation.pdf 14 Generative AI Course orientation, Transformer architecture, Modern Transformer techniques ๐ŸŸก Context
2-presentation.pdf 1 Generative AI, Language modeling Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
2-presentation.pdf 2 Language modeling, Markov assumption, Transformer Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
2-presentation.pdf 3 Language modeling Language modeling foundations ๐Ÿ—‘๏ธ Slide noise
2-presentation.pdf 4 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 5 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 6 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 7 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 8 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 9 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 10 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 11 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 12 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 13 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 14 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 15 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 16 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 17 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 18 Language modeling, Markov assumption Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 19 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 20 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 21 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 22 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 23 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 24 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 25 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 26 โ€It appears then that Source traceability / low-priority context โšช Low priority
2-presentation.pdf 27 โ€It appears then that Source traceability / low-priority context โšช Low priority
2-presentation.pdf 28 Language modeling, Q/K/V Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 29 Language modeling, Q/K/V Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 30 Language modeling, Residual connections Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 31 Language modeling, Attention Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
2-presentation.pdf 32 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 33 Language modeling, Markov assumption, Q/K/V Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 34 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 35 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 36 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 37 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 38 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 39 Language modeling, Perplexity Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 40 Generative AI, Language modeling, Markov assumption, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
2-presentation.pdf 41 Generative AI, Language modeling, Markov assumption, Prompting Course orientation, Language modeling foundations, LLM systems ๐Ÿ”ด Exam-core
2-presentation.pdf 42 Language modeling Language modeling foundations ๐Ÿ”ด Exam-core
2-presentation.pdf 43 Language modeling, Markov assumption, Word embeddings, Attention Language modeling foundations, Text representation and embeddings, Seq2Seq and attention ๐Ÿ”ด Exam-core
3-presentation.pdf 1 Generative AI, Word embeddings, Word2Vec Course orientation, Text representation and embeddings, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
3-presentation.pdf 2 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 3 Markov assumption, Word embeddings, Word2Vec Language modeling foundations, Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 4 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 5 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 6 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 7 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 8 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 9 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 10 Tokenization, Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 11 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 12 Tokenization, Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 13 Tokenization, Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 14 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 15 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 16 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 17 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 18 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 19 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 20 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 21 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 22 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 23 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 24 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 25 Word embeddings, Word2Vec, Q/K/V Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 26 Word embeddings, Word2Vec, Q/K/V Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 27 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 28 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 29 Word embeddings, Word2Vec, Q/K/V Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 30 Word embeddings, Word2Vec, Q/K/V Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 31 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 32 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 33 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 34 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 35 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 36 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 37 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 38 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 39 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 40 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 41 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 42 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 43 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 44 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 45 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 46 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 47 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
3-presentation.pdf 48 Word embeddings, Word2Vec Text representation and embeddings ๐Ÿ”ด Exam-core
4-presentation.pdf 1 Generative AI, Language modeling, Neural language models Course orientation, Language modeling foundations, Neural language models, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
4-presentation.pdf 2 Language modeling, Markov assumption, N-gram models, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 3 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 4 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 5 Language modeling, Word embeddings, Neural language models Language modeling foundations, Text representation and embeddings, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 6 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 7 Language modeling, Markov assumption, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 8 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 9 Language modeling, Markov assumption, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 10 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 11 Language modeling, Markov assumption, Neural language models, Transformer Language modeling foundations, Neural language models, Transformer architecture ๐Ÿ”ด Exam-core
4-presentation.pdf 12 Language modeling, Markov assumption, Neural language models, Feed-forward neural networks Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 13 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 14 Language modeling, Markov assumption, Word embeddings, Neural language models Language modeling foundations, Text representation and embeddings, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 15 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 16 Language modeling, Neural language models, Feed-forward neural networks, RNN, Q/K/V Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 17 Language modeling, Neural language models, RNN Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 18 Language modeling, N-gram models, Neural language models, RNN Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 19 Language modeling, Neural language models, Feed-forward neural networks, RNN Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 20 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 21 Language modeling, Neural language models Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 22 Language modeling, Neural language models, RNN Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 23 Language modeling, Neural language models, LSTM Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 24 Language modeling, Neural language models, LSTM Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
4-presentation.pdf 25 Language modeling, Markov assumption, Neural language models, RNN, LSTM Language modeling foundations, Neural language models ๐Ÿ”ด Exam-core
5-presentation.pdf 1 Generative AI, Encoder-decoder, Attention Course orientation, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
5-presentation.pdf 2 Language modeling, Markov assumption, Neural language models, RNN, Encoder-decoder, Attention Language modeling foundations, Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 3 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 4 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 5 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 6 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 7 Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 8 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 9 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 10 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 11 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 12 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 13 Vanishing gradients, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 14 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 15 RNN, Encoder-decoder, Attention Neural language models, Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 16 Encoder-decoder, Attention, Teacher forcing Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 17 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 18 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 19 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 20 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 21 Encoder-decoder, Attention, Q/K/V Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 22 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 23 Encoder-decoder, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
5-presentation.pdf 24 RNN, Encoder-decoder, Attention, Transformer, Self-attention Neural language models, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 1 Generative AI, Transformer Course orientation, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
6-presentation.pdf 2 Exercise: Matrix Multiplication Source traceability / low-priority context โšช Low priority
6-presentation.pdf 3 ๏ฃฎ 2 3๏ฃน Source traceability / low-priority context โšช Low priority
6-presentation.pdf 4 Solution: Matrix Multiplication Source traceability / low-priority context โšช Low priority
6-presentation.pdf 5 Solution: Matrix Multiplication (Continued) Source traceability / low-priority context โšช Low priority
6-presentation.pdf 6 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 7 Attention, Self-attention Neural language models, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 8 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 9 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 10 Word embeddings, Feed-forward neural networks, Attention, Positional encoding, Residual connections Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 11 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 12 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 13 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 14 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 15 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 16 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 17 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 18 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 19 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 20 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 21 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 22 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 23 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 24 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 25 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 26 Word embeddings, Word2Vec, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 27 Modelโ€™s awareness to position. Is it imporant? Neural language models โšช Low priority
6-presentation.pdf 28 Consequences of Removing the Recurrent Nature Neural language models โšช Low priority
6-presentation.pdf 29 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 30 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 31 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 32 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 33 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 34 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 35 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 36 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 37 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 38 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 39 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 40 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 41 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 42 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 43 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 44 Word embeddings, Positional encoding, Residual connections Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 45 Word embeddings, Positional encoding, Residual connections Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 46 Word embeddings, Positional encoding, Residual connections Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 47 Word embeddings, Positional encoding, Residual connections Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 48 Word embeddings, Transformer, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 49 Solution Source traceability / low-priority context โšช Low priority
6-presentation.pdf 50 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 51 Positional encoding Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 52 Word embeddings, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 53 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 54 Word embeddings Text representation and embeddings ๐Ÿ”ด Exam-core
6-presentation.pdf 55 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 56 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 57 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 58 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 59 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 60 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 61 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 62 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 63 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 64 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 65 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 66 Word embeddings, Attention, Self-attention, Q/K/V Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 67 Word embeddings, Attention, Self-attention Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 68 Word embeddings, Attention, Self-attention Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 69 Word embeddings, Attention, Self-attention Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 70 Word embeddings, Attention, Self-attention Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 71 Word embeddings, Attention, Self-attention Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 72 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 73 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 74 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 75 Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 76 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 77 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 78 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 79 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 80 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 81 Generative AI Course orientation, Transformer architecture ๐ŸŸก Context
6-presentation.pdf 82 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 83 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 84 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 85 MHA: Masked vs Non-masked Source traceability / low-priority context โšช Low priority
6-presentation.pdf 86 MHA: Masked vs Non-masked Source traceability / low-priority context โšช Low priority
6-presentation.pdf 87 Attention, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 88 Attention, Q/K/V, Multi-head attention, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
6-presentation.pdf 89 Attention, Q/K/V, Multi-head attention, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
6-presentation.pdf 90 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 91 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 92 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 93 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 94 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 95 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 96 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 97 Feed-forward neural networks, Attention Seq2Seq and attention ๐Ÿ”ด Exam-core
6-presentation.pdf 98 Attention, Q/K/V, Layer normalization, Residual connections Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 99 Attention, Q/K/V, Layer normalization, Residual connections Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 100 Transformer, Positional encoding, Residual connections Transformer architecture, LLM systems ๐Ÿ”ด Exam-core
6-presentation.pdf 101 Transformer, Positional encoding, Residual connections Transformer architecture, LLM systems ๐Ÿ”ด Exam-core
6-presentation.pdf 102 Transformer, Positional encoding, Residual connections Transformer architecture, LLM systems ๐Ÿ”ด Exam-core
6-presentation.pdf 103 Transformer, Positional encoding, Residual connections Transformer architecture, LLM systems ๐Ÿ”ด Exam-core
6-presentation.pdf 104 Revision on Dimensions Source traceability / low-priority context โšช Low priority
6-presentation.pdf 105 Revision on Dimensions Source traceability / low-priority context โšช Low priority
6-presentation.pdf 106 Transformer Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 107 Transformer Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 108 Transformer Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 109 Transformer Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 110 Word embeddings, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 111 Word embeddings, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
6-presentation.pdf 112 Concrete Example (2): Logits Z = OW T Source traceability / low-priority context โšช Low priority
6-presentation.pdf 113 Greedy decoding: arg max gives the same result whether applied to zlast or softmax(zlast). Source traceability / low-priority context โšช Low priority
6-presentation.pdf 114 Concrete Example (3): Softmax and Greedy Decode Source traceability / low-priority context โšช Low priority
6-presentation.pdf 115 Q/K/V Source traceability / low-priority context ๐Ÿ”ด Exam-core
6-presentation.pdf 116 Q/K/V Source traceability / low-priority context ๐Ÿ”ด Exam-core
6-presentation.pdf 117 Q/K/V Source traceability / low-priority context ๐Ÿ”ด Exam-core
6-presentation.pdf 118 Q/K/V Source traceability / low-priority context ๐Ÿ”ด Exam-core
6-presentation.pdf 119 Q/K/V Source traceability / low-priority context ๐Ÿ”ด Exam-core
6-presentation.pdf 120 Generative AI, Language modeling, Word embeddings, Attention, Transformer, Self-attention, Q/K/V, Multi-head attention, Positional encoding, Residual connection Course orientation, Language modeling foundations, Text representation and embeddings, Neural language models, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
6-presentation.pdf 121 Generative AI, Language modeling, Word embeddings, Attention, Transformer, Self-attention, Q/K/V, Multi-head attention, Positional encoding, Residual connection Course orientation, Language modeling foundations, Text representation and embeddings, Neural language models, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
6-presentation.pdf 122 Fin Source traceability / low-priority context ๐Ÿ—‘๏ธ Slide noise
7-presentation.pdf 1 Generative AI, Transformer Course orientation, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 2 Word embeddings, Feed-forward neural networks, Attention, Transformer, Multi-head attention, Positional encoding, Residual connections Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 3 Attention, Transformer, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 4 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 5 Word embeddings, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 6 Word embeddings, Transformer, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 7 Word embeddings, Transformer, Positional encoding Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 8 Attention, Transformer, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 9 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 10 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 11 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 12 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 13 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 14 Transformer, Layer normalization, Residual connections Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 15 Feed-forward neural networks, Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 16 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 17 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 18 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 19 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 20 Transformer, Layer normalization, Residual connections Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 21 Word embeddings, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 22 Word embeddings, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 23 Word embeddings, Transformer Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 24 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 25 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 26 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 27 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 28 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 29 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 30 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 31 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 32 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 33 Tokenization, Attention, Transformer, Mixture of Experts Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 34 Tokenization, Attention, Transformer, Mixture of Experts Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 35 Attention, Transformer, GPT, Scaling laws Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 36 Attention, Transformer, GPT, Scaling laws Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 37 Attention, Transformer, GPT, Scaling laws Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 38 Transformer, Fine-tuning, Prompting Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
7-presentation.pdf 39 Transformer, Fine-tuning, Prompting Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
7-presentation.pdf 40 Transformer, Fine-tuning, Prompting Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
7-presentation.pdf 41 Transformer, Fine-tuning, Prompting Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
7-presentation.pdf 42 Transformer, Fine-tuning, Prompting Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
7-presentation.pdf 43 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 44 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 45 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 46 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 47 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 48 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 49 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 50 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 51 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 52 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 53 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 54 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 55 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 56 Transformer Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 57 Word embeddings, Transformer, Q/K/V Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 58 Word embeddings, Transformer, Q/K/V Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 59 Word embeddings, Transformer, Q/K/V Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 60 Word embeddings, Transformer, Q/K/V Text representation and embeddings, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 61 Attention, Transformer, Q/K/V, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 62 Attention, Transformer, Q/K/V, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 63 Attention, Transformer, Q/K/V, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 64 Attention, Transformer, Q/K/V, Multi-head attention Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 65 Attention, Transformer, Q/K/V Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 66 Attention, Transformer, Q/K/V Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 67 Attention, Transformer, Q/K/V Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 68 Attention, Transformer, Q/K/V Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 69 Attention, Transformer, Q/K/V Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 70 Attention, Transformer, Q/K/V, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 71 Attention, Transformer, Q/K/V, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 72 Attention, Transformer, Q/K/V, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 73 Attention, Transformer, Q/K/V, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 74 Attention, Transformer, Q/K/V, Causal language modeling Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 75 Attention, Transformer Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 76 Transformer, Q/K/V Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 77 Transformer, BERT, GPT Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 78 Feed-forward neural networks, Transformer, Mixture of Experts Transformer architecture ๐Ÿ”ด Exam-core
7-presentation.pdf 79 Transformer, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 80 Transformer, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 81 Transformer, Q/K/V, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 82 Transformer, Q/K/V, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 83 Transformer, Q/K/V, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 84 Transformer, Q/K/V, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 85 Transformer, Q/K/V, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 86 Transformer, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 87 Transformer, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 88 Transformer, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 89 Transformer, Mixture of Experts Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
7-presentation.pdf 90 Transformer Transformer architecture ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 1 Generative AI, Language modeling, Transformer Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 2 Language modeling, Word embeddings, Feed-forward neural networks, Attention, Transformer, Positional encoding, Residual connections Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 3 Language modeling, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 4 Language modeling, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 5 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 6 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 7 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 8 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 9 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 10 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 11 Language modeling, Encoder-decoder, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 12 Language modeling, Encoder-decoder, Teacher forcing, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 13 Language modeling, Encoder-decoder, Teacher forcing, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 14 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 15 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 16 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 17 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 18 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 19 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 20 Language modeling, Word embeddings, Attention, Transformer, Causal language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 21 Language modeling, Word embeddings, Transformer, Masked language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 22 Language modeling, Word embeddings, Transformer, Masked language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 23 Language modeling, Word embeddings, Transformer, Masked language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 24 Language modeling, Transformer, Masked language modeling Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 25 Language modeling, Transformer, Masked language modeling Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 26 Language modeling, Transformer, Masked language modeling Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 27 Language modeling, Transformer, Masked language modeling Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 28 Language modeling, Word embeddings, Transformer, Masked language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 29 Language modeling, Word embeddings, Transformer, Masked language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 30 Language modeling, Word embeddings, Transformer, Masked language modeling Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 31 Language modeling, Word embeddings, Transformer, Layer normalization, Masked language modeling, BERT, Fine-tuning Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 32 Language modeling, Word embeddings, Transformer, Layer normalization, Masked language modeling, BERT, Fine-tuning Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 33 Language modeling, Word embeddings, Transformer, Layer normalization, Masked language modeling, BERT, Fine-tuning Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 34 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 35 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 36 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 37 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 38 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 39 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 40 Language modeling, Transformer, Causal language modeling Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 41 Language modeling, Perplexity, Attention, Transformer, Self-attention, Causal language modeling, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 42 Language modeling, Transformer, Q/K/V Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 43 Language modeling, Transformer, Q/K/V Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 44 Language modeling, Transformer, Q/K/V Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 45 Generative AI, Language modeling, Word embeddings, Transformer, Q/K/V, GPT, Mixture of Experts, RLHF/alignment Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
8-presentation.pdf 46 Language modeling, Attention, Transformer, Q/K/V, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 47 Language modeling, Attention, Transformer, Q/K/V, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 48 Language modeling, Attention, Transformer, Q/K/V, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 49 Language modeling, Attention, Transformer, Q/K/V, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 50 Language modeling, Attention, Transformer, Q/K/V, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 51 Language modeling, Attention, Transformer, Q/K/V, GPT Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 52 Language modeling, Tokenization, Word embeddings, Attention, Transformer, Layer normalization Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 53 Language modeling, Attention, Transformer, Q/K/V Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture, LLM systems ๐Ÿ”ด Exam-core
8-presentation.pdf 54 Language modeling, Word embeddings, Attention, Transformer, Multi-head attention, GPT Course orientation, Language modeling foundations, Text representation and embeddings, Seq2Seq and attention, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 55 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 56 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 57 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 58 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 59 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 60 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 61 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 62 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 63 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 64 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 65 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 66 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 67 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 68 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 69 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 70 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 71 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 72 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 73 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 74 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 75 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 76 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 77 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 78 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 79 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 80 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 81 Language modeling, Transformer, Fine-tuning, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 82 Language modeling, Transformer, Fine-tuning, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 83 Language modeling, Transformer, Fine-tuning, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 84 Language modeling, Transformer, Mixture of Experts Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 85 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 86 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 87 Language modeling, Transformer Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 88 Language modeling, Transformer Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 89 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 90 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 91 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 92 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 93 Language modeling, Transformer, GPT Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 94 Language modeling, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 95 Language modeling, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 96 Language modeling, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 97 Language modeling, Transformer Course orientation, Language modeling foundations, Seq2Seq and attention, Transformer architecture ๐Ÿ”ด Exam-core
8-presentation.pdf 98 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 99 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 100 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 101 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ”ด Exam-core
8-presentation.pdf 102 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques, LLM systems ๐Ÿ—‘๏ธ Slide noise
8-presentation.pdf 103 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 104 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 105 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 106 Language modeling, Transformer, Fine-tuning Course orientation, Language modeling foundations, Transformer architecture, Modern Transformer techniques ๐Ÿ”ด Exam-core
8-presentation.pdf 107 Language modeling, Transformer Course orientation, Language modeling foundations, Transformer architecture ๐Ÿ—‘๏ธ Slide noise
Practical and other relevant files
Source fileTypeDetected topicFinal sectionPriority
6-practical.ipynbNotebookTransformer component exercisesTransformer architecture๐Ÿ”ด Exam-core
markov-language-model.zipArchiveMarkov generator practicalLanguage modeling foundations๐ŸŸ  Exam-practical
word2vec.zipArchiveWord2Vec vs TF-IDF practicalText representation and embeddings๐ŸŸ  Exam-practical
rnn-language-model.zipArchiveHandwritten RNN generatorNeural language models๐ŸŸ  Exam-practical
bidirectional-LSTM-generator.zipArchiveBidirectional LSTM generatorNeural language models๐ŸŸ  Exam-practical
transformer-based models practical.zipArchiveMLM, BERT embeddings, sentiment fine-tuning, MoEModel families / modern techniques๐Ÿ”ด Exam-core
README.txtTextCourse formal remarks and prerequisitesCourse orientation๐ŸŸก Context
Skipped non-course-content files
  • AGENTS.md: skipped as Workspace instruction; it governs generation or workspace behavior, not course content.
  • COURSE_STUDYBOOK_GOAL.md: skipped as Goal specification; it governs generation or workspace behavior, not course content.

Missing / Weak Material Appendix ๐ŸŸก Context

Concepts the slides mention but do not fully explain

  • Why attention scaling uses โˆšdโ‚– and what happens without it.
  • Why subword tokenizers are preferred in modern LLMs.
  • Exact optimization details for Word2Vec negative sampling.
  • How KV-cache tensors are laid out in production systems.
  • How RAG systems should evaluate retrieval quality and answer grounding.

Ambiguous or weak slide material

  • Several lecture 6 pages are animation build slides with only headings; neighboring pages provide the actual content.
  • Lecture 3 has a repeated outline header that makes automatic title extraction weak, but body text was extracted and used.
  • RLHF/alignment is visible only lightly in the extracted slides, so it is treated as context rather than deep exam-core.
  • Public model landscape slides are useful context but model lists can age quickly and are not memorization targets.

Extraction uncertainty

The following pages had low text extraction and were checked through local rendering or inferred from neighboring pages:

  • 1-presentation.pdf p.8: Problem: Models hallucinating (62 chars)
  • 1-presentation.pdf p.10: Democratization of technology (63 chars)
  • 2-presentation.pdf p.25: Btw: How old is this approach? (74 chars)
  • 4-presentation.pdf p.8: Example: Sentiment classification (76 chars)
  • 4-presentation.pdf p.13: Prof. Fischer, Neural Language Models 13/25 (43 chars)
  • 4-presentation.pdf p.17: RNN unrolled (56 chars)
  • 4-presentation.pdf p.20: Text generation with RNNs (69 chars)
  • 6-presentation.pdf p.6: Reminder: Computing Dynamic Attention (42 chars)
  • 6-presentation.pdf p.8: Attention is All You Need (30 chars)
  • 6-presentation.pdf p.9: Attention is All You Need (30 chars)
  • 6-presentation.pdf p.55: Attention Layer (21 chars)
  • 6-presentation.pdf p.56: Attention Layer (21 chars)
  • 6-presentation.pdf p.81: Visualization of Transformers (71 chars)
  • 6-presentation.pdf p.85: MHA: Masked vs Non-masked (31 chars)
  • 6-presentation.pdf p.86: MHA: Masked vs Non-masked (31 chars)
  • 6-presentation.pdf p.104: Revision on Dimensions (28 chars)
  • 6-presentation.pdf p.105: Revision on Dimensions (28 chars)
  • 6-presentation.pdf p.122: Fin (9 chars)
  • 7-presentation.pdf p.90: Fin (71 chars)
  • 8-presentation.pdf p.107: Finis (73 chars)

Assumptions made

  • Lecture order follows filenames `1-presentation.pdf` through `8-presentation.pdf`.
  • Exam relevance is evidence-based: repetition, formulas, algorithms, practical exercises, and standard field importance.
  • Generated SVG diagrams are original study aids, not copied slide screenshots.

External Verification Sources ๐ŸŸก Context

These public sources were used only to verify or clarify concepts. The professor slides and local practical files determine course scope.

  1. Jurafsky & Martin, Speech and Language Processing. Used for: n-gram language models, perplexity, tokenization, and NLP terminology.
  2. Bengio et al. (2003), A Neural Probabilistic Language Model. Used for: neural language model framing and embedding lookup intuition.
  3. Mikolov et al. (2013), Efficient Estimation of Word Representations in Vector Space. Used for: Word2Vec, CBOW, skip-gram, and vector regularities.
  4. Sennrich et al. (2016), Neural Machine Translation of Rare Words with Subword Units. Used for: subword/BPE motivation.
  5. Hochreiter & Schmidhuber (1997), Long Short-Term Memory. Used for: LSTM and long-range dependency motivation.
  6. Sutskever et al. (2014), Sequence to Sequence Learning with Neural Networks. Used for: encoder-decoder sequence learning.
  7. Bahdanau et al. (2014), Neural Machine Translation by Jointly Learning to Align and Translate. Used for: attention as a fix for fixed-vector bottlenecks.
  8. Vaswani et al. (2017), Attention Is All You Need. Used for: Transformer architecture, scaled dot-product attention, multi-head attention.
  9. Harvard NLP, The Annotated Transformer. Used for: implementation-level Transformer verification.
  10. Hugging Face Transformers, tokenizer summary. Used for: BPE, WordPiece, SentencePiece terminology.
  11. Hugging Face Transformers, text generation strategies. Used for: greedy, beam, and sampling decoding distinctions.
  12. Devlin et al. (2018), BERT. Used for: encoder-only pretraining and masked language modeling.
  13. Brown et al. (2020), Language Models are Few-Shot Learners. Used for: decoder-only LLM scale and in-context learning context.
  14. Lewis et al. (2020), Retrieval-Augmented Generation. Used for: RAG pipeline and knowledge-intensive task framing.
  15. Ouyang et al. (2022), Training language models to follow instructions with human feedback. Used for: RLHF and instruction-following alignment.
  16. Kaplan et al. (2020), Scaling Laws for Neural Language Models. Used for: scaling laws and loss trends.
  17. Hoffmann et al. (2022), Training Compute-Optimal Large Language Models. Used for: compute-optimal parameter/data trade-offs.
  18. Su et al. (2021), RoFormer / RoPE. Used for: rotary positional embeddings.
  19. Dao et al. (2022), FlashAttention. Used for: IO-aware exact attention.
  20. Ainslie et al. (2023), Grouped-Query Attention. Used for: GQA and KV-cache memory trade-offs.
  21. Shazeer et al. (2017), Sparsely-Gated Mixture-of-Experts. Used for: MoE gating and conditional computation.
  22. Fedus et al. (2021), Switch Transformers. Used for: top-1 MoE routing and sparse Transformer scaling.
  23. Hu et al. (2021), LoRA. Used for: parameter-efficient fine-tuning with low-rank updates.