Flashcards · Large Language Models · Free
Large Language Models flashcards, generated for you.
Example Large Language Models study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Large Language Models flashcards
What is the core idea behind how LLMs predict text?
LLMs learn statistical patterns from training data, then predict the next word by calculating probabilities: 'given all previous words, which word is most likely to come next?' They repeat this process to generate fluent text.
Why do LLMs need to 'understand context' when predicting the next word?
The probability of the next word depends heavily on distant words, not just the immediate previous one. LLMs must track relationships across long sequences to predict sensibly—e.g., 'The bank executive sat at her...' requires remembering 'bank' (not river) to predict 'desk' instead of 'shore'.
What problem do Transformers solve that earlier models couldn't?
Earlier RNNs processed words sequentially, making it hard to connect distant words and slow to train. Transformers use attention: they directly compare each word to ALL other words in parallel, letting the model efficiently learn long-range relationships.
Explain the intuition of 'attention' in one sentence.
Attention lets the model ask 'which previous words are relevant to understanding the current word?' and automatically learn to focus on the right ones.
What does the 'softmax' function do in attention scoring?
Softmax converts raw attention scores (which can be any size) into a probability distribution: all scores sum to 1, higher scores become larger probabilities, and the model learns to concentrate attention weight on relevant words.
What is the mathematical form of scaled dot-product attention?
Attention(Q, K, V) = softmax(QK^T / √d_k) V, where Q (queries) and K (keys) are compared to find relevance, V (values) are the actual information retrieved, and √d_k prevents the dot products from becoming too large.
Why divide by √d_k (the square root of key dimension) in attention?
Dot products of high-dimensional vectors grow very large, pushing softmax into flat regions where gradients vanish during training. Scaling down by √d_k keeps attention scores in a reasonable range, preserving useful gradient flow.
What does 'multi-head attention' accomplish that single-head attention cannot?
Multi-head attention runs several independent attention mechanisms in parallel, allowing the model to simultaneously attend to different types of relationships (e.g., one head tracks grammar, another tracks semantic meaning, etc.) and combine insights.
How do positional encodings preserve word order if Transformers process all words in parallel?
Positional encodings (typically sinusoidal functions of position) are added to word embeddings before attention. They encode 'which position in the sequence,' allowing the model to learn that word order matters while still using parallel computation.
What is the key difference between training and inference in LLMs, and why does it matter?
During training, the model sees all tokens at once (teacher forcing). During inference, it generates one token at a time, feeding its own predictions back as input. This mismatch can cause errors to accumulate—a problem called exposure bias that fine-tuning helps mitigate.
Make your own Large Language Models study set
Flashcards for related topics
Studying Large Language Models to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →